/* ---------- FOOTER - PREMIUM REDESIGN ---------- */
.footer {
    background: linear-gradient(160deg, #021334 0%, #04153f 58%, #051024 100%);
    color: #e0e0e0;
    padding: 0;
    font-family: var(--font-body);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Animated gradient border at top */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-primary),
            var(--color-accent),
            var(--color-primary),
            var(--color-accent));
    background-size: 200% auto;
    animation: footerBorder 4s linear infinite;
}

@keyframes footerBorder {
    0% {
        background-position: 0% 0;
    }

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

.footer-main {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Brand Section */
.footer-brand-section {
    padding-right: 1rem;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo-wrapper:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 280px;
}

/* Contact Info */
.footer-contact {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.contact-item i {
    width: 25px;
    color: var(--color-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* Footer Columns */
.footer-col {
    padding: 0;
}

.footer-col h4 {
    font-family: var(--font-nav);
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.3rem;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

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

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: inline-block;
}

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

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    transform: translateY(-3px);
    border-color: transparent;
    text-decoration: none;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.back-to-top {
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    transform: translateY(-3px);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand-section {
        grid-column: span 2;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-logo-wrapper {
        justify-content: center;
    }

    .footer-contact {
        display: flex;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

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

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

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

    .footer-col ul li a {
        display: inline-block;
    }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .footer-brand-section {
        grid-column: span 1;
    }

    .bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    /* Contact Items - Center aligned, stacked vertically */
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
    }

    .contact-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.8rem;
        width: auto;
        min-width: 220px;
        margin: 0 auto;
    }

    .contact-item i {
        width: 25px;
        flex-shrink: 0;
    }

    .contact-item span,
    .contact-item a {
        text-align: left;
        flex: 1;
    }

    /* Footer columns - center titles and lists */
    .footer-col {
        text-align: center;
    }

    .footer-col h4 {
        display: inline-block;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-col ul li {
        text-align: center;
    }

    .footer-col ul li a {
        text-align: center;
    }

    /* Social icons - center */
    .social-icons {
        justify-content: center;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 1rem 1rem;
    }

    .footer-logo-text {
        font-size: 1.3rem;
    }

    .footer-logo-img {
        height: 35px;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .contact-item {
        min-width: 200px;
        font-size: 0.75rem;
    }

    .contact-item i {
        width: 22px;
        font-size: 0.85rem;
    }

    .footer-description {
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile (up to 380px) */
@media (max-width: 380px) {
    .contact-item {
        min-width: 180px;
        gap: 0.6rem;
    }

    .contact-item span,
    .contact-item a {
        font-size: 0.7rem;
        word-break: break-word;
    }
}