/**
 * Footer Styles
 */

footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #2563eb, #f97316, #2563eb);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

/* Footer Links */
footer a {
    position: relative;
    transition: all 0.3s ease;
}

footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f97316;
    transition: width 0.3s ease;
}

footer a:hover::before {
    width: 100%;
}

/* Newsletter Form */
#newsletter-form input {
    transition: all 0.3s ease;
}

#newsletter-form input:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Footer Headings */
footer h4 {
    position: relative;
    display: inline-block;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    background: #f97316;
}

/* Social Links */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Instagram Grid */
.instagram-grid a {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 1;
}

.instagram-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-grid a:hover::after {
    opacity: 1;
}

.instagram-grid a img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instagram-grid a:hover img {
    transform: scale(1.1);
}

/* Footer Background Pattern */
.footer-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Payment Icons */
.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    transform: translateY(-2px);
    background: #374151;
}

/* Back to Top Button */
#back-to-top {
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-3px);
    background: #1d4ed8;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 4rem;
    height: 4rem;
    background: #25d366;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(37, 211, 102, 0.7); }
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #20ba5a;
}

/* Copyright Bar */
.copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.copyright-bar a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.copyright-bar a:hover {
    color: #f97316;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #f97316 100%);
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 60px 60px;
    animation: move-dots 20s linear infinite;
    opacity: 0.3;
}

@keyframes move-dots {
    from { transform: translateY(0); }
    to { transform: translateY(-50px); }
}