/* ==========================================
   CSS RESET & VARIABLES
   ================================---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0b0e;
    --bg-secondary: #12141a;
    --bg-card: #181b24;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-color: #bfefff;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --gold-accent: #d4af37;
    --font-sans: Arial, sans-serif;
    --font-display: Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    background: var(--bg-primary);
    font-family: var(--font-sans);
}

/* ==========================================
   HERO SECTION
   ================================---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 209, 102, 0.18), transparent 12%),
        radial-gradient(circle at 80% 18%, rgba(255, 140, 198, 0.18), transparent 12%),
        radial-gradient(circle at 25% 75%, rgba(142, 240, 210, 0.12), transparent 12%),
        radial-gradient(circle at 75% 72%, rgba(179, 157, 255, 0.12), transparent 10%);
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

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

.birthday-pop-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.streamer {
    position: absolute;
    top: 18px;
    width: 22%;
    height: 18px;
    border-radius: 999px;
    background: repeating-linear-gradient(
        90deg,
        #ff8cc6 0 20%,
        #ffd166 20% 40%,
        #8ed9ff 40% 60%,
        #8ef0d2 60% 80%,
        #b39dff 80% 100%
    );
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
    opacity: 0.9;
}

.streamer-left {
    left: 12%;
    transform: rotate(-7deg);
}

.streamer-right {
    right: 12%;
    transform: rotate(7deg);
}

.balloon {
    position: absolute;
    top: 40px;
    width: 60px;
    height: 76px;
    border-radius: 52% 48% 48% 52% / 58% 58% 42% 42%;
    background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08));
    box-shadow: inset -10px -10px 18px rgba(0, 0, 0, 0.12), 0 12px 18px rgba(0, 0, 0, 0.2), 0 0 18px rgba(255, 255, 255, 0.14);
    animation: balloonFloat 5.5s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.18);
}

.balloon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 62px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%);
}

.balloon::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.18);
}

.balloon-left {
    left: 8%;
    top: 34%;
    background: linear-gradient(180deg, #ff8cc6 0%, #ff5ea8 45%, #ffb1d7 100%);
    animation-delay: 0s;
}

.balloon-right {
    right: 8%;
    top: 36%;
    background: linear-gradient(180deg, #8ed9ff 0%, #49b6ff 45%, #c5efff 100%);
    animation-delay: 1s;
}

.balloon-center {
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    width: 50px;
    height: 66px;
    background: linear-gradient(180deg, #ffd166 0%, #ffb703 48%, #ffe8a6 100%);
    animation-delay: 1.6s;
}

.balloon-a {
    left: 19%;
    top: 28%;
    width: 52px;
    height: 68px;
    background: linear-gradient(180deg, #c7f4ff 0%, #90d6ff 45%, #e8fbff 100%);
    animation-delay: 0.7s;
}

.balloon-b {
    left: 30%;
    top: 24%;
    width: 48px;
    height: 62px;
    background: linear-gradient(180deg, #ffd9ef 0%, #ff9dc2 45%, #fff1f8 100%);
    animation-delay: 1.4s;
}

.balloon-c {
    right: 19%;
    top: 30%;
    width: 54px;
    height: 70px;
    background: linear-gradient(180deg, #d9ffe5 0%, #8ae7b0 45%, #f0fff5 100%);
    animation-delay: 2s;
}

.balloon-d {
    right: 30%;
    top: 24%;
    width: 46px;
    height: 60px;
    background: linear-gradient(180deg, #fff0bf 0%, #ffd166 45%, #fff7d9 100%);
    animation-delay: 2.5s;
}

.balloon-e {
    left: 42%;
    top: 34%;
    width: 42px;
    height: 55px;
    background: linear-gradient(180deg, #d7d0ff 0%, #b39dff 45%, #f3eeff 100%);
    animation-delay: 0.4s;
}

.balloon-f {
    right: 42%;
    top: 32%;
    width: 44px;
    height: 58px;
    background: linear-gradient(180deg, #ffebc2 0%, #ffb5a7 45%, #fff2e9 100%);
    animation-delay: 1.8s;
}

@keyframes balloonFloat {
    0%, 100% {
        transform: translateY(0) rotate(-3deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(2deg) scale(1.02);
    }
    50% {
        transform: translateY(-18px) rotate(4deg) scale(1.04);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.page-slider {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 209, 102, 0.18), transparent 12%),
        radial-gradient(circle at 80% 18%, rgba(255, 140, 198, 0.18), transparent 12%),
        radial-gradient(circle at 25% 75%, rgba(142, 240, 210, 0.12), transparent 12%),
        radial-gradient(circle at 75% 72%, rgba(179, 157, 255, 0.12), transparent 10%),
        linear-gradient(135deg, rgba(17, 17, 27, 0.98), rgba(38, 28, 55, 0.96), rgba(12, 18, 32, 0.98));
    transform: translateX(100%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 20;
    pointer-events: none;
}

body.page-transition .page-slider {
    transform: translateX(0%);
}

.hero-title-shell {
    position: relative;
    display: inline-block;
    padding: 0 1.5rem;
}

.hero-popper {
    position: absolute;
    top: -10px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    animation: heroPopperFall 2.4s ease-in forwards;
}

@keyframes heroPopperFall {
    0% {
        opacity: 0;
        transform: translate3d(0, -12px, 0) scale(0.65);
    }
    15% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--hero-drift, 0), 150px, 0) scale(1.3) rotate(210deg);
    }
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title-line {
    display: inline-block;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 0.04em;
    font-weight: 400;
    color: #fff;
}

.hero-image {
    position: relative;
    display: block;
    width: min(68vw, 300px);
    margin: 0 auto;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.35));
    z-index: 1;
    isolation: isolate;
}

.wish-button {
    position: relative;
    padding: 0.9rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffb7d9 0%, #dcb6ff 45%, #bfefff 100%);
    color: #0a0b0e;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 26px rgba(211, 143, 255, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 2;
}

.continue-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, #bfefff 0%, #cfe7ff 28%, #d7d2ff 100%);
    color: #1a1f31;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 26px rgba(98, 159, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 2;
}

.wish-button:hover, .continue-button:hover {
    transform: translateY(-2px);
}

.wish-button:hover {
    box-shadow: 0 18px 32px rgba(211, 143, 255, 0.36);
    border-color: rgba(255, 255, 255, 0.42);
}

.continue-button:hover {
    box-shadow: 0 18px 32px rgba(98, 159, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.42);
}

.arrow {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
}

.hero-image::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -8%;
    width: 72%;
    height: 20%;
    transform: translateX(-50%);
    border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
    background:
        radial-gradient(circle at 12% 50%, #fff8d8 0 12%, transparent 13%),
        radial-gradient(circle at 30% 45%, #ffd166 0 12%, transparent 13%),
        radial-gradient(circle at 48% 52%, #ff8cc6 0 12%, transparent 13%),
        radial-gradient(circle at 68% 46%, #8ed9ff 0 12%, transparent 13%),
        radial-gradient(circle at 86% 50%, #ffd166 0 12%, transparent 13%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,231,177,0.82));
    box-shadow: 0 8px 18px rgba(255, 140, 198, 0.2);
    z-index: -1;
}

.hero-image::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 90%;
    height: 44%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 217, 255, 0.95) 0%, rgba(142, 217, 255, 0.32) 30%, rgba(142, 217, 255, 0) 70%);
    filter: blur(20px);
    z-index: -2;
}

.highlight-name {
    font-family: 'DynaPuff', cursive;
    background: linear-gradient(135deg, #fff8d6 0%, #ffd9e8 22%, #bfefff 48%, #dfffe9 72%, #fff3c4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.popper-burst {
    position: absolute;
    width: 12px;
    height: 18px;
    border-radius: 999px;
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
    animation: partyBurst 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes partyBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.6) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) scale(1.25) rotate(220deg);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ================================---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {

    .hero-section {
        min-height: 100vh;
        padding: 6rem 1rem 3rem;
    }

    .hero-title-shell {
        padding: 0 0.5rem;
    }

    .hero-title {
        font-size: clamp(2.1rem, 9vw, 3.3rem);
        margin-bottom: 1rem;
        line-height: 1.12;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.75rem;
        padding: 0 0.25rem;
    }

    .balloon {
        width: 42px;
        height: 54px;
        top: 48px;
    }

    .balloon::before {
        height: 42px;
    }

    .balloon-left {
        left: 5%;
    }

    .balloon-right {
        right: 5%;
    }

    .balloon-center {
        width: 36px;
        height: 46px;
    }

    .hero-popper {
        width: 8px;
        height: 8px;
    }
}