/* Founder Birthday Popup Styles */
#birthday-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

#birthday-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.birthday-popup-card {
    background: #fff;
    border-radius: 40px;
    padding: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.birthday-popup-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 15;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.birthday-popup-close:hover {
    background: #fff;
    transform: rotate(90deg) scale(1.1);
}

.founder-img-container {
    position: relative;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    line-height: 0;
}

.founder-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Badge Overlay */
.birthday-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    z-index: 10;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    animation: badgeFloat 3s infinite ease-in-out;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Brush Stroke Effect */
.brush-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('https://www.transparenttextures.com/patterns/brush-stroke.png'); /* Fallback */
    background-color: white;
    mask-image: linear-gradient(to top, white 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, white 20%, transparent 100%);
    z-index: 5;
}

/* Alternative Brush using SVG Mask */
.brush-mask {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    fill: white;
    z-index: 5;
}

.birthday-message {
    padding: 25px 20px 15px;
    text-align: center;
    background: #fff;
}

.birthday-message h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: #d63384; /* Pinkish color from image */
    margin-bottom: 5px;
    font-weight: 400;
    line-height: 1.3;
}

.birthday-message p {
    font-family: 'Great Vibes', cursive;
    font-size: 24px;
    color: #d63384;
    opacity: 0.9;
}

/* Glow Pulse Effect for the whole image */
.glow-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.2);
    pointer-events: none;
    z-index: 4;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Sparkles Animation */
.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    opacity: 0;
    box-shadow: 0 0 10px #fff;
}

.sparkle:nth-child(1) { top: 10%; left: 10%; animation: floatSparkle 4s infinite 0s; }
.sparkle:nth-child(2) { top: 30%; left: 90%; animation: floatSparkle 5s infinite 1s; }
.sparkle:nth-child(3) { top: 60%; left: 5%; animation: floatSparkle 4.5s infinite 2s; }
.sparkle:nth-child(4) { top: 15%; left: 70%; animation: floatSparkle 6s infinite 0.5s; }
.sparkle:nth-child(5) { top: 70%; left: 85%; animation: floatSparkle 5.5s infinite 1.5s; }

@keyframes floatSparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

/* Responsiveness */
@media (max-width: 576px) {
    .birthday-popup-card {
        padding: 10px;
    }
    .birthday-message h2 {
        font-size: 26px;
    }
    .birthday-message p {
        font-size: 20px;
    }
}
