/* =========================================================
   APOLLO 11 — HISTORY EXPLORER
   Learnova
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #07090d;
    color: #d8d0bd;
    font-family: "Libre Baskerville", serif;
    line-height: 1.7;
}

a {
    text-decoration: none;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: 78px;
    padding: 15px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(5, 7, 11, 0.96);
    border-bottom: 1px solid #303744;

    backdrop-filter: blur(14px);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: "Cinzel", serif;
    font-size: 12px;
    letter-spacing: 4px;
    color: #a9a38e;
}

.project-name {
    font-family: "Cinzel", serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: #ded6c3;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.navbar nav a {
    position: relative;

    font-family: "Cinzel", serif;
    font-size: 10px;
    letter-spacing: 1.4px;

    color: #858b96;

    transition: color 0.3s ease;
}

.navbar nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 100%;
    height: 1px;

    background: #b8ad91;

    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #d5cbb3;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
    transform: scaleX(1);
}


/* =========================================================
   COMMON SECTION STYLES
========================================================= */

.section-heading {
    max-width: 900px;

    margin: 0 auto 65px;

    text-align: center;
}

.section-label {
    display: block;

    font-family: "Cinzel", serif;

    font-size: 10px;
    letter-spacing: 4px;

    color: #aaa18b;
}

.section-heading h2 {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    font-size: clamp(32px, 5vw, 55px);

    line-height: 1.2;

    color: #ddd4bf;
}

.section-heading p {
    margin-top: 17px;

    color: #858b96;

    font-size: 12px;
}

.section-ornament {
    margin-top: 23px;

    color: #a49a82;

    font-size: 10px;

    letter-spacing: 8px;
}

.content-wrapper {
    max-width: 850px;
    margin: auto;
}

.content-wrapper > p {
    margin-bottom: 26px;

    color: #9a9ca0;

    font-size: 13px;
    line-height: 2.05;
}


/* =========================================================
   HERO
========================================================= */

.apollo-hero {
    position: relative;

    min-height: 94vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 110px 6%;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(5, 8, 14, 0.45),
            rgba(5, 7, 11, 0.96)
        ),
        url("../assets/images/moon-landing.jpg");

    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            transparent 0%,
            rgba(2, 4, 8, 0.9) 88%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 1050px;

    text-align: center;

    animation: heroReveal 1.2s ease both;
}

@keyframes heroReveal {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

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

.hero-kicker {
    font-family: "Cinzel", serif;

    font-size: 10px;
    letter-spacing: 5px;

    color: #aaa18a;
}

.hero-symbol {
    margin: 25px 0 15px;

    font-size: 55px;

    color: #c7bea7;

    filter:
        drop-shadow(
            0 0 22px rgba(205, 198, 175, 0.2)
        );
}

.hero-content h1 {
    font-family: "Cinzel", serif;

    font-size: clamp(55px, 9vw, 105px);

    line-height: 0.9;

    letter-spacing: 8px;

    color: #e3dac4;

    text-shadow:
        0 7px 35px rgba(0, 0, 0, 0.95);
}

.hero-line {
    margin: 32px 0;

    color: #9d947e;

    letter-spacing: 6px;
}

.hero-date {
    font-family: "Cinzel", serif;

    font-size: 15px;

    letter-spacing: 4px;

    color: #c6bda7;
}

.hero-location {
    margin-top: 8px;

    font-size: 10px;

    letter-spacing: 3px;

    color: #858b94;
}

.hero-description {
    max-width: 800px;

    margin: 28px auto;

    color: #aaaeb3;

    font-size: 13px;

    line-height: 2;
}

.hero-button,
.back-button {
    display: inline-block;

    padding: 15px 30px;

    border: 1px solid #817966;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;

    color: #c8bea6;

    transition: all 0.35s ease;
}

.hero-button {
    margin-top: 14px;
}

.hero-button:hover,
.back-button:hover {
    color: #080a0e;

    background: #c4b99d;

    transform: translateY(-4px);

    box-shadow:
        0 12px 35px rgba(194, 185, 156, 0.18);
}


/* =========================================================
   OVERVIEW
========================================================= */

.overview-section {
    padding: 125px 6%;

    background:
        radial-gradient(
            circle at top,
            #171b22,
            #080a0e 72%
        );
}

.overview-grid {
    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.overview-card {
    position: relative;

    min-height: 285px;

    padding: 38px 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #171b21,
            #0e1116
        );

    border: 1px solid #333943;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.overview-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 2px;

    background: #aaa18a;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.4s ease;
}

.overview-card:hover {
    transform: translateY(-9px);

    border-color: #8e8876;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.5);
}

.overview-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    display: block;

    margin-bottom: 20px;

    font-size: 28px;
}

.card-label {
    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;

    color: #99917e;
}

.overview-card h3 {
    margin-top: 10px;

    font-family: "Cinzel", serif;

    font-size: 20px;

    color: #d5cbb5;
}

.overview-card p {
    margin-top: 13px;

    color: #858b94;

    font-size: 10px;

    line-height: 1.9;
}


/* =========================================================
   ORIGINS / SPACE RACE
========================================================= */

.origins-section {
    padding: 125px 6%;

    background: #0b0e13;

    border-top: 1px solid #282e38;
}


/* =========================================================
   LAUNCH
========================================================= */

.launch-section {
    min-height: 590px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 100px 6%;

    text-align: center;

    background:
        linear-gradient(
            rgba(7, 11, 17, 0.48),
            rgba(4, 6, 10, 0.97)
        ),
        url("../assets/images/apollo-11.jpg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;
}

.launch-content {
    max-width: 850px;
}

.launch-content h2 {
    margin-top: 17px;

    font-family: "Cinzel", serif;

    font-size: clamp(38px, 6vw, 65px);

    color: #ded5bf;

    text-shadow:
        0 5px 30px rgba(0, 0, 0, 0.9);
}

.ornamental-line {
    margin: 28px 0;

    color: #a59c86;

    letter-spacing: 6px;
}

.launch-content p {
    color: #a7abb1;

    font-size: 13px;

    line-height: 2;
}

.date-stamp,
.moon-stamp {
    display: inline-block;

    margin-top: 35px;

    padding: 10px 24px;

    border: 1px solid #716b5d;

    font-family: "Cinzel", serif;

    letter-spacing: 3px;

    color: #bcb39d;
}


/* =========================================================
   CREW
========================================================= */

.crew-section {
    padding: 125px 6%;

    background:
        linear-gradient(
            180deg,
            #11151b,
            #080a0e
        );
}

.crew-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.crew-card {
    position: relative;

    min-height: 320px;

    padding: 42px 38px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #181c23,
            #101319
        );

    border: 1px solid #343a45;

    transition: all 0.4s ease;
}

.crew-card:hover {
    transform: translateY(-9px);

    border-color: #918a77;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.4);
}

.crew-number {
    position: absolute;

    top: 14px;
    right: 22px;

    font-family: "Cinzel", serif;

    font-size: 48px;

    color: rgba(200, 191, 164, 0.09);
}

.crew-role {
    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;

    color: #a19a86;
}

.crew-card h3 {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    font-size: 25px;

    color: #d8cfb9;
}

.crew-card p {
    margin-top: 18px;

    color: #92979f;

    font-size: 11px;

    line-height: 1.95;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline-section {
    padding: 130px 6%;

    background: #080a0e;
}

.mission-timeline {
    position: relative;

    max-width: 900px;

    margin: auto;

    padding-left: 70px;
}

.mission-timeline::before {
    content: "";

    position: absolute;

    left: 19px;

    top: 0;

    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #77705f 8%,
            #77705f 92%,
            transparent
        );
}

.timeline-item {
    position: relative;

    margin-bottom: 45px;
}

.timeline-date {
    position: absolute;

    left: -70px;

    top: 23px;

    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #85806f;

    border-radius: 50%;

    background: #090b0f;

    font-family: "Cinzel", serif;

    font-size: 9px;

    color: #c0b69d;

    z-index: 2;
}

.timeline-card {
    padding: 32px 38px;

    background:
        linear-gradient(
            145deg,
            #171b22,
            #101319
        );

    border: 1px solid #333944;

    transition: all 0.35s ease;
}

.timeline-card:hover {
    transform: translateX(8px);

    border-color: #85806f;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4);
}

.timeline-card span {
    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;

    color: #9f9884;
}

.timeline-card h3 {
    margin: 10px 0;

    font-family: "Cinzel", serif;

    font-size: 24px;

    color: #d7cdb5;
}

.timeline-card p {
    color: #91969e;

    font-size: 11px;

    line-height: 1.9;
}


/* =========================================================
   MOON LANDING
========================================================= */

.moon-section {
    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 110px 6%;

    text-align: center;

    background:
        linear-gradient(
            rgba(6, 9, 14, 0.35),
            rgba(3, 5, 9, 0.96)
        ),
        url("../assets/images/moon-landing.jpg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;
}

.moon-content {
    max-width: 850px;
}

.moon-content h2 {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    font-size: clamp(45px, 7vw, 75px);

    color: #ded5bf;

    text-shadow:
        0 5px 30px rgba(0, 0, 0, 0.95);
}

.moon-content p {
    color: #aeb0b3;

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   LUNAR SURFACE
========================================================= */

.surface-section {
    padding: 125px 6%;

    background:
        radial-gradient(
            circle at top,
            #171b22,
            #080a0e 75%
        );
}

.surface-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.surface-card {
    position: relative;

    min-height: 290px;

    padding: 40px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #181c23,
            #101319
        );

    border: 1px solid #343a45;

    transition: all 0.35s ease;
}

.surface-card:hover {
    transform: translateY(-8px);

    border-color: #8e8876;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4);
}

.surface-number {
    position: absolute;

    top: 16px;

    right: 22px;

    font-family: "Cinzel", serif;

    font-size: 36px;

    color: rgba(200, 191, 164, 0.1);
}

.surface-card h3 {
    margin-top: 35px;

    font-family: "Cinzel", serif;

    font-size: 22px;

    color: #d4cab3;
}

.surface-card p {
    margin-top: 15px;

    color: #91969d;

    font-size: 10px;

    line-height: 1.9;
}


/* =========================================================
   TECHNOLOGY
========================================================= */

.technology-section {
    padding: 125px 6%;

    background: #0c0f14;
}

.technology-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.technology-card {
    position: relative;

    min-height: 280px;

    padding: 40px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #181c22,
            #101319
        );

    border: 1px solid #343a45;

    transition: all 0.35s ease;
}

.technology-card:hover {
    transform: translateY(-8px);

    border-color: #8d8775;

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.4);
}

.tech-number {
    position: absolute;

    top: 16px;

    right: 22px;

    font-family: "Cinzel", serif;

    font-size: 35px;

    color: rgba(200, 191, 164, 0.1);
}

.technology-card h3 {
    margin-top: 32px;

    font-family: "Cinzel", serif;

    font-size: 23px;

    color: #d4cab3;
}

.technology-card p {
    margin-top: 15px;

    color: #92979e;

    font-size: 10px;

    line-height: 1.9;
}


/* =========================================================
   RETURN TO EARTH
========================================================= */

.return-section {
    min-height: 590px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 110px 6%;

    text-align: center;

    background:
        linear-gradient(
            rgba(7, 10, 15, 0.45),
            rgba(4, 6, 10, 0.96)
        ),
        url("../assets/images/moon-landing.jpg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;
}

.return-content {
    max-width: 850px;
}

.return-content h2 {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    font-size: clamp(42px, 6vw, 68px);

    color: #ddd4bd;
}

.return-content p {
    color: #a5a9af;

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   LEGACY
========================================================= */

.legacy-section {
    min-height: 680px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 120px 6%;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            #171c23,
            #07090d 75%
        );
}

.legacy-content {
    max-width: 850px;
}

.legacy-content h2 {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    font-size: clamp(40px, 6vw, 68px);

    line-height: 1.2;

    color: #ded5bf;
}

.legacy-line {
    margin: 27px 0;

    color: #9e967f;

    letter-spacing: 6px;
}

.legacy-content p {
    margin-bottom: 21px;

    color: #a4a8ad;

    font-size: 13px;

    line-height: 2;
}

.back-button {
    margin-top: 22px;
}


/* =========================================================
   DISCLAIMER
========================================================= */

.disclaimer-section {
    padding: 90px 6%;

    background:
        linear-gradient(
            180deg,
            #080a0e,
            #101319
        );

    border-top: 1px solid #303641;
}

.disclaimer-card {
    max-width: 950px;

    margin: auto;

    padding: 48px 52px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #181c23,
            #101319
        );

    border: 1px solid #3b414b;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.4);
}

.disclaimer-label {
    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 4px;

    color: #9f9782;
}

.disclaimer-card h2 {
    margin: 14px 0 22px;

    font-family: "Cinzel", serif;

    font-size: 28px;

    color: #d9d0b9;
}

.disclaimer-card p {
    max-width: 800px;

    margin: 0 auto 18px;

    color: #91969d;

    font-size: 11px;

    line-height: 1.95;
}

.disclaimer-note {
    padding-top: 20px;

    border-top: 1px solid #333944;

    color: #b3a98f !important;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 65px 6% 45px;

    text-align: center;

    background: #050609;

    border-top: 1px solid #343a45;
}

.footer-logo {
    font-family: "Cinzel", serif;

    font-size: 18px;

    letter-spacing: 4px;

    color: #c2b89f;
}

footer > p:first-of-type {
    margin-top: 12px;

    color: #7e838c;

    font-size: 11px;
}

.footer-line {
    width: 85px;

    height: 1px;

    margin: 25px auto;

    background: #77705e;
}

.developer,
.powered {
    color: #696e76;

    font-size: 11px;
}

.developer strong,
.powered strong {
    color: #bbb097;

    font-family: "Cinzel", serif;

    font-weight: 500;
}

.powered {
    margin-top: 8px;
}

.powered strong {
    color: #a9a087;
}

.copyright {
    margin-top: 25px;

    color: #464b52;

    font-size: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .navbar {
        flex-direction: column;

        gap: 18px;
    }

    .navbar nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 14px 21px;
    }

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

    .crew-grid {
        grid-template-columns: 1fr;

        max-width: 700px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .navbar {
        padding: 15px 4%;
    }

    .navbar nav {
        gap: 11px 15px;
    }

    .navbar nav a {
        font-size: 8px;
    }

    .apollo-hero {
        min-height: 88vh;

        padding: 80px 5%;
    }

    .hero-kicker {
        font-size: 8px;

        letter-spacing: 3px;
    }

    .hero-symbol {
        font-size: 44px;
    }

    .hero-content h1 {
        font-size: 50px;

        letter-spacing: 4px;
    }

    .hero-date {
        font-size: 12px;
    }

    .hero-location {
        font-size: 8px;

        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 11px;

        line-height: 1.9;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .overview-grid,
    .surface-grid,
    .technology-grid {
        grid-template-columns: 1fr;
    }

    .overview-card {
        min-height: 245px;
    }

    .crew-card {
        min-height: 285px;

        padding: 34px 28px;
    }

    .mission-timeline {
        padding-left: 55px;
    }

    .mission-timeline::before {
        left: 14px;
    }

    .timeline-date {
        left: -55px;

        width: 50px;
        height: 50px;

        font-size: 8px;
    }

    .timeline-card {
        padding: 28px 23px;
    }

    .timeline-card h3 {
        font-size: 20px;
    }

    .launch-section,
    .moon-section,
    .return-section {
        background-attachment: scroll;
    }

    .disclaimer-card {
        padding: 34px 22px;
    }

    .disclaimer-card h2 {
        font-size: 22px;
    }

    .disclaimer-card p {
        font-size: 10px;
    }
}

