/* =========================================================
   ERUPTION OF MOUNT VESUVIUS
   HISTORY EXPLORER — EVENTS
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #090806;
    color: #d6c5a0;
    font-family: "Libre Baskerville", serif;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

section {
    position: relative;
}


/* =========================================================
   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(8, 6, 5, 0.97);

    border-bottom: 1px solid #503b25;

    backdrop-filter: blur(14px);
}

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

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

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

.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: #958b78;

    transition: color 0.3s ease;
}

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

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 100%;
    height: 1px;

    background: #b36d35;

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.3s ease;
}

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

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


/* =========================================================
   COMMON HEADINGS
   ========================================================= */

.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: #a96535;
}

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

    font-family: "Cinzel", serif;

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

    line-height: 1.2;

    color: #dec79b;
}

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

    color: #918574;

    font-size: 12px;
}

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

    color: #a86132;

    font-size: 10px;

    letter-spacing: 8px;
}


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

.event-hero {
    min-height: 94vh;

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

    padding: 110px 6%;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(12, 8, 5, 0.34),
            rgba(7, 6, 5, 0.97)
        ),
        url("../assets/images/vesuvius.jpg");

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

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

    background:
        radial-gradient(
            circle at center,
            transparent 0%,
            rgba(5, 4, 3, 0.9) 86%
        );
}

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

    max-width: 1100px;

    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: #b66d35;
}

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

    font-size: 55px;

    color: #c77b3d;

    filter:
        drop-shadow(
            0 0 22px rgba(199, 123, 61, 0.28)
        );
}

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

    font-size: clamp(43px, 8vw, 88px);

    line-height: 1.02;

    letter-spacing: 4px;

    color: #ead4a4;

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

.hero-line {
    margin: 30px 0;

    color: #a65e31;

    letter-spacing: 6px;
}

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

    font-size: 15px;

    letter-spacing: 4px;

    color: #d39b5e;
}

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

    font-size: 10px;

    letter-spacing: 3px;

    color: #918574;
}

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

    margin: 28px auto;

    color: #aaa08d;

    font-size: 13px;

    line-height: 2;
}

.hero-button {
    display: inline-block;

    margin-top: 14px;

    padding: 15px 30px;

    border: 1px solid #a66334;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;

    color: #c98a4c;

    transition: all 0.35s ease;
}

.hero-button:hover {
    color: #110b07;

    background: #b87139;

    transform: translateY(-4px);

    box-shadow:
        0 12px 35px rgba(184, 113, 57, 0.22);
}


/* =========================================================
   EVENT SNAPSHOT
   ========================================================= */

.event-snapshot {
    padding: 125px 6%;

    background:
        radial-gradient(
            circle at top,
            #1b120c,
            #0b0907 70%
        );
}

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

    margin: auto;

    display: grid;

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

    gap: 15px;
}

.snapshot-card {
    position: relative;

    min-height: 285px;

    padding: 38px 30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #1a130d,
            #100e0b
        );

    border: 1px solid #503b27;

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

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

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: #ae6633;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.4s ease;
}

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

    border-color: #a66336;

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

.snapshot-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: #a86235;
}

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

    font-family: "Cinzel", serif;

    font-size: 20px;

    line-height: 1.4;

    color: #d9c08e;
}

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

    color: #918674;

    font-size: 10px;

    line-height: 1.9;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

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

    background: #0d0b09;

    border-top: 1px solid #342519;
}

.content-wrapper {
    max-width: 850px;

    margin: auto;
}

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

    color: #a69a85;

    font-size: 13px;

    line-height: 2.05;
}


/* =========================================================
   VOLCANO VS SETTLEMENTS
   ========================================================= */

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

    background:
        linear-gradient(
            180deg,
            #15100c,
            #090807
        );
}

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

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 100px 1fr;

    align-items: center;

    gap: 20px;
}

.force-card {
    position: relative;

    min-height: 400px;

    padding: 45px;

    background:
        linear-gradient(
            145deg,
            #19130d,
            #100e0b
        );

    border: 1px solid #4c3825;

    transition: all 0.4s ease;
}

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

    border-color: #a66336;

    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.38);
}

.force-number {
    position: absolute;

    top: 20px;
    right: 25px;

    font-family: "Cinzel", serif;

    font-size: 26px;

    color: rgba(191, 117, 57, 0.23);
}

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

    font-size: 10px;

    letter-spacing: 3px;

    color: #a76135;
}

.force-card h3 {
    margin: 14px 0 17px;

    font-family: "Cinzel", serif;

    font-size: 30px;

    color: #d8bf8b;
}

.force-card p {
    color: #958976;

    font-size: 11px;

    line-height: 1.95;
}

.force-card ul {
    margin-top: 25px;

    padding-left: 18px;

    color: #a39782;

    font-size: 10px;

    line-height: 2.1;
}

.versus {
    display: flex;

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

    width: 72px;
    height: 72px;

    margin: auto;

    border: 1px solid #85542f;

    border-radius: 50%;

    background: #0c0a08;

    font-family: "Cinzel", serif;

    font-size: 12px;

    letter-spacing: 2px;

    color: #c27b43;

    box-shadow:
        0 0 35px rgba(181, 99, 47, 0.08);
}


/* =========================================================
   CINEMATIC SECTION
   ========================================================= */

.siege-image-section {
    min-height: 640px;

    display: flex;

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

    padding: 120px 6%;

    text-align: center;

    background:
        linear-gradient(
            rgba(12, 8, 5, 0.38),
            rgba(7, 6, 5, 0.95)
        ),
        url("../assets/images/eruption-of-mount-vesuvius.jpeg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;
}

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

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

    font-family: "Cinzel", serif;

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

    color: #e2cda0;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.85);
}

.ornamental-line {
    margin: 28px 0;

    color: #a76134;

    letter-spacing: 6px;
}

.image-content p {
    color: #aaa08d;

    font-size: 13px;

    line-height: 2;
}


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

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

    background: #0b0907;
}

.event-timeline {
    position: relative;

    max-width: 900px;

    margin: auto;

    padding-left: 55px;
}

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

    position: absolute;

    left: 14px;

    top: 0;
    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #75462b 10%,
            #75462b 90%,
            transparent
        );
}

.timeline-item {
    position: relative;

    margin-bottom: 45px;
}

.timeline-marker {
    position: absolute;

    left: -55px;

    top: 28px;

    width: 70px;
    height: 70px;

    display: flex;

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

    border: 1px solid #915d36;

    border-radius: 50%;

    background: #0d0b09;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 1px;

    color: #c2874c;

    text-align: center;

    z-index: 2;
}

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

    background:
        linear-gradient(
            145deg,
            #18120d,
            #0f0d0a
        );

    border: 1px solid #453321;

    transition: all 0.35s ease;
}

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

    border-color: #9c6137;

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

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

    font-size: 9px;

    letter-spacing: 3px;

    color: #a76236;
}

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

    font-family: "Cinzel", serif;

    font-size: 24px;

    color: #d8c08e;
}

.timeline-card p {
    color: #938875;

    font-size: 11px;

    line-height: 1.9;
}


/* =========================================================
   TURNING POINT
   ========================================================= */

.fall-section {
    min-height: 620px;

    display: flex;

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

    padding: 120px 6%;

    text-align: center;

    background:
        linear-gradient(
            rgba(12, 7, 4, 0.52),
            rgba(8, 6, 5, 0.96)
        ),
        url("../assets/images/eruption-of-mount-vesuvius.jpeg");

    background-size: cover;

    background-position: center;
}

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

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

    font-family: "Cinzel", serif;

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

    line-height: 1.2;

    color: #dfc89b;
}

.fall-content p {
    margin-bottom: 20px;

    color: #aaa08c;

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   AFTERMATH
   ========================================================= */

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

    background:
        linear-gradient(
            180deg,
            #15100c,
            #0b0907
        );
}

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

    margin: auto;

    display: grid;

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

    gap: 18px;
}

.aftermath-grid article {
    min-height: 280px;

    padding: 40px;

    background: #15110d;

    border: 1px solid #473422;

    transition: all 0.35s ease;
}

.aftermath-grid article:hover {
    transform: translateY(-8px);

    border-color: #9c6036;

    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.3);
}

.aftermath-grid span {
    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;

    color: #a66235;
}

.aftermath-grid h3 {
    margin: 15px 0;

    font-family: "Cinzel", serif;

    font-size: 21px;

    color: #d4bd8b;
}

.aftermath-grid p {
    color: #928875;

    font-size: 11px;

    line-height: 1.9;
}


/* =========================================================
   HISTORICAL SIGNIFICANCE
   ========================================================= */

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

    background:
        radial-gradient(
            circle at center,
            #19120d,
            #090807 72%
        );

    text-align: center;
}

.significance-section .content-wrapper {
    max-width: 850px;
}

.significance-section p {
    margin-bottom: 22px;

    color: #a59a85;

    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:
        linear-gradient(
            rgba(10, 7, 5, 0.46),
            rgba(7, 6, 5, 0.96)
        ),
        url("../assets/images/vesuvius.jpg");

    background-size: cover;

    background-position: center;
}

.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: #dfc99d;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, 0.8);
}

.legacy-line {
    margin: 27px 0;

    color: #a46135;

    letter-spacing: 6px;
}

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

    color: #aaa08b;

    font-size: 13px;

    line-height: 2;
}

.back-button {
    display: inline-block;

    margin-top: 22px;

    padding: 14px 27px;

    border: 1px solid #9d6036;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;

    color: #c2874b;

    transition: all 0.35s ease;
}

.back-button:hover {
    background: #b36d39;

    color: #100a06;

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(179, 109, 57, 0.2);
}


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

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

    background:
        linear-gradient(
            180deg,
            #0b0907,
            #12100c
        );

    border-top: 1px solid #3d2c1d;
}

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

    margin: auto;

    padding: 48px 52px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #19140e,
            #100e0b
        );

    border: 1px solid #51402b;

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

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

    font-size: 10px;

    letter-spacing: 4px;

    color: #a96a38;
}

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

    font-family: "Cinzel", serif;

    font-size: 28px;

    color: #dcc79a;
}

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

    margin: 0 auto 18px;

    color: #958a76;

    font-size: 11px;

    line-height: 1.95;
}

.disclaimer-card .disclaimer-note {
    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #403121;

    color: #b99867;
}


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

footer {
    padding: 65px 6% 45px;

    text-align: center;

    background: #080706;

    border-top: 1px solid #493522;
}

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

    font-size: 18px;

    letter-spacing: 4px;

    color: #bd8b4d;
}

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

    color: #8f8675;

    font-size: 11px;
}

.footer-line {
    width: 85px;

    height: 1px;

    margin: 25px auto;

    background: #81502f;
}

.developer {
    color: #77705f;

    font-size: 11px;
}

.developer strong {
    color: #c2a36c;

    font-family: "Cinzel", serif;

    font-weight: 500;
}

.powered {
    margin-top: 8px;

    color: #77705f;

    font-size: 11px;
}

.powered strong {
    color: #b37a43;

    font-family: "Cinzel", serif;

    font-weight: 500;
}

.copyright {
    margin-top: 25px;

    color: #4f4a40;

    font-size: 10px;

    letter-spacing: 0.5px;
}


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

@media (max-width: 1050px) {

    .navbar {
        flex-direction: column;

        gap: 18px;
    }

    .navbar nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 14px 21px;
    }

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

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

        max-width: 700px;
    }

    .versus {
        width: 60px;
        height: 60px;
    }

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


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

@media (max-width: 700px) {

    .navbar {
        padding: 15px 4%;
    }

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

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

    .event-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: 40px;

        letter-spacing: 2px;
    }

    .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;
    }

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

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

    .force-card {
        min-height: auto;

        padding: 32px;
    }

    .event-timeline {
        padding-left: 35px;
    }

    .event-timeline::before {
        left: 9px;
    }

    .timeline-marker {
        left: -35px;

        width: 50px;
        height: 50px;

        font-size: 7px;
    }

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

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

    .siege-image-section,
    .fall-section,
    .legacy-section {
        background-attachment: scroll;
    }

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

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

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

