* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2c1810 0%, #4a1942 50%, #1a1a2e 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f8b500);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section {
    background: rgba(15, 15, 30, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 2px solid rgba(255, 182, 193, 0.2);
    width: 100%;
    max-width: 800px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #630121;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.countdown-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.4rem;
    color: #8c00ff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.time-unit {
    background: linear-gradient(135deg, #2c1810, #4a1942);
    border-radius: 20px;
    padding: 2rem 1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 182, 193, 0.2);
}

.time-unit:hover {
    transform: translateY(-3px);
}

.time-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b9d;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
}

.time-label {
    display: block;
    font-size: 1.2rem;
    color: #f8b500;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.birthday-date {
    margin-top: 2rem;
}

#next-birthday-text {
    font-size: 1.3rem;
    color: #c44569;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden {
    display: none !important;
}

/* Birthday Section Styles */
.birthday-message {
    text-align: center;
}

.happy-birthday {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f8b500);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.celebration-emojis {
    font-size: 2.5rem;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.birthday-wish {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #f8b500;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer {
    margin-top: auto;
    padding-top: 3rem;
}

.love-signature {
    position: fixed;
    bottom: 15px;
    right: 20px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #f8b500;
    opacity: 0.7;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    pointer-events: none;
    transform: rotate(-5deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .countdown-title {
        font-size: 2rem;
    }
    
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .time-unit {
        padding: 1.5rem 1rem;
    }
    
    .time-number {
        font-size: 2rem;
    }
    
    .time-label {
        font-size: 1rem;
    }
    
    .happy-birthday {
        font-size: 2.5rem;
    }
    
    .birthday-wish {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .countdown-container {
        grid-template-columns: 1fr;
    }
    
    .celebration-emojis {
        font-size: 2rem;
    }
}
