/* =========================================================
   SCIENCE — INDIA'S GOLDEN AGES
========================================================= */


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

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

html {
    scroll-behavior: smooth;
}

body {
    background: #17120d;
    color: #ead9b5;
    font-family: "Libre Baskerville", serif;
}



/* =========================================================
   NAVIGATION
========================================================= */

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



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

.science-hero {
    min-height: 650px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            rgba(15, 10, 6, 0.72),
            rgba(15, 10, 6, 0.94)
        ),
        url("../assets/images/science.webp");

    background-size: cover;

    background-position: center;
}



/* Hero glow */

.science-hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            transparent 15%,
            rgba(0, 0, 0, 0.65) 100%
        );

    pointer-events: none;
}



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

.science-hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;

    padding: 40px;
}

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

    color: #c7a45d;

    font-size: 13px;

    letter-spacing: 5px;

    margin-bottom: 25px;
}

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

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

    line-height: 0.95;

    letter-spacing: 7px;

    color: #f0dfb8;

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

.science-hero h1 span {
    display: block;

    color: #c39a52;
}

.hero-ornament {
    margin: 30px 0;

    color: #b08a4d;

    font-size: 18px;
}

.science-hero-content > p:last-child {
    max-width: 720px;

    margin: auto;

    color: #d8c9a8;

    font-size: 16px;

    line-height: 1.9;
}



/* =========================================================
   INTRODUCTION
========================================================= */

.science-introduction {
    max-width: 900px;

    margin: auto;

    padding: 110px 30px 80px;

    text-align: center;
}

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

    font-size: 11px;

    letter-spacing: 4px;

    color: #b08a4d;
}

.science-introduction h2 {
    margin-top: 18px;

    font-family: "Cinzel", serif;

    font-size: clamp(34px, 5vw, 50px);

    color: #e8d5ac;
}

.section-symbol {
    margin: 25px;

    color: #b08a4d;

    font-size: 18px;
}

.science-introduction > p:last-child {
    max-width: 720px;

    margin: auto;

    color: #aa9b7b;

    font-size: 15px;

    line-height: 1.9;
}



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

.master-timeline {
    position: relative;

    padding: 110px 5% 130px;

    background:
        linear-gradient(
            rgba(9, 7, 5, 0.96),
            rgba(18, 12, 7, 0.98)
        );

    border-top: 1px solid #493921;

    border-bottom: 1px solid #493921;
}



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

.section-heading {
    text-align: center;

    max-width: 850px;

    margin: 0 auto 80px;
}

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

    font-family: "Cinzel", serif;

    font-size: clamp(34px, 5vw, 52px);

    color: #dfc99d;
}

.section-heading > p:last-child {
    margin-top: 15px;

    color: #95876d;

    font-size: 14px;

    line-height: 1.8;
}



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

.timeline-container {
    position: relative;

    max-width: 1050px;

    margin: auto;
}



/* Central line */

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

    position: absolute;

    left: 50%;

    top: 0;

    bottom: 0;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #896a3d 8%,
            #896a3d 92%,
            transparent
        );

    transform: translateX(-50%);
}



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

.timeline-item {
    width: 50%;

    position: relative;

    padding: 0 55px 75px;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;

    text-align: right;
}

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



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

.timeline-item::after {
    content: "";

    position: absolute;

    top: 8px;

    width: 12px;

    height: 12px;

    border: 2px solid #b08a4d;

    background: #15100b;

    border-radius: 50%;

    box-shadow:
        0 0 0 5px rgba(176, 138, 77, 0.08);

    transition: 0.3s ease;
}

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

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



/* Dot hover */

.timeline-item:hover::after {
    background: #b08a4d;

    box-shadow:
        0 0 0 7px rgba(176, 138, 77, 0.12),
        0 0 18px rgba(176, 138, 77, 0.35);
}



/* =========================================================
   DATE
========================================================= */

.timeline-date {
    margin-bottom: 10px;

    color: #c29a54;

    font-family: "Cinzel", serif;

    font-size: 13px;

    letter-spacing: 1px;
}



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

.timeline-content {
    position: relative;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #241a10,
            #1c140d
        );

    border: 1px solid #4d3b25;

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



/* Small golden line */

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

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 2px;

    background: #725631;

    opacity: 0.7;

    transition: 0.3s ease;
}



/* Hover */

.timeline-content:hover {
    transform: translateY(-6px);

    border-color: #a77d40;

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

.timeline-content:hover::before {
    background: #c39a52;

    opacity: 1;
}



/* =========================================================
   REGION
========================================================= */

.timeline-region {
    color: #9e7a45;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 3px;
}



/* =========================================================
   CARD TITLE
========================================================= */

.timeline-content h3 {
    margin: 10px 0 14px;

    font-family: "Cinzel", serif;

    color: #d6bd8a;

    font-size: 21px;

    line-height: 1.4;
}



/* =========================================================
   CARD TEXT
========================================================= */

.timeline-content p {
    margin-top: 10px;

    color: #9f9279;

    font-size: 13px;

    line-height: 1.85;
}



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

.science-highlight {
    display: inline-block;

    margin-top: 20px;

    padding: 8px 12px;

    border: 1px solid #5f4b2e;

    background: rgba(176, 138, 77, 0.04);

    color: #a58b5e;

    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 1px;

    line-height: 1.6;
}

.science-highlight strong {
    color: #c39a52;

    font-weight: 600;
}



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

.science-legacy {
    max-width: 900px;

    margin: auto;

    padding: 110px 30px;

    text-align: center;
}

.science-legacy h2 {
    margin-top: 18px;

    font-family: "Cinzel", serif;

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

    color: #e8d5ac;
}

.science-legacy > p:last-child {
    max-width: 720px;

    margin: auto;

    color: #aa9b7b;

    font-size: 15px;

    line-height: 1.9;
}



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

footer {
    padding: 60px 20px;

    text-align: center;

    background: #0b0907;

    border-top: 1px solid #4c3a23;
}

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

    color: #c29a52;

    letter-spacing: 3px;

    font-size: 18px;
}

footer p {
    margin-top: 15px;

    color: #85775d;

    font-size: 13px;
}

.footer-line {
    width: 100px;

    height: 1px;

    margin: 25px auto;

    background: #725631;
}

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

    font-family: "Cinzel", serif;
}

.copyright {
    margin-top: 18px !important;

    font-size: 11px !important;

    letter-spacing: 1px;

    color: #85775d;
}



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

@media (max-width: 900px) {

    .navbar {
        padding: 20px;

        flex-direction: column;

        gap: 20px;
    }

    .navbar nav {
        gap: 15px;
    }

    .science-hero {
        min-height: 580px;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        width: 100%;

        margin-left: 0;

        padding:
            0 0 60px 55px;

        text-align: left;
    }

    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 14px;

        right: auto;
    }

    .timeline-content {
        padding: 24px;
    }
}



/* =========================================================
   SMALL SCREENS
========================================================= */

@media (max-width: 600px) {

    .logo {
        font-size: 15px;
    }

    .logo-symbol {
        font-size: 24px;
    }

    .navbar nav {
        gap: 12px;
    }

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

    .science-hero {
        min-height: 520px;
    }

    .science-hero-content {
        padding: 25px;
    }

    .science-hero h1 {
        font-size: 48px;

        letter-spacing: 3px;
    }

    .hero-label {
        font-size: 10px;

        letter-spacing: 3px;
    }

    .science-introduction {
        padding:
            80px 25px 60px;
    }

    .master-timeline {
        padding:
            80px 20px 90px;
    }

    .section-heading {
        margin-bottom: 60px;
    }

    .timeline-item {
        padding-left: 45px !important;
    }

    .timeline-container::before {
        left: 12px;
    }

    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 6px;
    }

    .timeline-content {
        padding: 22px;
    }

    .timeline-content h3 {
        font-size: 19px;
    }

    .timeline-content p {
        font-size: 12px;
    }

    .science-highlight {
        font-size: 8px;
    }
}

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

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

    background:
        linear-gradient(
            180deg,
            #0b0a08,
            #11100c
        );

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


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

    margin: auto;

    padding: 45px 50px;

    background:
        linear-gradient(
            145deg,
            #19160f,
            #100f0b
        );

    border: 1px solid #51432b;

    text-align: center;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.28);
}


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

    font-size: 10px;

    letter-spacing: 4px;

    color: #a98248;
}


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

    font-family: "Cinzel", serif;

    font-size: 27px;

    color: #ddc99a;
}


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

    margin: 0 auto 18px;

    color: #958a76;

    font-size: 12px;

    line-height: 1.9;
}


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

    padding-top: 20px;

    border-top: 1px solid #403522;

    color: #b49a68;

    font-size: 11px;
}


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

@media (max-width: 700px) {

    .disclaimer-section {
        padding: 65px 5%;
    }

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

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

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