:root {
    --gold: #d4af37;
    --dark-bg: #000000;
    --light-text: #eaeaea;
    --eye-glow: rgba(255, 69, 0, 0.6); /* Fiery orange for Mahadev's eye */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    /* We want the body to scroll down to trigger GSAP animations */
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Behind UI */
    pointer-events: none; /* Let clicks pass through to UI unless needed */
}

#ui-layer {
    position: relative;
    z-index: 10;
}

.cinematic-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    pointer-events: none; /* Only specific elements should be clickable */
}

.cinematic-section h1, .cinematic-section h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.shani-title {
    font-size: 4rem;
    line-height: 1.2;
}

.shani-thanks-3d {
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 2;
    background: linear-gradient(to bottom, #ffffff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    opacity: 0;
    animation: fadeInThanks 3s ease forwards 4.5s;
    z-index: 20;
}

@keyframes fadeInThanks {
    to { opacity: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.9)) drop-shadow(0 0 25px rgba(212, 175, 55, 0.6)); }
}

.subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.8;
}

.narrative {
    font-size: 1.5rem;
    max-width: 800px;
    line-height: 1.8;
}

.scroll-indicator {
    margin-top: 3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    opacity: 0; /* Hidden initially, shown via GSAP */
    transform: translateY(20px);
    pointer-events: auto;
}

.fixed-panel {
    position: fixed;
    bottom: 5%;
    left: 5%;
    max-width: 400px;
    z-index: 50;
    transition: opacity 0.3s ease;
}

.glass-panel h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.interactive-hint {
    display: block;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--gold);
    opacity: 0.9;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Mahadev's Third Eye Intro */
#third-eye-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.eye-shape {
    width: 100%;
    height: 100%;
    background: #000;
    /* Will animate clip-path from a vertical slit to an open eye */
    clip-path: ellipse(0% 0% at 50% 50%);
    box-shadow: inset 0 0 100px var(--eye-glow);
}

/* --- Responsive Design for Mobile and Tablets --- */
@media (max-width: 768px) {
    .shani-thanks-3d {
        font-size: 0.8rem;
        top: 2rem;
        letter-spacing: 2px;
        line-height: 1.6;
        width: 100%;
    }
    
    .shani-title {
        font-size: 2.2rem;
        margin-top: 4rem;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .narrative {
        font-size: 1.1rem;
        padding: 0 1.5rem;
    }
    
    .fixed-panel {
        bottom: 2%;
        left: 5%;
        right: 5%;
        width: 90%;
        max-width: none;
        padding: 1.5rem;
    }
    
    .glass-panel h3 {
        font-size: 1.5rem;
    }
    
    .interactive-hint {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
}
