/* =========================================================
   HISTORY EXPLORER
   LITERATURE THROUGH THE AGES
   ========================================================= */


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

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

html {
    scroll-behavior: smooth;
}

body {
    background: #15100b;
    color: #e7d7b5;
    font-family: "Libre Baskerville", serif;
    line-height: 1.8;
}

a {
    color: inherit;
}

strong {
    color: #c9a15a;
}


/* =========================================================
   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
========================================================= */

.literature-hero {
    min-height: 720px;

    position: relative;

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

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(18, 12, 7, 0.48),
            rgba(18, 12, 7, 0.93)
        ),
        url("https://images.unsplash.com/photo-1544947950-fa07a98d237f?auto=format&fit=crop&w=2200&q=85");

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

.literature-hero::before {
    content: "";

    position: absolute;
    inset: 0;

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

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

    background:
        linear-gradient(
            90deg,
            rgba(10, 7, 4, 0.35),
            transparent,
            rgba(10, 7, 4, 0.35)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 90%;
    max-width: 1000px;

    padding: 60px 30px;
}

.hero-label {
    color: #c8a25b;

    font-family: "Cinzel", serif;

    font-size: 12px;

    letter-spacing: 6px;

    margin-bottom: 28px;
}

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

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

    line-height: 0.96;

    letter-spacing: 7px;

    color: #f0dfb9;

    text-shadow:
        0 5px 20px rgba(0, 0, 0, 0.95),
        0 0 35px rgba(0, 0, 0, 0.7);
}

.hero-content h1 span {
    display: block;

    color: #c39a52;

    margin-top: 14px;
}

.hero-ornament {
    margin: 32px 0;

    color: #a87d40;

    font-size: 17px;

    letter-spacing: 3px;
}

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

    margin: auto;

    color: #d3c2a0;

    font-size: 15px;

    line-height: 2;
}


/* =========================================================
   COMMON SECTION ELEMENTS
========================================================= */

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

    color: #a98449;

    font-size: 11px;

    letter-spacing: 5px;
}

.ornament {
    margin: 25px 0;

    color: #a67b3d;

    font-size: 20px;
}

.section-heading {
    text-align: center;

    max-width: 850px;

    margin: 0 auto 70px;
}

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

    font-family: "Cinzel", serif;

    color: #dfc99d;

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

    line-height: 1.25;
}


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

.intro-section {
    max-width: 950px;

    margin: auto;

    padding: 120px 30px 110px;

    text-align: center;
}

.intro-section h2 {
    margin-top: 20px;

    font-family: "Cinzel", serif;

    color: #e3cea1;

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

    line-height: 1.25;
}

.intro-section h2 span {
    display: block;

    color: #bd914b;
}

.intro-section p:not(.section-label) {
    max-width: 800px;

    margin: 18px auto;

    color: #a99a7e;

    font-size: 14px;

    line-height: 2;
}


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

.literature-timeline {
    padding: 120px 5% 130px;

    background:
        linear-gradient(
            180deg,
            #0e0b08,
            #181109
        );

    border-top: 1px solid #493720;
    border-bottom: 1px solid #493720;
}

.timeline {
    max-width: 1050px;

    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 50%;

    top: 0;
    bottom: 0;

    width: 1px;

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

    transform: translateX(-50%);
}

.timeline-item {
    width: 50%;

    position: relative;

    padding: 0 55px 70px;
}

.timeline-item:nth-child(odd) {
    text-align: right;
}

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

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

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

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

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

    color: #c39a52;

    font-family: "Cinzel", serif;

    font-size: 11px;

    letter-spacing: 1px;
}

.timeline-card {
    padding: 27px;

    background:
        linear-gradient(
            145deg,
            #24190f,
            #1a120b
        );

    border: 1px solid #51402a;

    transition: 0.35s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);

    border-color: #a37a40;

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

.timeline-card > span {
    color: #86643a;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 2px;
}

.timeline-card h3 {
    margin: 8px 0 12px;

    font-family: "Cinzel", serif;

    font-size: 20px;

    color: #d6bd89;
}

.timeline-card p {
    color: #9e9077;

    font-size: 13px;

    line-height: 1.85;
}


/* =========================================================
   LITERARY ERA
========================================================= */

.literary-era {
    padding: 120px 5%;

    background: #17100a;

    border-bottom: 1px solid #45351f;
}

.literary-era.sangam {
    background:
        radial-gradient(
            circle at center,
            rgba(122, 88, 38, 0.10),
            transparent 65%
        ),
        #17100a;
}

.literary-era.bhakti {
    background:
        linear-gradient(
            135deg,
            #1b130c,
            #120d08
        );
}

.literary-era.sanskrit-section {
    background:
        linear-gradient(
            180deg,
            #15100b,
            #1b140d
        );
}

.literary-era.medieval-tamil {
    background: #181109;
}

.era-header {
    max-width: 900px;

    margin: 0 auto 65px;

    text-align: center;
}

.era-header h2 {
    margin-top: 18px;

    font-family: "Cinzel", serif;

    font-size: clamp(38px, 5vw, 60px);

    line-height: 1.2;

    color: #dfc99d;
}

.era-header > p:not(.section-label):not(.era-date) {
    max-width: 720px;

    margin: 18px auto 0;

    color: #9f9278;

    font-size: 14px;
}

.era-date {
    margin-top: 12px;

    color: #9e7740;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 1.5px;
}


/* =========================================================
   CONTENT GRID
========================================================= */

.content-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

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

    gap: 22px;
}

.content-grid.two-column {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    max-width: 1050px;
}


/* =========================================================
   INFORMATION CARDS
========================================================= */

.info-card {
    min-height: 245px;

    padding: 32px 28px;

    position: relative;

    background:
        linear-gradient(
            145deg,
            #251b10,
            #1a120b
        );

    border: 1px solid #514029;

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

.info-card.large {
    grid-column: span 2;
}

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

    border-color: #9f763f;

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

.card-number {
    display: block;

    margin-bottom: 15px;

    color: #84623a;

    font-family: "Cinzel", serif;

    font-size: 11px;

    letter-spacing: 3px;
}

.card-icon {
    display: block;

    margin-bottom: 15px;

    font-size: 30px;
}

.info-card h3 {
    margin-bottom: 13px;

    font-family: "Cinzel", serif;

    font-size: 20px;

    color: #d4b877;
}

.info-card p {
    color: #9f9178;

    font-size: 13px;

    line-height: 1.9;

    margin-bottom: 12px;
}


/* =========================================================
   FEATURE SECTION — TOLKAPPIYAM
========================================================= */

.feature-section {
    padding: 120px 7%;

    display: grid;

    grid-template-columns:
        1.5fr 1fr;

    gap: 70px;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            #0e0b08,
            #1b130c
        );

    border-top: 1px solid #493720;
    border-bottom: 1px solid #493720;
}

.feature-text {
    max-width: 760px;
}

.feature-text h2 {
    margin-top: 15px;

    font-family: "Cinzel", serif;

    color: #dfc99d;

    font-size: clamp(40px, 5vw, 62px);
}

.feature-date {
    margin: 12px 0 25px;

    color: #a17b43;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 1.5px;
}

.feature-text p:not(.section-label):not(.feature-date) {
    color: #a69a82;

    font-size: 14px;

    line-height: 2;

    margin-bottom: 18px;
}

.feature-stat {
    display: grid;

    grid-template-columns: 1fr;

    gap: 15px;
}

.feature-stat div {
    padding: 22px 25px;

    background: #21170e;

    border: 1px solid #4d3a24;

    display: grid;

    grid-template-columns: 45px 1fr;

    column-gap: 15px;

    align-items: center;
}

.feature-stat span {
    grid-row: span 2;

    color: #a17b43;

    font-family: "Cinzel", serif;

    font-size: 18px;
}

.feature-stat strong {
    font-family: "Cinzel", serif;

    color: #d0b273;

    font-size: 15px;
}

.feature-stat small {
    color: #817660;

    font-size: 11px;
}


/* =========================================================
   EPIC CARDS
========================================================= */

.epic-card {
    padding: 45px 38px;

    position: relative;

    background:
        linear-gradient(
            145deg,
            #281c10,
            #1b130b
        );

    border: 1px solid #57422a;

    overflow: hidden;

    transition: 0.35s ease;
}

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

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #a77d42,
            transparent
        );
}

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

    border-color: #a37b40;

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

.epic-number {
    margin-bottom: 20px;

    color: #99723f;

    font-family: "Cinzel", serif;

    font-size: 13px;

    letter-spacing: 3px;
}

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

    font-size: 28px;

    color: #d8bd85;
}

.epic-card .date {
    margin: 10px 0 20px;

    color: #967242;

    font-family: "Cinzel", serif;

    font-size: 10px;

    letter-spacing: 1px;
}

.epic-card > p:not(.date) {
    color: #9f9279;

    font-size: 13px;

    line-height: 1.95;
}

.tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 25px;
}

.tags span {
    padding: 5px 10px;

    border: 1px solid #58432a;

    color: #a08352;

    font-family: "Cinzel", serif;

    font-size: 9px;

    letter-spacing: 1px;
}


/* =========================================================
   HISTORICAL EVIDENCE
========================================================= */

.historical-evidence {
    padding: 120px 5%;

    background:
        linear-gradient(
            180deg,
            #100d09,
            #17110a
        );

    border-top: 1px solid #46351f;
}

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

    margin: auto;

    display: grid;

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

    gap: 20px;
}

.evidence-grid > div {
    padding: 32px 25px;

    text-align: center;

    background: #1c140c;

    border: 1px solid #4d3a24;

    transition: 0.3s ease;
}

.evidence-grid > div:hover {
    transform: translateY(-5px);

    border-color: #96703c;
}

.evidence-grid span {
    display: block;

    margin-bottom: 15px;

    font-size: 28px;
}

.evidence-grid h3 {
    margin-bottom: 10px;

    font-family: "Cinzel", serif;

    color: #d0b374;

    font-size: 17px;
}

.evidence-grid p {
    color: #948873;

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   FINAL SECTION
========================================================= */

.literature-ending {
    padding: 130px 25px;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            #2a1c0e 0%,
            #110d08 68%
        );
}

.literature-ending h2 {
    margin-top: 18px;

    font-family: "Cinzel", serif;

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

    line-height: 1.2;

    color: #dfc99d;
}

.literature-ending h2 span {
    display: block;

    color: #bd914b;
}

.literature-ending > p:last-child {
    max-width: 760px;

    margin: auto;

    color: #a1957d;

    font-size: 14px;

    line-height: 2;
}


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

footer {
    padding: 65px 20px;

    text-align: center;

    background: #090806;

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

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

    color: #c39a52;

    font-size: 18px;

    letter-spacing: 3px;
}

footer p {
    margin-top: 15px;

    color: #81745d;

    font-size: 12px;
}

.footer-line {
    width: 100px;

    height: 1px;

    margin: 25px auto;

    background: #6e5330;
}

.developer {
    color: #b9aa8d;
}

.developer strong {
    color: #c39a52;

    font-family: "Cinzel", serif;
}

.powered {
    margin-top: 8px;
}

.powered strong {
    color: #c39a52;

    font-family: "Cinzel", serif;
}

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

    color: #746850 !important;

    font-size: 10px !important;

    letter-spacing: 1px;
}


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

@media (max-width: 1050px) {

    .navbar {
        padding: 20px 4%;

        flex-direction: column;

        gap: 18px;
    }

    .navbar nav {
        gap: 16px;
    }

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

    .info-card.large {
        grid-column: span 2;
    }

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

    .feature-section {
        grid-template-columns: 1fr;

        gap: 45px;
    }
}


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

@media (max-width: 750px) {

    .navbar {
        padding: 18px 15px;
    }

    .logo {
        font-size: 13px;

        letter-spacing: 1px;
    }

    .navbar nav {
        gap: 12px;
    }

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


    .literature-hero {
        min-height: 650px;
    }

    .hero-content {
        padding: 40px 15px;
    }

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

        letter-spacing: 3px;
    }

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

        letter-spacing: 3px;
    }

    .hero-description {
        font-size: 13px;
    }


    .intro-section {
        padding: 85px 22px;
    }


    .literature-timeline {
        padding: 85px 20px;
    }

    .timeline::before {
        left: 7px;

        transform: none;
    }

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

        margin-left: 0;

        padding:
            0 0 55px 35px;

        text-align: left;
    }

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

        right: auto;
    }


    .literary-era {
        padding: 85px 20px;
    }

    .content-grid,
    .content-grid.two-column {
        grid-template-columns: 1fr;
    }

    .info-card.large {
        grid-column: span 1;
    }

    .info-card {
        min-height: auto;
    }


    .feature-section {
        padding: 85px 25px;
    }


    .epic-card {
        padding: 35px 27px;
    }


    .historical-evidence {
        padding: 85px 20px;
    }

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


    .literature-ending {
        padding: 90px 20px;
    }

}


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

@media (max-width: 450px) {

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

    .logo {
        font-size: 11px;
    }

    .navbar nav {
        gap: 9px;
    }

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

    .hero-content h1 {
        font-size: 39px;
    }

    .hero-ornament {
        font-size: 13px;
    }

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

    .era-header h2 {
        font-size: 36px;
    }

    .feature-text h2 {
        font-size: 40px;
    }

    .literature-ending h2 {
        font-size: 40px;
    }

}

/* =========================================================
   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;
    }
}
