/* ===================================
   🦶 FOOTER SECTION
   ===================================== */

/* ===== MAIN FOOTER CONTAINER ===== */
.footer {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.98) 0%, 
        rgba(25, 25, 35, 0.95) 50%, 
        rgba(15, 15, 15, 0.98) 100%
    );
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 50%, 
        transparent 100%
    );
    animation: footerGlow 4s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% { opacity: 0.3; transform: scaleX(0.5); }
    100% { opacity: 1; transform: scaleX(1); }
}

/* ===== FOOTER CONTENT LAYOUT ===== */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* ===== BRAND SECTION ===== */
.brand-section .footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rocketPulse 3s ease-in-out infinite;
}

@keyframes rocketPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.footer-logo h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ===== SOCIAL LINKS - ULTRA MODERN ===== */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

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

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

.social-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

.social-link.linkedin:hover {
    background: linear-gradient(135deg, #0077B5, #005885);
    color: white;
}

.social-link.twitter:hover {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
    color: white;
}

.social-link.tiktok:hover {
    background: linear-gradient(135deg, #FF0050, #000000);
    color: white;
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: white;
}

.social-link.whatsapp:hover {
    background: linear-gradient(135deg, #25D366, #1ebe57);
    color: white;
}

.social-link.threads:hover {
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
}

.social-link.facebook:hover {
    background: linear-gradient(135deg, #1877F2, #166fe5);
    color: white;
}

.social-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.social-link:hover .social-tooltip {
    opacity: 1;
    bottom: 130%;
}

/* ===== FOOTER SECTIONS ===== */
.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateX(8px);
}

.footer-links a i {
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover i {
    opacity: 1;
}

/* ===== CONTACT INFO FOOTER ===== */
.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item-footer:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    transform: translateY(-2px);
}

.contact-item-footer i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.contact-item-footer div {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item-footer a:hover {
    color: var(--accent-primary);
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
}

.footer-links-bottom {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links-bottom a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

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

.footer-links-bottom a:hover {
    color: var(--accent-primary);
}

/* ===== FOOTER BADGE ===== */
.footer-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.made-with {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.made-with i {
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(var(--accent-primary-rgb), 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ===== FLOATING BACKGROUND EFFECTS ===== */
.footer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, 
        rgba(var(--accent-primary-rgb), 0.05) 0%, 
        transparent 70%
    );
    transform: translate(-50%, -50%);
    animation: footerPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes footerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.1; }
}

/* ===== DARK MODE SPECIFIC ENHANCEMENTS ===== */
.dark-mode .footer {
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.98) 0%, 
        rgba(20, 20, 30, 0.95) 50%, 
        rgba(10, 10, 10, 0.98) 100%
    );
    border-top-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .social-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .contact-item-footer {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .contact-item-footer:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dark-mode .tech-tag {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.footer * {
    will-change: transform;
}

/* ===== SIMPLE SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    /* Initial hidden state */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(100px) scale(0.8) !important;
    /* Force button out of any container positioning */
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
}

/* Ensure scroll-to-top button is never affected by smooth scrolling wrapper */
.smooth-wrapper .scroll-to-top,
.smooth-content .scroll-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 999999 !important;
    /* Force positioning */
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
}

/* Ensure button is visible over cookie banner and ALWAYS fixed */
.scroll-to-top {
    z-index: 999999 !important;
}

.cookie-banner {
    z-index: 999998 !important;
}

/* Additional aggressive positioning rules */
html .scroll-to-top,
body .scroll-to-top,
* .scroll-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    top: auto !important;
    left: auto !important;
    z-index: 999999 !important;
}

/* Normal button behavior - show/hide based on scroll position */

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.scroll-to-top::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 255, 255, 0.3) 90deg,
        transparent 180deg
    );
    opacity: 0;
    transition: all 0.6s ease;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.scroll-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 15px 40px rgba(0, 122, 255, 0.6), 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

.dark-mode .scroll-to-top {
    background: linear-gradient(135deg, 
        rgba(0, 122, 255, 0.9) 0%, 
        rgba(88, 86, 214, 0.9) 100%
    );
    box-shadow: 
        0 8px 25px rgba(0, 122, 255, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.4);
}

.dark-mode .scroll-to-top:hover {
    box-shadow: 
        0 15px 40px rgba(0, 122, 255, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1rem !important;
        right: 1rem !important;
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: opacity 0.3s ease;
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
    
    .scroll-to-top:hover i {
        transform: none;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .brand-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links-bottom {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-badge {
        align-items: center;
    }
}