@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&family=Pacifico&display=swap');

:root {
    --bg-color: #ffeff3;
    --primary: #ff7597;
    --text-main: #5e4348;
    --accent: #ffb8c9;
    --white-glass: rgba(255, 255, 255, 0.65);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #ffeef2 0%, #ffdde5 100%);
    color: var(--text-main);
    overflow: hidden;
    min-height: 100vh;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.9) !important;
    transition: all 0.5s ease-out !important;
    /* We use visibility hidden after opacity transitions in JS, but here display none as fallback */
}

/* Glassmorphism General */
.premium-glass {
    background: var(--white-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px rgba(255, 117, 151, 0.15);
}

/* Confetti Canvas Layer */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Background Bubbles */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -150px;
    background: rgba(255, 184, 201, 0.3);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

.bubble:nth-child(1) { left: 5%; width: 90px; height: 90px; animation-duration: 12s; }
.bubble:nth-child(2) { left: 15%; width: 45px; height: 45px; animation-duration: 8s; animation-delay: 1s; background: rgba(255, 255, 255, 0.4); }
.bubble:nth-child(3) { left: 40%; width: 70px; height: 70px; animation-duration: 15s; animation-delay: 2s; }
.bubble:nth-child(4) { left: 65%; width: 110px; height: 110px; animation-duration: 18s; animation-delay: 0s; }
.bubble:nth-child(5) { left: 85%; width: 60px; height: 60px; animation-duration: 10s; animation-delay: 3s; background: rgba(255, 255, 255, 0.5); }
.bubble:nth-child(6) { left: 30%; width: 30px; height: 30px; animation-duration: 6s; animation-delay: 4s; }
.bubble:nth-child(7) { left: 90%; width: 80px; height: 80px; animation-duration: 14s; animation-delay: 2s; }

@keyframes rise {
    0% { bottom: -150px; transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateX(30px); }
    90% { opacity: 0.8; }
    100% { bottom: 110vh; transform: translateX(-30px); opacity: 0; }
}

/* Overlay Intro */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 239, 243, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease-out;
}

.overlay-content {
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.title-shimmer {
    font-size: 2.2rem;
    color: var(--primary);
    background: linear-gradient(90deg, #ff7597, #ff9eb5, #ff7597);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientShimmer 3s linear infinite;
    margin-bottom: 20px;
}

@keyframes gradientShimmer {
    to { background-position: 200% center; }
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.pulse-btn {
    background: linear-gradient(135deg, var(--primary), #ff9eb5);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(255, 117, 151, 0.4);
    animation: pulseBtn 2s infinite;
    transition: transform 0.2s;
}

.pulse-btn:hover {
    transform: scale(1.05);
    animation: none;
}

@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 rgba(255, 117, 151, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(255, 117, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 117, 151, 0); }
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    opacity: 1;
    transform: scale(1);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-card {
    padding: 30px 40px; /* Reduced vertical padding */
    border-radius: 40px;
    text-align: center;
    max-width: 500px; /* Reduced from 550px */
    width: 90%; 
    margin: 10px auto; /* Reduced margin */
    position: relative;
    z-index: 10;
}

h1 {
    font-family: 'Pacifico', cursive;
    color: var(--primary);
    font-size: 2.2rem; /* Reduced font size */
    margin-top: 0;
    margin-bottom: 20px; /* Reduced margin */
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(255, 117, 151, 0.2);
}

.highlight {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2.8rem; /* Reduced from 3.5rem */
    color: #ff5c85;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.photo-container {
    position: relative;
    width: 160px; /* Reduced from 220px */
    height: 160px; /* Reduced from 220px */
    margin: 0 auto 20px; /* Reduced bottom margin */
}

.photo-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), white, var(--accent));
    z-index: 2;
}

.photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.4;
    z-index: 1;
    animation: pulseGlow 4s alternate infinite;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    background-color: white;
}

.greeting-text {
    font-size: 1.1rem; /* Reduced font size */
    font-style: italic;
    color: #7b5d63;
    padding: 0 10px;
    margin-bottom: 20px; /* Reduced margin */
}

.stats-box {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 15px; /* Reduced padding */
    border-radius: 20px;
    margin-bottom: 20px; /* Reduced margin */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.stats-label {
    margin-bottom: 5px;
    font-size: 0.9rem; /* Smaller label */
    font-weight: 600;
    color: var(--primary);
}

#age-counter {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    font-weight: 800;
    color: #ff5c85;
    letter-spacing: 1px;
}

.btn-soft {
    background: white;
    border: 2px solid var(--accent);
    padding: 12px 30px;
    border-radius: 30px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 184, 201, 0.3);
}

.btn-soft:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 184, 201, 0.5);
}

/* Floating Cats Full Screen */
.cats-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.floating-cat {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 5px solid white;
    background: white;
    object-fit: cover;
}

/* Remaining Static Cats (Pushed towards the center more) */
.cat-4 { width: 120px; top: 15%; right: 12%; animation: superFloat 7s ease-in-out infinite 1s; transform: rotate(15deg); }
.cat-5 { width: 105px; bottom: 15%; left: 12%; animation: superFloat 6s ease-in-out infinite 3s reverse; transform: rotate(-10deg); }
.cat-7 { width: 115px; top: 45%; left: 8%; animation: superFloat 7.5s ease-in-out infinite 2.5s reverse; transform: rotate(8deg); }
.cat-8 { width: 130px; bottom: 25%; right: 15%; animation: superFloat 9.5s ease-in-out infinite 0.5s; transform: rotate(-12deg); }

/* GIF specific wrapper styles */
.gif-wrapper {
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* softer shadow */
}

.gif-wrapper .tenor-gif-embed {
    width: 100% !important;
    height: 100% !important;
    pointer-events: none; /* Prevent accidentally clicking out */
}

/* GIF Cats Positioning (Pushed towards the center more) */
.cat-10 { width: 125px; top: 10%; left: 18%; animation: superFloat 8.5s ease-in-out infinite 0.2s; transform: rotate(10deg); }
.cat-11 { width: 140px; bottom: 10%; right: 22%; animation: superFloat 6.5s ease-in-out infinite 2.2s reverse; transform: rotate(-5deg); }
.cat-12 { width: 120px; top: 38%; right: 5%; animation: superFloat 7.8s ease-in-out infinite 1.1s; transform: rotate(8deg); }
.cat-13 { width: 130px; bottom: 30%; left: 5%; animation: superFloat 9.2s ease-in-out infinite 0.9s reverse; transform: rotate(-8deg); }
.cat-14 { width: 115px; top: 65%; right: 12%; animation: superFloat 5.8s ease-in-out infinite 3.5s; transform: rotate(12deg); }
.cat-15 { width: 145px; top: 80%; left: 20%; animation: superFloat 8.2s ease-in-out infinite 1.7s reverse; transform: rotate(-10deg); }

@keyframes superFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-30px) rotate(var(--rot, 8deg)); }
}
