/* ========================================
   TRANG WEB CHÚC MỪNG NĂM MỚI 2026
   Kawaii Style + Morph Transitions
   Gửi Ngọc Huyền - Từ Mạnh
   ======================================== */

/* CSS Variables - Soft Pastel Kawaii */
:root {
    /* Primary Pastels */
    --sakura-pink: #FFB7C5;
    --sakura-light: #FFE4EC;
    --baby-blue: #A8D8EA;
    --baby-blue-light: #D4EEF7;
    --mint-cream: #B8E8D8;
    --mint-light: #E0F5EE;
    --peach-cream: #FFDAB9;
    --peach-light: #FFF0E0;
    --lavender: #E6E6FA;
    --lavender-light: #F5F5FF;
    --lemon-cream: #FFFACD;
    --lemon-light: #FFFEF0;
    
    /* Accent Colors */
    --coral: #FF9999;
    --gold: #FFD700;
    --soft-purple: #D8BFD8;
    
    /* Text */
    --text-dark: #5D5D5D;
    --text-medium: #7A7A7A;
    --text-light: #999999;
    
    /* NEW FONTS - Beautiful Typography */
    --font-title: 'Dancing Script', cursive;
    --font-year: 'Fredoka', cursive;
    --font-body: 'Be Vietnam Pro', sans-serif;
    --font-accent: 'Quicksand', sans-serif;
    
    /* Shadows - Softer */
    --shadow-soft: 0 4px 20px rgba(255, 183, 197, 0.2);
    --shadow-medium: 0 8px 30px rgba(168, 216, 234, 0.25);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
    
    /* Morph Timing Functions */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-back: cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Removed scroll-behavior: smooth to prevent jittering with scroll-snap */
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--sakura-light) 0%, var(--baby-blue-light) 50%, var(--mint-light) 100%);
    line-height: 1.7;
}

/* ========================================
   MORPH ANIMATION KEYFRAMES
   ======================================== */

/* Fade Up - Slide content from bottom (optimized - no blur for performance) */
@keyframes morphFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Fade Down - Slide content from top (optimized) */
@keyframes morphFadeDown {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scale In - Zoom from center (optimized) */
@keyframes morphScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scale Bounce - With elastic effect */
@keyframes morphScaleBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
    }
    80% {
        transform: scale(0.96);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotate In 3D - Flip from side */
@keyframes morphRotateIn {
    0% {
        opacity: 0;
        transform: perspective(1000px) rotateY(-15deg) translateX(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(0) translateX(0) scale(1);
    }
}

/* Pop In - Quick bounce appearance */
@keyframes morphPopIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In From Left (optimized) */
@keyframes morphSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right (optimized) */
@keyframes morphSlideRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Float Up with Fade */
@keyframes morphFloatUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Bounce for emojis */
@keyframes morphBounceIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Reveal (optimized - no blur) */
@keyframes morphReveal {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   MORPH ELEMENT CLASSES
   ======================================== */

/* Base state - hidden before animation */
.morph-element {
    opacity: 0;
    will-change: transform, opacity;
    transform: translateZ(0); /* Force GPU acceleration */
}

/* Visible state with different animation types */
.morph-element.visible {
    opacity: 1;
}

.morph-fade-up {
    transform: translateY(60px) scale(0.95);
    filter: blur(8px);
    transition: all 0.9s var(--ease-smooth);
}

.morph-fade-up.visible {
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.morph-fade-down {
    transform: translateY(-50px) scale(0.95);
    filter: blur(8px);
    transition: all 0.9s var(--ease-smooth);
}

.morph-fade-down.visible {
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.morph-scale {
    transform: scale(0.7);
    filter: blur(10px);
    transition: all 0.8s var(--ease-bounce);
}

.morph-scale.visible {
    transform: scale(1);
    filter: blur(0);
}

.morph-pop {
    transform: scale(0.3);
    transition: all 0.6s var(--ease-bounce);
}

.morph-pop.visible {
    transform: scale(1);
}

.morph-slide-left {
    transform: translateX(-80px) scale(0.9);
    filter: blur(5px);
    transition: all 0.8s var(--ease-out-expo);
}

.morph-slide-left.visible {
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.morph-slide-right {
    transform: translateX(80px) scale(0.9);
    filter: blur(5px);
    transition: all 0.8s var(--ease-out-expo);
}

.morph-slide-right.visible {
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.morph-rotate {
    transform: perspective(1000px) rotateY(-15deg) translateX(-30px) scale(0.9);
    transition: all 1s var(--ease-smooth);
}

.morph-rotate.visible {
    transform: perspective(1000px) rotateY(0) translateX(0) scale(1);
}

.morph-reveal {
    filter: blur(20px);
    transform: scale(1.1);
    transition: all 1s var(--ease-smooth);
}

.morph-reveal.visible {
    filter: blur(0);
    transform: scale(1);
}

/* ========================================
   STAGGER DELAY SYSTEM
   ======================================== */

/* Stagger delays for child elements */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }
.stagger-7 { transition-delay: 0.7s !important; }
.stagger-8 { transition-delay: 0.8s !important; }

/* Auto stagger for kawaii emojis */
.kawaii-emojis.visible span:nth-child(1) { animation: morphBounceIn 0.5s var(--ease-bounce) 0.1s both; }
.kawaii-emojis.visible span:nth-child(2) { animation: morphBounceIn 0.5s var(--ease-bounce) 0.2s both; }
.kawaii-emojis.visible span:nth-child(3) { animation: morphBounceIn 0.5s var(--ease-bounce) 0.3s both; }
.kawaii-emojis.visible span:nth-child(4) { animation: morphBounceIn 0.5s var(--ease-bounce) 0.4s both; }
.kawaii-emojis.visible span:nth-child(5) { animation: morphBounceIn 0.5s var(--ease-bounce) 0.5s both; }

/* Stagger for year characters */
.title-year.visible .year-char:nth-child(1) { animation: morphScaleBounce 0.6s var(--ease-bounce) 0.1s both; }
.title-year.visible .year-char:nth-child(2) { animation: morphScaleBounce 0.6s var(--ease-bounce) 0.2s both; }
.title-year.visible .year-char:nth-child(3) { animation: morphScaleBounce 0.6s var(--ease-bounce) 0.3s both; }
.title-year.visible .year-char:nth-child(4) { animation: morphScaleBounce 0.6s var(--ease-bounce) 0.4s both; }

/* Final decorations stagger */
.final-decorations.visible .deco-item:nth-child(1) { animation: morphPopIn 0.5s var(--ease-bounce) 0.1s both; }
.final-decorations.visible .deco-item:nth-child(2) { animation: morphPopIn 0.5s var(--ease-bounce) 0.2s both; }
.final-decorations.visible .deco-item:nth-child(3) { animation: morphPopIn 0.5s var(--ease-bounce) 0.3s both; }
.final-decorations.visible .deco-item:nth-child(4) { animation: morphPopIn 0.5s var(--ease-bounce) 0.4s both; }
.final-decorations.visible .deco-item:nth-child(5) { animation: morphPopIn 0.5s var(--ease-bounce) 0.5s both; }

/* ========================================
   3D PERSPECTIVE & PARALLAX
   ======================================== */

/* Slide container with perspective */
.slide {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Content wrapper with 3D effect */
.slide-content {
    max-width: 700px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}

/* Parallax background elements */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    pointer-events: none;
    transition: transform 0.5s var(--ease-smooth);
}

/* Depth layers for parallax */
.parallax-back {
    transform: translateZ(-100px) scale(1.1);
}

.parallax-mid {
    transform: translateZ(-50px) scale(1.05);
}

.parallax-front {
    transform: translateZ(0);
}

/* ========================================
   KAWAII BACKGROUND & DECORATIONS
   ======================================== */

.kawaii-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2000;
    border-radius: 0 0 3px 3px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--sakura-pink), var(--baby-blue), var(--mint-cream), var(--peach-cream));
    background-size: 300% 100%;
    animation: progressGradient 4s ease infinite;
    transition: width 0.3s ease;
    border-radius: 0 3px 3px 0;
}

@keyframes progressGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Navigation Dots */
.slide-nav {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1500;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid var(--sakura-pink);
    cursor: pointer;
    transition: all 0.4s var(--ease-bounce);
    position: relative;
}

.nav-dot::after {
    content: attr(title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-soft);
    color: var(--text-dark);
}

.nav-dot:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.nav-dot:hover {
    background: var(--sakura-pink);
    transform: scale(1.3);
}

.nav-dot.active {
    background: var(--sakura-pink);
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(255, 183, 197, 0.6);
}

/* Scroll Hint */
.scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1500;
    animation: morphFloatUp 1s var(--ease-smooth);
}

.scroll-hint-text {
    font-size: 0.85rem;
    color: var(--text-medium);
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--sakura-pink);
    border-radius: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--sakura-pink);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* Fullpage Container */
.fullpage-container {
    width: 100%;
}

/* ========================================
   SLIDE BACKGROUNDS
   ======================================== */

.slide-welcome {
    background: linear-gradient(150deg, var(--sakura-light) 0%, var(--lemon-light) 50%, var(--baby-blue-light) 100%);
}

.slide-countdown {
    background: linear-gradient(150deg, var(--baby-blue-light) 0%, var(--mint-light) 100%);
}

.slide-wish[data-theme="mint"] {
    background: linear-gradient(150deg, var(--mint-light) 0%, var(--baby-blue-light) 100%);
}

.slide-wish[data-theme="peach"] {
    background: linear-gradient(150deg, var(--peach-light) 0%, var(--sakura-light) 100%);
}

.slide-wish[data-theme="yellow"] {
    background: linear-gradient(150deg, var(--lemon-light) 0%, var(--peach-light) 100%);
}

.slide-wish[data-theme="rainbow"] {
    background: linear-gradient(150deg, var(--lemon-light) 0%, var(--sakura-light) 33%, var(--baby-blue-light) 66%, var(--mint-light) 100%);
}

.slide-wish[data-theme="blue"] {
    background: linear-gradient(150deg, var(--baby-blue-light) 0%, var(--lavender-light) 100%);
}

.slide-wish[data-theme="lavender"] {
    background: linear-gradient(150deg, var(--lavender-light) 0%, var(--sakura-light) 100%);
}

.slide-wish[data-theme="special"] {
    background: linear-gradient(150deg, 
        var(--lemon-light) 0%,
        var(--sakura-light) 25%,
        var(--lavender-light) 50%,
        var(--baby-blue-light) 75%,
        var(--mint-light) 100%
    );
    background-size: 200% 200%;
    animation: specialBg 8s ease infinite;
}

.slide-final {
    background: linear-gradient(150deg, 
        var(--sakura-light) 0%,
        var(--peach-light) 50%,
        var(--lemon-light) 100%
    );
}

@keyframes specialBg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========================================
   KAWAII CLOUDS - ENHANCED WITH DEPTH LAYERS
   ======================================== */

.kawaii-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    perspective: 1000px;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 183, 197, 0.15);
    transition: transform 0.3s ease;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
    box-shadow: inherit;
}

/* Large cloud - back layer (slower) */
.cloud-1 {
    width: 150px;
    height: 50px;
    top: 10%;
    left: -180px;
    animation: cloudFloatSlow 40s linear infinite;
    opacity: 0.7;
    transform: translateZ(-50px) scale(0.8);
}

.cloud-1::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 25px;
}

.cloud-1::after {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 70px;
}

/* Medium cloud - mid layer */
.cloud-2 {
    width: 120px;
    height: 40px;
    top: 20%;
    right: -150px;
    animation: cloudFloatMedium 30s linear infinite reverse;
    opacity: 0.85;
}

.cloud-2::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 18px;
}

.cloud-2::after {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 55px;
}

/* Small cloud - front layer (faster) */
.cloud-3 {
    width: 80px;
    height: 28px;
    top: 35%;
    left: -100px;
    animation: cloudFloatFast 20s linear infinite;
    opacity: 0.95;
    transform: translateZ(20px) scale(1.1);
}

.cloud-3::before {
    width: 35px;
    height: 35px;
    top: -18px;
    left: 12px;
}

.cloud-3::after {
    width: 28px;
    height: 28px;
    top: -14px;
    left: 38px;
}

/* Tiny clouds for depth */
.cloud-4 {
    width: 60px;
    height: 22px;
    top: 60%;
    right: -80px;
    animation: cloudFloatFast 25s linear infinite reverse;
    opacity: 0.6;
    transform: translateZ(-80px) scale(0.6);
}

.cloud-4::before {
    width: 28px;
    height: 28px;
    top: -14px;
    left: 10px;
}

.cloud-4::after {
    width: 22px;
    height: 22px;
    top: -11px;
    left: 30px;
}

.cloud-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    color: var(--text-medium);
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cloud:hover .cloud-face {
    opacity: 1;
}

/* Blinking cloud face */
.cloud-face::before {
    content: '◠‿◠';
    animation: cloudFaceBlink 4s ease-in-out infinite;
}

@keyframes cloudFaceBlink {
    0%, 45%, 55%, 100% { content: '◠‿◠'; }
    50% { content: '─‿─'; }
}

/* Cloud float animations with bobbing */
@keyframes cloudFloatSlow {
    0% { 
        transform: translateX(0) translateY(0) translateZ(-50px) scale(0.8);
    }
    25% {
        transform: translateX(25vw) translateY(-10px) translateZ(-50px) scale(0.8);
    }
    50% { 
        transform: translateX(50vw) translateY(5px) translateZ(-50px) scale(0.8);
    }
    75% {
        transform: translateX(75vw) translateY(-8px) translateZ(-50px) scale(0.8);
    }
    100% { 
        transform: translateX(calc(100vw + 200px)) translateY(0) translateZ(-50px) scale(0.8);
    }
}

@keyframes cloudFloatMedium {
    0% { 
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-25vw) translateY(8px);
    }
    50% { 
        transform: translateX(-50vw) translateY(-5px);
    }
    75% {
        transform: translateX(-75vw) translateY(10px);
    }
    100% { 
        transform: translateX(calc(-100vw - 200px)) translateY(0);
    }
}

@keyframes cloudFloatFast {
    0% { 
        transform: translateX(0) translateY(0) translateZ(20px) scale(1.1);
    }
    20% {
        transform: translateX(20vw) translateY(-15px) translateZ(20px) scale(1.12);
    }
    40% { 
        transform: translateX(40vw) translateY(8px) translateZ(20px) scale(1.08);
    }
    60% {
        transform: translateX(60vw) translateY(-10px) translateZ(20px) scale(1.12);
    }
    80% {
        transform: translateX(80vw) translateY(5px) translateZ(20px) scale(1.1);
    }
    100% { 
        transform: translateX(calc(100vw + 150px)) translateY(0) translateZ(20px) scale(1.1);
    }
}

/* Cloud subtle pulse */
.cloud {
    animation-name: cloudFloatMedium;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.cloud::before,
.cloud::after {
    animation: cloudPulse 3s ease-in-out infinite;
}

@keyframes cloudPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   KAWAII STARS
   ======================================== */

.kawaii-stars {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.k-star {
    font-size: 2rem;
    color: var(--gold);
}

/* Stars animate when visible */
.kawaii-stars.visible .k-star:nth-child(1) { animation: morphPopIn 0.4s var(--ease-bounce) 0.1s both, starTwinkle 1.5s ease-in-out 0.5s infinite; }
.kawaii-stars.visible .k-star:nth-child(2) { animation: morphPopIn 0.4s var(--ease-bounce) 0.2s both, starTwinkle 1.5s ease-in-out 0.7s infinite; }
.kawaii-stars.visible .k-star:nth-child(3) { animation: morphPopIn 0.4s var(--ease-bounce) 0.3s both, starTwinkle 1.5s ease-in-out 0.9s infinite; }

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 1; }
}

/* ========================================
   SVG ILLUSTRATIONS
   ======================================== */

.svg-illustration {
    width: 160px;
    height: 160px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Illustration morph animation */
.wish-illustration,
.welcome-illustration,
.countdown-illustration,
.final-illustration {
    opacity: 0;
    transform: scale(0.7) translateY(30px);
    filter: blur(10px);
    transition: all 0.9s var(--ease-bounce);
}

.wish-illustration.visible,
.welcome-illustration.visible,
.countdown-illustration.visible,
.final-illustration.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

.svg-star {
    transform-origin: center;
}

.svg-clock {
    width: 140px;
    height: 140px;
}

.clock-hand-hour {
    transform-origin: 75px 75px;
    animation: hourHand 43200s linear infinite;
}

.clock-hand-min {
    transform-origin: 75px 75px;
    animation: minHand 3600s linear infinite;
}

@keyframes hourHand {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes minHand {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.special-glow {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

/* ========================================
   SVG ANIMATIONS - Kawaii Life
   ======================================== */

/* Gentle Bobbing for all illustrations */
@keyframes gentleBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-4px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

/* Apply bobbing to visible illustrations */
.welcome-illustration.visible .svg-illustration,
.countdown-illustration.visible .svg-clock,
.wish-illustration.visible .svg-illustration,
.final-illustration.visible .svg-illustration {
    animation: gentleBob 4s ease-in-out infinite;
}

/* Blinking Eyes Animation */
@keyframes blinkEyes {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.svg-illustration ellipse[fill="#333"],
.svg-clock ellipse[fill="#333"] {
    animation: blinkEyes 4s ease-in-out infinite;
    transform-origin: center;
}

/* Stagger eye blinks */
.svg-illustration ellipse[fill="#333"]:nth-of-type(2),
.svg-clock ellipse[fill="#333"]:nth-of-type(2) {
    animation-delay: 0.05s;
}

/* Kawaii Mouth Animation */
@keyframes mouthWiggle {
    0%, 100% { d: path("M90 115 Q100 130 110 115"); }
    50% { d: path("M90 115 Q100 125 110 115"); }
}

/* Cheek Blush Animation */
@keyframes cheekGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.svg-illustration ellipse[fill="#FFB7C5"][opacity],
.svg-illustration ellipse[fill="#FF9999"][opacity],
.svg-clock ellipse[fill="#FFB7C5"][opacity] {
    animation: cheekGlow 3s ease-in-out infinite;
}

/* Heart Beat Animation */
@keyframes heartBeatSVG {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

.slide-wish[data-theme="peach"] .svg-illustration path[fill="#FFB7C5"] {
    animation: heartBeatSVG 1.5s ease-in-out infinite;
    transform-origin: center;
}

/* Clock Hands Animation - Already exists but enhance */
.svg-clock .clock-hand-hour {
    animation: hourHand 43200s linear infinite, clockPulse 2s ease-in-out infinite;
}

.svg-clock .clock-hand-min {
    animation: minHand 3600s linear infinite, clockPulse 1s ease-in-out infinite 0.5s;
}

@keyframes clockPulse {
    0%, 100% { stroke-width: 3; }
    50% { stroke-width: 3.5; }
}

/* Rocket Flame Animation */
@keyframes rocketFlame {
    0%, 100% { 
        transform: scaleY(1) translateY(0);
        opacity: 1;
    }
    25% { 
        transform: scaleY(1.2) translateY(-2px);
        opacity: 0.9;
    }
    50% { 
        transform: scaleY(0.9) translateY(2px);
        opacity: 1;
    }
    75% { 
        transform: scaleY(1.15) translateY(-1px);
        opacity: 0.95;
    }
}

@keyframes rocketShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

.slide-wish[data-theme="blue"] .svg-illustration ellipse[fill="#FFD700"],
.slide-wish[data-theme="blue"] .svg-illustration ellipse[fill="#FF9999"],
.slide-wish[data-theme="blue"] .svg-illustration ellipse[fill="#fff"] {
    animation: rocketFlame 0.3s ease-in-out infinite;
    transform-origin: center top;
}

.slide-wish[data-theme="blue"] .svg-illustration {
    animation: gentleBob 4s ease-in-out infinite, rocketShake 0.1s ease-in-out infinite;
}

/* House Smoke Animation */
@keyframes smokeRise {
    0% { 
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-8px) scale(1.2);
        opacity: 0.5;
    }
    100% { 
        transform: translateY(-15px) scale(1.5);
        opacity: 0;
    }
}

.slide-wish[data-theme="yellow"] .svg-illustration text[fill="#FFB7C5"] {
    animation: smokeRise 3s ease-out infinite;
}

.slide-wish[data-theme="yellow"] .svg-illustration text[fill="#FFB7C5"]:nth-of-type(2) {
    animation-delay: 1s;
}

/* Book Page Flip Animation */
@keyframes pageFlip {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(15deg); }
}

.slide-wish[data-theme="mint"] .svg-illustration line[stroke="#ddd"] {
    animation: pageFlip 4s ease-in-out infinite;
    transform-origin: left center;
}

.slide-wish[data-theme="mint"] .svg-illustration line[stroke="#ddd"]:nth-of-type(2) {
    animation-delay: 0.2s;
}

.slide-wish[data-theme="mint"] .svg-illustration line[stroke="#ddd"]:nth-of-type(3) {
    animation-delay: 0.4s;
}

/* Pencil Write Animation */
@keyframes pencilWrite {
    0%, 100% { transform: rotate(25deg) translateX(0); }
    50% { transform: rotate(28deg) translateX(3px); }
}

.slide-wish[data-theme="mint"] .svg-illustration rect[fill="#FFE5B4"] {
    animation: pencilWrite 1s ease-in-out infinite;
    transform-origin: bottom center;
}

/* Rainbow Color Shift */
@keyframes rainbowShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(15deg); }
}

.slide-wish[data-theme="rainbow"] .svg-illustration path[stroke] {
    animation: rainbowShift 5s ease-in-out infinite;
}

/* Sun Rays Animation */
@keyframes sunRaysPulse {
    0%, 100% { 
        stroke-width: 3;
        opacity: 0.9;
    }
    50% { 
        stroke-width: 4;
        opacity: 1;
    }
}

.slide-wish[data-theme="rainbow"] .svg-illustration line[stroke="#FFD700"] {
    animation: sunRaysPulse 2s ease-in-out infinite;
}

.slide-wish[data-theme="rainbow"] .svg-illustration line[stroke="#FFD700"]:nth-of-type(2) {
    animation-delay: 0.25s;
}

.slide-wish[data-theme="rainbow"] .svg-illustration line[stroke="#FFD700"]:nth-of-type(3) {
    animation-delay: 0.5s;
}

.slide-wish[data-theme="rainbow"] .svg-illustration line[stroke="#FFD700"]:nth-of-type(4) {
    animation-delay: 0.75s;
}

/* Bear Wiggle Animation (Friendship) */
@keyframes bearWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.slide-wish[data-theme="lavender"] .svg-illustration circle[fill="#FFDAB9"] {
    animation: bearWiggle 2s ease-in-out infinite;
    transform-origin: center bottom;
}

.slide-wish[data-theme="lavender"] .svg-illustration circle[fill="#E6E6FA"] {
    animation: bearWiggle 2s ease-in-out infinite 0.5s;
    transform-origin: center bottom;
}

/* Floating Hearts Animation */
@keyframes floatingHearts {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) scale(1.1);
        opacity: 1;
    }
}

.svg-illustration text[fill="#FFB7C5"],
.svg-illustration text[fill="#FFD700"] {
    animation: floatingHearts 2.5s ease-in-out infinite;
}

.svg-illustration text[fill="#FFB7C5"]:nth-of-type(2),
.svg-illustration text[fill="#FFD700"]:nth-of-type(2) {
    animation-delay: 0.5s;
}

.svg-illustration text[fill="#FFB7C5"]:nth-of-type(3),
.svg-illustration text[fill="#FFD700"]:nth-of-type(3) {
    animation-delay: 1s;
}

/* Crown Sparkle Animation */
@keyframes crownSparkle {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
        transform: scale(1.02);
    }
}

.slide-wish[data-theme="special"] .svg-illustration path[fill="#FFD700"],
.slide-wish[data-theme="special"] .svg-illustration rect[fill="#FFD700"] {
    animation: crownSparkle 2s ease-in-out infinite;
}

/* Sparkle Twinkle Animation */
@keyframes sparkleTwinkle {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(0.8) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
}

.sparkle-anim {
    animation: sparkleTwinkle 1.5s ease-in-out infinite;
}

.sparkle-anim:nth-of-type(2) { animation-delay: 0.3s; }
.sparkle-anim:nth-of-type(3) { animation-delay: 0.6s; }
.sparkle-anim:nth-of-type(4) { animation-delay: 0.9s; }

/* Party Hat Bounce */
@keyframes partyBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-2deg); }
    75% { transform: translateY(-3px) rotate(2deg); }
}

.slide-final .svg-illustration {
    animation: partyBounce 2s ease-in-out infinite;
}

/* Confetti Fall Animation */
@keyframes confettiFall {
    0% { 
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    20% { opacity: 1; }
    100% { 
        transform: translateY(10px) rotate(360deg);
        opacity: 0.7;
    }
}

.slide-final .svg-illustration rect[transform] {
    animation: confettiFall 3s ease-in-out infinite;
}

.slide-final .svg-illustration rect[transform]:nth-of-type(2) { animation-delay: 0.5s; }
.slide-final .svg-illustration rect[transform]:nth-of-type(3) { animation-delay: 1s; }
.slide-final .svg-illustration rect[transform]:nth-of-type(4) { animation-delay: 1.5s; }
.slide-final .svg-illustration rect[transform]:nth-of-type(5) { animation-delay: 2s; }
.slide-final .svg-illustration rect[transform]:nth-of-type(6) { animation-delay: 2.5s; }

/* ========================================
   ENHANCED SLIDE TRANSITIONS
   ======================================== */

/* Slide entry animation with parallax depth */
.slide {
    opacity: 1;
    transition: opacity 0.8s var(--ease-smooth);
}

/* Background parallax layers */
.slide::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 183, 197, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(168, 216, 234, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(184, 232, 216, 0.1) 0%, transparent 40%);
    animation: bgParallaxShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgParallaxShift {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-20px) scale(1.02);
    }
    50% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    75% { 
        transform: translateY(20px) scale(0.98);
    }
}

/* Gradient overlay transition between slides */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s var(--ease-smooth);
    z-index: 1;
}

.slide:hover::after {
    opacity: 0.5;
}

/* ========================================
   3D CARD TILT EFFECT
   ======================================== */

.wish-card-kawaii {
    transform-style: preserve-3d;
    transition: all 0.9s var(--ease-smooth) 0.35s, 
                transform 0.3s var(--ease-smooth),
                box-shadow 0.3s ease;
}

.wish-card-kawaii:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 183, 197, 0.25),
                0 10px 30px rgba(0, 0, 0, 0.08);
}

.wish-card-kawaii.visible:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* Card inner glow on hover */
.wish-card-kawaii::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(255, 183, 197, 0.4),
        rgba(168, 216, 234, 0.4),
        rgba(184, 232, 216, 0.4));
    border-radius: 27px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.wish-card-kawaii:hover::before {
    opacity: 1;
    animation: cardGlowPulse 2s ease-in-out infinite;
}

@keyframes cardGlowPulse {
    0%, 100% { 
        opacity: 0.4;
        filter: blur(10px);
    }
    50% { 
        opacity: 0.7;
        filter: blur(15px);
    }
}

/* ========================================
   BADGE PULSE GLOW
   ======================================== */

.wish-badge {
    position: relative;
    overflow: visible;
}

.wish-badge::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: inherit;
    border-radius: 33px;
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.4s ease;
}

.wish-badge.visible {
    animation: badgeEntrance 0.6s var(--ease-bounce) 0.3s both;
}

.wish-badge.visible::before {
    animation: badgePulseGlow 3s ease-in-out 0.9s infinite;
}

@keyframes badgeEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badgePulseGlow {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* ========================================
   EMOJI BOUNCE & ROTATION
   ======================================== */

.kawaii-emojis span {
    display: inline-block;
    transition: transform 0.3s var(--ease-bounce);
}

.kawaii-emojis.visible span {
    animation: emojiBounceRotate 0.6s var(--ease-bounce) both;
}

.kawaii-emojis.visible span:nth-child(1) { animation-delay: 0.1s; }
.kawaii-emojis.visible span:nth-child(2) { animation-delay: 0.2s; }
.kawaii-emojis.visible span:nth-child(3) { animation-delay: 0.3s; }
.kawaii-emojis.visible span:nth-child(4) { animation-delay: 0.4s; }
.kawaii-emojis.visible span:nth-child(5) { animation-delay: 0.5s; }

@keyframes emojiBounceRotate {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0) rotate(-30deg);
    }
    50% {
        transform: translateY(-15px) scale(1.3) rotate(15deg);
    }
    70% {
        transform: translateY(5px) scale(0.9) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* Emoji hover effects */
.kawaii-emojis span:hover {
    animation: emojiHoverBounce 0.5s var(--ease-bounce);
}

@keyframes emojiHoverBounce {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    75% { transform: scale(1.15) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Emoji float animation after entrance */
.kawaii-emojis.visible span {
    animation: emojiBounceRotate 0.6s var(--ease-bounce) both,
               emojiGentleFloat 3s ease-in-out 1s infinite;
}

@keyframes emojiGentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.kawaii-emojis.visible span:nth-child(2) { animation-delay: 0.2s, 1.2s; }
.kawaii-emojis.visible span:nth-child(3) { animation-delay: 0.3s, 1.4s; }
.kawaii-emojis.visible span:nth-child(4) { animation-delay: 0.4s, 1.6s; }
.kawaii-emojis.visible span:nth-child(5) { animation-delay: 0.5s, 1.8s; }

/* ========================================
   WELCOME SLIDE
   ======================================== */

.main-title {
    margin-bottom: 1.5rem;
}

/* Title line morph animation */
.title-line {
    display: block;
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-smooth);
}

.title-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.title-year {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.year-char {
    display: inline-block;
    font-family: var(--font-year);
    font-size: clamp(3.5rem, 12vw, 5.5rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--sakura-pink), var(--baby-blue), var(--mint-cream));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: scale(0.5) translateY(20px);
}

.title-year.visible .year-char {
    animation: morphScaleBounce 0.6s var(--ease-bounce) both, colorWave 3s ease 0.6s infinite;
}

@keyframes colorWave {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Greeting text morph */
.greeting-text {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--ease-smooth) 0.4s;
}

.greeting-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.name-highlight {
    display: inline-block;
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--sakura-pink);
    margin: 0 0.5rem;
}

.name-highlight.visible {
    animation: nameWiggle 3s ease-in-out 0.8s infinite;
}

@keyframes nameWiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.kawaii-heart {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--coral);
}

.kawaii-heart.visible {
    animation: morphPopIn 0.5s var(--ease-bounce) 0.6s both, heartBeat 1s ease-in-out 1.1s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* From text morph */
.from-text {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--ease-smooth) 0.6s;
}

.from-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   COUNTDOWN SLIDE
   ======================================== */

.countdown-illustration {
    margin-bottom: 1.5rem;
}

/* Slide title morph */
.slide-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s var(--ease-smooth) 0.2s;
}

.slide-title.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.title-emoji {
    display: inline-block;
}

.title-emoji.visible {
    animation: emojiPop 2s ease-in-out infinite;
}

@keyframes emojiPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Countdown timer morph */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.time-block {
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    transition: all 0.7s var(--ease-bounce);
}

.time-block.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger time blocks */
.time-block:nth-child(1) { transition-delay: 0.1s; }
.time-block:nth-child(3) { transition-delay: 0.2s; }
.time-block:nth-child(5) { transition-delay: 0.3s; }
.time-block:nth-child(7) { transition-delay: 0.4s; }

.time-block-inner {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
    min-width: 85px;
    box-shadow: var(--shadow-card);
    border: 3px solid rgba(255, 183, 197, 0.3);
    transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
}

.time-block:hover .time-block-inner {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 183, 197, 0.35);
}

.time-value {
    display: block;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--sakura-pink), var(--coral));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    transition: transform 0.2s var(--ease-bounce);
}

.time-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.time-separator {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 25px;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.time-separator.visible {
    opacity: 1;
}

.sep-dot {
    width: 8px;
    height: 8px;
    background: var(--sakura-pink);
    border-radius: 50%;
    animation: dotPulse 1s ease-in-out infinite;
}

.sep-dot:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Countdown message morph */
.countdown-message {
    font-size: 1.1rem;
    color: var(--text-medium);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--ease-smooth) 0.6s;
}

.countdown-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.sparkle-text {
    display: inline-block;
}

.sparkle-text.visible {
    animation: sparkleText 2s ease-in-out infinite;
}

@keyframes sparkleText {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ========================================
   WISH SLIDES
   ======================================== */

.wish-illustration {
    margin-bottom: 1rem;
}

/* Badge morph */
.wish-badge {
    display: inline-block;
    font-family: var(--font-accent);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(255, 183, 197, 0.3);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s var(--ease-bounce) 0.3s;
}

.wish-badge.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.special-badge {
    background: linear-gradient(135deg, var(--lemon-cream), var(--gold));
    border: none;
}

/* Card morph animation */
.wish-card-kawaii {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2rem 2.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-card);
    position: relative;
    border: 3px solid rgba(255, 183, 197, 0.2);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(5px);
    transition: all 0.9s var(--ease-smooth) 0.35s;
}

.wish-card-kawaii.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.special-card {
    border: 3px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
}

.card-decoration {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.wish-card-kawaii.visible .card-decoration {
    opacity: 0.7;
}

.top-left { top: 15px; left: 15px; }
.top-right { top: 15px; right: 15px; }
.bottom-left { bottom: 15px; left: 15px; }
.bottom-right { bottom: 15px; right: 15px; }

/* Wish text stagger reveal */
.wish-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.95;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.7s var(--ease-smooth);
    text-align: justify;
}

/* Stagger reveal for all 3 paragraphs */
.wish-card-kawaii.visible .wish-text:nth-of-type(1) { 
    opacity: 1; 
    transform: translateY(0);
    transition-delay: 0.5s; 
}

.wish-card-kawaii.visible .wish-text:nth-of-type(2) { 
    opacity: 1; 
    transform: translateY(0);
    transition-delay: 0.75s; 
}

.wish-card-kawaii.visible .wish-text:nth-of-type(3) { 
    opacity: 1; 
    transform: translateY(0);
    transition-delay: 1s; 
}

.wish-text:last-of-type {
    margin-bottom: 0;
}

.special-text {
    font-weight: 600;
}

/* Kawaii emojis morph */
.kawaii-emojis {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.8rem;
    margin-top: 1rem;
}

.kawaii-emojis span {
    opacity: 0;
    transform: translateY(20px) scale(0);
}

.special-emojis.visible span {
    animation: morphBounceIn 0.5s var(--ease-bounce) both, emojiGlow 2s ease-in-out 0.6s infinite;
}

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes emojiGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
}

/* ========================================
   FINAL SLIDE
   ======================================== */

.final-illustration {
    margin-bottom: 1.5rem;
}

/* Final title morph */
.final-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s var(--ease-smooth) 0.2s;
}

.final-title.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Final message card morph */
.final-message-kawaii {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 3px solid rgba(255, 183, 197, 0.2);
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(5px);
    transition: all 0.9s var(--ease-smooth) 0.3s;
}

.final-message-kawaii.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.final-message-kawaii p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.95;
    color: var(--text-dark);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.7s var(--ease-smooth);
}

.final-message-kawaii.visible p:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.final-message-kawaii.visible p:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
.final-message-kawaii.visible p:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }

.final-message-kawaii p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-family: var(--font-title) !important;
    font-size: clamp(1.5rem, 4vw, 2.2rem) !important;
    font-weight: 600;
    color: var(--sakura-pink) !important;
}

/* Signature morph */
.signature-kawaii {
    margin: 1.5rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-smooth) 0.8s;
}

.signature-kawaii.visible {
    opacity: 1;
    transform: translateY(0);
}

.signature-heart {
    font-size: 2.5rem;
}

.signature-heart.visible {
    animation: heartFloat 2s ease-in-out infinite;
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

.signature-name {
    display: block;
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

.signature-year {
    display: block;
    font-size: 1rem;
    color: var(--text-medium);
    letter-spacing: 2px;
}

/* Final decorations morph */
.final-decorations {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.deco-item {
    font-size: 2rem;
    opacity: 0;
    transform: scale(0);
}

/* ========================================
   KAWAII FLOATING ELEMENTS - ENHANCED
   ======================================== */

.kawaii-float {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    will-change: transform, opacity;
}

/* Multiple float animation variants */
@keyframes kawaiiFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    5% { 
        opacity: 0.7;
        transform: translateY(90vh) translateX(10px) rotate(20deg) scale(0.8);
    }
    25% {
        transform: translateY(70vh) translateX(-15px) rotate(90deg) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translateY(45vh) translateX(20px) rotate(180deg) scale(1.1);
    }
    75% {
        transform: translateY(20vh) translateX(-10px) rotate(270deg) scale(1);
    }
    95% { opacity: 0.5; }
    100% {
        transform: translateY(-100px) translateX(15px) rotate(360deg) scale(0.7);
        opacity: 0;
    }
}

@keyframes kawaiiFloatWiggle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    25% { transform: translateY(70vh) translateX(30px) rotate(45deg); }
    50% { transform: translateY(40vh) translateX(-20px) rotate(-30deg); }
    75% { transform: translateY(15vh) translateX(25px) rotate(60deg); }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-50px) translateX(-10px) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes kawaiiFloatSpiral {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.3);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    100% {
        transform: translateY(-100px) translateX(calc(sin(360deg) * 50px)) rotate(720deg) scale(1);
        opacity: 0;
    }
}

/* Petal specific animation */
@keyframes petalFall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    25% { transform: translateY(25vh) translateX(30px) rotate(90deg); }
    50% { transform: translateY(50vh) translateX(-20px) rotate(180deg); }
    75% { transform: translateY(75vh) translateX(40px) rotate(270deg); }
    100% {
        transform: translateY(100vh) translateX(10px) rotate(360deg);
        opacity: 0;
    }
}

/* Sparkle specific animation */
@keyframes sparkleFloat {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: scale(1.2) rotate(72deg);
        opacity: 1;
    }
    40% {
        transform: scale(0.8) rotate(144deg);
        opacity: 0.6;
    }
    60% {
        transform: scale(1.3) rotate(216deg);
        opacity: 1;
    }
    80% {
        transform: scale(0.9) rotate(288deg);
        opacity: 0.5;
    }
}

/* Apply different animations based on element type */
.kawaii-float.petal {
    animation: petalFall linear infinite;
}

.kawaii-float.sparkle {
    animation: sparkleFloat ease-in-out infinite;
}

.kawaii-float.heart {
    animation: kawaiiFloatWiggle linear infinite;
}

.kawaii-float.star {
    animation: kawaiiFloat linear infinite;
}

/* Trail effect for elements */
.kawaii-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.3;
    filter: blur(4px);
    transform: translateY(8px) scale(0.8);
    z-index: -1;
}

/* ========================================
   ENHANCED BACKGROUND GRADIENT ANIMATION
   ======================================== */

@keyframes backgroundGradientShift {
    0%, 100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 50% 100%;
        filter: hue-rotate(5deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(0deg);
    }
    75% {
        background-position: 50% 0%;
        filter: hue-rotate(-5deg);
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--sakura-light) 0%, var(--baby-blue-light) 50%, var(--mint-light) 100%);
    background-size: 200% 200%;
    animation: backgroundGradientShift 30s ease-in-out infinite;
    line-height: 1.7;
}

/* ========================================
   SPARKLE LAYER - Background Decoration
   ======================================== */

.kawaii-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 10% 20%, rgba(255, 215, 0, 0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 30% 60%, rgba(255, 183, 197, 0.3) 50%, transparent 50%),
        radial-gradient(3px 3px at 50% 30%, rgba(255, 215, 0, 0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 70%, rgba(168, 216, 234, 0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 215, 0, 0.3) 50%, transparent 50%),
        radial-gradient(3px 3px at 20% 80%, rgba(255, 183, 197, 0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 10%, rgba(184, 232, 216, 0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 40% 90%, rgba(255, 215, 0, 0.4) 50%, transparent 50%);
    animation: sparkleLayerTwinkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sparkleLayerTwinkle {
    0%, 100% { opacity: 0.6; }
    25% { opacity: 0.9; }
    50% { opacity: 0.5; }
    75% { opacity: 0.8; }
}

/* ========================================
   NEW YEAR MESSAGE
   ======================================== */

.new-year-celebration {
    text-align: center;
    animation: morphReveal 0.8s var(--ease-smooth);
}

.new-year-celebration h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* ========================================
   CORNER DECORATIONS
   ======================================== */

.slide-corner {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    z-index: 10;
    animation: cornerFadeIn 1s var(--ease-smooth) forwards;
    pointer-events: none;
}

.top-left-corner {
    top: 20px;
    left: 20px;
    animation-delay: 0.8s;
}

.top-right-corner {
    top: 20px;
    right: 20px;
    animation-delay: 1s;
}

.bottom-left-corner {
    bottom: 20px;
    left: 20px;
    animation-delay: 1.2s;
}

.bottom-right-corner {
    bottom: 20px;
    right: 20px;
    animation-delay: 1.4s;
}

@keyframes cornerFadeIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
}

/* Corner decorations float animation */
.slide-corner {
    animation: cornerFadeIn 1s var(--ease-smooth) forwards,
               cornerFloat 4s ease-in-out 1.5s infinite;
}

@keyframes cornerFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(5deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
}

.top-left-corner { animation-delay: 0.8s, 2.3s; }
.top-right-corner { animation-delay: 1s, 2.5s; }
.bottom-left-corner { animation-delay: 1.2s, 2.7s; }
.bottom-right-corner { animation-delay: 1.4s, 2.9s; }

/* ========================================
   HOVER EFFECTS FOR ALL INTERACTIVE ELEMENTS
   ======================================== */

/* Time block hover effect */
.time-block-inner {
    transition: transform 0.4s var(--ease-bounce), 
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.time-block:hover .time-block-inner {
    transform: translateY(-12px) scale(1.08) rotateX(5deg);
    box-shadow: 0 25px 60px rgba(255, 183, 197, 0.4);
    border-color: var(--sakura-pink);
}

/* Nav dot enhanced effects */
.nav-dot {
    transition: all 0.4s var(--ease-bounce);
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--sakura-pink);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.5);
}

.nav-dot:hover::before {
    opacity: 0.3;
    transform: scale(1);
}

.nav-dot.active::before {
    opacity: 0.4;
    transform: scale(1.2);
    animation: navDotPulse 2s ease-in-out infinite;
}

@keyframes navDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 0.2; }
}

/* Signature hover effect */
.signature-kawaii:hover .signature-heart {
    animation: heartBurst 0.6s var(--ease-bounce);
}

@keyframes heartBurst {
    0% { transform: scale(1); }
    30% { transform: scale(1.4) rotate(-10deg); }
    60% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Final decorations hover */
.final-decorations .deco-item {
    transition: transform 0.3s var(--ease-bounce);
    cursor: default;
}

.final-decorations .deco-item:hover {
    animation: decoHover 0.5s var(--ease-bounce);
}

@keyframes decoHover {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.3) rotate(-15deg); }
    50% { transform: scale(1.2) rotate(15deg); }
    75% { transform: scale(1.25) rotate(-8deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ========================================
   CLICK RIPPLE EFFECT
   ======================================== */

.click-ripple {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 183, 197, 0.4) 0%, transparent 70%);
    animation: rippleExpand 0.6s var(--ease-smooth) forwards;
    z-index: 9999;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
        margin-left: -75px;
        margin-top: -75px;
    }
}

/* ========================================
   MOUSE PARALLAX EFFECT STYLES
   ======================================== */

.parallax-container {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.parallax-layer {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.parallax-layer-1 { --parallax-depth: 0.02; }
.parallax-layer-2 { --parallax-depth: 0.04; }
.parallax-layer-3 { --parallax-depth: 0.06; }

/* Sparkle Out Animation for SVG effects */
@keyframes sparkleOut {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(cos(var(--angle)) * 80px), 
            calc(sin(var(--angle)) * 80px)
        ) scale(1.5) rotate(180deg);
        opacity: 0;
    }
}

/* Petal Burst Animation */
@keyframes petalBurst {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(cos(var(--angle)) * 120px), 
            calc(sin(var(--angle)) * 100px + 50px)
        ) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* SVG Animated State */
.svg-animated {
    animation: gentleBob 4s ease-in-out infinite !important;
}

/* Enhanced illustration transitions */
.svg-illustration,
.svg-clock {
    transition: transform 0.15s ease-out, filter 0.3s ease;
    will-change: transform;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    /* Disable expensive effects on mobile */
    .kawaii-float {
        animation-duration: 25s !important; /* Slower = less GPU work */
    }
    
    .kawaii-clouds,
    .slide-corner {
        display: none !important; /* Hide decorations */
    }
    
    /* Simplify animations on mobile */
    .morph-element {
        transition-duration: 0.4s !important;
    }
    
    .slide-nav {
        right: 10px;
        gap: 8px;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .nav-dot::after,
    .nav-dot::before {
        display: none;
    }
    
    .slide-content {
        padding: 1.2rem;
        padding-top: 2rem;
    }
    
    /* Title adjustments */
    .main-title .title-line {
        font-size: 2rem;
    }
    
    .title-year .year-char {
        font-size: 3rem;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .countdown-timer {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .time-block-inner {
        padding: 0.8rem 1rem;
        min-width: 60px;
    }
    
    .time-value {
        font-size: 1.6rem;
    }
    
    .time-label {
        font-size: 0.65rem;
    }
    
    .time-separator {
        gap: 4px;
        padding-bottom: 15px;
        margin: 0 2px;
    }
    
    .sep-dot {
        width: 5px;
        height: 5px;
    }
    
    .wish-card-kawaii,
    .final-message-kawaii {
        padding: 1.2rem;
        border-radius: 16px;
        margin: 0 0.5rem;
    }
    
    .wish-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }
    
    .card-decoration {
        font-size: 0.9rem;
    }
    
    .card-decoration.top-left,
    .card-decoration.top-right {
        top: 8px;
    }
    
    .card-decoration.bottom-left,
    .card-decoration.bottom-right {
        bottom: 8px;
    }
    
    .card-decoration.top-left,
    .card-decoration.bottom-left {
        left: 10px;
    }
    
    .card-decoration.top-right,
    .card-decoration.bottom-right {
        right: 10px;
    }
    
    .svg-illustration {
        width: 100px;
        height: 100px;
    }
    
    .wish-illustration,
    .countdown-illustration,
    .welcome-illustration,
    .final-illustration {
        margin-bottom: 1rem;
    }
    
    .kawaii-emojis {
        font-size: 1.3rem;
        gap: 0.6rem;
        margin-top: 1rem;
    }
    
    .wish-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .scroll-hint {
        bottom: 20px;
    }
    
    .scroll-hint-text {
        font-size: 0.7rem;
    }
    
    .scroll-mouse {
        width: 20px;
        height: 32px;
    }
    
    /* Gift box smaller on mobile */
    .gift-box-container {
        bottom: 15px;
        left: 15px;
        transform: scale(0.8);
        transform-origin: bottom left;
    }
    
    /* Interactive tooltip */
    .interactive-tooltip {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    /* Greeting text */
    .greeting-text {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .name-highlight {
        font-size: 1.5rem;
    }
    
    /* Final slide */
    .final-title {
        font-size: 1.3rem;
    }
    
    .final-message-kawaii p {
        font-size: 0.9rem;
    }
    
    .signature-kawaii {
        font-size: 0.9rem;
    }
    
    .final-decorations {
        gap: 0.8rem;
    }
    
    .deco-item {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    /* Further reduce animations on small screens */
    .kawaii-float {
        opacity: 0.3 !important;
        animation-duration: 30s !important;
    }
    
    /* Reduce max number of floating elements via CSS */
    .kawaii-float:nth-child(n+8) {
        display: none !important;
    }
    
    .slide-content {
        padding: 1rem;
        padding-top: 1.5rem;
    }
    
    .main-title .title-line {
        font-size: 1.6rem;
    }
    
    .title-year .year-char {
        font-size: 2.5rem;
    }
    
    .time-block-inner {
        min-width: 50px;
        padding: 0.6rem 0.8rem;
    }
    
    .time-value {
        font-size: 1.4rem;
    }
    
    .time-label {
        font-size: 0.6rem;
    }
    
    .slide-title {
        font-size: 1.1rem;
    }
    
    .svg-illustration {
        width: 80px;
        height: 80px;
    }
    
    .wish-card-kawaii,
    .final-message-kawaii {
        padding: 1rem;
    }
    
    .wish-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .kawaii-emojis {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .final-decorations {
        gap: 0.6rem;
    }
    
    .deco-item {
        font-size: 1.2rem;
    }
    
    .greeting-text {
        font-size: 0.9rem;
    }
    
    .name-highlight {
        font-size: 1.3rem;
    }
    
    .from-text {
        font-size: 0.8rem;
    }
    
    /* Hide gift box on very small screens */
    .gift-box-container {
        transform: scale(0.7);
    }
    
    .gift-box-hint {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-snap-type: none;
    }
    
    .morph-element,
    .morph-fade-up,
    .morph-scale,
    .morph-pop {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ========================================
   SELECTION & SCROLLBAR
   ======================================== */

::selection {
    background: var(--sakura-pink);
    color: white;
}

::-moz-selection {
    background: var(--sakura-pink);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sakura-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--sakura-pink), var(--baby-blue));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--coral), var(--sakura-pink));
}

/* ========================================
   GIFT BOX EASTER EGG
   ======================================== */

.gift-box-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gift-box-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    animation: hintBounce 1.5s ease-in-out infinite;
}

.hint-arrow {
    font-size: 1.5rem;
    animation: arrowBounce 0.8s ease-in-out infinite;
}

.hint-text {
    font-size: 0.75rem;
    color: var(--text-medium);
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    font-weight: 600;
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-10deg); }
}

.gift-box {
    width: 60px;
    height: 60px;
    position: relative;
    transition: transform 0.3s var(--ease-bounce);
    animation: giftWiggle 3s ease-in-out infinite;
}

.gift-box:hover {
    transform: scale(1.15);
}

@keyframes giftWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.gift-body {
    width: 60px;
    height: 45px;
    background: linear-gradient(135deg, var(--sakura-pink), var(--coral));
    border-radius: 8px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 5px 20px rgba(255, 183, 197, 0.4);
    overflow: hidden;
}

.gift-ribbon-v {
    position: absolute;
    width: 12px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--gold), #FFE5B4, var(--gold));
}

.gift-ribbon-h {
    position: absolute;
    width: 100%;
    height: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, var(--gold), #FFE5B4, var(--gold));
}

.gift-lid {
    width: 66px;
    height: 18px;
    background: linear-gradient(135deg, var(--coral), var(--sakura-pink));
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: 0;
    left: -3px;
    box-shadow: 0 -2px 10px rgba(255, 153, 153, 0.3);
    transition: transform 0.4s var(--ease-bounce);
    transform-origin: bottom center;
}

.gift-box-container:hover .gift-lid {
    transform: rotateX(-30deg) translateY(-8px);
}

.gift-box-container.opened .gift-lid {
    transform: rotateX(-120deg) translateY(-20px);
    opacity: 0.8;
}

.lid-bow {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    animation: bowSpin 4s ease-in-out infinite;
}

@keyframes bowSpin {
    0%, 100% { transform: translateX(-50%) rotate(0deg) scale(1); }
    50% { transform: translateX(-50%) rotate(10deg) scale(1.1); }
}

/* Gift box opened state */
.gift-box-container.opened .gift-box {
    animation: giftShake 0.5s ease-in-out;
}

@keyframes giftShake {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
}

/* Hide hint when opened */
.gift-box-container.opened .gift-box-hint {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   INTERACTIVE TOOLTIPS
   ======================================== */

.interactive-tooltip {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-medium);
    z-index: 2500;
    pointer-events: none;
    animation: tooltipFloat 2s ease-in-out infinite;
    border: 2px solid var(--sakura-pink);
}

@keyframes tooltipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Interactive name highlight */
.name-highlight {
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
    position: relative;
}

.name-highlight::after {
    content: '✨';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.name-highlight:hover::after {
    opacity: 1;
    animation: sparkleHint 1s ease-in-out infinite;
}

@keyframes sparkleHint {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.3); }
}

@keyframes nameWiggle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

@keyframes gentleBob {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) translateY(-10px); }
}

.name-highlight:hover {
    color: var(--coral);
    text-shadow: 0 0 20px rgba(255, 183, 197, 0.5);
    transform: scale(1.05);
}

/* Year characters clickable */
.year-char {
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
}

.year-char:hover {
    transform: scale(1.2) translateY(-5px);
    filter: drop-shadow(0 5px 15px rgba(255, 183, 197, 0.5));
}

/* SVG illustrations clickable */
.svg-illustration {
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
}

.svg-illustration:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 10px 25px rgba(255, 183, 197, 0.3));
}

.svg-illustration:active {
    transform: scale(0.95);
}

/* ========================================
   SCROLL SNAP IMPROVEMENTS
   ======================================== */

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Ensure slides are exactly viewport height */
.slide {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
}
