/* 
   ULTRA GOD MODE FOOTER - TheLionAI
   Compact, High-Performance, Futuristic
*/

.footer {
    background: #050505 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1.5rem !important; /* Reduced padding */
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Animated Cyber Border Top */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-primary) 20%, 
        var(--neon-secondary) 50%, 
        var(--neon-primary) 80%, 
        transparent 100%
    );
    background-size: 200% auto;
    animation: shimmer-border 3s linear infinite;
    box-shadow: 0 0 15px var(--neon-primary);
}

@keyframes shimmer-border {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Ambient Background Mesh */
.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(236, 72, 153, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

/* Grid Layout - More Compact */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr; /* Tighter columns */
    gap: 2rem !important;
    margin-bottom: 2.5rem !important;
    align-items: start;
}

/* Brand Section */
.footer-col:first-child {
    padding-right: 2rem;
}

.footer-col h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col h3::before {
    content: '🦁';
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.5));
}

.footer-col p {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem;
}

/* Headings */
.footer-col h4 {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.2rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--neon-secondary);
    transition: width 0.3s ease;
}

.footer-col:hover h4::after {
    width: 100%;
}

/* Links List */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.6rem !important;
}

.footer-col a {
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-col a:hover {
    color: #fff !important;
    padding-left: 10px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.footer-col a::before {
    content: '›';
    position: absolute;
    left: -10px;
    opacity: 0;
    color: var(--neon-primary);
    transition: all 0.3s ease;
}

.footer-col a:hover::before {
    left: 0;
    opacity: 1;
}

/* Social Icons - Holographic Buttons */
.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.1rem;
    transition: all 0.3s ease !important;
    padding: 0 !important; /* Override link padding */
}

.social-links a:hover {
    background: var(--neon-primary);
    border-color: var(--neon-primary);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 0 20px var(--neon-primary);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Back to Top Button (Styled) */
#scrollTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-primary);
    border-radius: 50%;
    color: var(--neon-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

#scrollTop:hover {
    transform: translateY(-5px);
    background: var(--neon-primary);
    color: #fff;
    box-shadow: 0 0 30px var(--neon-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 6rem !important; /* Extra bottom padding for mobile nav */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem !important;
        text-align: center;
    }

    .footer-col:first-child {
        padding-right: 0;
    }

    .footer-col h3 {
        justify-content: center;
    }

    .footer-col p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col a {
        justify-content: center;
    }
    
    .footer-col a:hover {
        padding-left: 0;
        transform: scale(1.05);
    }
    
    .footer-col a::before {
        display: none;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
/* Extra Small Mobile (iPhone SE) */
@media (max-width: 375px) {
    .footer {
        padding: 2rem 0 5rem !important;
    }
    
    .footer-col h3 {
        font-size: 1.5rem;
    }
    
    .footer-col h4 {
        font-size: 0.9rem !important;
    }
    
    .footer-col a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}