/* Modern Footer Animations - Blue Theme */

/* Footer entrance animation */
.modern-footer {
    animation: footerSlideUp 0.8s ease-out;
}

@keyframes footerSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for footer content */
.footer-content > * {
    animation: footerContentFadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.footer-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-content > *:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes footerContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer links hover animations */
.footer-links a {
    position: relative;
    overflow: hidden;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    transition: left 0.3s ease;
}

.footer-links a:hover::after {
    left: 100%;
}

/* Logo pulse animation */
.footer-logo h3 {
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

/* Badge hover effect */
.logo-badge {
    transition: all 0.3s ease;
}

.footer-brand:hover .logo-badge {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.3));
    border-color: rgba(59, 130, 246, 0.5);
}

/* Contact items hover animation */
.contact-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.contact-item:hover svg {
    color: #60a5fa;
    transform: scale(1.1);
}

/* Footer bottom entrance */
.footer-bottom {
    animation: footerBottomSlideUp 0.8s ease-out 0.4s both;
}

@keyframes footerBottomSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal links wave animation */
.legal-links a {
    transition: all 0.3s ease;
    position: relative;
}

.legal-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.legal-links a:hover::before {
    width: 100%;
}

/* Background gradient animation */
.modern-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            45deg,
            rgba(59, 130, 246, 0.02) 0%,
            rgba(99, 102, 241, 0.02) 50%,
            rgba(168, 85, 247, 0.02) 100%
        );
    animation: backgroundShift 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(10px) rotate(1deg);
    }
}

/* Responsive animations */
@media (max-width: 768px) {
    .footer-content > * {
        animation-delay: 0.05s;
    }
    
    .footer-content > *:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .footer-content > *:nth-child(2) {
        animation-delay: 0.15s;
    }
    
    .footer-content > *:nth-child(3) {
        animation-delay: 0.2s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modern-footer,
    .footer-content > *,
    .footer-bottom {
        animation: none;
    }
    
    .footer-logo h3 {
        animation: none;
    }
    
    .modern-footer::after {
        animation: none;
    }
}