/* ═══════════════════════════════════════════════════════════════
   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: #151515;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    padding-top: 0 !important;
    padding-bottom: 0 !important; /* Remove all bottom padding */
    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: 0;
    margin-bottom: 0;
    padding: 0 var(--space-xl);
    padding-bottom: 0; /* Remove bottom padding to place BHAVESH at the very end */
}

/* Remove bottom margin from copyright text */
.footer-cta-content p:last-of-type {
    margin-bottom: 2rem !important;
}

.footer-cta-pretitle {
    font-family: var(--font-display);
    font-weight: 500;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    margin-bottom: 0;
    margin-top: 0;
}

.footer-cta-title {
    font-family: var(--font-display);
    font-weight: 500;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
    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;
}

/* ── BHAVESH Large Text - Show only top 50% and position at bottom ── */
.footer-cta-content h2,
.footer-bhavesh-text {
    font-family: var(--font-display);
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.06);
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0 2rem;
    overflow: hidden;
    letter-spacing: 0;
    position: relative;
    height: 0.5em;
    box-sizing: border-box;
    width: 100%;
}

/* ── BHAVESH Logo SVG Styling ── */
.footer-bhavesh-logo {
    width: auto;
    height: clamp(140px, 14vw, 200px);
    object-fit: contain;
}

/* Responsive font sizes for BHAVESH text - Aggressive reduction for smaller screens */
@media (min-width: 1536px) {
    .footer-cta-content h2,
    .footer-bhavesh-text {
        font-size: clamp(280px, 21vw, 405px);
        letter-spacing: 0.05em;
        padding: 0 3rem;
    }
}

@media (max-width: 1535px) and (min-width: 1280px) {
    .footer-cta-content h2,
    .footer-bhavesh-text {
        font-size: clamp(240px, 18vw, 340px);
        letter-spacing: 0.04em;
        padding: 0 2.5rem;
    }
}

@media (max-width: 1279px) and (min-width: 1024px) {
    .footer-cta-content h2,
    .footer-bhavesh-text {
        font-size: clamp(200px, 16vw, 280px);
        letter-spacing: 0.03em;
        padding: 0 2rem;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .footer-cta-content h2,
    .footer-bhavesh-text {
        font-size: clamp(130px, 14vw, 170px);
        letter-spacing: 0.02em;
        padding: 0 2rem;
    }
}

@media (max-width: 767px) and (min-width: 640px) {
    .footer-cta-content h2,
    .footer-bhavesh-text {
        font-size: clamp(100px, 13vw, 130px);
        letter-spacing: 0.01em;
        padding: 0 1.5rem;
    }
}

@media (max-width: 639px) and (min-width: 480px) {
    .footer-cta-content h2,
    .footer-bhavesh-text {
        font-size: clamp(75px, 12vw, 100px);
        letter-spacing: 0.005em;
        padding: 0 1.5rem;
    }
}

@media (max-width: 479px) and (min-width: 375px) {
    .footer-cta-content h2,
    .footer-bhavesh-text {
        font-size: clamp(60px, 11vw, 75px);
        letter-spacing: 0;
        padding: 0 1rem;
    }
}

@media (max-width: 374px) {
    .footer-cta-content h2,
    .footer-bhavesh-text {
        font-size: clamp(50px, 10vw, 60px);
        letter-spacing: 0;
        padding: 0 0.75rem;
    }
}

/* ── Responsive sizing for footer logo ── */
@media (min-width: 1536px) {
    .footer-bhavesh-logo {
        height: clamp(100px, 18vw, 250px);
    }
}

@media (max-width: 1535px) and (min-width: 1024px) {
    .footer-bhavesh-logo {
        height: clamp(140px, 14vw, 180px);
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .footer-bhavesh-logo {
        height: clamp(100px, 12vw, 140px);
    }
}

@media (max-width: 767px) {
    .footer-bhavesh-logo {
        height: clamp(60px, 10vw, 100px);
    }
}

.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;
}

/* Email Icon - Orange Gradient Border Ring */
.footer-icon-email-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.footer-icon-email-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(328.8deg, #DF7102 13.63%, rgba(223, 113, 2, 0) 34.64%, rgba(223, 113, 2, 0) 67.1%, #DF7102 86.12%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 0.3s ease;
}

.footer-icon-email-wrapper:hover {
    transform: translateY(-3px);
}

.footer-icon-email-wrapper:hover::before {
    opacity: 1;
    background: linear-gradient(328.8deg, #FF8A1F 13.63%, rgba(255, 138, 31, 0.3) 34.64%, rgba(255, 138, 31, 0.3) 67.1%, #FF8A1F 86.12%);
}

/* Upwork Icon - Green Gradient Border Ring */
.footer-icon-upwork-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.footer-icon-upwork-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(328.8deg, #379F01 13.63%, rgba(55, 159, 1, 0) 34.64%, rgba(55, 159, 1, 0) 67.1%, #379F01 86.12%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 0.3s ease;
}

.footer-icon-upwork-wrapper:hover {
    transform: translateY(-3px);
}

.footer-icon-upwork-wrapper:hover::before {
    opacity: 1;
    background: linear-gradient(328.8deg, #45C200 13.63%, rgba(69, 194, 0, 0.3) 34.64%, rgba(69, 194, 0, 0.3) 67.1%, #45C200 86.12%);
}

/* Footer Social Icon Link Hover Effects */
.footer-social-icon-link {
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

/* Add a pseudo-element for smooth hover effect on email */
.footer-icon-email-wrapper .footer-social-icon-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF8A1F 0%, #DF7102 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Add a pseudo-element for smooth hover effect on upwork */
.footer-icon-upwork-wrapper .footer-social-icon-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #45C200 0%, #379F01 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Make sure icon/image is above the overlay */
.footer-social-icon-link i,
.footer-social-icon-link img {
    position: relative;
    z-index: 1;
}

/* Email icon - Keep transform in sync with wrapper */
.footer-icon-email-wrapper:hover .footer-social-icon-link {
    box-shadow: 0px 6px 20px rgba(223, 113, 2, 0.4);
}

.footer-icon-email-wrapper:hover .footer-social-icon-link::before {
    opacity: 1;
}

/* Upwork icon - Keep transform in sync with wrapper */
.footer-icon-upwork-wrapper:hover .footer-social-icon-link {
    box-shadow: 0px 6px 20px rgba(55, 159, 1, 0.4);
}

.footer-icon-upwork-wrapper:hover .footer-social-icon-link::before {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   CONTRA ICON - WHITE GRADIENT BORDER
══════════════════════════════════════════════════════════════ */
.footer-icon-contra-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.footer-icon-contra-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(328.8deg, #FFFFFF 13.63%, rgba(255, 255, 255, 0) 34.64%, rgba(255, 255, 255, 0) 67.1%, #FFFFFF 86.12%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 0.3s ease;
}

.footer-icon-contra-wrapper:hover {
    transform: translateY(-3px);
}

.footer-icon-contra-wrapper:hover::before {
    opacity: 1;
    background: linear-gradient(328.8deg, #FFFFFF 13.63%, rgba(255, 255, 255, 0.3) 34.64%, rgba(255, 255, 255, 0.3) 67.1%, #FFFFFF 86.12%);
}

.footer-icon-contra-wrapper .footer-social-icon-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2A2A2A 0%, #000000 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.footer-icon-contra-wrapper:hover .footer-social-icon-link {
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.6);
}

.footer-icon-contra-wrapper:hover .footer-social-icon-link::before {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   LINKEDIN ICON - BLUE GRADIENT BORDER
══════════════════════════════════════════════════════════════ */
.footer-icon-linkedin-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.footer-icon-linkedin-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(328.8deg, #007EBB 13.63%, rgba(0, 126, 187, 0) 34.64%, rgba(0, 126, 187, 0) 67.1%, #007EBB 86.12%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: opacity 0.3s ease;
}

.footer-icon-linkedin-wrapper:hover {
    transform: translateY(-3px);
}

.footer-icon-linkedin-wrapper:hover::before {
    opacity: 1;
    background: linear-gradient(328.8deg, #0099E5 13.63%, rgba(0, 153, 229, 0.3) 34.64%, rgba(0, 153, 229, 0.3) 67.1%, #0099E5 86.12%);
}

.footer-icon-linkedin-wrapper .footer-social-icon-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0099E5 0%, #0077B5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.footer-icon-linkedin-wrapper:hover .footer-social-icon-link {
    box-shadow: 0px 6px 20px rgba(0, 119, 181, 0.5);
}

.footer-icon-linkedin-wrapper:hover .footer-social-icon-link::before {
    opacity: 1;
}

.footer-social-icon-link:active {
    transform: scale(0.95);
}

.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-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;
    }
}
