/* ============================================
   HAPPY BIRTHDAY - PINK & GOLD THEME
   Premium Animated Birthday Website
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --pink-light: #FFB6C1;
    --pink: #FF69B4;
    --pink-dark: #FF1493;
    --pink-deep: #C71585;
    --gold: #FFD700;
    --gold-light: #FFECB3;
    --gold-dark: #DAA520;
    --rose: #FF85A2;
    --cream: #FFF8F0;
    --dark: #1a0a1a;
    --dark-pink: #2d0a1e;
    --white: #ffffff;
    --shadow-pink: rgba(255, 105, 180, 0.3);
    --shadow-gold: rgba(255, 215, 0, 0.3);
    --font-display: 'Great Vibes', cursive;
    --font-body: 'Poppins', sans-serif;
    --font-script: 'Dancing Script', cursive;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-pink), var(--dark), #0d0017);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-cake {
    font-size: 80px;
    animation: preloaderBounce 1s ease infinite;
}

.preloader-text {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--pink-light);
    margin: 20px 0;
    animation: preloaderPulse 1.5s ease infinite;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--gold));
    border-radius: 4px;
    animation: preloaderFill 2.5s ease forwards;
}

@keyframes preloaderBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

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

@keyframes preloaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ---------- Music Button ---------- */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(26, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--shadow-pink), 0 0 40px var(--shadow-gold);
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--shadow-pink), 0 0 60px var(--shadow-gold);
}

.music-icon {
    font-size: 22px;
    position: absolute;
}

.music-waves {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.music-waves span {
    width: 3px;
    background: var(--gold);
    border-radius: 3px;
    animation: musicWave 0.8s ease infinite;
}

.music-waves span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-waves span:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.music-waves span:nth-child(3) { height: 12px; animation-delay: 0.4s; }

.music-btn.playing .music-icon { display: none; }
.music-btn.playing .music-waves { display: flex; }

@keyframes musicWave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.2); }
}

/* ---------- Canvas ---------- */
#confettiCanvas, #fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#fireworksCanvas {
    z-index: 11;
}

/* ---------- Sections ---------- */
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    background: linear-gradient(135deg, var(--pink), var(--gold), var(--pink-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--pink-light);
    opacity: 0.8;
}

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

/* ---------- Balloons ---------- */
#balloons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.balloon {
    position: absolute;
    bottom: -150px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: floatBalloon 12s ease-in infinite;
    opacity: 0.7;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.balloon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 8px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.balloon-string {
    position: absolute;
    bottom: -60px;
    left: 50%;
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    transform-origin: top center;
    animation: stringSwing 2s ease-in-out infinite;
}

@keyframes floatBalloon {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% {
        transform: translateY(-120vh) rotate(15deg) scale(1);
        opacity: 0;
    }
}

@keyframes stringSwing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    background: radial-gradient(ellipse at center, rgba(255,105,180,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(255,215,0,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(255,20,147,0.1) 0%, transparent 50%),
                linear-gradient(180deg, var(--dark-pink) 0%, var(--dark) 50%, #0d0017 100%);
    padding: 40px 20px;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 15;
}

.sparkle-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    box-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold);
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.birthday-badge {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,105,180,0.2));
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.hero-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-family: var(--font-display);
    color: var(--white);
    text-shadow: 0 0 30px var(--shadow-pink), 0 0 60px var(--shadow-gold);
    -webkit-text-fill-color: initial;
}

.title-line:first-child {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--pink-light);
}

.title-birthday {
    font-size: clamp(4rem, 12vw, 9rem);
    background: linear-gradient(135deg, var(--gold), var(--pink), var(--gold-light), var(--pink-dark));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    filter: drop-shadow(0 0 30px rgba(255,215,0,0.5));
}

.names-container {
    margin: 20px 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.name-highlight {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, nameGlow 2s ease infinite;
    filter: drop-shadow(0 0 20px rgba(255,215,0,0.4));
    position: relative;
}

.name-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: shimmer 2s ease infinite;
}

@keyframes nameGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255,215,0,0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(255,215,0,0.7)); }
}

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

.name-ampersand {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--pink);
    text-shadow: 0 0 20px var(--shadow-pink);
    animation: ampersandPulse 2s ease infinite;
}

@keyframes ampersandPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(5deg); }
}

.name-card {
    text-align: center;
    position: relative;
}

.age-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,105,180,0.15));
    border: 1px solid rgba(255,215,0,0.25);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.age-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,215,0,0.1), transparent, rgba(255,105,180,0.1), transparent);
    animation: rotateGradient 8s linear infinite;
}

.age-number {
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--pink), var(--gold-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    line-height: 1;
    position: relative;
    z-index: 1;
    text-shadow: none;
    filter: drop-shadow(0 0 15px rgba(255,215,0,0.4));
}

.age-label {
    font-family: var(--font-script);
    font-size: 1rem;
    color: var(--pink-light);
    position: relative;
    z-index: 1;
    margin-top: 2px;
}

.age-born {
    font-size: 0.75rem;
    color: rgba(255,182,193,0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.same-birthday-badge {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,105,180,0.1));
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.same-birthday-badge span {
    font-family: var(--font-script);
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--gold), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.today-badge {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--pink-dark), var(--pink));
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    box-shadow: 0 0 30px var(--shadow-pink), 0 0 60px rgba(255,20,147,0.3);
    animation: todayPulse 2s ease infinite;
    letter-spacing: 2px;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--pink);
    border-radius: 50px;
    animation: pulseRing 2s ease infinite;
}

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

@keyframes todayPulse {
    0%, 100% { box-shadow: 0 0 30px var(--shadow-pink), 0 0 60px rgba(255,20,147,0.3); }
    50% { box-shadow: 0 0 50px var(--shadow-pink), 0 0 100px rgba(255,20,147,0.5); }
}

.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--pink-light);
    font-size: 0.9rem;
    opacity: 0.7;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(10px); }
}

/* ---------- CAKE SECTION ---------- */
.cake-section {
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.08) 0%, transparent 60%),
                linear-gradient(180deg, #0d0017, var(--dark), var(--dark-pink));
    padding: 80px 20px;
}

.cake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cake-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding-top: 80px;
}

.cake-wrapper:hover {
    transform: scale(1.05);
}

.cake-glow {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.4), transparent 70%);
    border-radius: 50%;
    animation: cakeGlow 2s ease infinite;
    pointer-events: none;
}

@keyframes cakeGlow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.candles {
    display: flex;
    justify-content: center;
    gap: 25px;
    position: relative;
    z-index: 3;
    margin-bottom: -5px;
}

.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.candle-body {
    width: 8px;
    height: 40px;
    background: linear-gradient(180deg, var(--pink), var(--pink-dark));
    border-radius: 4px 4px 0 0;
    position: relative;
}

.candle-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    right: -1px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

.flame {
    width: 14px;
    height: 28px;
    background: radial-gradient(ellipse at bottom, #ffff00, #ff8800 60%, transparent 90%);
    border-radius: 50% 50% 20% 20%;
    animation: flicker 0.3s ease-in-out infinite alternate;
    position: relative;
    margin-bottom: 2px;
    transition: all 0.5s ease;
}

.flame.blown-out {
    opacity: 0;
    transform: scale(0) translateY(-20px);
}

.flame-inner {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 14px;
    background: radial-gradient(ellipse at bottom, #ffffff, #ffff00 60%, transparent 90%);
    border-radius: 50%;
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1, 0.9) rotate(2deg); }
}

.cake-top {
    width: 200px;
    height: 20px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 10px 10px 0 0;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 -3px 15px rgba(255,215,0,0.3);
}

.cake-drip {
    position: absolute;
    bottom: -15px;
    left: 10%;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 0 0 50% 50%;
    animation: drip 3s ease-in-out infinite;
}

@keyframes drip {
    0%, 100% { height: 15px; }
    50% { height: 25px; }
}

.cake-layer {
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cake-layer-1 {
    width: 200px;
    height: 60px;
    background: linear-gradient(180deg, #FF85A2, var(--pink));
    border-radius: 0;
}

.cake-layer-2 {
    width: 250px;
    height: 70px;
    background: linear-gradient(180deg, var(--pink-light), var(--pink));
    border-radius: 0;
}

.cake-layer-3 {
    width: 300px;
    height: 80px;
    background: linear-gradient(180deg, var(--rose), var(--pink-dark));
    border-radius: 0 0 10px 10px;
}

.cake-decoration {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

.cake-dot {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    animation: cakeDotPulse 1s ease infinite;
    box-shadow: 0 0 8px var(--shadow-gold);
}

@keyframes cakeDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

.cake-stripe {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(255,215,0,0.2) 20px,
        rgba(255,215,0,0.2) 22px
    );
}

.cake-heart {
    color: var(--gold);
    font-size: 14px;
    animation: heartFloat 2s ease infinite;
}

@keyframes heartFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.cake-plate {
    width: 340px;
    height: 15px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.wish-message {
    text-align: center;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.wish-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.wish-message h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gold), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.wish-message p {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--pink-light);
}

/* ---------- GALLERY SECTION ---------- */
.gallery-section {
    background: radial-gradient(ellipse at 30% 50%, rgba(255,105,180,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(255,215,0,0.08) 0%, transparent 50%),
                linear-gradient(180deg, var(--dark-pink), var(--dark) 30%, var(--dark) 70%, #0d0017);
    padding: 80px 20px;
    min-height: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    z-index: 3;
}

.gallery-item-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255,215,0,0.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-item-inner {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(255,105,180,0.3), 0 0 30px rgba(255,215,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 30%, rgba(255,20,147,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    gap: 8px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 2rem;
    transform: scale(0.5);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-text {
    font-family: var(--font-script);
    font-size: 1.1rem;
    color: var(--white);
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}

.gallery-sparkle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--gold) 30%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: sparkleGallery 3s ease infinite;
}

.gallery-item:hover .gallery-sparkle {
    opacity: 1;
}

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

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 50px rgba(255,215,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px var(--gold);
}

.lightbox-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--white);
    background: rgba(255,105,180,0.3);
    border: 1px solid rgba(255,215,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 100001;
}

.lightbox-nav:hover {
    background: rgba(255,105,180,0.6);
    border-color: var(--gold);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    text-align: center;
    margin-top: 15px;
    color: var(--pink-light);
    font-family: var(--font-script);
    font-size: 1.1rem;
}

/* ---------- MESSAGE SECTION ---------- */
.message-section {
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.1) 0%, transparent 50%),
                linear-gradient(180deg, #0d0017, var(--dark), var(--dark-pink));
    padding: 80px 20px;
}

.message-container {
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.message-card {
    background: linear-gradient(145deg, rgba(255,105,180,0.1), rgba(255,215,0,0.05), rgba(255,20,147,0.1));
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,215,0,0.1);
}

.message-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,215,0,0.05), transparent, rgba(255,105,180,0.05), transparent);
    animation: rotateGradient 10s linear infinite;
}

@keyframes rotateGradient {
    to { transform: rotate(360deg); }
}

.message-decoration-top, .message-decoration-bottom {
    font-size: 1.2rem;
    letter-spacing: 10px;
    color: var(--gold);
    opacity: 0.5;
    position: relative;
    z-index: 1;
}

.message-icon {
    font-size: 3rem;
    margin: 20px 0;
    animation: messageIconBounce 2s ease infinite;
    position: relative;
    z-index: 1;
}

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

.message-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gold), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.message-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.message-divider span:not(.divider-heart) {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-heart {
    color: var(--pink);
    animation: heartBeat 1.5s ease infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
}

.message-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--pink-light);
    position: relative;
    z-index: 1;
    min-height: 150px;
    font-style: italic;
}

.message-text .cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--gold);
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

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

.message-signature {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.message-signature span:first-child {
    display: block;
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.signature-hearts {
    font-size: 1.5rem;
    letter-spacing: 5px;
}

/* ---------- CELEBRATION SECTION ---------- */
.celebration-section {
    background: radial-gradient(ellipse at center, rgba(255,105,180,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(255,215,0,0.1) 0%, transparent 50%),
                linear-gradient(180deg, var(--dark-pink), var(--dark), #0d0017);
    padding: 80px 20px;
    text-align: center;
    min-height: auto;
    position: relative;
}

.celebration-content {
    position: relative;
    z-index: 2;
}

.celebration-emojis {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: floatEmoji 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-40px) rotate(20deg); opacity: 0.8; }
}

.celebration-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    background: linear-gradient(135deg, var(--gold), var(--pink), var(--gold-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 15px;
}

.celebration-text {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--pink-light);
    margin-bottom: 30px;
}

.celebration-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.celebrate-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255,215,0,0.5);
    animation: celebratePulse 3s ease infinite;
}

.celebrate-amp {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--pink);
}

@keyframes celebratePulse {
    0%, 100% { text-shadow: 0 0 30px rgba(255,215,0,0.5); }
    50% { text-shadow: 0 0 60px rgba(255,215,0,0.8), 0 0 100px rgba(255,105,180,0.4); }
}

.celebration-wish {
    max-width: 600px;
    margin: 0 auto 40px;
}

.celebration-wish p {
    font-size: 1.2rem;
    color: var(--pink-light);
    line-height: 1.8;
}

.footer-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-heart {
    position: absolute;
    color: var(--pink);
    animation: heartRise 8s ease-in infinite;
    opacity: 0;
    bottom: 0;
}

@keyframes heartRise {
    0% { transform: translateY(0) rotate(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.birthday-footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(255,215,0,0.1);
    color: var(--pink-light);
    opacity: 0.5;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* ---------- ANIMATION CLASSES ---------- */
.animate-pop {
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

.animate-slide-down {
    animation: slideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.animate-fade-up {
    animation: fadeUp 0.8s ease both;
}

.animate-bounce-in {
    animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounceIn {
    from { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    to { transform: scale(1); opacity: 1; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .message-card {
        padding: 30px 20px;
    }

    .candles {
        gap: 15px;
    }

    .cake-layer-1 { width: 150px; height: 45px; }
    .cake-layer-2 { width: 190px; height: 55px; }
    .cake-layer-3 { width: 230px; height: 65px; }
    .cake-top { width: 150px; }
    .cake-plate { width: 260px; }

    .music-btn {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .today-badge {
        padding: 10px 25px;
        font-size: 1.1rem;
    }

    .birthday-badge {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}
