/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Container and layout */
.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Logo styles */
.logo-container {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.logo {
    width: 120px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Message styles */
.message-container {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.redirect-message {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Countdown styles */
.countdown-container {
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
    font-weight: 400;
    color: #cccccc;
}

.countdown-number {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0.25rem;
    display: inline-block;
    min-width: 1.5rem;
    text-align: center;
    animation: pulse 1s infinite;
}

/* Loading bar styles */
.loading-bar {
    width: 200px;
    height: 4px;
    background-color: #333333;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Footer styles */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.footer p {
    font-size: 0.875rem;
    color: #888888;
    line-height: 1.5;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .logo {
        width: 100px;
    }
    
    .redirect-message {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .countdown-container {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .countdown-number {
        font-size: 1.75rem;
    }
    
    .loading-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        width: 80px;
    }
    
    .redirect-message {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .countdown-container {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .loading-bar {
        width: 120px;
    }
    
    .footer {
        bottom: 1rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .countdown-number {
        background: none;
        -webkit-text-fill-color: #ffffff;
        color: #ffffff;
    }
    
    .progress {
        background: #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .logo,
    .content,
    .footer {
        animation: none;
    }
    
    .countdown-number {
        animation: none;
    }
    
    .logo:hover {
        transform: none;
    }
}
