/* ===== CSS Variables ===== */
:root {
    --bg-dark: #050508;
    --bg-gradient: linear-gradient(180deg, #050508 0%, #0a0812 50%, #0d0815 100%);
    --pink-soft: #ffb6c1;
    --pink-glow: #ff69b4;
    --pink-hot: #ff1493;
    --pink-dim: rgba(255, 182, 193, 0.4);
    --text-active: #ffffff;
    --text-inactive: #3d3d44;
    --text-upcoming: #4a4a52;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;

    /* Animation timing */
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== LOCK SCREEN ===== */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease;
}

.lock-screen.unlocking {
    transform: translateY(-100%);
    opacity: 0;
}

.lock-screen.hidden {
    display: none;
}

.lock-ambient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 105, 180, 0.08) 0%, transparent 50%);
    animation: lockAmbientPulse 4s ease-in-out infinite alternate;
}

@keyframes lockAmbientPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.lock-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
}

/* Floating hearts decoration */
.lock-hearts {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
}

.lock-heart {
    position: absolute;
    color: var(--pink-glow);
    opacity: 0.3;
    animation: lockHeartFloat 3s ease-in-out infinite;
    font-family: 'Times New Roman', Times, serif;
}

.lock-heart.lh1 {
    left: 20%;
    font-size: 14px;
    animation-delay: 0s;
}

.lock-heart.lh2 {
    left: 50%;
    font-size: 18px;
    animation-delay: 0.5s;
    opacity: 0.5;
}

.lock-heart.lh3 {
    left: 75%;
    font-size: 12px;
    animation-delay: 1s;
}

@keyframes lockHeartFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Lock icon */
.lock-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--pink-soft);
    opacity: 0.8;
    animation: lockIconPulse 2s ease-in-out infinite;
}

.lock-icon svg {
    width: 100%;
    height: 100%;
}

.lock-icon.unlocked {
    animation: lockIconUnlock 0.5s ease forwards;
}

@keyframes lockIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes lockIconUnlock {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 0; }
}

/* Title */
.lock-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.lock-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2.5rem;
}

/* Code display boxes */
.code-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.code-box {
    width: 44px;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.code-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink-soft), var(--pink-glow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.code-box.filled {
    border-color: var(--pink-soft);
    background: rgba(255, 182, 193, 0.1);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
    transform: scale(1.05);
}

.code-box.filled::before {
    opacity: 0.1;
}

.code-box span {
    position: relative;
    z-index: 1;
}

.code-box.success {
    border-color: var(--pink-glow);
    background: rgba(255, 105, 180, 0.2);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
    animation: boxSuccess 0.5s ease forwards;
}

@keyframes boxSuccess {
    0% { transform: scale(1.05); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}

/* Shake animation for wrong code */
.code-display.shake {
    animation: shakeBoxes 0.5s ease;
}

@keyframes shakeBoxes {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

.code-box.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* Hidden input */
.hidden-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Hints and errors */
.lock-hint {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.lock-error {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: #ff6b6b;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lock-error.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Unlock overlay */
.unlock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.unlock-overlay.active {
    opacity: 1;
    animation: unlockFadeIn 0.3s ease;
}

@keyframes unlockFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.unlock-icon {
    font-size: 4rem;
    color: var(--pink-glow);
    animation: unlockHeartBurst 0.8s ease forwards;
    filter: drop-shadow(0 0 30px rgba(255, 105, 180, 0.8));
    font-family: 'Times New Roman', Times, serif;
    font-variant: normal;
}

@keyframes unlockHeartBurst {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1.2); opacity: 1; }
}

.unlock-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.unlock-heart-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 1.2rem;
    color: var(--pink-glow);
    animation: heartParticle 1s ease-out forwards;
    font-family: 'Times New Roman', Times, serif;
}

@keyframes heartParticle {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

/* Main content hidden state */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease 0.3s, visibility 0s 1.1s;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease 0.3s;
}

/* Lock screen responsive */
@media (max-width: 480px) {
    .lock-title {
        font-size: 1.4rem;
    }

    .code-box {
        width: 38px;
        height: 48px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .code-display {
        gap: 8px;
    }

    .lock-icon {
        width: 40px;
        height: 40px;
    }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* Lenis smooth scroll */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-display);
    background: var(--bg-dark);
    color: var(--text-inactive);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Ambient Background ===== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: -2;
}

.ambient-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(ellipse, rgba(255, 105, 180, 0.06) 0%, transparent 60%);
    filter: blur(60px);
    animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* ===== Grain Overlay ===== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* ===== Progress Bar ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink-soft), var(--pink-glow));
    box-shadow: 0 0 20px var(--pink-glow);
    transition: width 0.1s linear;
}

/* ===== Intro Section (scrolls with content) ===== */
.intro-section {
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-1 * clamp(30px, 8vw, 80px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 20px;
}

.intro-label {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.intro-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 500;
    font-style: italic;
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--pink-glow) 40%, var(--pink-hot) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(255, 105, 180, 0.4));
    line-height: 1.1;
    margin-bottom: 2rem;
}

.intro-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    animation: hintBounce 2s ease-in-out infinite;
}

.scroll-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

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

/* ===== Lyrics Wrapper ===== */
.lyrics-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    padding-left: clamp(30px, 8vw, 80px);
}

.lyrics-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lyric-spacer {
    height: 40vh;
}

.lyric-spacer-small {
    height: 20vh;
}

.lyric-spacer.end {
    height: 50vh;
}

/* ===== Lyric Lines - The Magic ===== */
.lyric-line {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    text-align: left;
    padding: 0.4em 0;
    color: #3a3a42;
    opacity: 1;
    transform: translateX(0);
    transform-origin: left center;
    transition:
        color var(--transition-smooth),
        opacity var(--transition-smooth),
        transform var(--transition-smooth),
        text-shadow var(--transition-smooth);
    max-width: 700px;
    margin: 0;
    line-height: 1.5;
}

/* UPCOMING lines (below active) - visible but darkened like passed */
.lyric-line.upcoming {
    color: #3a3a42;
    opacity: 1;
    transform: translateX(0);
}

/* ACTIVE line - The Star - bright white, centered feel */
.lyric-line.active {
    color: #ffffff;
    opacity: 1;
    transform: translateX(0) scale(1.05);
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.25),
        0 0 80px rgba(255, 182, 193, 0.15);
}

/* PASSED lines (above active) - visible but darkened */
.lyric-line.passed {
    color: #3a3a42;
    opacity: 1;
    transform: translateX(0);
}

/* ===== Special Line Variants ===== */
.lyric-line.highlight {
    font-weight: 500;
}

.lyric-line.highlight.passed,
.lyric-line.highlight.upcoming {
    color: #4a3a40;
}

.lyric-line.highlight.active {
    color: var(--pink-soft);
    text-shadow:
        0 0 30px rgba(255, 182, 193, 0.5),
        0 0 60px rgba(255, 105, 180, 0.3),
        0 0 100px rgba(255, 105, 180, 0.2);
}

.lyric-line.highlight.big {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.lyric-line.highlight.big.active {
    transform: translateX(0) scale(1.08);
    text-shadow:
        0 0 40px rgba(255, 182, 193, 0.6),
        0 0 80px rgba(255, 105, 180, 0.4),
        0 0 120px rgba(255, 105, 180, 0.2);
}

.lyric-line.italic {
    font-style: italic;
}

.lyric-line.italic.active {
    color: #ffffff;
}

.lyric-line.emphasis {
    font-style: italic;
}

.lyric-line.emphasis.passed,
.lyric-line.emphasis.upcoming {
    color: #4a3a40;
}

.lyric-line.emphasis.active {
    color: var(--pink-soft);
}

.lyric-line.soft {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 400;
}

.lyric-line.soft.active {
    color: #ffffff;
    transform: translateX(0) scale(1.02);
}

.lyric-line.playful {
    font-style: italic;
}

.lyric-line.playful.active {
    color: #ffffff;
}

/* Final lines - extra special */
.lyric-line.final-lines.active {
    animation: finalGlow 2s ease-in-out infinite alternate;
}

@keyframes finalGlow {
    0% {
        text-shadow:
            0 0 30px rgba(255, 182, 193, 0.6),
            0 0 60px rgba(255, 105, 180, 0.4);
    }
    100% {
        text-shadow:
            0 0 50px rgba(255, 182, 193, 0.8),
            0 0 100px rgba(255, 105, 180, 0.6),
            0 0 150px rgba(255, 105, 180, 0.3);
    }
}

/* ===== Signature ===== */
.signature-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.signature {
    text-align: left;
    padding: 2rem 0;
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all var(--transition-slow);
}

.signature.active {
    opacity: 1;
}

.signature-text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.signature-name {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--pink-soft);
    text-shadow: 0 0 30px rgba(255, 182, 193, 0.4);
    margin-bottom: 0.5rem;
}

.signature .heart {
    display: inline-block;
    color: var(--pink-glow);
    animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.signature-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* ===== Floating Hearts ===== */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 90;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 18px;
    color: var(--pink-glow);
    opacity: 0;
    animation: floatHeart 5s ease-out forwards;
    font-family: 'Times New Roman', Times, serif;
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    15% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1.2) rotate(25deg);
    }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .lyrics-wrapper {
        padding-left: 20px;
        padding-right: 16px;
    }

    .lyric-line {
        max-width: 100%;
        padding: 0.4em 0;
        font-size: clamp(1rem, 4vw, 1.3rem);
    }

    .lyric-line.active {
        transform: translateX(0) scale(1.02);
    }

    .lyric-line.highlight.big {
        font-size: clamp(1.15rem, 4.5vw, 1.5rem);
    }

    .lyric-line.highlight.big.active {
        transform: translateX(0) scale(1.03);
    }

    .lyric-line.soft {
        font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    }

    .intro-section {
        min-height: 90vh;
        margin-left: -20px;
        width: 100vw;
    }

    .intro-name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .lyric-spacer {
        height: 30vh;
    }

    .lyric-spacer-small {
        height: 15vh;
    }

    .signature-container {
        min-height: 70vh;
    }

    .signature-name {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}

/* ===== Large screens - prevent oversizing ===== */
@media (min-width: 1200px) {
    .lyric-line {
        font-size: 1.4rem;
    }

    .lyric-line.highlight.big {
        font-size: 1.7rem;
    }

    .lyric-line.soft {
        font-size: 1.2rem;
    }

    .intro-name {
        font-size: 4.5rem;
    }

    .signature-name {
        font-size: 2.2rem;
    }
}

/* ===== Selection ===== */
::selection {
    background: rgba(255, 105, 180, 0.3);
    color: var(--text-active);
}

/* ===== Touch device optimizations ===== */
@media (hover: none) {
    .lyric-line {
        transition-duration: 0.4s;
    }
}

/* =========================================================
   MICRO-INTERACTIONS & EASTER EGGS STYLES
   ========================================================= */

/* ===== 1. Cursor Heart Trail ===== */
.cursor-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.cursor-heart {
    position: fixed;
    font-size: 12px;
    color: var(--pink-glow);
    pointer-events: none;
    animation: cursorHeartFade 1s ease-out forwards;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    font-family: 'Times New Roman', Times, serif;
}

@keyframes cursorHeartFade {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0.5) rotate(20deg);
    }
}

/* ===== 2. Touch Ripple ===== */
.touch-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 9997;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}

/* ===== 3. Double-Tap Burst Hearts ===== */
.burst-heart {
    position: fixed;
    font-size: 16px;
    color: var(--pink-glow);
    pointer-events: none;
    z-index: 9996;
    animation: burstHeartAnim 0.8s ease-out forwards;
    transform: translate(-50%, -50%);
    font-family: 'Times New Roman', Times, serif;
}

@keyframes burstHeartAnim {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(calc(-50% + var(--tx) * 0.5), calc(-50% + var(--ty) * 0.5)) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.8);
    }
}

/* ===== 4. Hold to Love Hearts ===== */
.hold-heart {
    position: fixed;
    font-size: 18px;
    color: var(--pink-glow);
    pointer-events: none;
    z-index: 9995;
    animation: holdHeartFloat 2s ease-out forwards;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.5));
    font-family: 'Times New Roman', Times, serif;
}

@keyframes holdHeartFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150px) scale(1) rotate(10deg);
    }
}

/* ===== 5. Parallax Container ===== */
.lyrics-container {
    transition: transform 0.3s ease-out;
}

/* ===== 6. Signature Heart Click ===== */
.signature .heart {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.signature .heart.clicked {
    transform: scale(1.5);
}

.signature .heart:hover {
    transform: scale(1.2);
}

/* Sparkles */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--pink-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: sparkleAnim 0.6s ease-out forwards;
}

@keyframes sparkleAnim {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateX(40px) scale(0);
    }
}

/* ===== 7. Triple-Tap Shreya Glow ===== */
.intro-name.special-glow {
    animation: shreyaSpecialGlow 2s ease-in-out;
}

@keyframes shreyaSpecialGlow {
    0%, 100% {
        filter: drop-shadow(0 0 40px rgba(255, 105, 180, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 80px rgba(255, 105, 180, 0.8))
                drop-shadow(0 0 120px rgba(255, 105, 180, 0.6));
    }
}

/* ===== 9. Rain Hearts (Shake) ===== */
.rain-heart {
    position: fixed;
    top: -20px;
    font-size: 20px;
    color: var(--pink-glow);
    pointer-events: none;
    z-index: 9994;
    animation: rainHeartFall 3s linear forwards;
    opacity: 0.8;
    font-family: 'Times New Roman', Times, serif;
}

@keyframes rainHeartFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== 10. Special Day Mode ===== */
.special-day .ambient-bg::before {
    background: radial-gradient(ellipse, rgba(255, 105, 180, 0.12) 0%, transparent 60%);
}

.special-day .intro-name {
    animation: specialDayGlow 3s ease-in-out infinite alternate;
}

@keyframes specialDayGlow {
    0% {
        filter: drop-shadow(0 0 40px rgba(255, 105, 180, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 80px rgba(255, 105, 180, 0.8))
                drop-shadow(0 0 120px rgba(255, 215, 0, 0.3));
    }
}

/* ===== Secret Message ===== */
.secret-message {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 105, 180, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.3);
    padding: 16px 28px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--pink-soft);
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.2);
}

.secret-message.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Text Hover Glow (Desktop) ===== */
@media (hover: hover) {
    .lyric-line.active:hover {
        text-shadow:
            0 0 50px rgba(255, 255, 255, 0.4),
            0 0 100px rgba(255, 182, 193, 0.3);
    }

    .lyric-line.highlight.active:hover {
        text-shadow:
            0 0 40px rgba(255, 182, 193, 0.7),
            0 0 80px rgba(255, 105, 180, 0.5),
            0 0 120px rgba(255, 105, 180, 0.3);
    }
}

/* ===== Secret Hint (Desktop Only) ===== */
.secret-hint {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--pink-soft);
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 100;
    text-shadow: 0 0 20px rgba(255, 182, 193, 0.5);
    background: rgba(255, 105, 180, 0.1);
    padding: 10px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.secret-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

.secret-hint.hiding {
    opacity: 0;
    transform: translateY(-10px);
}

/* Hide on mobile/touch devices */
@media (hover: none), (max-width: 768px) {
    .secret-hint {
        display: none;
    }
}
