/* Base Reset & Variables */
:root {
    --bg-deep: #0a0e17;
    /* Midnight Navy */
    --text-primary: #e0e6ed;
    --text-gold: linear-gradient(135deg, #d4af37 0%, #f9e29c 50%, #b8860b 100%);
    --text-silver: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 50%, #bdc3c7 100%);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    background-color: var(--bg-deep);
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Canvas Background */
#stardust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Scroll Tracking Logic */
.scroll-track {
    /* Create a tall document to enable native scrolling */
    /* Each "spacer" corresponds to a text revelation */
    height: 800vh;
    width: 100%;
    position: relative;
    z-index: -1;
}

.scroll-spacer {
    height: 100vh;
}

/* Sticky Central Container */
.sticky-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 2rem;
    pointer-events: none;
    /* Let scroll pass through if needed, though scrollbar is on body */
}

.glass-pane {
    /* Optional mild glass effect, kept minimal */
    /* background: rgba(255, 255, 255, 0.02); */
    /* backdrop-filter: blur(4px); */
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
    /* border-radius: 2px; */
    padding: 4rem;
    /* max-width: 800px; */
    text-align: center;
    pointer-events: auto;
    /* Allow text selection */
}

/* Typography */
.text-display {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.5;
    letter-spacing: 2px;
    font-weight: 400;

    /* Gold/Silver Gradient Text */
    background: var(--text-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffd700;
    /* Fallback */

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

/* Specific styling for the first "Roll No" line - make it faint/small */
/* Specific styling for the first "Roll No" line - make it faint/small */
.text-display.faint {
    font-size: 1.3rem;
    opacity: 0.7;
    background: none;
    -webkit-text-fill-color: initial;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    letter-spacing: 4px;
}

/* Specific styling for the final line */
.text-display.glow {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 40px rgba(212, 175, 55, 0.3);
}

/* Visible State */
.text-display.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-display.hidden {
    opacity: 0;
    transform: translateY(-20px);
    /* Exit upwards */
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 3px;
    opacity: 0.3;
    animation: pulse 3s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .text-display {
        font-size: 1.8rem;
    }

    .scroll-track {
        height: 800vh;
        /* Adjust if needed for mobile smoothness */
    }
}