/* ========================================
   FUTURISTIC 2040 FOOTER DESIGN
   Ultra-Modern Footer with Advanced Effects
   ======================================== */

/* Footer Container */
.main-footer {
    position: relative;
    background: linear-gradient(180deg, 
        #0A0A0A 0%, 
        #050505 100%);
    overflow: hidden;
}

/* Animated Background Grid */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glowing Orbs Background */
.main-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(108, 99, 255, 0.05) 0%, transparent 50%);
    animation: orbMove 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(180deg); }
}

/* Footer Top Section - Compact Horizontal */
.footer-top {
    position: relative;
    z-index: 1;
    padding: 2.5rem 0 1.5rem;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 255, 0.3), 
        rgba(108, 99, 255, 0.3),
        transparent) 1;
}

.footer-top::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #00FFFF 50%, 
        transparent 100%);
    animation: borderScan 3s linear infinite;
}

@keyframes borderScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Footer Widget Styling - Compact */
.footer-widget {
    position: relative;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.footer-widget:hover {
    background: rgba(0, 255, 255, 0.03);
    border-color: rgba(0, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.15);
}

/* Footer Logo */
.footer-logo img {
    height: 50px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.4));
    transition: all 0.4s ease;
}

.footer-widget:hover .footer-logo img {
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.6));
    transform: scale(1.05);
}

/* Footer Widget Title - Compact */
.footer-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00FFFF, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00FFFF, transparent);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Footer Links - Compact */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.footer-links li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00FFFF;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.footer-links li:hover::before {
    transform: translateX(5px);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-link:hover {
    color: #00FFFF;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.contact-info i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
}

/* Social Links - 2040 Style */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1), 
        rgba(108, 99, 255, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 14px;
    color: #00FFFF;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00FFFF, #6C63FF);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-link:hover::before {
    opacity: 0.2;
}

.social-link i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
}

.social-link:hover {
    transform: translateY(-8px) rotate(10deg) scale(1.1);
    border-color: #00FFFF;
    box-shadow: 
        0 10px 30px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(0, 255, 255, 0.3);
}

/* Newsletter Form - Futuristic */
.newsletter-form {
    margin-top: 1rem;
}

.newsletter-form .flex {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.newsletter-form .flex:focus-within {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.newsletter-form input {
    flex-grow: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #00FFFF, #6C63FF);
    border: none;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-form button::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;
}

.newsletter-form button:hover::before {
    left: 100%;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00FFFF;
    transition: width 0.3s ease;
}

.footer-bottom a:hover {
    color: #00FFFF;
}

.footer-bottom a:hover::after {
    width: 100%;
}

/* Back to Top Button - 2040 Style */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.2), 
        rgba(108, 99, 255, 0.2));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 16px;
    color: #00FFFF;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #00FFFF, #6C63FF);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.back-to-top:hover::before {
    opacity: 0.3;
}

.back-to-top i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    border-color: #00FFFF;
    box-shadow: 
        0 12px 48px rgba(0, 255, 255, 0.4),
        0 0 60px rgba(0, 255, 255, 0.3);
}

/* Responsive Design - Horizontal Layout */
@media (max-width: 1200px) {
    .footer-widget {
        min-width: 180px;
        max-width: 240px;
    }
}

@media (max-width: 1024px) {
    .footer-top {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-widget {
        padding: 1rem;
        min-width: 160px;
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-widget {
        margin-bottom: 1.5rem;
        max-width: 100%;
        flex: 1 1 45%;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .footer-widget {
        flex: 1 1 100%;
    }
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .md\:grid-cols-2,
    .lg\:grid-cols-4 { 
        grid-template-columns: repeat(1, 1fr); 
    }
}

/* Utility Classes */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-6 { margin-top: 1.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.rounded-l { border-radius: 0.5rem 0 0 0.5rem; }
.rounded-r { border-radius: 0 0.5rem 0.5rem 0; }
