/* TARS Robot Report - Interstellar Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --text-primary: #c5c6c7;
    --accent-cyan: #66fcf1;
    --accent-dark-cyan: #45a29e;
    --glass-bg: rgba(31, 40, 51, 0.6);
    --glass-border: rgba(102, 252, 241, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(102, 252, 241, 0.3);
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-dark-cyan);
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    display: inline-block;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-cyan);
}

code {
    font-family: var(--font-mono);
    background: rgba(102, 252, 241, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 70%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(102, 252, 241, 0.05) 2px,
            rgba(102, 252, 241, 0.05) 4px);
    pointer-events: none;
}

.hero-content {
    z-index: 1;
    animation: fadeIn 2s ease-out;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-dark-cyan);
    margin-top: 1rem;
}

/* Content Sections */
section {
    padding: 4rem 0;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(102, 252, 241, 0.1);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    /* Fixed height for uniformity */
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
    border-top: 1px solid var(--glass-border);
    z-index: 2;
    background: var(--card-bg);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.2);
    animation: zoomIn 0.3s;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-family: var(--font-mono);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-cyan);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Mermaid Diagram */
.mermaid-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

/* Lists */
ul {
    list-style-position: inside;
    margin-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

li::marker {
    color: var(--accent-cyan);
}

/* Warning/Alerts for Verification */
.alert-box {
    border: 1px solid #ffcc00;
    background: rgba(255, 204, 0, 0.1);
    color: #ffcc00;
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    margin: 1rem 0;
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 3rem 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(197, 198, 199, 0.5);
    margin-top: 4rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu simplified for now */
    .lightbox-content {
        max-width: 95%;
    }
}