/* ================= RESET & GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Quicksand', system-ui, sans-serif;
    background: linear-gradient(110deg, #f8f406 0%, #ec55fa 100%);
    min-height: 100vh;
    padding-top: 70px; /* space for fixed navbar */
    color: #1e2a32;
    line-height: 1.5;
    position: relative;
}

/* ================= PASSWORD GATE ================= */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display:flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.password-card {
    background: rgba(255, 245, 235, 0.95);
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    border: 2px solid #ffbf9f;
    width: 90%;
    max-width: 400px;
    color: #4f2d41;
}

.password-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #e6865d, #b84e7a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.password-card input {
    width: 100%;
    padding: 0.8rem;
    margin: 1rem 0;
    border: 2px solid #ffbf9f;
    border-radius: 2rem;
    font-size: 1rem;
    outline: none;
    text-align: center;
}

.password-card button {
    background: #ffb18b;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.password-card button:hover {
    background: #e683b2;
    transform: scale(1.02);
}

.error-message {
    color: #d9534f;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 250, 240, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(248, 193, 80, 0.3);
    z-index: 100;
    padding: 0.8rem 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 3 auto;
    display: flex;
    justify-content:right;
    gap: 1rem;
}

.nav-link {
    color: #b84e7a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: 0.2s;
}

.nav-link:hover {
    background: rgba(184, 78, 122, 0.1);
    color: #ffb18b;
}

.nav-link.active {
    background: #ffb18b;
    color: white;
}

/* ================= FLOATING MUSIC BUTTON (RIGHT SIDE) ================= */
.floating-music-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    background: #ffb18b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 200;
    transition: 0.2s;
    border: 2px solid white;
}

.floating-music-btn i {
    font-size: 1.8rem;
    color: white;
}

.floating-music-btn:hover {
    transform: scale(1.05);
    background: #e683b2;
}

.music-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.floating-music-btn:hover .music-tooltip {
    opacity: 1;
}

/* ================= MAIN CARD ================= */
.birthday-card {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 250, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(248, 193, 80, 0.3);
    border-radius: 2.5rem;
    padding: 2rem;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,0.3), 0 0 0 1px rgba(248, 193, 80, 0.2) inset;
}

/* ================= SECTIONS ================= */
.section {
    margin-bottom: 3rem;
    scroll-margin-top: 80px; /* offset for fixed navbar */
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #e6865d, #b84e7a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.8rem;
}

/* ================= HERO ================= */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #e6865d, #b84e7a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    color: #b84e7a;
    -webkit-text-fill-color: #b84e7a;
}

.hero .subhead {
    font-size: 1.2rem;
    color: #5a3a4a;
    max-width: 600px;
    margin-top: 0.5rem;
    font-weight: 500;
    border-bottom: 1px dashed #ffbf9f;
    padding-bottom: 1rem;
}

.countdown-box {
    font-size: 1.8rem;
    font-weight: 600;
    background: rgba(255, 245, 220, 0.8);
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 60px;
    backdrop-filter: blur(5px);
    border: 2px solid #ffbf9f;
    color: #884c6b;
    margin-top: 1rem;
}

/* ================= ICON GRID (TRAITS) ================= */
.icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    margin: 2rem 0 2rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.icon-item i {
    font-size: 2.2rem;
    color: #b84e7a;
    background: rgba(184, 78, 122, 0.1);
    padding: 1rem;
    border-radius: 60px;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(184, 78, 122, 0.3);
    transition: 0.2s;
}

.icon-item span {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7a4f6e;
}

.icon-item:hover i {
    background: #b84e7a;
    color: white;
    border-color: #b84e7a;
}

/* ================= PERSONAL MESSAGE BOX ================= */
.message-box {
    background: rgba(255, 235, 225, 0.8);
    border-radius: 2rem;
    padding: 1.8rem 2rem;
    margin: 1rem 0;
    border-left: 4px solid #ffb18b;
    box-shadow: 0 15px 25px -20px rgba(0,0,0,0.2);
}

.message-box p {
    font-size: 1.25rem;
    font-weight: 500;
    color: #4f2d41;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.message-box .signature {
    font-size: 1.3rem;
    font-weight: 600;
    color: #c45b8a;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-end;
}

.message-box .signature i {
    font-size: 1.5rem;
    color: #ffb18b;
}

/* ================= WISHES GRID ================= */
.wish-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
}

.wish-card {
    background: rgba(255, 250, 240, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 1.8rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 260px;
    flex: 1 1 240px;
    box-shadow: 0 15px 25px rgba(180, 110, 130, 0.2);
    border: 1px solid #ffdec2;
    transition: 0.2s;
    text-align: center;
}

.wish-card.special {
    background: #fff2e7;
    border: 2px solid #ffb18b;
}

.wish-photo {
    margin: 0 auto 1rem auto;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffbf9f;
    background: #ffe0cc;
}

.wish-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wish-text {
    font-size: 1rem;
    font-style: italic;
    color: #4a3142;
    margin: 0.5rem 0;
}

.wish-author {
    margin-top: 0.5rem;
    font-weight: 700;
    color: #d2697a;
    text-align: right;
}

/* ================= ACTION AREA (CELEBRATE BUTTON) ================= */
.action-area {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.btn-gold {
    background: transparent;
    border: 2px solid #ffb18b;
    color: #b84e7a;
    padding: 0.8rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(4px);
}

.btn-gold:hover {
    background: #ffb18b;
    color: white;
    border-color: #ffb18b;
    transform: scale(1.02);
}

/* ================= BALLOONS ================= */
.balloons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 1rem;
    opacity: 0.8;
}

.balloon {
    width: 45px;
    height: 58px;
    background: #f58f8f;
    border-radius: 50% 50% 40% 40%;
    box-shadow: inset -6px -10px 0 #d86161;
    position: relative;
    animation: float 4.5s infinite;
}

.balloon::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 35px;
    background: #b5857a;
    bottom: -30px;
    left: 21px;
}

.balloon:nth-child(2) {
    background: #f7c77b;
    animation-delay: 0.8s;
}
.balloon:nth-child(3) {
    background: #9fd9cd;
    animation-delay: 1.5s;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* ================= FOOTER ================= */
.footer-note {
    text-align: center;
    font-size: 0.9rem;
    color: #b27b8c;
    margin-top: 2rem;
    border-top: 1px solid #ffdec2;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-note .date {
    color: #c45b8a;
    font-weight: 500;
}

.footer-note i {
    color: #ffb18b;
    margin: 0 4px;
}

/* ================= FLOATING MESSAGE ================= */
.floating-message {
    position: fixed;
    background: #ffedd7;
    color: #ac4f78;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(230, 120, 140, 0.5);
    border: 2px solid #feba9a;
    pointer-events: none;
    z-index: 9999;
    animation: floatUp 8s ease-out forwards;
    white-space: nowrap;
    max-width: 320px;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-40px); }
}

/* ================= CONFETTI CANVAS ================= */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    .navbar {
        padding: 0.5rem;
    }
    .nav-container {
        gap: 1rem;
    }
    .nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    .birthday-card {
        padding: 1.5rem;
    }
    .message-box p {
        font-size: 1.1rem;
    }
    .icon-grid {
        gap: 1.5rem;
    }
    .floating-music-btn {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }
    .floating-music-btn i {
        font-size: 1.5rem;
    }
}