/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1B2838;
    color: #E8ECF0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Blueprint Grid Background */
.blueprint-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(139, 152, 168, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 152, 168, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Compass Indicator */
.compass-indicator {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    z-index: 100;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.compass-indicator:hover {
    opacity: 1;
}

.compass-rose {
    width: 100%;
    height: 100%;
    animation: rotateCompass 20s linear infinite;
    stroke: #8B98A8;
}

@keyframes rotateCompass {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Section Styles */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    border-bottom: 1px solid rgba(139, 152, 168, 0.2);
    overflow: hidden;
}

.section-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    width: 100%;
    opacity: 0;
    animation: sectionFadeIn 1.2s ease-out forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section 1: Briefing */
.section-1 {
    background: linear-gradient(135deg, #213245 0%, #1B2838 50%, #2A3D52 100%);
}

.briefing-header {
    text-align: center;
    margin-bottom: 80px;
}

.mission-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E8ECF0;
    margin-bottom: 20px;
    word-spacing: 0.2em;
}

.mission-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 0.1em;
    color: #9AAAB8;
    font-weight: 400;
}

.briefing-diagram {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    opacity: 0;
    animation: diagramSlideIn 1.5s ease-out 0.3s forwards;
}

@keyframes diagramSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.technical-diagram {
    width: 100%;
    height: auto;
}

/* Section 2: Technical Specifications */
.section-2 {
    background: linear-gradient(135deg, #2A3D52 0%, #213245 50%, #1B2838 100%);
}

.section-2 h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #D4DCE4;
    margin-bottom: 60px;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.spec-item {
    border-left: 2px solid #C9A96E;
    padding-left: 20px;
    opacity: 0;
    animation: specItemIn 0.8s ease-out forwards;
}

.spec-item:nth-child(1) { animation-delay: 0.1s; }
.spec-item:nth-child(2) { animation-delay: 0.2s; }
.spec-item:nth-child(3) { animation-delay: 0.3s; }
.spec-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes specItemIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.spec-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #9AAAB8;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.spec-value {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: #E8ECF0;
    letter-spacing: 0.03em;
    display: block;
}

/* Section 3: Navigation */
.section-3 {
    background: linear-gradient(135deg, #1B2838 0%, #2A3D52 50%, #213245 100%);
}

.section-3 h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #D4DCE4;
    margin-bottom: 60px;
    text-align: center;
}

.navigation-diagram {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: navigationDiagramIn 1.5s ease-out forwards;
}

@keyframes navigationDiagramIn {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.navigation-text {
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    color: #9AAAB8;
    letter-spacing: 0.02em;
    line-height: 1.8;
    margin-top: 40px;
    opacity: 0;
    animation: navigationTextIn 1s ease-out 0.3s forwards;
}

@keyframes navigationTextIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section 4: Mission Parameters */
.section-4 {
    background: linear-gradient(135deg, #213245 0%, #1B2838 50%, #2A3D52 100%);
}

.section-4 h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #D4DCE4;
    margin-bottom: 60px;
    text-align: center;
}

.parameters-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.parameter-block {
    background: rgba(58, 80, 104, 0.3);
    border: 1px solid #3A5068;
    padding: 30px;
    opacity: 0;
    animation: parameterBlockIn 0.9s ease-out forwards;
}

.parameter-block:nth-child(1) { animation-delay: 0.1s; }
.parameter-block:nth-child(2) { animation-delay: 0.2s; }
.parameter-block:nth-child(3) { animation-delay: 0.3s; }

@keyframes parameterBlockIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parameter-block h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #C9A96E;
    margin-bottom: 15px;
}

.parameter-block p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #D4DCE4;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Section 5: Expedition Status */
.section-5 {
    background: linear-gradient(135deg, #2A3D52 0%, #213245 50%, #1B2838 100%);
}

.section-5 h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #D4DCE4;
    margin-bottom: 60px;
    text-align: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    opacity: 0;
    animation: statusIn 1.2s ease-out forwards;
}

@keyframes statusIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(201, 169, 110, 0), rgba(201, 169, 110, 1));
}

.status-line.status-active {
    background: linear-gradient(90deg, rgba(201, 169, 110, 1), rgba(201, 169, 110, 0));
}

.status-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #C9A96E;
    font-weight: 500;
    white-space: nowrap;
}

.expedition-text {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #9AAAB8;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: expeditionTextIn 1s ease-out 0.3s forwards;
}

@keyframes expeditionTextIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }

    .compass-indicator {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .mission-title {
        word-spacing: normal;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blueprint-grid {
        background-size: 30px 30px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 30px 15px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .parameters-display {
        grid-template-columns: 1fr;
    }

    .compass-indicator {
        width: 45px;
        height: 45px;
    }

    .status-indicator {
        flex-direction: column;
        gap: 15px;
    }

    .status-line {
        width: 60px;
    }
}
