/* ===========================
   Design Tokens
   =========================== */
:root {
    --gold-50: #FFFDF5;
    --gold-100: #FFF8E1;
    --gold-200: #FFECB3;
    --gold-300: #FFD54F;
    --gold-400: #FFCA28;
    --gold-500: #FFC107;
    --gold-600: #F9A825;

    --blue-50: #F0F7FF;
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    --blue-300: #93C5FD;
    --blue-400: #60A5FA;
    --blue-500: #5B9BD5;

    --cream: #FDF8F0;
    --warm-white: #FFFCF7;
    --warm-gray-100: #F5F0E8;
    --warm-gray-200: #E8E0D4;
    --warm-gray-500: #8C7E6E;
    --warm-gray-700: #5C4F3D;
    --warm-gray-900: #3D3428;

    --blush: #F8C8C8;
    --sage: #A8C5A0;

    --font-body: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-handwritten: 'Caveat', cursive;
    --font-tamil: 'Mukta Malar', 'Noto Serif Tamil', -apple-system, BlinkMacSystemFont, 'Tamil Sangam MN', 'Latha', serif;

    --section-padding: 120px;
    --container-max: 800px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--warm-white);
    color: var(--warm-gray-700);
    line-height: 1.8;
    overflow-x: hidden;
    cursor: default;
}

button, .btn, .memory-card, input, a, .camera-btn {
    touch-action: manipulation;
}

/* ===========================
   Canvas Background
   =========================== */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===========================
   Celebration Canvas
   =========================== */
.celebration-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.celebration-canvas.active {
    opacity: 1;
}

/* ===========================
   Utility
   =========================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.handwritten {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    color: var(--warm-gray-500);
    font-weight: 500;
}

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

.trail-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-400);
    pointer-events: none;
    opacity: 0.6;
    animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(0); opacity: 0; }
}

/* ===========================
   Scroll Reveal Animations
   =========================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Fade-in (hero)
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1.8s; }
.delay-3 { animation-delay: 2.6s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

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

.butterfly {
    position: absolute;
    opacity: 0;
    animation: flutter var(--duration, 20s) linear infinite;
    animation-delay: var(--delay, 0s);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.butterfly-svg {
    animation: wingFlap 0.4s ease-in-out infinite alternate;
}

@keyframes wingFlap {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0.6); }
}

@keyframes flutter {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    5% { opacity: 0.45; }
    25% {
        transform: translate(var(--dx1), var(--dy1)) rotate(15deg) scale(1.1);
    }
    50% {
        transform: translate(var(--dx2), var(--dy2)) rotate(-10deg) scale(0.9);
    }
    75% {
        transform: translate(var(--dx3), var(--dy3)) rotate(20deg) scale(1.05);
    }
    95% { opacity: 0.45; }
    100% {
        transform: translate(var(--dx4), -120vh) rotate(0deg) scale(1);
        opacity: 0;
    }
}

/* ===========================
   Falling Petals
   =========================== */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -30px;
    width: 12px;
    height: 16px;
    background: var(--gold-300);
    border-radius: 50% 50% 50% 0;
    opacity: 0;
    animation: petalFall var(--fall-duration, 12s) linear infinite;
    animation-delay: var(--fall-delay, 0s);
}

@keyframes petalFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    5% { opacity: 0.18; }
    50% {
        transform: translateY(55vh) rotate(180deg) translateX(var(--sway, 50px));
    }
    95% { opacity: 0.1; }
    100% {
        transform: translateY(110vh) rotate(360deg) translateX(calc(var(--sway, 50px) * -1));
        opacity: 0;
    }
}

/* ===========================
   Hero Section
   =========================== */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(
        180deg,
        var(--gold-100) 0%,
        var(--warm-white) 50%,
        var(--blue-50) 100%
    );
    text-align: center;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-400);
    opacity: 0;
    animation: particleFloat var(--p-duration, 6s) ease-in-out infinite;
    animation-delay: var(--p-delay, 0s);
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    30% {
        opacity: 0.6;
        transform: translateY(-30px) scale(1);
    }
    70% {
        opacity: 0.4;
        transform: translateY(-80px) scale(0.8);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(255, 213, 79, 0.18) 0%,
        transparent 70%
    );
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
}

.sunflower-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.sunflower-icon {
    font-size: 4.5rem;
    filter: drop-shadow(0 4px 16px rgba(255, 193, 7, 0.4));
    animation: sunflowerSpin 8s ease-in-out infinite;
    display: inline-block;
}

@keyframes sunflowerSpin {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-5deg); }
}

.sunflower-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 213, 79, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.8; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--warm-gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    min-height: 1.3em;
}

.cursor-blink {
    animation: blink 0.8s step-end infinite;
    color: var(--gold-500);
    font-weight: 300;
}

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

.hero-subtitle {
    font-family: var(--font-handwritten);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--warm-gray-500);
    max-width: 500px;
    margin: 0 auto 60px;
}

/* Mouse scroll animation */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--warm-gray-500);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--warm-gray-500);
    border-radius: 13px;
    position: relative;
    opacity: 0.6;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--gold-500);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 2s ease-in-out infinite;
}

@keyframes mouseScroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ===========================
   Section Title Highlight
   =========================== */
.title-highlight {
    position: relative;
    display: inline;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -4px;
    right: -4px;
    height: 12px;
    background: linear-gradient(90deg, var(--gold-200), var(--blue-200));
    border-radius: 4px;
    z-index: -1;
    opacity: 0.5;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.scroll-reveal.visible .title-highlight::after {
    transform: scaleX(1);
}

/* ===========================
   Notice Cards Section
   =========================== */
.section-notice {
    padding: var(--section-padding) 0;
    background: var(--warm-white);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--warm-gray-900);
    text-align: center;
    margin-bottom: 60px;
}

.notice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.notice-card {
    background: white;
    border: 1px solid var(--warm-gray-200);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
    cursor: default;
}

.card-shine {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 213, 79, 0.08) 50%,
        transparent 70%
    );
    transition: transform 0.6s ease;
    pointer-events: none;
}

.notice-card:hover .card-shine {
    transform: translate(60%, 60%);
}

.notice-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.12),
                0 8px 20px rgba(0, 0, 0, 0.04);
    border-color: hsla(var(--card-hue, 45), 80%, 70%, 0.5);
}

.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    transition: border-color 0.5s ease, transform 0.5s ease;
}

.card-corner-tl {
    top: 8px;
    left: 8px;
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 0;
}

.card-corner-br {
    bottom: 8px;
    right: 8px;
    border-bottom-color: transparent;
    border-right-color: transparent;
}

.notice-card:hover .card-corner-tl {
    border-top-color: var(--gold-300);
    border-left-color: var(--gold-300);
    transform: translate(-2px, -2px);
}

.notice-card:hover .card-corner-br {
    border-bottom-color: var(--gold-300);
    border-right-color: var(--gold-300);
    transform: translate(2px, 2px);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.notice-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.notice-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--warm-gray-700);
    font-weight: 300;
}

/* ===========================
   Memory Lane - Photo Gallery
   =========================== */
.section-memories {
    padding: var(--section-padding) 0;
    background: linear-gradient(
        180deg,
        var(--warm-white) 0%,
        var(--cream) 30%,
        var(--gold-50) 70%,
        var(--cream) 100%
    );
    overflow: hidden;
}

.memories-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 48px;
    font-size: 1.4rem;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.memory-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.6s ease;
    width: 100%;
    aspect-ratio: 4 / 5;
}

.memory-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15),
                0 8px 20px rgba(255, 193, 7, 0.1);
    z-index: 10;
}

/* ===========================
   Animated Art Cards (High-Quality SVG)
   =========================== */
.art-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 4 / 5;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.6s ease;
}

.art-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15),
                0 8px 25px rgba(255, 193, 7, 0.15);
    z-index: 10;
}

.art-card-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px 16px 44px 16px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
}

.art-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    text-align: center;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 75%, transparent 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 5;
    pointer-events: none;
}

.art-card-caption .handwritten {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--warm-gray-700);
    letter-spacing: 0.2px;
}

/* 1. Sunflower Art Card */
.art-sunflower {
    background: radial-gradient(circle at 50% 45%, #FFFDF0 0%, #FEF3C7 50%, #FDE68A 100%);
}

.sunbeam-rays {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(254, 240, 138, 0.6) 0%, rgba(253, 230, 138, 0) 70%);
    animation: sunbeamPulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}

.sunflower-glow-radial {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.25);
    filter: blur(20px);
    pointer-events: none;
}

.sunflower-art-svg {
    width: 74%;
    max-width: 175px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(217, 119, 6, 0.2));
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.art-sunflower:hover .sunflower-art-svg {
    transform: scale(1.08) rotate(4deg);
}

.rotating-halo {
    transform-origin: 80px 80px;
    animation: rotateHalo 35s linear infinite;
}

.petals-layer-1 {
    transform-origin: 80px 80px;
    animation: breatheFlower 4s ease-in-out infinite alternate;
}

.petals-layer-2 {
    transform-origin: 80px 80px;
    animation: breatheFlower 4s ease-in-out infinite alternate-reverse;
}

.art-card-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.sparkle-dot {
    position: absolute;
    color: #F59E0B;
    font-size: 1.1rem;
    animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle-dot.s1 { top: 18%; left: 20%; animation-delay: 0s; }
.sparkle-dot.s2 { top: 22%; right: 18%; animation-delay: 1s; font-size: 1.3rem; color: #D97706; }
.sparkle-dot.s3 { bottom: 28%; left: 16%; animation-delay: 2s; }

/* 2. Blue Morpho Butterfly Art Card */
.art-butterfly {
    background: radial-gradient(circle at 50% 40%, #F0F9FF 0%, #E0F2FE 50%, #C7D2FE 100%);
}

.butterfly-ambient-glow {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.25);
    filter: blur(24px);
    pointer-events: none;
}

.butterfly-3d-stage {
    perspective: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 2;
    animation: butterflyBob 3.5s ease-in-out infinite;
}

.butterfly-flight-svg {
    width: 76%;
    max-width: 185px;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-butterfly:hover .butterfly-flight-svg {
    transform: scale(1.1) rotate(-3deg);
}

.wing-left {
    transform-origin: 80px 65px;
    animation: wingFlapLeft 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.wing-right {
    transform-origin: 80px 65px;
    animation: wingFlapRight 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.fairy-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fairy-p {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #38BDF8;
    box-shadow: 0 0 8px #38BDF8;
    animation: fairyFloat 4s ease-in-out infinite;
}

.fairy-p.fp1 { top: 25%; left: 18%; animation-delay: 0.2s; }
.fairy-p.fp2 { top: 35%; right: 22%; animation-delay: 1.4s; width: 5px; height: 5px; background: #818CF8; }
.fairy-p.fp3 { bottom: 32%; left: 24%; animation-delay: 2.3s; }
.fairy-p.fp4 { top: 60%; right: 16%; animation-delay: 0.8s; }

/* 3. Beating Heart Art Card */
.art-heart {
    background: radial-gradient(circle at 50% 45%, #FFF1F2 0%, #FFE4E6 50%, #FECDD3 100%);
}

.heart-ambient-light {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.2);
    filter: blur(25px);
    pointer-events: none;
}

.heart-pulse-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 2;
}

.heart-wave {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1.5px solid rgba(244, 63, 94, 0.4);
    animation: heartWaveSpread 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
    pointer-events: none;
}

.heart-wave.wave-2 {
    animation-delay: 1.1s;
}

.heart-beating-svg {
    width: 70%;
    max-width: 170px;
    height: auto;
    transform-origin: 80px 70px;
    animation: heartbeatPump 1.6s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    transition: transform 0.4s ease;
}

.art-heart:hover .heart-beating-svg {
    animation-duration: 1.1s;
}

.orbiting-sparkles {
    position: absolute;
    inset: -15px;
    animation: orbitRotate 18s linear infinite;
    pointer-events: none;
}

.orbit-star {
    position: absolute;
    color: #F43F5E;
    font-size: 1.1rem;
}

.orbit-star.o1 { top: 0; left: 50%; transform: translateX(-50%); color: #FB7185; }
.orbit-star.o2 { bottom: 10%; right: 12%; font-size: 0.95rem; }
.orbit-star.o3 { bottom: 10%; left: 12%; font-size: 1.2rem; color: #E11D48; }
.orbit-star.o4 { top: 25%; right: 5%; font-size: 0.85rem; }

/* 4. Golden Crescent Moon & Constellation (MeethaShree 🌙) */
.art-moon {
    background: radial-gradient(circle at 65% 35%, #1E1B4B 0%, #0F172A 60%, #020617 100%);
    box-shadow: inset 0 0 35px rgba(250, 204, 21, 0.08);
}

.art-moon .art-card-inner {
    border-color: rgba(254, 240, 138, 0.2);
}

.art-moon .art-card-caption {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 75%, transparent 100%);
}

.moonlight-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.18);
    filter: blur(30px);
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, #FEF08A, transparent);
    opacity: 0;
    transform: rotate(-35deg);
    animation: shootStar 4.5s ease-in-out infinite;
    pointer-events: none;
}

.moon-sky-svg {
    width: 74%;
    max-width: 175px;
    height: auto;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-moon:hover .moon-sky-svg {
    transform: scale(1.08);
}

.glowing-crescent {
    animation: moonBreathe 5s ease-in-out infinite alternate;
}

.twinkle-star {
    transform-box: fill-box;
    transform-origin: center;
    animation: twinkleStar 3s ease-in-out infinite alternate;
}

.twinkle-star.t1 { animation-delay: 0.2s; }
.twinkle-star.t2 { animation-delay: 0.8s; }
.twinkle-star.t3 { animation-delay: 1.4s; }
.twinkle-star.t4 { animation-delay: 2.0s; }
.twinkle-star.t5 { animation-delay: 2.6s; }

/* 5. Golden Infinity Heart Loop */
.art-infinity {
    background: radial-gradient(circle at 50% 45%, #FFFDF5 0%, #FEF3C7 50%, #FDE68A 100%);
}

.infinity-golden-aura {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    filter: blur(26px);
    pointer-events: none;
}

.infinity-svg {
    width: 75%;
    max-width: 180px;
    height: auto;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-infinity:hover .infinity-svg {
    transform: scale(1.08);
}

.inf-path-flow {
    stroke-dasharray: 60 180;
    stroke-dashoffset: 0;
    animation: flowRibbon 5s linear infinite;
}

.bokeh-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bokeh {
    position: absolute;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.35);
    filter: blur(6px);
    animation: bokehFloat 5s ease-in-out infinite alternate;
}

.bokeh.b1 { width: 32px; height: 32px; top: 16%; left: 16%; animation-delay: 0s; }
.bokeh.b2 { width: 22px; height: 22px; bottom: 25%; right: 18%; animation-delay: 1.8s; }
.bokeh.b3 { width: 26px; height: 26px; top: 40%; right: 14%; animation-delay: 3s; }

/* Legacy fallback */
.emoji-card {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border: 2px dashed #bfdbfe;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    padding: 40px 20px;
    width: 100%;
    aspect-ratio: 4 / 5;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
    cursor: pointer;
    box-sizing: border-box;
}

/* ===========================
   Art Card Keyframes
   =========================== */
@keyframes sunbeamPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes rotateHalo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes breatheFlower {
    0% { transform: scale(0.97); }
    100% { transform: scale(1.03); }
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(0.85); opacity: 0.4; }
    50% { transform: translateY(-8px) scale(1.25); opacity: 1; }
}

@keyframes butterflyBob {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes wingFlapLeft {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(48deg); }
}

@keyframes wingFlapRight {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(-48deg); }
}

@keyframes fairyFloat {
    0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.3; }
    50% { transform: translateY(-12px) scale(1.3); opacity: 0.95; }
}

@keyframes heartWaveSpread {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0; }
}

@keyframes heartbeatPump {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1.02); }
    42% { transform: scale(1.16); }
    65% { transform: scale(1); }
}

@keyframes orbitRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shootStar {
    0%, 75% { transform: translate(0, 0) rotate(-35deg); opacity: 0; }
    80% { opacity: 1; }
    90% { transform: translate(-80px, 80px) rotate(-35deg); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes moonBreathe {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.4)); }
    100% { transform: scale(1.02); filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.7)); }
}

@keyframes twinkleStar {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.35); }
}

@keyframes flowRibbon {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -240; }
}

@keyframes bokehFloat {
    0% { transform: translate(0, 0); opacity: 0.4; }
    100% { transform: translate(6px, -10px); opacity: 0.85; }
}

/* ===========================
   Tamil Signoff Styles
   =========================== */
.confession-tamil-block {
    margin-top: 36px;
    margin-bottom: 8px;
    display: flex;
    justify-content: flex-end;
}

.tamil-seal {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 14px 26px;
    background: rgba(255, 253, 245, 0.85);
    border: 1px solid rgba(255, 213, 79, 0.45);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(92, 79, 61, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tamil-seal:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(249, 168, 37, 0.15);
}

.tamil-lead {
    font-family: var(--font-tamil);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--warm-gray-700);
    letter-spacing: 0.5px;
    line-height: 1.5;
    opacity: 0.85;
}

.tamil-name {
    font-family: var(--font-tamil);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gold-600);
    letter-spacing: 0.5px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(249, 168, 37, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-tamil-dedication {
    margin: 12px 0 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.footer-tamil-dedication .tamil-lead {
    font-size: 1.05rem;
    opacity: 0.8;
}

.footer-tamil-dedication .tamil-name {
    font-size: 1.3rem;
    color: var(--gold-600);
}

.memory-large, .memory-tall, .memory-wide {
    /* Kept for backwards compatibility but not needed in column layout */
}

.memory-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
}

.memory-img-wrap img, .memory-img-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Warm cinematic filter to unify all photos */
    filter: sepia(0.2) contrast(1.05) saturate(1.1) brightness(1.02) hue-rotate(-2deg);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.5s ease;
    display: block;
}

.memory-card:hover .memory-img-wrap img,
.memory-card:hover .memory-img-wrap video {
    transform: scale(1.05);
    /* Reveal original colors slightly brightened on hover */
    filter: sepia(0) contrast(1.1) saturate(1.2) brightness(1.05) hue-rotate(0deg);
}

.memory-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(61, 52, 40, 0.7) 0%,
        rgba(61, 52, 40, 0.1) 40%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.memory-card:hover .memory-overlay {
    opacity: 1;
}

.memory-caption {
    font-family: var(--font-handwritten);
    font-size: 1.4rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.memory-card:hover .memory-caption {
    transform: translateY(0);
}

/* Photo polaroid shine effect */
.memory-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.8s ease;
    pointer-events: none;
}

.memory-card:hover .memory-img-wrap::after {
    left: 150%;
}

/* ===========================
   Image Sections - Enhanced
   =========================== */
.section-image,
.section-car {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--cream);
    overflow: hidden;
}

.parallax-image-wrapper {
    max-width: 900px;
    width: 100%;
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1),
                0 10px 30px rgba(0, 0, 0, 0.05);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    z-index: 2;
    pointer-events: none;
}

.image-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    z-index: 3;
    pointer-events: none;
    animation: imageShine 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes imageShine {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-frame:hover .feature-image {
    transform: scale(1.05);
}

.image-caption {
    text-align: center;
    margin-top: 28px;
    padding: 0 20px;
}

.image-caption .handwritten {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--warm-gray-500);
    line-height: 1.6;
}

/* Typewriter on scroll */
.typewrite-cursor {
    animation: blink 0.8s step-end infinite;
    color: var(--gold-500);
    font-weight: 300;
}

/* ===========================
   Confession Section - Enhanced
   =========================== */
.section-confession {
    padding: var(--section-padding) 0;
    background: linear-gradient(
        180deg,
        var(--cream) 0%,
        var(--gold-50) 50%,
        var(--cream) 100%
    );
}

.confession-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.confession-line {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--line-delay, 0s);
    margin-bottom: 20px;
}

.confession-content.visible .confession-line {
    opacity: 1;
    transform: translateY(0);
}

.confession-text {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 400;
    line-height: 2;
    color: var(--warm-gray-700);
}

.confession-text em {
    font-style: italic;
    color: var(--gold-600);
    font-weight: 600;
    position: relative;
}

.confession-text em::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold-400);
    border-radius: 1px;
    animation: underlinePulse 2s ease-in-out infinite;
}

@keyframes underlinePulse {
    0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* ===========================
   Question Section - Enhanced
   =========================== */
.section-question {
    padding: var(--section-padding) 0 80px;
    background: linear-gradient(
        180deg,
        var(--cream) 0%,
        var(--blue-50) 30%,
        var(--gold-50) 100%
    );
    text-align: center;
    position: relative;
    overflow: hidden;
}

.question-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sunflower-divider {
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.divider-line {
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
    opacity: 0;
    transition: opacity 0.8s ease 0.5s, width 0.8s ease 0.5s;
}

.scroll-reveal.visible .divider-line {
    opacity: 1;
    width: 80px;
}

.sunflower-accent {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.25);
    animation: sunflowerSpin 6s ease-in-out infinite;
    border: 3px solid white;
}

.question-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: var(--warm-gray-900);
    margin-bottom: 24px;
}

.question-text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--warm-gray-700);
    line-height: 2.2;
    margin-bottom: 48px;
}

.subtle-note {
    font-size: 0.9em;
    color: var(--warm-gray-500);
    font-style: italic;
}

/* ===========================
   Buttons - Enhanced
   =========================== */
.response-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border: none;
    border-radius: 60px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.btn-yes {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500), var(--gold-600));
    color: var(--warm-gray-900);
    box-shadow: 0 4px 24px rgba(255, 193, 7, 0.35),
                0 2px 8px rgba(255, 193, 7, 0.2);
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-yes:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.45),
                0 4px 16px rgba(255, 193, 7, 0.3);
}

.btn-yes:active {
    transform: translateY(0) scale(0.97);
}

.btn-no {
    background: white;
    color: var(--warm-gray-700);
    border: 2px solid var(--warm-gray-200);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-no:hover {
    transform: translateY(-4px);
    border-color: var(--blush);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    background: #FFF5F5;
}

.btn-no:active {
    transform: translateY(0) scale(0.97);
}

.btn-emoji {
    font-size: 1.4rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover .btn-emoji {
    transform: scale(1.3) rotate(15deg);
}

.btn-label {
    position: relative;
    z-index: 1;
}

.no-pressure {
    font-size: 0.9rem;
    color: var(--warm-gray-500);
    font-style: italic;
    line-height: 1.8;
    max-width: 450px;
    margin: 0 auto;
}

/* ===========================
   Response Sections
   =========================== */
.section-response {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-yes {
    background: linear-gradient(
        180deg,
        var(--gold-100) 0%,
        var(--warm-white) 100%
    );
}

.section-no {
    background: linear-gradient(
        180deg,
        var(--blue-50) 0%,
        var(--cream) 50%,
        var(--warm-white) 100%
    );
}

.response-step {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.response-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--warm-gray-900);
    margin-bottom: 24px;
}

.glowing-text {
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 193, 7, 0); }
    50% { text-shadow: 0 0 30px rgba(255, 193, 7, 0.3), 0 0 60px rgba(255, 193, 7, 0.1); }
}

.response-text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--warm-gray-700);
    line-height: 2;
    max-width: 500px;
    margin: 0 auto 32px;
}

.btn-pick-date {
    margin: 0 auto;
}

/* ===========================
   Celebration Effects
   =========================== */
.celebration-title {
    animation: celebrationBounce 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               textGlow 2s ease-in-out infinite;
}

@keyframes celebrationBounce {
    0% { opacity: 0; transform: scale(0.3) translateY(40px); }
    50% { transform: scale(1.15) translateY(-10px); }
    70% { transform: scale(0.95) translateY(0); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.celebration-text {
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Floating celebration emojis */
.floating-emojis {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.floating-emoji {
    position: fixed;
    animation: emojiFloat 3s ease-out forwards;
}

@keyframes emojiFloat {
    0% { opacity: 1; transform: translateY(0) scale(0) rotate(0deg); }
    20% { transform: translateY(-40px) scale(1.3) rotate(20deg); }
    100% { opacity: 0; transform: translateY(-250px) scale(0.4) rotate(60deg); }
}

/* Heart burst for yes celebration */
.heart-burst {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 101;
    animation: heartBurst 1.5s ease-out forwards;
}

@keyframes heartBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0) rotate(0deg);
    }
    30% {
        opacity: 1;
        transform: translate(var(--hx), var(--hy)) scale(1.5) rotate(var(--hr));
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--hx) * 2), calc(var(--hy) * 1.5 - 100px)) scale(0.5) rotate(calc(var(--hr) * 2));
    }
}

/* ===========================
   No Response Section
   =========================== */
.no-response-content {
    max-width: 550px;
    animation: noResponseFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes noResponseFadeIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.no-emoji-wrap {
    margin-bottom: 24px;
}

.no-emoji {
    font-size: 4rem;
    display: inline-block;
    animation: gentleSway 3s ease-in-out infinite;
    filter: grayscale(0.3);
}

@keyframes gentleSway {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.05); }
}

.no-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--warm-gray-900);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.no-text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--warm-gray-700);
    line-height: 2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.no-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-300), var(--blue-300));
    margin: 32px auto;
    border-radius: 1px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.no-text-secondary {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--warm-gray-500);
    animation: fadeInUp 0.8s ease 1s both;
}

.no-text-final {
    font-family: var(--font-handwritten);
    font-size: 1.8rem;
    color: var(--warm-gray-700);
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 1.4s both;
}

/* ===========================
   Date Picker
   =========================== */
.date-picker-step {
    width: 100%;
}

.date-picker-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08),
                0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--warm-gray-200);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.date-picker-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-400), var(--blue-400), var(--gold-400));
    background-size: 200% 100%;
    animation: gradientSlide 3s ease-in-out infinite;
}

@keyframes gradientSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.date-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--warm-gray-900);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-emoji {
    animation: sunflowerSpin 4s ease-in-out infinite;
    display: inline-block;
}

.date-subtitle {
    font-family: var(--font-handwritten);
    font-size: 1.2rem;
    color: var(--warm-gray-500);
    margin-bottom: 32px;
}

.date-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--warm-gray-700);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.label-icon {
    font-size: 1rem;
}

.styled-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--warm-gray-200);
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--warm-gray-900);
    background: var(--warm-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.styled-input:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
    transform: translateY(-1px);
}

.styled-input::placeholder {
    color: var(--warm-gray-500);
    opacity: 0.6;
}

.styled-textarea {
    resize: none;
    min-height: 70px;
}

select.styled-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238C7E6E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.btn-calendar {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 16px 32px;
}

.calendar-note {
    font-size: 0.8rem;
    color: var(--warm-gray-500);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* ===========================
   Confirmation - Checkmark
   =========================== */
.confirmation-check {
    margin-bottom: 32px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--gold-500);
    stroke-miterlimit: 10;
    margin: 0 auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--gold-400);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--gold-600);
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.date-summary {
    background: var(--gold-50);
    border: 1px solid var(--gold-200);
    border-radius: 16px;
    padding: 24px 28px;
    margin-top: 24px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.date-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--warm-gray-700);
}

.date-summary-item + .date-summary-item {
    border-top: 1px solid var(--gold-200);
}

.date-summary-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 40px 24px;
    text-align: center;
    background: var(--warm-white);
    border-top: 1px solid var(--warm-gray-200);
    position: relative;
}

.footer-butterfly {
    font-size: 1.5rem;
    margin-bottom: 8px;
    animation: sunflowerSpin 5s ease-in-out infinite;
    display: inline-block;
}

.footer .handwritten {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* ===========================
   Responsive Design & Mobile/iPhone 13 Optimizations
   =========================== */

/* Touch-specific optimizations for all mobile/touch devices */
@media (hover: none) {
    /* Always display memory photo captions subtly on touch screens */
    .memory-overlay {
        opacity: 1 !important;
        background: linear-gradient(
            0deg,
            rgba(20, 16, 10, 0.72) 0%,
            rgba(20, 16, 10, 0.22) 42%,
            transparent 100%
        ) !important;
        padding: 10px 8px !important;
    }

    .memory-caption {
        font-size: 1.05rem !important;
        color: #FFFDF5 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
    }

    /* Fast tactile tap feedback */
    .btn:active,
    .camera-btn:active {
        transform: scale(0.96) !important;
    }
}

/* Tablets and small laptops (<= 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 20px;
    }

    .container-wide {
        padding: 0 16px;
    }

    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .notice-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Large Phones & Compact Tablets (<= 640px) */
@media (max-width: 640px) {
    :root {
        --section-padding: 68px;
    }

    .notice-card {
        padding: 24px 20px;
    }

    .response-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 36px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 16px 28px;
    }

    .feature-image {
        border-radius: 16px;
    }

    .sunflower-accent {
        width: 90px;
        height: 90px;
    }

    .image-frame {
        border-radius: 16px;
        height: 260px;
    }

    .date-picker-container {
        padding: 30px 20px;
        border-radius: 22px;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .divider-line {
        display: none;
    }

    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* iPhone 13 / iPhone 12, 14, 15 & Modern Mobile Screens (<= 428px) */
@media screen and (max-width: 428px) {
    :root {
        --section-padding: 54px;
    }

    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .container {
        padding: 0 16px;
    }

    .container-wide {
        padding: 0 10px;
    }

    /* Hero section on iPhone 13 with dynamic notch & toolbars */
    .section-hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 20px);
    }

    .sunflower-icon {
        font-size: 3.2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.7rem);
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        line-height: 1.6;
        margin: 0 auto 32px;
        padding: 0 4px;
    }

    .scroll-hint {
        margin-top: auto;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        font-size: 0.75rem;
    }

    .mouse {
        width: 22px;
        height: 36px;
    }

    /* Notice section */
    .section-notice {
        padding: 54px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 32px;
        line-height: 1.35;
    }

    .notice-cards {
        gap: 12px;
    }

    .notice-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .notice-card .card-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .notice-card p {
        font-size: 1rem;
        line-height: 1.55;
    }

    /* Photo Grid & Art Cards on iPhone 13 */
    .section-memories {
        padding: 54px 0;
    }

    .memories-subtitle {
        font-size: 1.25rem;
        margin-top: -24px;
        margin-bottom: 28px;
    }

    .memory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .memory-card,
    .art-card {
        border-radius: 14px;
    }

    .art-card-inner {
        padding: 12px 6px 34px 6px;
        border-radius: 14px;
    }

    .art-card-caption {
        padding: 8px 6px;
    }

    .art-card-caption .handwritten {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    /* Sunflower & Car Parallax Feature Frames */
    .parallax-image-wrapper {
        margin: 20px 0;
    }

    .image-frame {
        height: 220px;
        border-radius: 14px;
    }

    .image-caption {
        margin-top: 14px;
    }

    .image-caption p.handwritten {
        font-size: 1.15rem;
        line-height: 1.45;
        padding: 0 10px;
    }

    /* Confession Section */
    .section-confession {
        padding: 54px 0;
    }

    .confession-text {
        font-size: 1.12rem;
        line-height: 1.8;
    }

    /* The Question Section */
    .section-question {
        padding: 54px 0 60px;
    }

    .sunflower-accent {
        width: 80px;
        height: 80px;
    }

    .sunflower-divider {
        margin-bottom: 32px;
    }

    .question-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .question-text {
        font-size: 1.1rem;
        line-height: 1.75;
        margin-bottom: 28px;
        padding: 0 6px;
    }

    .response-buttons {
        gap: 12px;
        margin-bottom: 28px;
    }

    .btn {
        padding: 16px 24px;
        font-size: 1.05rem;
        border-radius: 40px;
    }

    .no-pressure {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 8px;
    }

    /* Date Picker modal & inputs */
    .date-picker-container {
        padding: 24px 16px;
        border-radius: 20px;
        margin: 0 auto;
    }

    .date-title {
        font-size: 1.65rem;
    }

    .date-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .styled-input {
        padding: 14px 14px;
        font-size: 16px !important; /* Never zoom in Safari */
        border-radius: 12px;
    }

    .calendar-note {
        font-size: 0.8rem;
        margin-top: 12px;
    }

    /* Footer on iPhone 13 */
    .footer {
        padding: 36px 16px calc(24px + env(safe-area-inset-bottom));
    }

    .footer-tamil-dedication {
        margin: 10px 0 8px 0;
    }

    .footer-tamil-dedication .tamil-lead {
        font-size: 0.98rem;
    }

    .footer-tamil-dedication .tamil-name {
        font-size: 1.3rem;
    }

    .footer .handwritten {
        font-size: 1.05rem;
    }
}

/* ===========================
   Selection & Scrollbar
   =========================== */
::selection {
    background: var(--gold-200);
    color: var(--warm-gray-900);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--warm-white);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-300), var(--blue-300));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-400), var(--blue-400));
}
.camera-upload-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.camera-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-50);
    color: var(--blue-500);
    border: 2px dashed var(--blue-300);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-btn:hover {
    background: var(--blue-100);
    border-color: var(--blue-400);
    transform: translateY(-2px);
}

/* ===========================
   Date Picker & Form Styles
   =========================== */
.date-picker-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 45px 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(255,255,255,0.5);
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.date-title {
    font-size: 2.2rem;
    color: var(--warm-gray-900);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.date-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray-500);
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--warm-gray-800);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.label-icon {
    margin-right: 8px;
    font-size: 1.3rem;
    vertical-align: middle;
}

.styled-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.15rem;
    font-family: 'Inter', sans-serif;
    color: var(--warm-gray-900);
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.styled-input:focus, .styled-input:hover {
    border-color: #93c5fd;
    box-shadow: 0 0 0 5px rgba(147, 197, 253, 0.15);
    background: #fafaf9;
}

/* Customizing the browser default calendar icon */
.styled-input::-webkit-calendar-picker-indicator {
    background-color: transparent;
    padding: 8px;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s;
    opacity: 0.6;
}
.styled-input::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(0,0,0,0.05);
    opacity: 1;
}

.camera-upload-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 12px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.camera-btn {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1e3a8a;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

.camera-btn:hover {
    background: linear-gradient(135deg, #bfdbfe, #dbeafe);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
}

.btn-calendar {
    width: 100%;
    margin-top: 15px;
}

.media-file-name {
    font-size: 0.85rem;
    color: var(--warm-gray-500);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
