/* Welcome Animation Styles */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(28, 29, 31, 0.95) 0%, rgba(86, 36, 208, 0.95) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-overlay.active {
    opacity: 1;
    visibility: visible;
}

.welcome-container {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
    position: relative;
}

/* Animated Background Particles */
.welcome-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-particle 3s ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Countdown Circle */
.countdown-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
    }
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    animation: scale-bounce 1s ease-in-out;
}

@keyframes scale-bounce {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.countdown-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.countdown-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
}

.countdown-circle-progress {
    fill: none;
    stroke: white;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

/* Welcome Messages */
.welcome-message {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.6s ease-out forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.6s ease-out 0.2s forwards;
    color: rgba(255, 255, 255, 0.95);
}

.zkilla-id-display {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin: 2rem auto;
    max-width: 400px;
    opacity: 0;
    transform: scale(0.9);
    animation: fade-in-scale 0.6s ease-out 0.4s forwards;
}

@keyframes fade-in-scale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zkilla-id-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.zkilla-id-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

/* Feature Cards */
.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.6s ease-out 0.6s forwards;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce-icon 2s ease-in-out infinite;
}

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

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Welcome Action Button */
.welcome-action {
    margin-top: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.6s ease-out 0.8s forwards;
}

.welcome-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.welcome-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.welcome-btn:hover::before {
    left: 100%;
}

.welcome-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.6);
}

.welcome-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-text {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.welcome-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Go Animation */
.go-animation {
    font-size: 6rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.9);
    animation: explode-go 0.8s ease-out;
}

@keyframes explode-go {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fbbf24;
    animation: confetti-fall 3s ease-out forwards;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-circle {
        width: 150px;
        height: 150px;
    }
    
    .countdown-number {
        font-size: 4rem;
    }
    
    .welcome-message {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .zkilla-id-value {
        font-size: 1.5rem;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .go-animation {
        font-size: 4rem;
    }
    
    .welcome-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .btn-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .welcome-container {
        padding: 1rem;
    }
    
    .countdown-circle {
        width: 120px;
        height: 120px;
    }
    
    .countdown-number {
        font-size: 3rem;
    }
    
    .welcome-message {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .zkilla-id-display {
        padding: 1rem 1.5rem;
    }
    
    .zkilla-id-value {
        font-size: 1.2rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .welcome-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-text {
        font-size: 1rem;
    }
    
    .btn-icon {
        font-size: 1.2rem;
    }
}
