/* =========================================================
   MESOPOTAMIA — HISTORY EXPLORER
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0907;
    color: #d6c7a5;
    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, 10, 8, 0.96);

    border-bottom: 1px solid #51452d;

    backdrop-filter: blur(12px);
}

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

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

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

.navbar nav {
    display: flex;
    gap: 28px;
}

.navbar nav a {
    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #a89c83;
    transition: 0.3s ease;
}

.navbar nav a:hover {
    color: #d6b56d;
}

.navbar nav a.active {
    color: #d6b56d;
}


/* =========================================================
   COMMON SECTION HEADING
   ========================================================= */

.section-heading {
    max-width: 850px;
    margin: 0 auto 70px;
    text-align: center;
}

.section-label {
    display: block;

    font-family: "Cinzel", serif;
    font-size: 11px;
    letter-spacing: 4px;

    color: #a98243;
}

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

    font-family: "Cinzel", serif;
    font-size: clamp(30px, 5vw, 48px);

    color: #dfc99d;
    line-height: 1.25;
}

.section-heading p {
    max-width: 700px;

    margin: 18px auto 0;

    color: #95886f;
    font-size: 14px;
}

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

    color: #a98243;

    font-size: 10px;
    letter-spacing: 8px;
}


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

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

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

    padding: 100px 6%;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(13, 9, 5, 0.76),
            rgba(9, 7, 5, 0.97)
        ),
        url("../assets/images/mesopotamia.webp");

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

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

    opacity: 0.08;

    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            #c09a58 31px,
            transparent 32px
        );
}

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

    max-width: 950px;

    text-align: center;
}

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

    font-size: 12px;
    letter-spacing: 6px;

    color: #b18a4c;
}

.cuneiform-symbol {
    margin: 28px 0 10px;

    font-size: 60px;

    color: #c39b57;

    text-shadow:
        0 0 25px rgba(195, 155, 87, 0.2);
}

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

    font-size: clamp(55px, 10vw, 110px);

    letter-spacing: 8px;

    color: #e1d0a4;

    line-height: 1;
}

.hero-line {
    margin: 25px 0;

    color: #9f783f;

    letter-spacing: 5px;
}

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

    color: #c29a54;

    font-size: 14px;
    letter-spacing: 2px;
}

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

    color: #887a62;

    font-size: 11px;
    letter-spacing: 3px;
}

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

    margin: 30px auto;

    color: #aaa08d;

    font-size: 15px;
    line-height: 2;
}

.hero-button {
    display: inline-block;

    margin-top: 15px;

    padding: 14px 26px;

    border: 1px solid #9d7740;

    color: #c9a561;

    font-family: "Cinzel", serif;

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

    transition: 0.3s ease;
}

.hero-button:hover {
    background: #b08a4d;

    color: #100c08;

    box-shadow:
        0 8px 30px rgba(176, 138, 77, 0.2);
}


/* =========================================================
   QUICK FACTS
   ========================================================= */

.quick-facts {
    padding: 110px 6%;

    background:
        linear-gradient(
            rgba(18, 13, 8, 0.98),
            rgba(12, 9, 6, 1)
        );

    border-bottom: 1px solid #3d3020;
}

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

    margin: auto;

    display: grid;

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

    border-top: 1px solid #493921;
    border-left: 1px solid #493921;
}

.facts-grid article {
    min-height: 230px;

    padding: 35px 28px;

    border-right: 1px solid #493921;
    border-bottom: 1px solid #493921;

    transition: 0.3s ease;
}

.facts-grid article:hover {
    background: #19120b;

    transform: translateY(-5px);
}

.fact-symbol {
    display: block;

    margin-bottom: 18px;

    font-size: 30px;

    color: #b28a4b;
}

.facts-grid strong {
    display: block;

    font-family: "Cinzel", serif;

    color: #d6bd8a;

    font-size: 18px;
}

.facts-grid p {
    margin-top: 12px;

    color: #918571;

    font-size: 12px;
}


/* =========================================================
   ORIGINS
   ========================================================= */

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

    background: #0d0a07;
}

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

    margin: auto;
}

.text-content p {
    margin-bottom: 25px;

    color: #a59a85;

    font-size: 15px;

    line-height: 2;
}


/* =========================================================
   MAJOR POWERS
   ========================================================= */

.kingdoms-section {
    padding: 120px 6%;

    background:
        linear-gradient(
            180deg,
            #100c08,
            #171006
        );
}

.kingdom-timeline {
    max-width: 1050px;

    margin: auto;

    display: grid;

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

    gap: 25px;
}

.kingdom-card {
    padding: 35px;

    background: #1b130b;

    border: 1px solid #4a3822;

    transition: 0.3s ease;
}

.kingdom-card:hover {
    transform: translateY(-7px);

    border-color: #a57c40;

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

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

    font-size: 11px;

    color: #bd9554;
}

.kingdom-card h3 {
    margin: 15px 0 5px;

    font-family: "Cinzel", serif;

    font-size: 26px;

    color: #dcc590;
}

.kingdom-title {
    color: #8d724c;

    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 2px;
}

.kingdom-card p {
    margin-top: 20px;

    color: #988c77;

    font-size: 12px;
}


/* =========================================================
   CITIES
   ========================================================= */

.cities-section {
    padding: 120px 6%;

    background: #0b0907;
}

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

    margin: auto;

    display: grid;

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

    gap: 2px;

    background: #46351f;
}

.city-grid article {
    padding: 45px;

    background: #15100b;

    transition: 0.3s ease;
}

.city-grid article:hover {
    background: #1d150c;
}

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

    color: #9c7540;

    font-size: 12px;
}

.city-grid h3 {
    margin: 10px 0;

    font-family: "Cinzel", serif;

    font-size: 27px;

    color: #d6bd8a;
}

.city-grid p {
    color: #938671;

    font-size: 12px;
}


/* =========================================================
   WRITING
   ========================================================= */

.writing-section {
    padding: 120px 6%;

    background:
        linear-gradient(
            135deg,
            #171006,
            #0c0906
        );
}

.writing-layout {
    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 70px;

    align-items: center;
}

.writing-symbol {
    height: 280px;

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

    flex-direction: column;

    border: 1px solid #594324;

    background: #181108;

    font-size: 90px;

    color: #bb9251;

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

.writing-symbol span {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 4px;

    color: #917144;
}

.writing-content p {
    margin-bottom: 22px;

    color: #9f937e;

    font-size: 14px;

    line-height: 2;
}

.writing-content strong {
    color: #d1b477;
}


/* =========================================================
   LAW
   ========================================================= */

.law-section {
    padding: 120px 6%;

    background: #0c0906;
}

.law-content {
    max-width: 900px;

    margin: auto;

    display: grid;

    grid-template-columns: 160px 1fr;

    gap: 50px;

    align-items: center;

    padding: 45px;

    background: #171007;

    border: 1px solid #493820;
}

.law-symbol {
    width: 130px;
    height: 130px;

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

    border: 1px solid #8f6c39;

    border-radius: 50%;

    color: #c29b59;

    font-size: 45px;
}

.law-content p {
    margin-bottom: 18px;

    color: #9c907b;

    font-size: 13px;

    line-height: 2;
}


/* =========================================================
   RELIGION
   ========================================================= */

.religion-section {
    padding: 120px 6%;

    background:
        linear-gradient(
            180deg,
            #120d08,
            #0b0907
        );
}

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

    margin: auto;

    display: grid;

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

    gap: 18px;
}

.gods-grid article {
    padding: 30px;

    background: #171108;

    border-left: 2px solid #806033;

    transition: 0.3s ease;
}

.gods-grid article:hover {
    border-left-color: #c09a5a;

    transform: translateX(5px);
}

.gods-grid h3 {
    font-family: "Cinzel", serif;

    color: #d5bc89;

    font-size: 21px;
}

.gods-grid p {
    margin-top: 10px;

    color: #948875;

    font-size: 12px;
}


/* =========================================================
   SCIENCE
   ========================================================= */

.science-section {
    padding: 120px 6%;

    background: #0e0b08;
}

.science-grid {
    max-width: 1050px;

    margin: auto;

    display: grid;

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

    gap: 15px;
}

.science-grid article {
    padding: 35px 25px;

    background: #181109;

    border: 1px solid #44331e;

    text-align: center;

    transition: 0.3s ease;
}

.science-grid article:hover {
    transform: translateY(-6px);

    border-color: #9b753f;
}

.science-grid span {
    display: block;

    margin-bottom: 20px;

    font-family: "Cinzel", serif;

    font-size: 28px;

    color: #b38b4e;
}

.science-grid h3 {
    font-family: "Cinzel", serif;

    color: #d4bd8b;

    font-size: 17px;
}

.science-grid p {
    margin-top: 12px;

    color: #918671;

    font-size: 11px;
}


/* =========================================================
   TRADE
   ========================================================= */

.trade-section {
    padding: 120px 6%;

    background:
        linear-gradient(
            135deg,
            #171007,
            #0b0907
        );
}

.trade-grid {
    max-width: 1000px;

    margin: auto;

    display: grid;

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

    gap: 20px;
}

.trade-grid article {
    padding: 35px;

    background: #181109;

    border: 1px solid #46351f;

    transition: 0.3s ease;
}

.trade-grid article:hover {
    border-color: #a37a3f;

    transform: translateY(-5px);
}

.trade-grid h3 {
    font-family: "Cinzel", serif;

    color: #d4bc88;

    font-size: 20px;
}

.trade-grid p {
    margin-top: 12px;

    color: #958a76;

    font-size: 12px;
}


/* =========================================================
   ARCHITECTURE
   ========================================================= */

.architecture-section {
    padding: 120px 6%;

    background: #0c0906;
}

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

    margin: auto;

    display: grid;

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

    gap: 22px;
}

.architecture-card {
    min-height: 240px;

    padding: 40px;

    background:
        linear-gradient(
            145deg,
            #1b130b,
            #120d08
        );

    border: 1px solid #4b3922;

    transition: 0.4s ease;
}

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

    border-color: #ad8345;

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

.architecture-year {
    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 3px;

    color: #9e7944;
}

.architecture-card h3 {
    margin: 15px 0;

    font-family: "Cinzel", serif;

    color: #d8c08d;

    font-size: 25px;
}

.architecture-card p {
    color: #978b77;

    font-size: 12px;
}


/* =========================================================
   SOCIETY
   ========================================================= */

.society-section {
    padding: 120px 6%;

    background: #120d08;
}

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

    margin: auto;

    display: grid;

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

    gap: 18px;
}

.society-grid article {
    padding: 30px;

    background: #181109;

    border-top: 1px solid #493821;

    transition: 0.3s ease;
}

.society-grid article:hover {
    border-top-color: #bd9250;

    transform: translateY(-4px);
}

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

    font-size: 9px;

    letter-spacing: 2px;

    color: #9b7641;
}

.society-grid h3 {
    margin-top: 10px;

    font-family: "Cinzel", serif;

    color: #d3bb87;

    font-size: 20px;
}

.society-grid p {
    margin-top: 10px;

    color: #928671;

    font-size: 11px;
}


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

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

    background: #0b0907;
}

.history-timeline {
    position: relative;

    max-width: 900px;

    margin: auto;
}

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

    position: absolute;

    left: 50%;

    top: 0;
    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #806139,
            transparent
        );

    transform: translateX(-50%);
}

.history-timeline article {
    position: relative;

    width: 50%;

    padding: 0 50px 65px;
}

.history-timeline article:nth-child(even) {
    margin-left: 50%;
}

.history-timeline article::after {
    content: "";

    position: absolute;

    top: 5px;

    width: 11px;
    height: 11px;

    background: #0d0a07;

    border: 2px solid #b28a4c;

    border-radius: 50%;
}

.history-timeline article:nth-child(odd)::after {
    right: -7px;
}

.history-timeline article:nth-child(even)::after {
    left: -7px;
}

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

    color: #b18a4d;

    font-size: 11px;

    letter-spacing: 1px;
}

.history-timeline h3 {
    margin: 8px 0;

    font-family: "Cinzel", serif;

    color: #d3bb88;

    font-size: 21px;
}

.history-timeline p {
    color: #918571;

    font-size: 12px;
}


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

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

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

    padding: 100px 6%;

    text-align: center;

    background:
        linear-gradient(
            rgba(11, 8, 5, 0.94),
            rgba(11, 8, 5, 0.98)
        ),
        url("../assets/images/mesopotamia.webp");

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

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

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

    font-family: "Cinzel", serif;

    font-size: clamp(35px, 6vw, 60px);

    color: #dfc99d;
}

.legacy-line {
    margin: 25px 0;

    color: #a27b42;

    letter-spacing: 5px;
}

.legacy-content p {
    color: #a19885;

    font-size: 14px;

    line-height: 2;
}

.back-button {
    display: inline-block;

    margin-top: 30px;

    padding: 13px 22px;

    border: 1px solid #9e7740;

    color: #c19a57;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;

    transition: 0.3s ease;
}

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

    color: #100c08;
}


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

footer {
    padding: 55px 6%;

    text-align: center;

    background: #080706;

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

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

    color: #b28a4d;

    font-size: 12px;

    letter-spacing: 3px;
}

.footer-line {
    width: 80px;

    height: 1px;

    margin: 18px auto;

    background: #594324;
}

footer p {
    color: #746b5b;

    font-size: 11px;
}

footer .copyright {
    margin-top: 12px;

    color: #514b40;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .navbar {
        flex-direction: column;
        gap: 18px;
    }

    .navbar nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 22px;
    }

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

    .kingdom-timeline,
    .gods-grid,
    .society-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .navbar {
        padding: 15px 4%;
    }

    .navbar nav {
        gap: 12px 16px;
    }

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

    .hero-content h1 {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .facts-grid,
    .kingdom-timeline,
    .city-grid,
    .gods-grid,
    .science-grid,
    .trade-grid,
    .architecture-grid,
    .society-grid {
        grid-template-columns: 1fr;
    }

    .writing-layout,
    .law-content {
        grid-template-columns: 1fr;
    }

    .writing-symbol {
        width: 100%;
    }

    .history-timeline::before {
        left: 10px;
    }

    .history-timeline article,
    .history-timeline article:nth-child(even) {
        width: 100%;

        margin-left: 0;

        padding-left: 40px;
        padding-right: 0;
    }

    .history-timeline article::after,
    .history-timeline article:nth-child(odd)::after,
    .history-timeline article:nth-child(even)::after {
        left: 3px;
        right: auto;
    }

}

