/* FORCE ALL TEXT WHITE INSIDE SERVICE CARD ON HOVER */

.service-wrapper:hover * {
    color: #ffffff !important;
}

/* Force icons white */
.service-wrapper:hover i,
.service-wrapper:hover svg path {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Video preloader */
.preloader {
    background: #000 !important;
}

.preloader .preloader-video {
    width: min(100vw, 1000px);
    max-height: 100vh;
    object-fit: contain;
    display: block;
}

/* Mobile hero text (CREATIVE AGENCY) placement */
@media (max-width: 767px) {
    .banner-area {
        padding-block: 160px 170px !important;
    }

    .banner-content {
        top: clamp(50px, 14vw, 90px) !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        z-index: 5 !important;
    }

    .banner-title {
        font-size: clamp(50px, 12vw, 64px) !important;
        line-height: 0.9 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .banner-title span {
        font-size: clamp(82px, 21vw, 112px) !important;
        line-height: 0.95 !important;
        display: block !important;
    }

    /* "50+ COMPLEATED PROJECTS" badge position on mobile */
    .banner-review-content {
        left: 16px !important;
        right: auto !important;
        bottom: 16px !important;
        top: auto !important;
        z-index: 6 !important;
    }

    .banner-review-content .counter-item {
        margin-left: 0 !important; /* overrides ms-5 */
        text-align: left !important;
    }
}

/* About page mobile: keep CTA text over image */
@media (max-width: 575px) {
    .cta-two-area .cta-two-thumb.one {
        position: relative;
        overflow: hidden;
    }

    .cta-two-area .cta-two-thumb.one > img {
        min-height: 320px;
        object-fit: cover;
    }

    .cta-two-area .cta-two-thumb.one::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.7) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .cta-two-area .cta-two-thumb.one .cta-two-content {
        position: absolute !important;
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        margin: 0 !important;
        z-index: 2 !important;
    }

    .cta-two-area .cta-two-thumb.one .cta-two-title {
        color: #ffffff !important;
        font-size: clamp(34px, 8vw, 42px) !important;
        margin-bottom: 8px !important;
    }

    .cta-two-area .cta-two-thumb.one p {
        color: rgba(255, 255, 255, 0.92) !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 0 !important;
    }

    .cta-two-area .cta-two-thumb.one .cta-two-button {
        margin-top: 12px;
    }
}

/* Desktop portfolio text style for first 4 cards */
@media (min-width: 992px) {
    .portfolio-area .portfolio-wrap {
        position: relative;
        max-width: 100%;
    }

    .portfolio-area .portfolio-wrap > div:last-child {
        position: absolute;
        left: 70px;
        right: 70px;
        bottom: 92px;
        transform: none !important;
    }

    .portfolio-area .portfolio-wrap .d-flex.tw-gap-4.tw-mb-11 {
        margin-bottom: 16px !important;
        gap: 12px !important;
    }

    .portfolio-area .portfolio-title {
        margin: 0;
        font-family: var(--heading-font);
        font-size: clamp(26px, 1.7vw, 36px) !important;
        line-height: 0.92;
        letter-spacing: 0.01em;
    }

    .portfolio-area .portfolio-title a {
        color: #ffffff;
        white-space: nowrap;
        transition: color 0.25s ease;
    }

    .portfolio-area .portfolio-title a:hover {
        color: hsl(var(--main)) !important;
    }
}

/* Mobile only: tighten gap between portfolio and testimonial */
@media (max-width: 767px) {
    .portfolio-area {
        padding-block-end: 20px !important;
    }

    .portfolio-area .portfolio-panel {
        margin-bottom: 16px !important;
    }

    .portfolio-area .portfolio-panel:last-child {
        margin-bottom: 0 !important;
    }

    .testimonial-area {
        padding-top: 20px !important;
    }

    .testimonial-area .row.justify-content-between > div:first-child {
        margin-top: -10px;
        margin-bottom: 6px;
    }
}

/* Floating WhatsApp button (bottom-left) */
.bb-float-whatsapp {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bb-float-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.bb-float-whatsapp img {
    width: 28px;
    height: 28px;
    display: block;
}

/* Mobile tweaks */
@media (max-width: 575px) {
    .bb-float-whatsapp {
        left: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
    }

    .bb-float-whatsapp img {
        width: 22px;
        height: 22px;
    }
}