/* 20 Years Anniversary Animation */
#anniversary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in;
}

#anniversary-overlay.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

.anniversary-content {
    text-align: center;
    position: relative;
    z-index: 10000;
    animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anniversary-logo {
    position: relative;
    display: inline-block;
    text-align: center;
}

.anniversary-number {
    font-size: 18rem;
    font-weight: 900;
    color: #ff9800;
    display: block;
    font-family: Arial, sans-serif;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 40px;
    text-shadow: 
        3px 3px 0px #f57c00,
        6px 6px 0px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.anniversary-years-badge {
    position: absolute;
    right: -80px;
    top: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #f44336 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
    animation: rotate 3s linear infinite;
    z-index: 3;
    border: 3px solid white;
}

.anniversary-text {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: -20px;
    text-shadow: 
        0 2px 10px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3);
    font-family: Arial, sans-serif;
}

.anniversary-waves {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 50px;
}

.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ff9800, transparent);
    border-radius: 50%;
    animation: wave 2s ease-in-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.3s;
    opacity: 0.7;
}

.wave:nth-child(3) {
    animation-delay: 0.6s;
    opacity: 0.4;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    animation: confettiFall 3s ease-out forwards;
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes wave {
    0%, 100% {
        transform: scaleX(0.8) scaleY(1);
        opacity: 0;
    }
    50% {
        transform: scaleX(1.2) scaleY(0.5);
        opacity: 1;
    }
}

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

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

/* Mobile responsive */
@media (max-width: 768px) {
    .anniversary-number {
        font-size: 16rem;
        margin-bottom: 30px;
    }
    
    .anniversary-years-badge {
        font-size: 2rem;
        padding: 12px 18px;
        right: -70px;
        top: 30px;
        border: 3px solid white;
    }
    
    .anniversary-text {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }
    
    .anniversary-waves {
        width: 120%;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .anniversary-number {
        font-size: 12rem;
        margin-bottom: 25px;
    }
    
    .anniversary-years-badge {
        font-size: 1.5rem;
        padding: 10px 14px;
        right: -50px;
        top: 20px;
        border: 2px solid white;
    }
    
    .anniversary-text {
        font-size: 1.8rem;
        letter-spacing: 0.15em;
    }
    
    .anniversary-waves {
        width: 130%;
        height: 35px;
    }
}
