/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #F8F5EF;
    color: #2A2A2A;
}
/* MAIN ANCIENT OVERLAY */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* soft parchment + aged tone */
    background:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.03), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.04), transparent 45%),
        linear-gradient(to bottom, rgba(0,0,0,0.02), transparent);

    pointer-events: none;
    z-index: -1;
}
/* CRACK LINE EFFECT */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 120px,
            rgba(0,0,0,0.03) 121px,
            transparent 122px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 180px,
            rgba(0,0,0,0.02) 181px,
            transparent 182px
        );

    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* =========================
   NAVBAR (CENTERED + PREMIUM)
========================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;

    position: sticky;
    top: 0;
    background: rgba(248, 245, 239, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    font-size: 1.3rem;
}

/* LOGO */
.logo {
    font-family: "Cormorant Garamond", serif;
    font-size: 5rem;
    font-weight: 700;
    color: #1F4D3A;
}

/* NAV LINKS (THIS IS THE FIX) */
.nav-links {
    display: flex;
    gap: 28px;

    /* THIS is what pulls it away from far right feel */
    margin: 0 auto;
}

/* LINK STYLE */
.nav-links a {
    text-decoration: none;
    color: #2A2A2A;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
    padding: 6px 2px;
}

/* HOVER EFFECT (premium underline slide) */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #1F4D3A;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #1F4D3A;
}

.nav-links a:hover::after {
    width: 100%;
}


/* =========================
   DROPDOWN MENU
========================= */

.dropdown {
    position: relative;
    display: inline-block;
}

/* button style */
.dropbtn {
    text-decoration: none;
    color: #2A2A2A;
    font-weight: 500;
    transition: 0.3s;
}

/* dropdown box */
.dropdown-content {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;

    background: white;
    min-width: 180px;

    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 1000;
}

/* dropdown items */
.dropdown-content a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #2A2A2A;
    font-size: 0.95rem;
    transition: 0.2s;
}

/* hover effect */
.dropdown-content a:hover {
    background: #1F4D3A;
    color: white;
}

/* SHOW ON HOVER */
.dropdown:hover .dropdown-content {
    display: block;
}

/* optional hover for button */
.dropdown:hover .dropbtn {
    color: #1F4D3A;
}

/* =========================
   HERO LAYOUT
========================= */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
    gap: 60px;
    min-height: 85vh;
}

/* LEFT SIDE */

.hero-left {
    flex: 1;
}

.tag {
    color: #1F4D3A;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.hero-left h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.desc {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 500px;
}

/* BUTTONS */

.buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #1F4D3A;
    color: white;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary {
    border: 2px solid #1F4D3A;
    color: #1F4D3A;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

/* =========================
   HERO RIGHT (SLIDER CARD)
========================= */

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.slide {
    width: 100%;
    max-width: 520px;
    height: 620px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;

    /* KEEP YOUR IMAGE LOOK */
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);

    /* NEW: floating effect */
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* hover float effect */
.slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 80px rgba(0,0,0,0.25);
}
.slide::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 80%;
    height: 30px;
    background: rgba(0,0,0,0.25);
    filter: blur(25px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}
/* IMAGE */

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* OVERLAY */

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
}

.overlay span {
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 12px;
}

.overlay h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.overlay a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.4);
}

/* PROGRESS BAR */

.progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0%;
    background: #C8A24A;
    transition: width 6s linear;
}
.btn-primary,
.btn-secondary {
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* hover lift */
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

/* click effect */
.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0px) scale(0.98);
}

/* soft glow animation on hover */
.btn-primary::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* =========================
   HERO IMAGE ZOOM EFFECT
========================= */

.slide img {
    transform: scale(1);
    transition: transform 6s ease;
}

/* active animation state */
.slide.zoom img {
    transform: scale(1.08);
}

/* =========================
   FADE EFFECT FOR TEXT
========================= */

.overlay span,
.overlay h3,
.overlay p,
.overlay a {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* when changing slide */
.slide.fade-out .overlay span,
.slide.fade-out .overlay h3,
.slide.fade-out .overlay p,
.slide.fade-out .overlay a {
    opacity: 0;
    transform: translateY(10px);
}

/* =========================
   FOOTER
========================= */

.footer {
    margin-top: 80px;
    background: #1F4D3A;
    color: white;
    padding: 60px 40px 20px;
}

/* MAIN GRID */
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

/* BRAND */
.footer-brand h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* LINKS */
.footer-links h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
/* =========================
   STORY PAGE BASE
========================= */

.story-page {
    background: #0f0f0f;
    color: #e8e6e1;
    font-family: "Inter", sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* NAVBAR */
.story-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
}

.story-nav .logo {
    color: white;
}

.story-nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}

/* HERO */
.story-hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    background: url("../assets/images/hero2.jpg") center/cover no-repeat;

    filter: contrast(1.1) brightness(0.75) saturate(0.9);
}

/* DARK OVERLAY */
.story-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3),
        rgba(0,0,0,0.9)
    );
}

/* TEXT */
.story-hero-overlay {
    position: relative;
    text-align: center;
    z-index: 2;
}

.story-category {
    color: #C8A24A;
    font-weight: 600;
    letter-spacing: 2px;
}

.story-hero h1 {
    font-size: 4rem;
    font-family: "Cormorant Garamond", serif;
    margin: 10px 0;
}

.story-subtitle {
    color: #ccc;
}

/* CONTENT */
.story-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* =========================
   FOG EFFECT (WORKING)
========================= */

.story-page::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.06), transparent 45%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05), transparent 50%);

    opacity: 0.8;
    pointer-events: none;
    z-index: 1;

    animation: fogMove 10s ease-in-out infinite alternate;
}

@keyframes fogMove {
    0% { transform: translate(-10px, -5px); }
    100% { transform: translate(10px, 5px); }
}

/* VIGNETTE */
.story-page::after {
    content: "";
    position: fixed;
    inset: 0;

    background: radial-gradient(
        circle,
        transparent 40%,
        rgba(0,0,0,0.75)
    );

    pointer-events: none;
    z-index: 2;
}
/* =========================
   SCROLL RECORD
========================= */

.scroll-record {
    max-width: 1100px;
    margin: 80px auto;
    padding: 40px;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* TITLE */
.scroll-record h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    color: #C8A24A;
    margin-bottom: 20px;
    text-align: center;
}

/* NOTE */
.scroll-note {
    text-align: center;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* GRID */
.scroll-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ITEM */
.record-item {
    padding: 18px 20px;
    border-left: 2px solid rgba(200, 162, 74, 0.6);
    background: rgba(255, 255, 255, 0.03);
}

/* LABEL */
.label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C8A24A;
    margin-bottom: 6px;
}

/* VALUE */
.value {
    color: #f1f1f1;
    font-size: 1rem;
}
/* =========================
   TABLE OF CONTENTS
========================= */

.table-of-contents {
    max-width: 1100px;
    margin: 60px auto;
    padding: 30px;
}

.table-of-contents h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    color: #C8A24A;
    margin-bottom: 25px;
    text-align: center;
}

/* GRID */
.toc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* LINKS */
.toc-grid a {
    display: block;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(200,162,74,0.6);
    color: #eaeaea;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 0.95rem;
}

.toc-grid a:hover {
    background: rgba(200,162,74,0.1);
    transform: translateX(5px);
    border-left: 2px solid #C8A24A;
}
/* =========================
   SCROLL & STUFF CHAPTER STYLE
========================= */

.story-content section {
    margin: 80px 0;
    padding: 35px 30px;
    border-left: 2px solid rgba(200, 162, 74, 0.7);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: 0.3s ease;
}

/* subtle hover (not flashy) */
.story-content section:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: #C8A24A;
}

/* Chapter Title */
.story-content section h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    color: #C8A24A;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

/* optional chapter number */
.chapter-number {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a89262;
    margin-bottom: 8px;
}

/* paragraph readability */
.story-content p {
    color: #ddd3c7;
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 1.08rem;
}

.story-content section {
    scroll-margin-top: 80px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-content section:target {
    animation: focusChapter 0.6s ease;
}

@keyframes focusChapter {
    from {
        opacity: 0.4;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   CHAPTER SYSTEM
========================= */

.chapter {
    display: none;
    animation: pageFade 0.5s ease;
}

.chapter.active {
    display: block;
}

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================
   CHAPTER NAV BUTTON
========================= */

.chapter-nav {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.next-scroll {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid rgba(200, 162, 74, 0.5);
    color: #C8A24A;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
    background: rgba(255,255,255,0.02);
}

.next-scroll:hover {
    background: rgba(200, 162, 74, 0.1);
    transform: translateX(5px);
}
.creature-record {
    margin: 50px 0;
}

.creature-record-inner {
    background: #f8f4ec;
    border: 2px solid #d8c9a8;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.creature-record h2 {
    color: #5b3a1a;
    margin-bottom: 25px;
    text-align: center;
}

.creature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
    gap: 18px;
}

.creature-record .record-item {
    background: #fffdf8;
    border: 1px solid #d9c8a2;
    border-radius: 10px;
    padding: 15px;
}

.creature-record .label {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b6b47;
    margin-bottom: 6px;
}

.creature-record .value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2b2b2b;
    line-height: 1.5;
}