/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
    /* Prevent horizontal overflow from animations */
}

/* Gradient Top Border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer .container {
    position: relative;
}

/* Footer Content Layout */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

/* Footer Left */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-xs);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Center - Links */
.footer-center {
    display: flex;
    justify-content: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.footer-links a:hover {
    color: var(--gradient-orange);
}

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

/* Footer Right - Social Links */
.footer-right {
    display: flex;
    justify-content: flex-end;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gradient);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Tablet Responsiveness */
@media (max-width: 1023px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .footer-left {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
    }

    .footer-center {
        justify-content: flex-start;
    }

    .footer-links {
        align-items: flex-start;
    }

    .footer-right {
        justify-content: flex-end;
    }
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .footer {
        padding: var(--spacing-md) 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-logo {
        width: 50px;
        height: 50px;
    }

    .copyright {
        font-size: 0.8rem;
    }

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