/* Footer Specific Styles - footer.css */

/* Footer Background and Layout */
footer {
    position: relative;
    overflow: hidden;
}

footer .mesh-bg {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: meshMove 15s ease infinite;
}

footer .hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Footer Brand Section */
footer .gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

footer .gradient-bg::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;
}

footer .gradient-bg:hover::before {
    left: 100%;
}

/* Footer Links */
footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a:hover {
    transform: translateX(2px);
}

/* Social Media Icons */
footer .glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

footer .glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dark footer .glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark footer .glass:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Footer Section Titles */
footer h4 {
    position: relative;
    padding-bottom: 0.5rem;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #f093fb);
    border-radius: 1px;
}

/* Newsletter Section */
footer input[type="email"] {
    transition: all 0.3s ease;
}

footer input[type="email"]:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

footer button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer button::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;
}

footer button:hover::before {
    left: 100%;
}

footer button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Footer Lists */
footer ul li {
    position: relative;
    transition: all 0.3s ease;
}

footer ul li::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #f093fb);
    transition: width 0.3s ease;
}

footer ul li:hover::before {
    width: 6px;
}

footer ul li:hover {
    transform: translateX(6px);
}

/* Bottom Footer Border */
footer .border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

footer .border-t::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #f093fb);
    animation: borderSlide 3s ease-in-out infinite;
}

@keyframes borderSlide {
    0%, 100% { transform: translateX(0); opacity: 0.8; }
    50% { transform: translateX(calc(100vw - 200px)); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    footer .grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    footer .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    footer .lg\\:col-span-1 {
        text-align: center;
    }
    
    footer .flex.space-x-4 {
        justify-content: center;
    }
    
    footer .flex.gap-3 {
        flex-direction: column;
    }
    
    footer input[type="email"] {
        margin-bottom: 0.75rem;
    }
    
    footer .flex.flex-col.md\\:flex-row {
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    footer h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    footer p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    footer .w-12.h-12 {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    footer .text-2xl {
        font-size: 1.25rem;
    }
    
    footer .flex.gap-6 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Dark Mode Specific Styles */
.dark footer .mesh-bg {
    background: linear-gradient(-45deg, #1e293b, #334155, #475569, #64748b);
}

.dark footer .hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    footer *,
    footer *::before,
    footer *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States for Keyboard Navigation */
footer a:focus,
footer button:focus,
footer input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    footer {
        border-top: 2px solid;
    }
    
    footer .gradient-bg {
        background: #667eea;
    }
    
    footer .glass {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
    }
    
    .dark footer .glass {
        background: rgba(0, 0, 0, 0.9);
        color: #fff;
    }
}

/* Print Styles */
@media print {
    footer {
        background: none !important;
        color: #000 !important;
    }
    
    footer * {
        background: none !important;
        color: #000 !important;
    }
    
    footer .glass,
    footer .gradient-bg {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
    }
}