/* =============================================
   DEEPANSHU'S BIRTHDAY — BEIGE & BROWN BOLD
   Premium, Heavy, Monochromatic Design
   ============================================= */

/* ---- Custom Properties ---- */
:root {
    --bg: #F5EFE6;
    --bg-alt: #EBE1D2;
    --bg-card: #FDF9F3;
    --bg-dark: #3D2B1F;
    --brown: #5C3D1E;
    --brown-dark: #2C1810;
    --brown-mid: #8B6D4B;
    --brown-light: #C4A882;
    --accent: #A0754E;
    --text: #2C1810;
    --text-muted: #7A6654;
    --border: #D4C5B0;
    --border-light: #E8DFD0;
    --highlight: #C9A87C;
    --cream: #FAF7F2;
    --shadow: rgba(60, 40, 20, 0.12);
    --shadow-strong: rgba(60, 40, 20, 0.25);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --font-elegant: 'Cormorant Garamond', Georgia, serif;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brown-light); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Icon Sizes ---- */
.icon-xs { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 24px; height: 24px; flex-shrink: 0; }
.icon-md { width: 32px; height: 32px; flex-shrink: 0; }
.icon-lg { width: 48px; height: 48px; flex-shrink: 0; }
.icon-xl { width: 64px; height: 64px; flex-shrink: 0; }
.icon-deco { width: 100%; height: 100%; }
svg { fill: currentColor; }

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { text-align: center; }
.preloader-icon {
    color: var(--brown);
    animation: preloaderBounce 1.2s ease-in-out infinite;
}
@keyframes preloaderBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.1); }
}
.preloader-text {
    font-family: var(--font-elegant);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 24px;
    letter-spacing: 1px;
}
.preloader-bar {
    width: 240px; height: 4px;
    background: var(--border-light);
    border-radius: 10px;
    margin: 20px auto 0;
    overflow: hidden;
}
.preloader-progress {
    height: 100%; width: 0;
    background: var(--brown);
    border-radius: 10px;
    animation: preloaderProgress 2.5s ease-in-out forwards;
}
@keyframes preloaderProgress {
    0% { width: 0; } 100% { width: 100%; }
}

/* =============================================
   PARTICLES CANVAS
   ============================================= */
#particles-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

/* =============================================
   MUSIC BUTTON
   ============================================= */
.music-btn {
    position: fixed; bottom: 30px; left: 30px;
    z-index: 1000;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--brown);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--shadow);
}
.music-btn:hover {
    transform: scale(1.05);
    background: var(--brown);
    color: var(--cream);
    border-color: var(--brown);
}
.music-btn.playing .icon-sm {
    animation: musicPulse 0.6s ease-in-out infinite;
}
@keyframes musicPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

/* =============================================
   NAVIGATION
   ============================================= */
#main-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 999; padding: 18px 0;
    transition: var(--transition);
    background: transparent;
}
#main-nav.scrolled {
    background: rgba(245, 239, 230, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 4px 30px var(--shadow);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 900;
    color: var(--brown-dark);
    transition: var(--transition);
}
.nav-logo:hover { transform: scale(1.05); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 18px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
    color: var(--brown-dark);
    background: var(--bg-alt);
    border-color: var(--border);
}
.hamburger {
    display: none; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
    width: 28px; height: 3px;
    background: var(--brown-dark);
    border-radius: 10px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.mobile-nav {
    position: fixed; top: 0; right: -100%;
    width: 300px; height: 100%;
    background: var(--cream);
    border-left: 3px solid var(--border);
    z-index: 998;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.active { right: 0; }
.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 900;
    color: var(--brown);
    text-transform: uppercase; letter-spacing: 2px;
    transition: var(--transition);
}
.mobile-nav-link:hover { color: var(--accent); transform: translateX(10px); }

/* =============================================
   SECTION COMMON
   ============================================= */
.section-header { text-align: center; margin-bottom: 70px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 24px; border-radius: 50px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    font-size: 0.85rem; font-weight: 800;
    color: var(--brown);
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 20px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.15;
    color: var(--brown-dark);
    margin-bottom: 16px;
}
.text-accent {
    font-style: italic;
    color: var(--accent);
}
.section-subtitle {
    font-family: var(--font-elegant);
    font-size: 1.2rem; font-weight: 500;
    color: var(--text-muted);
    max-width: 550px; margin: 0 auto;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-size: 1rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; border: none;
    transition: var(--transition);
}
.btn-blob {
    background: var(--brown);
    color: var(--cream);
    padding: 22px 50px;
    clip-path: url(#btn-blob);
    border-radius: 0;
}
.btn-blob:hover {
    background: var(--brown-dark);
    transform: scale(1.08);
}
.btn-outline {
    background: transparent;
    color: var(--brown);
    padding: 16px 36px;
    border: 3px solid var(--brown);
    border-radius: 50px;
}
.btn-outline:hover {
    background: var(--brown);
    color: var(--cream);
    transform: translateY(-3px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: var(--bg);
}
/* Decorative floating SVG icons */
.hero-deco {
    position: absolute;
    color: var(--border);
    opacity: 0.4;
    animation: decoFloat 6s ease-in-out infinite;
    z-index: 1;
}
.hero-deco-1 { width: 40px; top: 12%; left: 8%; animation-delay: 0s; }
.hero-deco-2 { width: 30px; top: 20%; right: 12%; animation-delay: 1s; }
.hero-deco-3 { width: 50px; bottom: 25%; left: 5%; animation-delay: 2s; }
.hero-deco-4 { width: 60px; top: 8%; right: 20%; animation-delay: 0.5s; color: var(--brown-light); opacity: 0.25; }
.hero-deco-5 { width: 25px; bottom: 15%; right: 8%; animation-delay: 1.5s; }
@keyframes decoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 100px 24px 60px;
}

/* Hero Photo with blob clip-path */
.hero-photo-wrapper { margin: 0 auto 50px; }
.hero-photo-frame {
    width: 260px; height: 320px;
    margin: 0 auto;
    overflow: hidden;
    animation: heroFloat 5s ease-in-out infinite;
    box-shadow: 0 20px 60px var(--shadow-strong);
}
.hero-photo {
    width: 100%; height: 100%;
    object-fit: cover;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* Hero Text */
.hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-elegant);
    font-size: 1.1rem; font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s 0.5s ease both;
}
.hero-title { font-family: var(--font-heading); margin-bottom: 20px; }
.title-line { display: block; animation: fadeInUp 1s ease both; }
.title-happy {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400; color: var(--text-muted);
    font-family: var(--font-elegant);
    animation-delay: 0.7s;
}
.title-birthday {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900; font-style: italic;
    color: var(--brown);
    line-height: 1;
    animation-delay: 0.9s;
}
.title-name {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--brown-dark);
    animation-delay: 1.1s;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-date {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-elegant);
    font-size: 1.2rem; font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
    letter-spacing: 2px;
    animation: fadeInUp 1s 1.3s ease both;
}
.hero-quote {
    font-family: var(--font-elegant);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.9;
    padding: 20px 28px;
    border-left: 4px solid var(--brown-light);
    background: rgba(212, 197, 176, 0.15);
    border-radius: 0 var(--radius) var(--radius) 0;
    text-align: left;
    animation: fadeInUp 1s 1.4s ease both;
}
.hero-cta {
    display: flex; gap: 20px;
    justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 1s 1.5s ease both;
}
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    z-index: 2;
    animation: fadeInUp 1s 2s ease both;
    color: var(--text-muted);
}
.scroll-indicator span {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
}
.scroll-chevron { animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* =============================================
   AUTO SLIDER
   ============================================= */
.slider-section {
    padding: 0;
    background: var(--bg-alt);
    position: relative;
}
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-top: 4px solid var(--border);
    border-bottom: 4px solid var(--border);
}
.slider-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16/7;
    overflow: hidden;
}
.slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
}
.slide.active img {
    transform: scale(1.05);
}
.slide-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 40px 50px;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.8) 0%, transparent 100%);
}
.slide-overlay p {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--cream);
    letter-spacing: 1px;
}
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--cream);
    border: 3px solid var(--border);
    color: var(--brown);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 5;
}
.slider-btn:hover {
    background: var(--brown);
    color: var(--cream);
    border-color: var(--brown);
    transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 5;
}
.slider-dots .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dots .dot.active {
    background: var(--cream);
    border-color: var(--cream);
    transform: scale(1.3);
}

/* =============================================
   COUNTDOWN SECTION
   ============================================= */
.countdown-section {
    padding: 120px 0 100px;
    background: var(--bg-alt);
    position: relative;
}
.countdown-container {
    display: flex; justify-content: center; align-items: center;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 40px;
}
.countdown-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px 24px;
    min-width: 130px; text-align: center;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--shadow);
}
.countdown-card:hover {
    transform: translateY(-8px);
    border-color: var(--brown);
    box-shadow: 0 12px 40px var(--shadow-strong);
}
.countdown-number {
    font-family: var(--font-heading);
    font-size: 4rem; font-weight: 900;
    color: var(--brown);
    line-height: 1; margin-bottom: 8px;
}
.countdown-number.flip { animation: countFlip 0.5s ease; }
@keyframes countFlip {
    0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); }
}
.countdown-label {
    font-size: 0.8rem; font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 3px;
}
.countdown-sep {
    font-family: var(--font-heading);
    font-size: 3.5rem; font-weight: 900;
    color: var(--brown-light);
    animation: sepPulse 1s ease-in-out infinite;
}
@keyframes sepPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.countdown-message {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.3rem; font-weight: 900;
    color: var(--brown);
    min-height: 40px;
}

/* Fun Facts */
.fun-facts-container { margin-top: 70px; text-align: center; }
.fun-facts-title {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.6rem; font-weight: 900;
    color: var(--brown-dark);
    margin-bottom: 30px;
}
.fun-facts-carousel { position: relative; min-height: 120px; margin-bottom: 24px; }
.fun-fact {
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0; transform: translateY(20px);
    transition: all 0.6s ease; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.fun-fact.active { opacity: 1; transform: translateY(0); pointer-events: all; }
.fun-fact .icon-lg { color: var(--brown); }
.fun-fact p {
    font-family: var(--font-elegant);
    font-size: 1.3rem; font-weight: 500;
    color: var(--text-muted);
    max-width: 480px;
}
.fun-facts-dots { display: flex; justify-content: center; gap: 12px; }
.fun-facts-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--border); cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border);
}
.fun-facts-dots .dot.active {
    background: var(--brown);
    border-color: var(--brown);
    transform: scale(1.4);
}

/* =============================================
   CLIP-PATH GALLERY
   ============================================= */
.gallery-section {
    padding: 120px 0;
    background: var(--bg);
}
.clip-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}
.clip-fig {
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.clip-fig img {
    width: 100%; aspect-ratio: 4/5;
    min-height: 100%;
    object-fit: cover;
    vertical-align: bottom;
    transition: transform 0.5s ease;
}
.clip-fig:hover img { transform: scale(1.12); }
.clip-fig:hover { filter: brightness(1.05); }

/* Wide clip image */
.clip-wide {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}
.clip-wide svg { width: 100%; height: auto; display: block; }

/* Lightbox */
.lightbox {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(44, 24, 16, 0.95);
    z-index: 10001;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-img {
    max-width: 85vw; max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 0 60px rgba(0,0,0,0.4);
}
.lightbox.active .lightbox-img { animation: lbZoom 0.5s ease; }
@keyframes lbZoom { 0% { transform: scale(0.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: var(--cream); border: 3px solid var(--border);
    color: var(--brown); cursor: pointer; border-radius: 50%;
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.lightbox-close { top: 30px; right: 30px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: var(--brown); color: var(--cream); border-color: var(--brown);
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline-section {
    padding: 120px 0;
    background: var(--bg-alt);
}
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-line {
    position: absolute; left: 50%; top: 0;
    width: 4px; height: 100%;
    background: var(--border);
    transform: translateX(-50%);
    border-radius: 10px;
}
.timeline-item {
    position: relative; width: 50%;
    padding: 20px 50px;
    opacity: 0; transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-item.right { margin-left: 50%; transform: translateX(60px); }
.timeline-item.revealed { opacity: 1; transform: translateX(0); }
.timeline-dot {
    position: absolute; top: 30px;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--bg-card);
    border: 4px solid var(--brown);
    display: flex; align-items: center; justify-content: center;
    z-index: 2; color: var(--brown);
    box-shadow: 0 4px 20px var(--shadow);
}
.timeline-item.left .timeline-dot { right: -26px; }
.timeline-item.right .timeline-dot { left: -26px; }
.timeline-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--shadow);
}
.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--brown);
    box-shadow: 0 12px 40px var(--shadow-strong);
}
.timeline-img { width: 100%; height: 220px; object-fit: cover; }
.timeline-card-body { padding: 28px; }
.timeline-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 900;
    color: var(--brown);
    margin-bottom: 10px;
}
.timeline-card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =============================================
   WISHES
   ============================================= */
.wishes-section {
    padding: 120px 0;
    background: var(--bg);
}
.wishes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.wish-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--shadow);
    opacity: 0; transform: translateY(40px);
}
.wish-card.revealed { animation: wishReveal 0.8s ease forwards; }
@keyframes wishReveal { to { opacity: 1; transform: translateY(0); } }
.wish-card:hover {
    transform: translateY(-5px);
    border-color: var(--brown);
    box-shadow: 0 12px 40px var(--shadow-strong);
}
.wish-main {
    grid-column: span 2;
    background: var(--brown);
    border-color: var(--brown);
    color: var(--cream);
}
.wish-main .wish-icon { color: var(--highlight); }
.wish-main h3 { color: var(--cream); }
.wish-main p { color: rgba(250, 247, 242, 0.8); }
.wish-icon { color: var(--brown); margin-bottom: 16px; }
.wish-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 900;
    color: var(--brown-dark);
    margin-bottom: 12px;
}
.wish-card p {
    color: var(--text-muted);
    font-size: 1.05rem; line-height: 1.8;
}
.wish-signature {
    margin-top: 24px;
    font-family: var(--font-elegant);
    font-size: 1.6rem; font-style: italic; font-weight: 600;
    color: var(--highlight);
}

/* =============================================
   CAKE SECTION
   ============================================= */
.cake-section {
    padding: 120px 0;
    background: var(--bg-alt);
    position: relative; overflow: hidden;
}
.cake-container { text-align: center; margin-bottom: 80px; }
.cake-wrapper {
    position: relative; display: inline-block;
    cursor: pointer; transition: var(--transition);
}
.cake-wrapper:hover { transform: scale(1.03); }
.cake-img {
    max-width: 480px;
    border-radius: var(--radius-lg);
    border: 4px solid var(--border);
    box-shadow: 0 20px 60px var(--shadow-strong);
}
.candles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.candle { position: absolute; }
.flame {
    width: 14px; height: 30px;
    background: radial-gradient(circle at 50% 80%, var(--cream), var(--highlight), var(--accent), transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.3s ease-in-out infinite alternate;
    box-shadow: 0 0 15px var(--highlight), 0 0 30px var(--accent);
}
@keyframes flicker {
    0% { transform: scaleY(1) scaleX(1) rotate(-2deg); }
    100% { transform: scaleY(1.1) scaleX(0.9) rotate(2deg); }
}
.candles.blown .flame { animation: flameOut 0.5s ease forwards; }
@keyframes flameOut {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(1.5) scaleX(0.3); }
    100% { opacity: 0; transform: scaleY(0) scaleX(0); }
}

.btn-blow {
    margin-top: 30px;
    padding: 24px 60px;
}
.btn-blow.hidden { display: none; }
.cake-message {
    margin-top: 30px;
    opacity: 0; transform: translateY(20px);
    transition: all 0.8s ease;
}
.cake-message.visible { opacity: 1; transform: translateY(0); }
.cake-message h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem; font-weight: 900;
    color: var(--brown);
    margin-bottom: 8px;
}
.cake-message p {
    font-family: var(--font-elegant);
    font-size: 1.3rem; color: var(--text-muted);
}

/* Confetti */
.confetti-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 9999;
}
.confetti-piece {
    position: absolute; top: -20px;
    opacity: 0;
    animation: confettiFall 3s ease-out forwards;
}
@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* Celebration Extras */
.celebration-extras {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.celebration-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 30px var(--shadow);
    opacity: 0; transform: translateY(40px);
}
.celebration-card.revealed { animation: wishReveal 0.8s ease forwards; }
.celebration-card:hover {
    transform: translateY(-5px);
    border-color: var(--brown);
    box-shadow: 0 12px 40px var(--shadow-strong);
}
.celebration-img { width: 100%; height: 260px; object-fit: cover; }
.celebration-card-body {
    padding: 28px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.celebration-card-body .icon-md { color: var(--brown); }
.celebration-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem; font-weight: 900;
    color: var(--brown);
}
.celebration-card-body p { color: var(--text-muted); font-size: 0.95rem; }

/* =============================================
   FINALE
   ============================================= */
.finale-section {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: var(--brown-dark);
}
.finale-bg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}
.finale-bg-img {
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.35;
}
.finale-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 80px 24px;
}
.finale-photo {
    width: 200px; height: 250px;
    margin: 0 auto 50px;
    animation: heroFloat 5s ease-in-out infinite;
}
.finale-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.finale-title { font-family: var(--font-heading); margin-bottom: 24px; }
.finale-line {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400; color: var(--cream);
    font-family: var(--font-elegant);
}
.finale-accent {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900; font-style: italic;
    color: var(--highlight);
    line-height: 1.1;
}
.finale-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--cream);
}
.finale-message {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    color: rgba(250, 247, 242, 0.7);
    max-width: 680px; margin: 0 auto 30px;
    line-height: 1.9;
}
.finale-hearts {
    display: flex; justify-content: center; gap: 18px;
    margin-bottom: 40px;
    color: var(--highlight);
}
.finale-hearts svg {
    animation: heartBeat 1.5s ease-in-out infinite;
    display: inline-block;
}
.finale-hearts svg:nth-child(1) { animation-delay: 0s; }
.finale-hearts svg:nth-child(2) { animation-delay: 0.15s; }
.finale-hearts svg:nth-child(3) { animation-delay: 0.3s; }
.finale-hearts svg:nth-child(4) { animation-delay: 0.45s; }
.finale-hearts svg:nth-child(5) { animation-delay: 0.6s; }
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
}
.finale-footer {
    font-family: var(--font-elegant);
    font-size: 1.4rem; font-style: italic;
    color: var(--highlight);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--brown); color: var(--cream);
    border: 3px solid var(--border);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px) scale(1.1); background: var(--brown-dark); }

/* =============================================
   RESPONSIVE — Comprehensive Mobile Perfection
   ============================================= */

/* ---- Tablet Landscape (max 1024px) ---- */
@media (max-width: 1024px) {
    .clip-gallery { gap: 20px; }
    .container { padding: 0 20px; }
    .section-header { margin-bottom: 50px; }
    .hero-photo-frame { width: 230px; height: 280px; }
    .celebration-extras { gap: 24px; }
    .timeline-card-body { padding: 22px; }
    .wish-card { padding: 32px; }
    .cake-img { max-width: 400px; }
    .finale-content { padding: 60px 24px; }
}

/* ---- Tablet Portrait & Small Laptops (max 768px) ---- */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    #main-nav { padding: 14px 0; }
    #main-nav.scrolled { padding: 10px 0; }
    .nav-logo { font-size: 1.2rem; }

    /* Hero */
    .hero-section { min-height: 100vh; min-height: 100dvh; }
    .hero-content { padding: 90px 20px 80px; }
    .hero-photo-frame { width: 180px; height: 220px; }
    .hero-photo-wrapper { margin-bottom: 36px; }
    .hero-tag { font-size: 0.9rem; letter-spacing: 2px; gap: 6px; }
    .title-happy { font-size: clamp(1.5rem, 6vw, 2.5rem); }
    .title-birthday { font-size: clamp(3rem, 14vw, 6rem); }
    .title-name { font-size: clamp(2rem, 8vw, 3.5rem); }
    .hero-date { font-size: 1rem; margin-bottom: 18px; }
    .hero-quote {
        font-size: 1rem;
        padding: 16px 20px;
        max-width: 100%;
        margin-bottom: 32px;
        line-height: 1.8;
    }
    .hero-cta { gap: 14px; }
    .btn-blob { padding: 18px 38px; font-size: 0.9rem; }
    .btn-outline { padding: 14px 28px; font-size: 0.9rem; }
    .scroll-indicator span { font-size: 0.65rem; letter-spacing: 2px; }
    .hero-deco-4 { display: none; }

    /* Slider */
    .slide { aspect-ratio: 16/9; }
    .slide-overlay { padding: 24px 28px; }
    .slide-overlay p { font-size: 1.2rem; }
    .slider-btn { width: 44px; height: 44px; }
    .slider-btn .icon-md { width: 24px; height: 24px; }
    .slider-prev { left: 12px; }
    .slider-next { right: 12px; }

    /* Countdown */
    .countdown-section { padding: 80px 0 70px; }
    .countdown-container { gap: 10px; }
    .countdown-card { min-width: 80px; padding: 20px 16px 16px; border-radius: 16px; }
    .countdown-number { font-size: 2.8rem; }
    .countdown-sep { font-size: 2.2rem; }
    .countdown-label { font-size: 0.7rem; letter-spacing: 2px; }
    .fun-facts-title { font-size: 1.3rem; gap: 8px; }
    .fun-facts-container { margin-top: 50px; }
    .fun-fact p { font-size: 1.1rem; }

    /* Gallery */
    .gallery-section { padding: 80px 0; }
    .clip-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .clip-gallery .clip-fig:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
    .clip-wide { padding: 14px; }

    /* Timeline */
    .timeline-section { padding: 80px 0; }
    .timeline-line { left: 24px; }
    .timeline-item, .timeline-item.right {
        width: 100%; margin-left: 0;
        padding: 16px 16px 16px 66px;
    }
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: -2px; right: auto;
        width: 44px; height: 44px;
    }
    .timeline-dot .icon-sm { width: 20px; height: 20px; }
    .timeline-img { height: 180px; }
    .timeline-card-body { padding: 20px; }
    .timeline-card-body h3 { font-size: 1.2rem; }
    .timeline-card-body p { font-size: 0.9rem; }

    /* Wishes */
    .wishes-section { padding: 80px 0; }
    .wishes-grid { grid-template-columns: 1fr; gap: 20px; }
    .wish-main { grid-column: span 1; }
    .wish-card { padding: 28px; }
    .wish-card h3 { font-size: 1.3rem; }
    .wish-card p { font-size: 0.95rem; }
    .wish-signature { font-size: 1.3rem; }

    /* Cake */
    .cake-section { padding: 80px 0; }
    .cake-img { max-width: 360px; }
    .cake-message h3 { font-size: 1.8rem; }
    .celebration-extras { grid-template-columns: 1fr; gap: 20px; }
    .celebration-img { height: 220px; }
    .celebration-card-body { padding: 22px; }

    /* Finale */
    .finale-content { padding: 60px 20px; }
    .finale-photo { width: 170px; height: 210px; margin-bottom: 36px; }
    .finale-message { font-size: 1.05rem; line-height: 1.8; }
    .finale-hearts { gap: 14px; }
    .finale-footer { font-size: 1.2rem; }

    /* Section titles */
    .section-title { font-size: clamp(2rem, 7vw, 3.5rem); }
    .section-subtitle { font-size: 1.05rem; }
    .section-tag { padding: 6px 18px; font-size: 0.78rem; letter-spacing: 1.5px; }
    .section-header { margin-bottom: 45px; }

    /* Fixed elements */
    .music-btn { bottom: 20px; left: 16px; padding: 8px 16px; font-size: 0.78rem; }
    .back-to-top { bottom: 20px; right: 16px; width: 46px; height: 46px; }

    /* Mobile nav */
    .mobile-nav { width: 260px; }
    .mobile-nav-link { font-size: 1.3rem; }
}

/* ---- Mobile (max 480px) ---- */
@media (max-width: 480px) {
    html { font-size: 15px; }
    .container { padding: 0 16px; }

    /* Hero */
    .hero-content { padding: 80px 16px 70px; }
    .hero-photo-frame { width: 150px; height: 190px; }
    .hero-photo-wrapper { margin-bottom: 28px; }
    .hero-tag { font-size: 0.78rem; letter-spacing: 1.5px; margin-bottom: 12px; }
    .title-happy { font-size: 1.4rem; }
    .title-birthday { font-size: clamp(2.8rem, 16vw, 5rem); }
    .title-name { font-size: clamp(1.8rem, 9vw, 3rem); }
    .hero-date { font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 1px; }
    .hero-quote {
        font-size: 0.9rem;
        padding: 14px 16px;
        line-height: 1.75;
        margin-bottom: 28px;
        border-left-width: 3px;
    }
    .hero-cta { flex-direction: column; align-items: center; gap: 12px; }
    .btn-blob { padding: 18px 44px; font-size: 0.85rem; width: 100%; justify-content: center; }
    .btn-outline { padding: 14px 30px; font-size: 0.85rem; width: 100%; justify-content: center; border-width: 2px; }
    .scroll-indicator { bottom: 24px; }
    .hero-deco { display: none; }

    /* Slider */
    .slide { aspect-ratio: 4/3; }
    .slide-overlay { padding: 16px 20px; }
    .slide-overlay p { font-size: 1rem; }
    .slider-btn { width: 38px; height: 38px; border-width: 2px; }
    .slider-btn .icon-md { width: 20px; height: 20px; }
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }
    .slider-dots { bottom: 14px; gap: 8px; }
    .slider-dots .dot { width: 10px; height: 10px; }
    .slider-container { border-width: 3px; }

    /* Countdown */
    .countdown-section { padding: 60px 0 50px; }
    .countdown-container { gap: 6px; }
    .countdown-card {
        min-width: 65px; padding: 14px 10px 12px;
        border-radius: 12px; border-width: 2px;
    }
    .countdown-number { font-size: 2.2rem; }
    .countdown-sep { font-size: 1.8rem; }
    .countdown-label { font-size: 0.6rem; letter-spacing: 1.5px; }
    .countdown-message { font-size: 1rem; }
    .fun-facts-container { margin-top: 40px; }
    .fun-facts-title { font-size: 1.1rem; flex-wrap: wrap; justify-content: center; }
    .fun-facts-carousel { min-height: 130px; }
    .fun-fact .icon-lg { width: 36px; height: 36px; }
    .fun-fact p { font-size: 1rem; }
    .fun-facts-dots .dot { width: 10px; height: 10px; }

    /* Gallery */
    .gallery-section { padding: 60px 0; }
    .clip-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .clip-gallery .clip-fig:last-child {
        max-width: 60%;
    }
    .clip-wide { padding: 10px; border-width: 2px; border-radius: 12px; }

    /* Timeline */
    .timeline-section { padding: 60px 0; }
    .timeline-line { left: 20px; width: 3px; }
    .timeline-item, .timeline-item.right {
        padding: 12px 12px 12px 56px;
    }
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: -2px;
        width: 38px; height: 38px;
        border-width: 3px;
    }
    .timeline-dot .icon-sm { width: 16px; height: 16px; }
    .timeline-card { border-width: 2px; border-radius: 14px; }
    .timeline-img { height: 150px; }
    .timeline-card-body { padding: 16px; }
    .timeline-card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
    .timeline-card-body p { font-size: 0.85rem; line-height: 1.7; }

    /* Wishes */
    .wishes-section { padding: 60px 0; }
    .wishes-grid { gap: 16px; }
    .wish-card {
        padding: 22px;
        border-radius: 16px;
        border-width: 2px;
    }
    .wish-icon { width: 36px; height: 36px; margin-bottom: 10px; }
    .wish-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
    .wish-card p { font-size: 0.9rem; line-height: 1.7; }
    .wish-signature { font-size: 1.15rem; margin-top: 18px; }

    /* Cake */
    .cake-section { padding: 60px 0; }
    .cake-container { margin-bottom: 50px; }
    .cake-img { max-width: 280px; border-width: 3px; border-radius: 16px; }
    .btn-blow { padding: 18px 44px; font-size: 0.85rem; }
    .cake-message h3 { font-size: 1.5rem; }
    .cake-message p { font-size: 1.05rem; }
    .celebration-extras { gap: 16px; }
    .celebration-card { border-width: 2px; border-radius: 16px; }
    .celebration-img { height: 180px; }
    .celebration-card-body { padding: 18px; }
    .celebration-card-body h3 { font-size: 1.1rem; }
    .celebration-card-body p { font-size: 0.85rem; }

    /* Finale */
    .finale-section { min-height: auto; }
    .finale-content { padding: 50px 16px; }
    .finale-photo { width: 140px; height: 175px; margin-bottom: 30px; }
    .finale-message { font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; }
    .finale-hearts { gap: 10px; margin-bottom: 28px; }
    .finale-hearts svg { width: 26px; height: 26px; }
    .finale-footer { font-size: 1.1rem; }

    /* Section common */
    .section-title { font-size: clamp(1.8rem, 8vw, 3rem); margin-bottom: 12px; }
    .section-subtitle { font-size: 0.95rem; }
    .section-tag { padding: 6px 14px; font-size: 0.72rem; letter-spacing: 1px; border-width: 2px; }
    .section-header { margin-bottom: 36px; }

    /* Fixed elements */
    .music-btn {
        bottom: 14px; left: 12px;
        padding: 7px 14px;
        font-size: 0.72rem;
        border-radius: 40px;
    }
    .music-btn .icon-sm { width: 18px; height: 18px; }
    .back-to-top { bottom: 14px; right: 12px; width: 42px; height: 42px; border-width: 2px; }
    .back-to-top .icon-sm { width: 20px; height: 20px; }

    /* Mobile nav */
    .mobile-nav { width: 100%; border-left: none; border-top: 3px solid var(--border); }
    .mobile-nav-link { font-size: 1.2rem; letter-spacing: 1.5px; }

    /* Lightbox */
    .lightbox-close, .lightbox-prev, .lightbox-next {
        width: 42px; height: 42px; border-width: 2px;
    }
    .lightbox-close .icon-md, .lightbox-prev .icon-md, .lightbox-next .icon-md {
        width: 24px; height: 24px;
    }
    .lightbox-close { top: 16px; right: 16px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-img { max-width: 94vw; max-height: 75vh; border-radius: 12px; }
}

/* ---- Very Small Phones (max 360px) ---- */
@media (max-width: 360px) {
    html { font-size: 14px; }
    .hero-content { padding: 75px 12px 60px; }
    .hero-photo-frame { width: 130px; height: 165px; }
    .title-birthday { font-size: 2.5rem; }
    .title-name { font-size: 1.6rem; }
    .hero-quote { font-size: 0.85rem; padding: 12px 14px; }
    .btn-blob { padding: 16px 32px; }
    .btn-outline { padding: 12px 24px; }
    .countdown-card { min-width: 55px; padding: 10px 8px 10px; }
    .countdown-number { font-size: 1.8rem; }
    .countdown-sep { font-size: 1.4rem; }
    .countdown-label { font-size: 0.55rem; }
    .clip-gallery { gap: 8px; }
    .timeline-item, .timeline-item.right { padding-left: 50px; }
    .timeline-line { left: 16px; }
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot { width: 34px; height: 34px; }
    .timeline-dot .icon-sm { width: 14px; height: 14px; }
    .wish-card { padding: 18px; }
    .cake-img { max-width: 240px; }
    .finale-photo { width: 120px; height: 150px; }
    .section-title { font-size: clamp(1.5rem, 9vw, 2.5rem); }
    .slide { aspect-ratio: 3/2; }
    .slider-btn { width: 32px; height: 32px; }
    .slider-btn .icon-md { width: 18px; height: 18px; }
    .music-btn .music-label { display: none; }
    .music-btn { padding: 10px; border-radius: 50%; }
}

/* ---- Touch device optimizations ---- */
@media (hover: none) and (pointer: coarse) {
    .clip-fig:hover img { transform: none; }
    .clip-fig:hover { filter: none; }
    .timeline-card:hover { transform: none; }
    .wish-card:hover { transform: none; }
    .celebration-card:hover { transform: none; }
    .countdown-card:hover { transform: none; }
    .nav-link:hover { background: transparent; border-color: transparent; }
}

/* ---- Landscape phones ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section { min-height: auto; padding: 80px 0 40px; }
    .hero-photo-frame { width: 120px; height: 150px; }
    .hero-photo-wrapper { margin-bottom: 20px; }
    .hero-content { padding: 70px 20px 40px; }
    .title-birthday { font-size: 3rem; }
    .hero-quote { font-size: 0.85rem; padding: 10px 14px; margin-bottom: 20px; }
    .scroll-indicator { display: none; }
    .finale-section { min-height: auto; }
}

/* ---- Safe area insets for modern phones ---- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .music-btn { bottom: calc(14px + env(safe-area-inset-bottom)); }
    .back-to-top { bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* =============================================
   SCROLL REVEAL BASE
   ============================================= */
.gallery-section .clip-fig,
.gallery-section .clip-wide {
    opacity: 0; transform: translateY(50px) scale(0.96);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-section .clip-fig.revealed,
.gallery-section .clip-wide.revealed {
    opacity: 1; transform: translateY(0) scale(1);
}
