/* Base Styles from merge.html */
body {
    font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
}

.font-script {
    font-family: 'Dancing Script', cursive;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 12px;
}

/* --- MERGED STYLES FROM style.css --- */
:root {
    --primary-color: #209bd7;
    --secondary-color: #efa723;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white: #fff;
    --text-color: #333;
    --text-light: #e0e0e0;
    --primary-blue: #0ea5e9;
    --sparkle-gold: #f59e0b;
    --dark-bg: #0f172a;

    /* Expanded Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --teal-accent: #06b6d4;
    --navy-dark: #0f172a;

    /* Text Color Accessibility - Darker on light, Lighter on dark */
    --text-on-light: #374151;
    /* Darker gray for light backgrounds */
    --text-on-dark: #d1d5db;
    /* Lighter gray for dark backgrounds */
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    width: 100%;
    z-index: 50;
    transition: background 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    padding: 8px 25px;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    background: var(--secondary-color);
    color: var(--white) !important;
}

.btn-nav:hover {
    background: transparent;
    color: var(--secondary-color) !important;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {

    /* Navbar background fix for seamless mobile menu */
    .navbar {
        /* background-color: var(--dark-bg); REMOVED to allow transparency */
        transition: background-color 0.3s ease;
    }

    .navbar.menu-open {
        background-color: var(--dark-bg);
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: calc(100vh - 85px);
        /* Full viewport minus header */
        top: 85px;
        /* Start below navbar */
        background-color: var(--dark-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 20px;
        /* Standard padding */
        gap: 10px;
        /* Reduce gap for mobile */
        z-index: 49;
        overflow-y: auto;
        /* Allow scrolling if menu is long */
    }

    /* Center all links, specifically fixing the flex 'Services' link */
    .nav-links a {
        justify-content: center;
        width: 100%;
        display: flex;
        align-items: center;
        padding: 10px 0;
    }

    .nav-links li {
        opacity: 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Fix Services Dropdown for Mobile */
    .nav-links li ul {
        position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        /* Subtle contrast */
        margin-top: 10px;
        padding-bottom: 10px;
        border-radius: 0 !important;
    }

    .nav-links li ul li {
        opacity: 1 !important;
        /* Ensure subitems are visible */
    }

    .nav-links li ul li a {
        padding: 12px 0 !important;
        font-size: 0.95rem;
        color: #ddd !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .burger {
        display: block;
    }

    /* Mobile Hero Adjustments */
    .hero-section {
        height: 60vh !important;
        /* Requested 60% height on mobile */
    }

    .hero-bg {
        background-size: cover !important;
        /* Ensure full height and overflow width */
        background-position: center top !important;
    }

    /* 20% Smaller buttons on mobile */
    .btn-primary,
    .btn-secondary {
        padding: 12px 32px !important;
        font-size: 1rem !important;
    }

    /* Hide 'Browse More' on mobile */
    .scroll-indicator {
        display: none !important;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
        /* Much smaller text for mobile */
    }

    .hero-content p {
        font-size: 1rem !important;
        /* Smaller text for mobile */
    }

    .logo-img {
        height: 48px !important;
        /* 20% smaller than 60px */
    }

    /* Fix Loader on Mobile (force full screen) */
    #dirty-canvas,
    #ui-layer {
        position: fixed !important;
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/team.png');
    z-index: -2;
    transform: scale(1.1);
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17 24 39 / 0.5);
    z-index: 1;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.2);
    }
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
    /* Animation State */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* Buttons */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: inline-block;
}

.btn-link-styled {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 24px;
    background-color: rgba(32, 155, 215, 0.1);
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-link-styled:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    gap: 0.75rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(239, 167, 35, 0.4);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin: 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(-45deg);
    }

    40% {
        transform: translateY(-10px) rotate(-45deg);
    }

    60% {
        transform: translateY(-5px) rotate(-45deg);
    }
}

/* Magic Cursor Styles */
.magic-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f3f4f6;
}

.magic-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#magic-canvas {
    position: absolute;
    inset: 0;
    cursor: none;
    z-index: 2;
}

.magic-cursor {
    position: absolute;
    pointer-events: none;
    z-index: 3;
    font-size: 2rem;
    color: #efa723;
    filter: drop-shadow(0 0 10px rgba(239, 167, 35, 0.5));
    animation: float 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.magic-instruction {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 167, 35, 0.9);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 4;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.magic-reset {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #efa723;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.magic-reset:hover {
    opacity: 1;
    background: #efa723;
    color: white;
    transform: rotate(180deg);
}

.scrolled {

    position: fixed;
}

.scrolled,
.scrolled li ul {
    background-color: var(--dark-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- NEW ANIMATION STYLES (from loading.html) --- */
/* --- CANVAS LAYER (The Dirt) --- */
#dirty-canvas {
    position: absolute;
    /* Changed from fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    touch-action: none;
}

/* --- UI CONTAINER --- */
#ui-layer {
    position: absolute;
    /* Changed from fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- INFINITY LOADER --- */
.infinity-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.infinity-svg {
    width: 200px;
    height: 100px;
    overflow: visible;
    filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.4));
}

.track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
    stroke-linecap: round;
}

.liquid-stream {
    fill: none;
    stroke: #0ea5e9;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 60 250;
    animation: flowWater 1.5s linear infinite;
}

.gold-stream {
    fill: none;
    stroke: var(--sparkle-gold);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 40 270;
    stroke-dashoffset: -100;
    animation: flowWater 1.5s linear infinite;
}

.loading-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

/* --- SQUEEGEE TOOL --- */
#squeegee {
    position: absolute;
    width: 180px;
    height: auto;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transform-origin: center center;
    will-change: transform, top, left;
}

/* Squeegee SVG Internal Styles */
.sq-handle {
    fill: #334155;
}

.sq-holder {
    fill: #94a3b8;
}

.sq-blade {
    fill: var(--primary-blue);
}

.sq-accent {
    fill: var(--sparkle-gold);
}

/* --- ANIMATIONS --- */
@keyframes flowWater {
    to {
        stroke-dashoffset: -310;
    }
}

@keyframes spinOut {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Utility classes for JS toggling */
.hidden-loader {
    animation: spinOut 0.6s forwards;
}

.visible-tool {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


/* Client Section Styles */
.client-logo-container {
    width: 160px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.client-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(32, 155, 215, 0.15);
    border-color: #209bd7;
}

.client-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Removed grayscale filter - logos now show in full color */
    opacity: 1;
    transition: all 0.3s ease;
}

.client-logo-container:hover .client-logo {
    transform: scale(1.05);
}

/* Why Us Section - Style 2: Soft Bubble (Modern) */
.why-us-section {
    background: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Blurred Background Blobs */
.s2-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}

.s2-blob-1 {
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: #209bd7;
}

.s2-blob-2 {
    bottom: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: #efa723;
}

/* Cards */
.s2-card {
    background: rgba(255, 255, 255, 0.192);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 12px;
    padding: 0 2rem 2.5rem 2rem;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.s2-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Floating Icon Box */
.s2-icon-box {
    width: 5rem;
    height: 5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2.5rem auto 1.5rem auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    font-size: 1.8rem;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
}

.s2-card:hover .s2-icon-box {
    transform: scale(1.1);
}

.s2-icon-blue {
    background: linear-gradient(135deg, #fff, #f0f9ff);
    color: #209bd7;
    border: 2px solid #e0f2fe;
}

.s2-icon-orange {
    background: linear-gradient(135deg, #fff, #fff7ed);
    color: #efa723;
    border: 2px solid #ffedd5;
}

.s2-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111827;
}

.s2-desc {
    color: #374151;
    /* text-gray-700 for better contrast on white */
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================== */
/* Testimonials Carousel Styles   */
/* ============================== */
/* Swiper overrides */
.swiper-pagination-bullet-active {
    background-color: #209bd7 !important;
    width: 32px !important;
    border-radius: 999px !important;
}

.swiper-pagination-bullet {
    background-color: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Ensure slides don't shrink and have padding */
.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    padding: 10px;
    /* User requested 10px padding all around */
}

/* Constrain max width of inner card */
.swiper-slide>div {
    width: 100%;
    max-width: 400px;
}

/* Position dots lower */
.swiper-pagination {
    position: relative !important;
    margin-top: 40px !important;
    /* Lower the dots */
    bottom: auto !important;
}

/* --- Counters Section --- */
/* Styles removed as part of redesign to "Clean & Minimal" Option A (Tailwind used in HTML) */


.scrolled li ul ::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

@media screen and (max-width: 768px) {

    /* Fix Hero Image Aspect Ratio - Placed here to override default */
    .hero-bg {
        background-repeat: no-repeat !important;
        background-position: center !important;
    }

    .cta-group a {
        font-size: .8rem !important;

    }
}

@media screen and (max-width: 360px) {
    .magic-instruction {
        font-size: .6rem !important;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 8s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
    animation-play-state: paused;
}

@keyframes whatsapp-pulse {

    0%,
    85%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }

    87.5% {
        transform: scale(1.15);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }

    90% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }

    92.5% {
        transform: scale(1.1);
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    }

    95% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Floating Phone Call Button */
.floating-phone {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #209bd7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(32, 155, 215, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: phone-ring 8s ease-in-out infinite;
}

.floating-phone:hover {
    transform: scale(1.1);
    background-color: #1a8bc0;
    box-shadow: 0 6px 20px rgba(32, 155, 215, 0.6);
    color: white;
    animation-play-state: paused;
}

@keyframes phone-ring {

    0%,
    85%,
    100% {
        transform: rotate(0deg);
    }

    86% {
        transform: rotate(-15deg);
    }

    87% {
        transform: rotate(15deg);
    }

    88% {
        transform: rotate(-12deg);
    }

    89% {
        transform: rotate(12deg);
    }

    90% {
        transform: rotate(-8deg);
    }

    91% {
        transform: rotate(8deg);
    }

    92% {
        transform: rotate(-4deg);
    }

    93% {
        transform: rotate(4deg);
    }

    94% {
        transform: rotate(0deg);
    }
}

@media (max-width: 768px) {

    .floating-whatsapp,
    .floating-phone {
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .floating-whatsapp {
        right: 20px;
    }

    .floating-phone {
        left: 20px;
    }
}

/* Footer Widget Styles */
.footer-widget-col .widget {
    margin-bottom: 0;
}

.footer-widget-col .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-col .widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget-col .widget ul li a {
    color: #f3f4f6;
    /* text-gray-500 */
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widget-col .widget ul li a:hover {
    color: #209bd7;
}

.footer-widget-col .widget_nav_menu h4,
.footer-widget-col .widget h4 {
    color: #f3f4f6;
    /* text-gray-100 */
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Services Dropdown Submenu */
.services-submenu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #f3f4f6;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.services-submenu li:last-child a {
    border-bottom: none;
}

.services-submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Custom Responsive Comparison Slider --- */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    direction: ltr;
    /* Force LTR so range input works 0->100 Left->Right */
    direction: ltr;
    /* Force LTR so range input works 0->100 Left->Right */
}

.c-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.c-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Clean responsiveness */
    display: block;
    max-width: none;
}

.c-before {
    z-index: 2;
    width: 100%;
    /* Full width, clipped by properties */
    clip-path: inset(0 50% 0 0);
    /* Default clip */
}

.c-label {
    position: absolute;
    top: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.85rem;
    border-radius: 4px;
    z-index: 3;
    pointer-events: none;
}


.c-after .c-label {
    right: 1rem;
}

.c-before .c-label {
    left: 1rem;
}

/* Range Input (Invisible Overlay) */
.c-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}

/* Handle (Visual) */
.c-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    /* matches border width approx */
    /* left: 50% set by JS */
    z-index: 9;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
}

.c-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: white;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Juxtapose Style Handle */
.c-handle-circle {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 3px solid #fff;
    border-radius: 4px;
    /* Slight rounded corners, near square */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    /* Space between arrows */
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease, transform 0.1s;
    /* Faster transition for drag */
    cursor: ew-resize;
    /* Pointer */
}

.c-handle-circle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Elegant Chevron Arrows (SVG) */
.c-handle-arrow {
    width: 20px;
    /* Adjust size */
    height: 20px;
    display: inline-block;
    opacity: 1;
    /* Remove font properties */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
    /* Shadow for SVG */
    transform: scaleY(1.1);
    /* Make them slightly longer/taller */
}


.c-handle-circle:hover .c-handle-arrow {
    opacity: 1;
}

/* Text Highlight (for {{text}} in services) */
.text-highlight {
    color: #209bd7;
    font-weight: 600;
    display: inline-block;
}



/* Counters Grid Borders (Explicit Control) */
@media (min-width: 768px) {

    /* DEFAULT (LTR): Border on left of items 2, 3, 4 */
    .counters-grid>div:not(:first-child) {
        border-left: 1px solid #e5e7eb;
        border-right: 0;
    }

    /* RTL OVERRIDE: Flip borders */
    html[dir="rtl"] .counters-grid>div:not(:first-child) {
        border-left: 0;
        border-right: 1px solid #e5e7eb;
    }
}

/* -------------------------------------------------------------------------- */
/*                               Text Animations                              */
/* -------------------------------------------------------------------------- */

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* -------------------------------------------------------------------------- */
/*                        Advanced UI Animations                              */
/* -------------------------------------------------------------------------- */

/* 1. Tilt-Drop-Bounce (Reviews & Quotes) */
@keyframes tilt-drop-bounce {

    0%,
    20% {
        transform: rotate(-1deg) scale(1.05) translateY(-5px);
    }

    /* Start with drop */
    10% {
        transform: rotate(-4deg) scale(1.05) translateY(5px);
    }

    /* Wiggle */
    20% {
        transform: rotate(-2deg) scale(1.05) translateY(0);
    }

    /* Settle */
    21%,
    100% {
        transform: rotate(-2deg) scale(1.05) translateY(0);
    }

    /* Stay static */
}

.card-tilt-active {
    animation: tilt-drop-bounce 5s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
}

/* 2. Why Us Cards - Neo-Modern Lift */
.s2-card-modern {
    @apply relative bg-white border border-gray-100 p-8 rounded-2xl transition-all duration-500 ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.s2-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(32, 155, 215, 0.15), 0 10px 20px -5px rgba(239, 167, 35, 0.1);
    border-color: rgba(32, 155, 215, 0.3);
}

.s2-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    border-radius: 1rem;
}

.s2-card-modern:hover::before {
    opacity: 1;
    animation: shine-sweep 1s ease-out forwards;
}

@keyframes shine-sweep {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(100%) skewX(-15deg);
    }
}

/* 3. Client Logos - Staggered Float */
@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.client-logo-float {
    animation: float-logo 2.5s ease-in-out infinite;
}

.client-logo-float:nth-child(2n) {
    animation-delay: 0.5s;
}

.client-logo-float:nth-child(3n) {
    animation-delay: 1s;
}

.client-logo-float:nth-child(4n) {
    animation-delay: 1.5s;
}

.client-logo-float:nth-child(5n) {
    animation-delay: 2s;
}