/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #e3f2fd;
    background-image:
        radial-gradient(at 10% 10%, rgba(243, 215, 245, 0.8) 0px, transparent 50%),
        radial-gradient(at 90% 5%, rgba(254, 253, 227, 0.8) 0px, transparent 40%),
        radial-gradient(at 50% 45%, rgba(214, 243, 252, 0.7) 0px, transparent 60%),
        radial-gradient(at 90% 85%, rgba(255, 182, 231, 0.8) 0px, transparent 50%),
        radial-gradient(at 10% 90%, rgba(249, 219, 243, 0.6) 0px, transparent 50%);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    position: relative;
    width: 600px;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 20px 0;
}

/* Party Popper / Confetti Layer Container */
.popper-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

/* Base Party Popper Piece */
.popper-piece {
    position: absolute;
    animation: topDownFall linear forwards;
}

.shape-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff619f;
}

.shape-square {
    width: 8px;
    height: 8px;
    background-color: #7c68dc;
    border-radius: 2px;
}

.shape-star {
    width: 12px;
    height: 12px;
    background-color: #ffca3a;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes topDownFall {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.6);
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: translate(calc(var(--drift-x) * 0.5), calc(var(--drop-y) * 0.5)) rotate(360deg) scale(1.1);
    }
    100% {
        transform: translate(var(--drift-x), var(--drop-y)) rotate(720deg) scale(1);
        opacity: 0;
    }
}

/* Combined Bunting Banner Top */
.bunting-container {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.bunting-container img {
    width: 100%;
    height: auto;
}

/* Header Text Section */
.header-text {
    text-align: center;
    margin-top: 35px;
    z-index: 2;
}

.happy-title {
    font-size: 32px;
    color: #4db6ac;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.birthday-title {
    font-size: 64px;
    color: #9575cd;
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-weight: bold;
    line-height: 1;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
}

/* Combined Frame & Balloons Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.frame-balloons-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

/* Profile Image Styling */
.profile-img {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Action Group Container */
.action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
    margin-top: -25px;
}

/* Name Ribbon Styling */
.name-ribbon {
    font-family: 'DynaPuff', cursive;
    background: #f3eeff;
    color: #7c68dc;
    padding: 6px 24px;
    border-radius: 15px;
    font-size: 14px;
    letter-spacing: 1.5px;
    border: 1.5px dashed #b790ff;
    box-shadow: 0 2px 8px rgba(124, 104, 220, 0.08);
    cursor: default;
    user-select: none;
}

/* Surprise Button Styling */
.surprise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #a29bfe, #74b9ff);
    color: white;
    text-decoration: none;
    padding: 11px 26px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(116, 103, 204, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.surprise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(116, 103, 204, 0.4);
}

.btn-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
}

/* Combined Bottom Gifts & Cake Section */
.bottom-decor {
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
    margin-top: 15px;
}

.bottom-decor img {
    width: 100%;
    max-width: 500px;
    height: auto;
}