:root {
    --gold: #FFD700;
    --gold-dim: #C5A000;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    --text-main: #f0fdf4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background & Atmosphere */
.forest-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('assets/forest_bg.png') no-repeat center center/cover;
    z-index: -3;
    filter: brightness(0.75) contrast(1.05);
}

.sunbeam-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 40%, transparent 100%);
    z-index: -2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

#atmosphere-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    /* Above content */
    pointer-events: none;
}

/* Navigation */
.glass-nav {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    position: fixed;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    padding: 2rem 3rem;
    transition: background 0.3s;
}

.glass-nav:hover {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 2px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--gold);
    opacity: 1;
}

/* Typography & General */
h1 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin: 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--gold);
    font-family: 'Zcool XiaoWei', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-top: 10px;
}

p {
    line-height: 1.8;
    font-size: 1.15rem;
    color: #f1f5f9;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Content Panels */
.content-panel {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3rem;
    text-shadow: var(--text-shadow);
    max-width: 1000px;
    width: 100%;
}

/* Transition Sections (Parallax Dividers) */
.transition-divider {
    height: 60vh;
    width: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin: 2rem 0;
    /* Soft edges using mask */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    opacity: 0.9;
}

.divider-growth {
    background-image: url('assets/transition_growth.png');
}

.divider-bloom {
    background-image: url('assets/transition_bloom.png');
}

.divider-harvest {
    background-image: url('assets/transition_harvest_green.png');
}

.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 3rem;
    backdrop-filter: blur(5px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

/* Sections Layout */
section {
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    /* Allow flexible height */
}

/* ... existing code ... */

/* Mouse Spotlight */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    /* Behind content but above background */
    background: radial-gradient(circle 600px at var(--x, 50%) var(--y, 50%), rgba(255, 215, 0, 0.08), transparent 80%);
    opacity: 0.8;
    mix-blend-mode: overlay;
    transition: opacity 0.5s;
}

/* Holy Light (Divine Effect) */
.holy-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    /* High enough to cover everything */
    background: radial-gradient(circle at 50% -20%, rgba(255, 255, 220, 1) 0%, rgba(255, 215, 0, 0.4) 30%, transparent 70%);
    opacity: 0;
    transition: opacity 1.5s ease-out;
    mix-blend-mode: overlay;
    /* Better visibility than screen on light areas */
}

.holy-light.active {
    opacity: 0.9;
    transition: opacity 0.3s ease-in;
}

.hero {
    min-height: 100vh;
    padding-top: 0;
}

/* Quotes */
.quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #e2e8f0;
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.right-quote {
    text-align: right;
    border-left: none;
    border-right: 3px solid var(--gold);
    padding-right: 1.5rem;
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.05), transparent);
    border-radius: 10px 0 0 10px;
}

.quote-author {
    display: block;
    font-size: 0.9rem;
    color: var(--gold);
    margin-top: 0.8rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 2rem;
    color: #fff;
    transition: all 0.5s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.icon-large {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.card-title {
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-family: 'Zcool XiaoWei', serif;
    font-weight: 500;
}

.card-text {
    font-size: 0.95rem;
    margin: 0;
    color: #cbd5e1;
}

/* Goddess */
.goddess-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
}

.goddess-visual img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    animation: gentle-float 5s ease-in-out infinite;
}

.goddess-content {
    flex: 1;
}

/* Buttons */
.btn-gold {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s;
    border-radius: 2px;
    margin-top: 1rem;
}

.btn-gold:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Utility */
.small-cn {
    font-size: 1rem;
    display: block;
    margin-top: 0.5rem;
    color: var(--gold);
}

.hero-quote {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: #f8fafc;
}

.wish-message {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #6ee7b7;
    opacity: 0;
    transition: opacity 1s;
}

.wish-message.show {
    opacity: 1;
}

.hidden {
    display: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

footer {
    padding: 3rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #94a3b8;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .goddess-layout {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 3.5rem;
    }

    .glass-nav {
        justify-content: center;
    }


    .nav-links {
        display: none;
    }
}

/* ---------------------------------------------------------
   NEW OPTIMIZATIONS (Spotlight)
   --------------------------------------------------------- */

/* LENIS Smooth Scroll Recommended CSS */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Mouse Spotlight */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    /* Behind content but above background */
    background: radial-gradient(circle 600px at var(--x, 50%) var(--y, 50%), rgba(255, 215, 0, 0.08), transparent 80%);
    opacity: 0.8;
    mix-blend-mode: overlay;
    transition: opacity 0.5s;
}

/* Scroll Reveal Animations REMOVED to ensure visibility */
.reveal-content,
.reveal-trigger .divider-text {
    opacity: 1;
    /* Force visible */
    transform: none;
}

/* Mobile Optimization Tweaks */
@media (max-width: 768px) {
    .transition-divider {
        background-attachment: scroll;
        /* Disable fixed parallax on mobile for performance */
    }

    .spotlight {
        display: none;
        /* Disable spotlight on touch devices */
    }
}