/* Enhanced styles for the countdown timer */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

h1 {
    font-size: 5rem;
    color: #ff0000;
    text-shadow: 
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 15px #ff0000;
    margin-bottom: 2rem;
    text-align: center;
    animation: pulse 2s infinite;
    letter-spacing: 15px;
}

.countdown-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.countdown-box {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    min-width: 150px;
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.3),
        inset 0 0 5px rgba(255, 0, 0, 0.2);
    transform: perspective(500px) rotateX(10deg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,0,0,0.2) 0%, transparent 70%);
    transform: rotate(30deg);
    z-index: -1;
}

.countdown-box:hover {
    transform: perspective(500px) rotateX(0deg) scale(1.05);
    box-shadow: 
        0 0 15px rgba(255, 0, 0, 0.5),
        inset 0 0 8px rgba(255, 0, 0, 0.3);
}

.countdown-value {
    font-size: 4rem;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 
        0 0 5px #ff0000,
        0 0 10px #ff0000;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.countdown-label {
    font-size: 1.5rem;
    color: #ff0000;
    text-shadow: 
        0 0 3px #ff0000,
        0 0 5px #ff0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        text-shadow: 
            0 0 5px #ff0000,
            0 0 10px #ff0000,
            0 0 15px #ff0000;
    }
    50% { 
        transform: scale(1.02);
        text-shadow: 
            0 0 8px #ff0000,
            0 0 15px #ff0000,
            0 0 20px #ff0000;
    }
    100% { 
        transform: scale(1);
        text-shadow: 
            0 0 5px #ff0000,
            0 0 10px #ff0000,
            0 0 15px #ff0000;
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes glow {
    0% { 
        box-shadow: 
            0 0 3px rgba(255, 0, 0, 0.3),
            inset 0 0 3px rgba(255, 0, 0, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 10px rgba(255, 0, 0, 0.5),
            inset 0 0 8px rgba(255, 0, 0, 0.3);
    }
    100% { 
        box-shadow: 
            0 0 3px rgba(255, 0, 0, 0.3),
            inset 0 0 3px rgba(255, 0, 0, 0.2);
    }
}

.countdown-box {
    animation: fadeIn 1s ease-out forwards, glow 3s infinite;
}

.countdown-box:nth-child(1) { 
    animation-delay: 0.2s; 
}
.countdown-box:nth-child(2) { 
    animation-delay: 0.4s; 
}
.countdown-box:nth-child(3) { 
    animation-delay: 0.6s; 
}
.countdown-box:nth-child(4) { 
    animation-delay: 0.8s; 
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .countdown-box {
        min-width: 100px;
        padding: 1.5rem;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 1rem;
    }
}

/* Particles effect */
.particle {
    position: absolute;
    background-color: rgba(255, 0, 0, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}