/* ==================== FOOTER.CSS ==================== */

.footer {
    background: linear-gradient(135deg, #0B0F2A 0%, #1a1a2e 100%);
    color: #fff;
    padding: 70px 0 30px;
    margin-top: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 999;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(31, 182, 232, 0.5), transparent);
}

.footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;

    justify-items: center;   /* 🔑 THIS IS THE FIX */
}


.footer-section {
    display: flex;                 /* 🔑 REQUIRED */
    flex-direction: column;
    align-items: center;           /* 🔑 centers logo + text block */
    text-align: center;
}

.footer-logo-wrapper {
    display: inline-flex;          /* keeps logo + text inline */
    align-items: center;           /* vertical centering */
    justify-content: center;
    gap: 10px;                     /* 👈 small right gap */
    margin-bottom: 20px;
    text-decoration: none;
    cursor: pointer;
}



.footer-logo-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(31, 182, 232, 0.3);
    cursor: pointer;
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;                /* removes baseline drop */
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.footer-section p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section h4 {
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.9rem;
}

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

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

/* Tablet - 2 by 2 centered */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 30px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 600px;
        margin: 0 auto 50px auto;
    }

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

    .footer-section h4 {
        margin-top: 0;
    }

    .footer-bottom {
        padding: 0 20px;
    }
}

/* Mobile - 1 column centered */
@media (max-width: 480px) {
    .footer {
        padding: 40px 0 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

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

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }

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

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 30px;
    }
}