/* =========================================
   Footer — Premium Creative Animated Design
   2 Aces Designing & Construction
   ========================================= */

.footer {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 15%, #080b12 100%);
    position: relative;
    overflow: hidden;
}

/* Animated gradient top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-primary) 0%,
            var(--color-accent) 25%,
            var(--color-secondary) 50%,
            var(--color-accent) 75%,
            var(--color-primary) 100%);
    background-size: 200% 100%;
    animation: footerBorderSlide 4s linear infinite;
    z-index: 1;
}

@keyframes footerBorderSlide {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Decorative floating orbs */
.footer::after {
    content: '';
    position: absolute;
    top: 40%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
    pointer-events: none;
    animation: floatOrb 8s ease-in-out infinite;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20px, -30px) scale(1.1);
    }
}

.footer-main {
    padding: var(--space-4xl) 0 var(--space-2xl);
    position: relative;
    z-index: 2;
}

/* Second decorative orb via main */
.footer-main::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: -3%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: floatOrb2 10s ease-in-out infinite;
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, 20px);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: var(--space-xl);
}

/* ========== Brand Column ========== */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.brand-logo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-icon {
    position: relative;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 50%;
    overflow: hidden;
}

.brand-logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(16, 185, 129, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Spinning gradient ring — same as navbar */
.brand-logo-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            var(--color-primary),
            var(--color-accent),
            var(--color-secondary),
            var(--color-primary));
    z-index: 1;
    animation: footerLogoSpin 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Glow behind logo */
.brand-logo-icon::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    z-index: 0;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes footerLogoSpin {
    to {
        transform: rotate(360deg);
    }
}

.brand-logo:hover .brand-logo-icon::before,
.brand-logo:hover .brand-logo-icon::after {
    opacity: 1;
}

.brand-logo:hover .brand-logo-icon img {
    border-color: var(--color-primary);
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    position: relative;
}

.brand-name::before {
    content: '2 ACES';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(16, 185, 129, 0.9) 45%,
            rgba(245, 158, 11, 0.9) 55%,
            transparent 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: footerBrandShimmer 4s ease-in-out infinite;
}

@keyframes footerBrandShimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.brand-sub {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    transition: color 0.3s ease;
}

.brand-logo:hover .brand-sub {
    color: var(--color-primary-light);
}

.brand-tagline {
    color: var(--color-accent);
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}

/* Animated accent dot before tagline */
.brand-tagline::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    margin-right: 8px;
    vertical-align: middle;
    animation: taglinePulse 2s ease-in-out infinite;
}

@keyframes taglinePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.brand-desc {
    font-size: var(--text-sm);
    line-height: 1.8;
    color: var(--color-text-dim);
}

/* ========== Social Icons — Creative Animated ========== */
.social-icons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-dim);
    font-size: var(--text-base);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Animated shine effect on social icons */
.social-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transition: all 0.6s ease;
    transform: translateX(-100%);
}

.social-icon .jd-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.social-icon:hover::before {
    transform: translateX(100%);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-color: transparent;
    transform: translateY(-5px) rotate(-3deg);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.social-icon.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: transparent;
    transform: translateY(-5px) rotate(3deg);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-icon.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: transparent;
    transform: translateY(-5px) rotate(-3deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.social-icon.youtube:hover {
    background: #FF0000;
    color: white;
    border-color: transparent;
    transform: translateY(-5px) rotate(3deg);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-icon.justdial:hover {
    background: #2196F3;
    color: white;
    border-color: transparent;
    transform: translateY(-5px) rotate(-3deg);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

/* ========== Footer Column Headings — Animated Underline ========== */
.footer-column h4 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
    color: var(--color-text);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-column:hover h4::after {
    width: 60px;
}

/* ========== Footer Links — Animated Hover ========== */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding-left: 0;
}

.footer-links a i {
    font-size: 8px;
    color: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
}

.footer-links a:hover {
    color: var(--color-primary-light);
    padding-left: 6px;
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(3px);
    color: var(--color-accent);
}

/* ========== Footer Contact — Vertical List ========== */
.footer-grid>.footer-column:last-child {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-grid>.footer-column:last-child h4 {
    width: 100%;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 0;
    width: 100%;
    /* Single column */
    margin-bottom: var(--space-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-contact-item:hover {
    transform: translateX(4px);
}

.footer-contact-item .contact-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.12);
    color: var(--color-primary-light);
    font-size: var(--text-sm);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.footer-contact-item:hover .contact-icon {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: scale(1.05) rotate(-3deg);
    color: white;
}

.footer-contact-item .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-item .contact-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-dim);
}

.footer-contact-item .contact-value {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-contact-item .contact-value a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

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

/* ========== Footer Bottom — Animated Divider ========== */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
    border-top: 1px solid transparent;
    position: relative;
}

/* Animated gradient divider */
.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(16, 185, 129, 0.3),
            rgba(245, 158, 11, 0.2),
            rgba(99, 102, 241, 0.2),
            rgba(16, 185, 129, 0.3),
            transparent);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    letter-spacing: 0.02em;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-contact-item {
        width: 100%;
        /* Switch back to 1 column for tablet/mobile */
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact-item {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .brand-logo {
        align-items: center;
    }

    .brand-logo-top {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}