/* ═══════════════════════════════════════════════════════════════
   footer.css — Footer Section
   ═══════════════════════════════════════════════════════════════ */

/* ── Client logo bar (dark strip) ── */
.footer-clients-bar {
    background: var(--color-bg-client-bar);
    padding: var(--space-xl) clamp(1rem, 5vw, 10rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 5rem);
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    opacity: 0.8;
    flex: 0 1 auto;
    min-width: 0;
}

.footer-client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-client-logo svg,
.footer-client-logo img {
    height: auto;
    max-height: 35px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ── Footer CTA layout ── */
.footer-cta {
    position: relative;
    background-color: var(--color-bg-skills);
    background-image: url("../assets/footer-section/footer-bg.png");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    padding-top: var(--space-1xl);
    text-align: center;
    overflow: hidden;
}

/* ── Floating tech icons ── */
.footer-float-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
    opacity: 0.92;
}

.footer-float-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
}

/* Top-left */
.footer-float-icon:nth-child(1) {
    top: 12%;
    left: 8%;
    animation: floatA 5s ease-in-out infinite;
}

/* Bottom-left */
.footer-float-icon:nth-child(2) {
    bottom: 30%;
    left: 18%;
    animation: floatB 6s ease-in-out infinite 0.8s;
}

/* Top-right */
.footer-float-icon:nth-child(3) {
    top: 10%;
    right: 8%;
    animation: floatA 4.5s ease-in-out infinite 1.2s;
}

/* Bottom-right */
.footer-float-icon:nth-child(4) {
    bottom: 30%;
    right: 14%;
    animation: floatB 5.5s ease-in-out infinite 0.4s;
}

/* ── CTA Content ── */
.footer-cta-content {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-3xl);
    padding: 0 var(--space-xl);
}

.footer-cta-pretitle {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6.5vw, 9rem);
    font-weight: 900;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.8;
    margin-bottom: 0;
    margin-top: 0;
}

.footer-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6.5vw, 9rem);
    font-weight: 900;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.05;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 3px;
    cursor: pointer;
    display: inline-block;
}

/* ── Divider ── */
.footer-divider {
    border: none;
    border-top: 1px solid var(--color-black);
    margin: 0 auto;
    width: 85%;
    max-width: 1500px;
}

/* ── Bottom bar ── */
.footer-bottom {
    padding: var(--space-lg) 0 var(--space-xl) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
    width: 85%;
    max-width: 1500px;
    margin: 0 auto;
}

.footer-copy {
    font-family: var(--font-kanit);
    font-weight: 400;
    font-size: 17px;
    letter-spacing: 1%;
    color: var(--color-dark);
}

.footer-copyright-icon {
    width: 0.9em;
    height: 0.9em;
    vertical-align: -0.1em;
    margin: 0 4px;
}

/* ── Social icons ── */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-dark);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--color-dark);
}

.footer-social-btn:hover {
    background: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-social-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(0);
    transition: filter 0.2s;
}

.footer-social-btn:hover img {
    filter: brightness(0) invert(1);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 1023px) {
    .footer-divider,
    .footer-bottom {
        width: 92%;
    }

    .footer-bottom {
        padding: 0;
    }

    .footer-social-btn {
        width: 32px;
        height: 32px;
    }

    .footer-social-btn img {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 900px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding-bottom: 20px;
    }
    .footer-copy {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    .footer-clients-bar {
        padding: 1.5rem 1rem;
        gap: 1.25rem 2rem;
    }
    .footer-client-logo svg,
    .footer-client-logo img {
        max-height: 22px;
        max-width: 140px;
    }
    .footer-cta-content {
        margin-bottom: 2.5rem;
    }

    .footer-cta-pretitle {
        font-size: clamp(1.6rem, 4vw, 7rem);
    }

    .footer-cta-title {
        font-size: clamp(1.6rem, 4vw, 7rem);
    }

    .footer-bottom {
        gap: 0;
    }

    /* Smaller icons on mobile */
    .footer-float-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .footer-float-icon img {
        width: 22px;
        height: 22px;
    }

    /* Pull icons inward so they don't clip on small screens */
    .footer-float-icon:nth-child(1) {
        left: 4%;
        top: 8%;
    }
    .footer-float-icon:nth-child(2) {
        left: 5%;
        bottom: 18%;
    }
    .footer-float-icon:nth-child(3) {
        right: 4%;
        top: 8%;
    }
    .footer-float-icon:nth-child(4) {
        right: 5%;
        bottom: 18%;
    }

    .footer-copy {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}
