/* Enhanced Professional Footer Styles */
.footer-container {
    background: linear-gradient(135deg,
        rgba(10, 10, 20, 0.98) 0%,
        rgba(20, 15, 35, 0.95) 50%,
        rgba(15, 10, 30, 0.98) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    33% { opacity: 0.8; transform: scale(1.05) rotate(1deg); }
    66% { opacity: 0.9; transform: scale(0.98) rotate(-1deg); }
}

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

.footer-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    animation: floatUp 15s linear infinite;
    opacity: 0;
}

.footer-particle:nth-child(odd) {
    background: linear-gradient(45deg, #f093fb, #667eea);
    animation-duration: 18s;
}

.footer-particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    animation-duration: 12s;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(-10vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(0);
    }
}

/* Footer content sections */
.footer-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
}

.footer-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo section enhancements */
.footer-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite alternate;
    box-shadow:
        0 0 20px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(118, 75, 162, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.footer-logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0% {
        box-shadow:
            0 0 20px rgba(102, 126, 234, 0.4),
            0 0 40px rgba(118, 75, 162, 0.2);
    }
    100% {
        box-shadow:
            0 0 30px rgba(102, 126, 234, 0.6),
            0 0 60px rgba(118, 75, 162, 0.4);
    }
}

@keyframes logoShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.footer-logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    letter-spacing: 1px;
}

/* Enhanced description text */
.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Social buttons enhancements */
.footer-social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.footer-social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.footer-social-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-social-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* Platform-specific social button styles */
.footer-social-btn.facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.3), rgba(24, 119, 242, 0.1));
}

.footer-social-btn.facebook::before {
    background: linear-gradient(135deg, #1877f2, #0d5dc7);
}

.footer-social-btn.twitter {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.3), rgba(29, 161, 242, 0.1));
}

.footer-social-btn.twitter::before {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.footer-social-btn.discord {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(88, 101, 242, 0.1));
}

.footer-social-btn.discord::before {
    background: linear-gradient(135deg, #5865f2, #4752c4);
}

.footer-social-btn.youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(255, 0, 0, 0.1));
}

.footer-social-btn.youtube::before {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

/* Section headings */
.footer-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite alternate;
}

@keyframes underlineGlow {
    0% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
        width: 40px;
    }
    100% {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
        width: 50px;
    }
}

/* Links styling */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    border-radius: 4px;
    font-weight: 500;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #f093fb;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.5);
}

.footer-link:hover::before {
    width: 100%;
}

/* Copyright section */
.footer-copyright {
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    position: relative;
}

.footer-copyright-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-content {
        padding: 3rem 0 1.5rem;
    }

    .footer-logo-icon {
        width: 50px;
        height: 50px;
    }

    .footer-logo-text {
        font-size: 1.5rem;
    }

    .footer-section {
        margin-bottom: 2rem;
    }

    .footer-social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .footer-social-links {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 2rem 0 1rem;
    }

    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-description {
        text-align: center;
        font-size: 0.9rem;
    }

    .footer-social-links {
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-section-title {
        text-align: center;
        font-size: 1.1rem;
    }

    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        text-align: center;
    }
}

/* RTL Support */
[dir="rtl"] .footer-link {
    padding-right: 0;
    padding-left: 0;
}

[dir="rtl"] .footer-link:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .footer-section-title::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-social-links {
    flex-direction: row-reverse;
}

/* Hover effects for sections */
.footer-section:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.footer-section:hover .footer-section-title::after {
    width: 60px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 1);
}

/* Loading animation for footer */
.footer-container.loading .footer-section {
    opacity: 0;
    transform: translateY(50px);
}

/* Entrance animation when footer comes into view */
@keyframes footerEntrance {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-container.animate-in {
    animation: footerEntrance 1s ease-out forwards;
}
