/* Enhanced Footer Styles */
footer {
    background: linear-gradient(135deg, var(--deep-space) 0%, #0a0a1a 100%);
    color: white;
    padding: 4rem 0 1rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(88, 101, 242, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyber-aqua), transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-column h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-violet), var(--cyber-aqua));
    transition: width 0.3s ease;
}

.footer-column:hover h3::after {
    width: 60px;
}

/* About Section Enhancements */
.footer-about {
    position: relative;
}

.footer-about p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 25px;
    color: var(--cyber-aqua);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tech-badge i {
    color: var(--neon-violet);
}

/* Enhanced Links */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
    position: relative;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.3rem 0;
}

.footer-links a::before {
    content: '▸';
    color: var(--cyber-aqua);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyber-aqua);
    transform: translateX(5px);
    text-shadow: 0 0 8px var(--cyber-aqua-glow);
}

.footer-links a:hover::before {
    transform: translateX(-2px);
    color: var(--neon-violet);
}

/* Enhanced Social Links */
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--neon-violet), var(--cyber-aqua));
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* Enhanced Discord CTA */
.discord-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-family: 'Orbitron', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discord-cta::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;
}

.discord-cta:hover::before {
    left: 100%;
}

.discord-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.5);
    background: linear-gradient(135deg, #4752C4, #5865F2);
}

/* Enhanced Copyright */
.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    position: relative;
}

.copyright::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-aqua), transparent);
}

/* Newsletter Section */
.newsletter {
    margin-top: 1.5rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--cyber-aqua);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.newsletter-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, var(--neon-violet), var(--cyber-aqua));
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 255, 0.4);
}

/* Newsletter Notification Styles */
.newsletter-notification {
    margin-top: 1rem;
    min-height: 20px;
    transition: all 0.3s ease;
}

.notification {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.notification.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.notification.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

.notification.info {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for button */
.newsletter-btn.loading {
    position: relative;
    color: transparent;
}

.newsletter-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Enhanced Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-violet), var(--cyber-aqua));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--neon-violet-glow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 30px var(--neon-violet-glow);
}

/* Responsive Design - UPDATED FOR LEFT ALIGNMENT */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* REMOVED: text-align: center */
    }
    
    .footer-column h3::after {
        left: 0; /* CHANGED: from 50% to 0 */
        transform: none; /* CHANGED: removed translateX(-50%) */
    }
    
    .social-links {
        justify-content: flex-start; /* CHANGED: from center to flex-start */
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    /* ADDED: Ensure all content is left-aligned */
    .footer-column {
        text-align: left;
    }
    
    .footer-about {
        text-align: left;
    }
    
    .tech-badge {
        justify-content: flex-start;
    }
}

/* Add these animation styles to your existing footer CSS */

/* Footer animation base styles */
.footer-column {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-column.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile-specific animation adjustments */
@media (max-width: 768px) {
    .footer-column {
        transform: translateY(15px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    /* Staggered animation for mobile columns */
    .footer-column:nth-child(1) { transition-delay: 0.1s; }
    .footer-column:nth-child(2) { transition-delay: 0.2s; }
    .footer-column:nth-child(3) { transition-delay: 0.3s; }
    .footer-column:nth-child(4) { transition-delay: 0.4s; }
}

/* Ensure smooth loading state */
footer {
    opacity: 1;
}

/* Loading state for when footer is being fetched */
body.footer-loading footer {
    opacity: 0;
}

body.footer-loaded footer {
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (max-width: 576px) {
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        text-align: left; /* CHANGED: from center to left */
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}
