@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d2d5f 100%);
    font-family: 'Poppins', sans-serif;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Fireworks */
.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: explode 2s ease-out infinite;
}

.firework:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: #ff6b6b;
}

.firework:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
    background: #4ecdc4;
}

.firework:nth-child(3) {
    top: 60%;
    left: 70%;
    animation-delay: 1s;
    background: #ffe66d;
}

.firework:nth-child(4) {
    top: 40%;
    left: 50%;
    animation-delay: 1.5s;
    background: #a8e6cf;
}

.firework:nth-child(5) {
    top: 70%;
    left: 30%;
    animation-delay: 2s;
    background: #ff8b94;
}

@keyframes explode {
    0% {
        box-shadow: 0 0 0 0 currentColor;
        transform: scale(0);
    }
    20% {
        transform: scale(1);
    }
    100% {
        box-shadow: 
            0 -50px 0 -5px currentColor,
            35px -35px 0 -5px currentColor,
            50px 0 0 -5px currentColor,
            35px 35px 0 -5px currentColor,
            0 50px 0 -5px currentColor,
            -35px 35px 0 -5px currentColor,
            -50px 0 0 -5px currentColor,
            -35px -35px 0 -5px currentColor;
        transform: scale(1) rotate(180deg);
        opacity: 0;
    }
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.countdown-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ffd700, #ff69b4, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.8)); }
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-5px);
}

.number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.label {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Message */
.message {
    margin-top: 30px;
}

.message h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ff69b4;
}

.message p {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.6;
}

/* Celebration Mode */
.celebration-mode {
    animation: celebrate 1s ease-in-out infinite alternate;
}

@keyframes celebrate {
    from { background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d2d5f 100%); }
    to { background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%); }
}

.celebration {
    font-size: 3rem !important;
    animation: bounce 1s ease-in-out infinite;
}

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

/* Floating Hearts */
.hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.heart {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 25%;
    animation-delay: 1s;
}

.heart:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
}

.heart:nth-child(4) {
    left: 75%;
    animation-delay: 3s;
}

.heart:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
.navigation {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Sparkles */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.sparkle {
    position: absolute;
    font-size: 1rem;
    animation: sparkle-fall linear;
    opacity: 0.8;
}

@keyframes sparkle-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 15px;
    }
    
    .number {
        font-size: 2rem;
    }
    
    .countdown-container {
        padding: 20px;
        margin: 20px;
    }
    
    .navigation {
        flex-direction: column;
        align-items: center;
    }
}
