/* css/birthday.css */

.birthday-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 1.5s ease, backdrop-filter 1.5s ease, -webkit-backdrop-filter 1.5s ease;
}

.birthday-overlay.active {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.birthday-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.birthday-card {
    position: relative;
    width: 90vw;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.5s ease 0.5s, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    background-image: url('../assets/Hero%20section/Hero%20section%20image%20dark.webp');
    background-size: cover;
    background-position: center 20%; /* Adjusted for desktop to show image a little downside */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.birthday-overlay.active .birthday-card {
    opacity: 1;
    transform: scale(1);
}

/* Inner Glassmorphism Content Area */
.birthday-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease 1s, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1s;
}

.birthday-overlay.active .birthday-content {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
.birthday-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #FFD700, #FDB931, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.birthday-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #e0e0e0;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.5;
}

.birthday-text {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: #aaaaaa;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Button */
.birthday-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease 2s, transform 1s ease 2s;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    backdrop-filter: blur(5px);
    padding: 12px 32px;
}

.birthday-overlay.active .birthday-btn {
    opacity: 1;
    transform: translateY(0);
}

.birthday-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

.birthday-footer-text {
    margin-top: 20px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}

.birthday-overlay.active .birthday-footer-text {
    opacity: 1;
    transform: translateY(0);
}

@keyframes colorCycle1 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes colorCycle2 {
    0% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.animated-text-1 {
    background: linear-gradient(90deg, #ff6b6b, #feca57, #1dd1a1, #5f27cd, #ff6b6b);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: colorCycle1 4s linear infinite;
    display: block;
    width: fit-content;
    margin: 0 auto 4px auto;
    text-shadow: none; /* override the parent text-shadow so colors remain vibrant */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); /* use drop-shadow instead for transparent text */
}

.animated-text-2 {
    background: linear-gradient(90deg, #54a0ff, #00d2d3, #ff9ff3, #f368e0, #54a0ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: colorCycle2 5s linear infinite;
    display: block;
    width: fit-content;
    margin: 0 auto;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* Particles */
.birthday-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.birthday-particle {
    position: absolute;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: floatParticle 8s infinite linear;
    opacity: 0;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .birthday-card {
        aspect-ratio: 9 / 16;
        width: 90vw;
        height: auto;
        padding: 20px;
        background-position: center;
    }
    .birthday-content {
        max-width: 95%;
        padding: 30px 20px;
    }
}
