/* =========================================================
   ZAINCODEX - MODERN GLASS FOOTER
   Adaptive White & Dark Mode, Gradients & Floating Buttons
========================================================= */

.footer {
    position: relative;
    padding: 90px 20px 40px;
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 70px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Ambient glow accent line on top of footer */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gradient-nav-border);
    border-radius: 9999px;
    opacity: 0.85;
}

.footer-container {
    max-width: 1240px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
}

/* BRAND COLUMN */
.footer-logo {
    width: 160px;
    height: auto;
    margin-bottom: 18px;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.03);
}

[data-theme="dark"] .footer-logo {
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.22));
}

.brand-desc {
    font-size: 14.5px;
    color: var(--footer-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

/* FOOTER COLUMNS */
.footer-col h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 10px;
}

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

.footer-col ul a {
    text-decoration: none;
    display: block;
}

.footer-col li {
    font-size: 14px;
    color: var(--footer-muted);
    margin-bottom: 12px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col li:hover {
    color: var(--orange);
    transform: translateX(5px);
}

/* SOCIAL ICONS GRID */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.28s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.social-btn[title*="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.45);
    color: #ffffff;
}

.social-btn[title*="TikTok"]:hover {
    background: #010101;
    color: #25f4ee;
    box-shadow: 0 6px 20px rgba(37, 244, 238, 0.4);
}

.social-btn[title*="X"]:hover {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.social-btn[title*="YouTube"]:hover {
    background: #ff0000;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.45);
}

.social-btn[title*="Facebook"]:hover {
    background: #1877f2;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

.social-btn[title*="WhatsApp"]:hover {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* NEWSLETTER BOX */
.newsletter-box-wrapper h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.newsletter {
    display: flex;
    background: var(--bg-glass-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    overflow: hidden;
    padding: 4px 6px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 16px var(--orange-glow);
}

.newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
}

.newsletter input::placeholder {
    color: var(--footer-muted);
}

.newsletter button {
    background: var(--gradient-brand);
    border: none;
    padding: 9px 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.newsletter button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 90, 31, 0.4);
}

/* FOOTER BOTTOM */
.footer-bottom {
    max-width: 1240px;
    margin: 50px auto 0;
    padding-top: 25px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--footer-muted);
}

/* FLOATING BUTTONS */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1040;
}

/* SCROLL TO TOP */
.btn-top {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.btn-top:hover {
    transform: translateY(-4px);
    color: var(--orange);
    border-color: var(--orange);
    box-shadow: var(--shadow-lg);
}

/* FLOATING WHATSAPP BUTTON */
.btn-wa {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.38);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wa:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.50);
    color: #ffffff !important;
}

/* Pulsing Status Dot */
.btn-wa::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    background: #4ade80;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* RESPONSIVE FOOTER */
@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer {
        padding: 60px 16px 30px;
    }
}