/* Luxury Editorial & Liquid Glass Aesthetic for Payal's 22nd Birthday */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,600;0,800;1,400;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
    --bg-dark: #07050b;
    --bg-surface: #0e0917;
    --gold-glow: #f59e0b;
    --gold-light: #fef3c7;
    --rose-silk: #fda4af;
    --rose-deep: #e11d48;
    --wine: #881337;
    --liquid-border: rgba(255, 255, 255, 0.16);
    --liquid-highlight: rgba(255, 255, 255, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: #fdf2f4;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #07050b;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #e11d48, #9333ea);
    border-radius: 9999px;
}

/* Typography Classes */
.font-editorial {
    font-family: 'Cormorant Garamond', serif;
}
.font-serif {
    font-family: 'Playfair Display', serif;
}
.font-handwriting {
    font-family: 'Caveat', cursive;
}

/* Ambient Radial Velvet Lighting */
.ambient-lighting {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}
.light-1 {
    top: -15%;
    left: -15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.45) 0%, transparent 70%);
}
.light-2 {
    bottom: -10%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.35) 0%, transparent 70%);
}
.light-3 {
    top: 40%;
    left: 20%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

/* TRUE LIQUID FROST GLASS (Glassmorphism 2.0) */
.liquid-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(36px) saturate(180%);
    -webkit-backdrop-filter: blur(36px) saturate(180%);
    border: 1px solid var(--liquid-border);
    border-radius: 1.75rem;
    box-shadow: 
        0 24px 48px -12px rgba(0, 0, 0, 0.7),
        inset 0 1px 1px 0 var(--liquid-highlight),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: liquidSheen 7s infinite linear;
    pointer-events: none;
}

@keyframes liquidSheen {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.liquid-glass:hover {
    border-color: rgba(253, 164, 175, 0.4);
    box-shadow: 
        0 28px 56px -10px rgba(225, 29, 72, 0.25),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.45);
}

/* 3D TILT CONTAINER */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.tilt-inner {
    transform: translateZ(30px);
    transition: transform 0.2s ease-out;
}

/* MIDNIGHT VAULT SCREEN */
#midnightVault {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at center, #180e28 0%, #06040a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.vault-unlocked {
    opacity: 0;
    transform: scale(1.08);
    pointer-events: none;
}

/* Radar Ring Animation for Vault */
.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.2);
    animation: radarPulse 4s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ring-1 { width: 140px; height: 140px; animation-delay: 0s; }
.ring-2 { width: 220px; height: 220px; animation-delay: 1.2s; }
.ring-3 { width: 300px; height: 300px; animation-delay: 2.4s; }

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Vault Padlock Icon */
.vault-padlock {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #e11d48, #9333ea);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.45);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vault-padlock:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 0 50px rgba(225, 29, 72, 0.6);
}

/* Shake Animation on Early Tap */
.shake-lock {
    animation: lockShake 0.5s ease-in-out;
}
@keyframes lockShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px) rotate(-4deg); }
    40%, 80% { transform: translateX(8px) rotate(4deg); }
}

/* CUTE SPRING POP-UP & BOUNCE ANIMATIONS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(45px) scale(0.92);
    transition: opacity 0.75s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Pop Delays */
.pop-child {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.is-visible .pop-child {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.is-visible .pop-child:nth-child(1) { transition-delay: 0.05s; }
.is-visible .pop-child:nth-child(2) { transition-delay: 0.12s; }
.is-visible .pop-child:nth-child(3) { transition-delay: 0.19s; }
.is-visible .pop-child:nth-child(4) { transition-delay: 0.26s; }
.is-visible .pop-child:nth-child(5) { transition-delay: 0.33s; }
.is-visible .pop-child:nth-child(6) { transition-delay: 0.40s; }
.is-visible .pop-child:nth-child(7) { transition-delay: 0.47s; }
.is-visible .pop-child:nth-child(8) { transition-delay: 0.54s; }

/* Cute Floating Mascot Companion */
.floating-bunny {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 45;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: bunnyBob 3s ease-in-out infinite;
}
.floating-bunny:hover {
    transform: scale(1.1) translateY(-4px) rotate(-2deg);
    box-shadow: 0 15px 35px rgba(225, 29, 72, 0.45);
}
@keyframes bunnyBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Cute Badge Stickers with Wiggle */
.cute-sticker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(253, 164, 175, 0.2), rgba(244, 63, 94, 0.15));
    border: 1px dashed rgba(253, 164, 175, 0.5);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #fecdd3;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}
.cute-sticker:hover {
    transform: scale(1.08) rotate(3deg);
}

/* Cute Heart Divider */
.cute-heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0.6;
    margin: 1.5rem 0;
}
.cute-heart-divider span {
    animation: pulseHeart 2s infinite ease-in-out;
}
.cute-heart-divider span:nth-child(2) { animation-delay: 0.3s; }
.cute-heart-divider span:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulseHeart {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 6px #f43f5e); }
}

/* Spinning Vinyl Record */
.vinyl-disc {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2a2a 20%, #111111 25%, #1f1f1f 55%, #050505 100%);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.8), inset 0 0 0 2px #333333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vinyl-center {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e11d48;
}
.spinning {
    animation: spinVinyl 3.5s linear infinite;
}
@keyframes spinVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Equalizer Bars */
.eq-bar {
    width: 3px;
    border-radius: 2px;
    background: #fda4af;
    height: 4px;
    transition: height 0.15s ease;
}
.playing .eq-bar:nth-child(1) { animation: eqJump 0.8s ease-in-out infinite; }
.playing .eq-bar:nth-child(2) { animation: eqJump 0.6s ease-in-out infinite 0.2s; }
.playing .eq-bar:nth-child(3) { animation: eqJump 0.9s ease-in-out infinite 0.4s; }
.playing .eq-bar:nth-child(4) { animation: eqJump 0.7s ease-in-out infinite 0.1s; }

@keyframes eqJump {
    0%, 100% { height: 4px; }
    50% { height: 18px; background: #f43f5e; }
}

/* Polaroid Photo Card (Editorial Style) */
.polaroid-card {
    background: #ffffff;
    padding: 14px 14px 22px 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(225, 29, 72, 0.15);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
}
.polaroid-card:hover {
    transform: translateY(-10px) scale(1.02) rotate(0deg) !important;
    box-shadow: 0 30px 60px rgba(225, 29, 72, 0.3);
    z-index: 10;
}
.polaroid-tape {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: rgba(254, 243, 199, 0.65);
    backdrop-filter: blur(4px);
    border-left: 2px dashed rgba(217, 119, 6, 0.4);
    border-right: 2px dashed rgba(217, 119, 6, 0.4);
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

/* 3D Reasons Flip & Fade */
.fade-flip {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
    transition: all 0.2s ease;
}

/* Candle Flame & Smoke Animation */
@keyframes flicker {
    0%, 100% { transform: scale(1) rotate(-1deg); opacity: 0.95; }
    25% { transform: scale(1.1, 0.95) rotate(2deg); opacity: 1; }
    50% { transform: scale(0.95, 1.08) rotate(-1deg); opacity: 0.9; }
    75% { transform: scale(1.05, 1.02) rotate(1.5deg); opacity: 1; }
}
.animate-flicker {
    animation: flicker 0.6s infinite alternate ease-in-out;
}

@keyframes smoke {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-30px) scale(2.5); opacity: 0; }
}
.animate-smoke {
    animation: smoke 1s forwards ease-out;
}

/* Cursor Sparkle Items */
.cursor-sparkle-item {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    font-size: 1.15rem;
    animation: cursorSparkleFloat 0.9s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translate(-50%, -50%);
}
@keyframes cursorSparkleFloat {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.7); }
    100% { opacity: 0; transform: translate(-50%, -120%) scale(1.4); }
}

/* Floating Heart Pop */
.floating-heart-pop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: bold;
    color: #e11d48;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.95);
    pointer-events: none;
    animation: heartPopRise 0.8s forwards ease-out;
    z-index: 20;
}
@keyframes heartPopRise {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
    50% { transform: translate(-50%, -100%) scale(1.3); }
    100% { opacity: 0; transform: translate(-50%, -150%) scale(1.5); }
}

/* Wax Seal Break & Unfurl */
.seal-break {
    animation: sealCrack 0.4s forwards ease-out;
}
@keyframes sealCrack {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(15deg); }
    100% { transform: scale(0.2) rotate(45deg); opacity: 0; }
}

.letter-unfurl {
    animation: letterUnroll 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top center;
}
@keyframes letterUnroll {
    0% { opacity: 0; transform: translateY(-20px) scaleY(0.7); }
    100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* Mobile Bottom Pill Navigation */
.mobile-nav-pill {
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    background: rgba(14, 9, 23, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}
.mobile-nav-item.active-nav {
    color: #fda4af;
    background: rgba(225, 29, 72, 0.2);
    border-radius: 9999px;
}
