/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    /* Colors */
    --color-bg: #fcfcfc;
    --color-bg-alt: #f3f4f6;
    --color-text-main: #1a1c1e;
    --color-text-muted: #64748b;
    --color-accent: #4bdbfc;
    --color-primary: var(--color-accent);
    /* Cyan Accent */
    --color-accent-glow: rgba(75, 219, 252, 0.4);
    --color-border: #e2e8f0;
    --color-success: #4bdbfc;
    --color-white: #ffffff;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 20px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    position: relative;
    /* Ensure overflow hidden works correctly */
    width: 100%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

/* =========================================
   2. Typography & UI Elements
   ========================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--color-text-main) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-family: 'Playfair Display', serif;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;

}

.section-eyebrow {
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.9));
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;

}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #3ab8de;
    /* Slightly darker cyan for hover */
    box-shadow: 0 0 20px var(--color-accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-border);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    background-color: rgba(75, 219, 252, 0.05);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

/* Transparent Header (for Index Page with Video) */


.header.scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.header.scrolled .nav-link {
    color: var(--color-text-main);
    text-shadow: none;
}

.header.scrolled .logo-text {
    color: var(--color-text-main);
}

.header.scrolled .mobile-toggle .bar {
    background-color: var(--color-text-main);
}

.header.hide {
    transform: translateY(-100%);
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo-text {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    background: linear-gradient(135deg, #4bdbfc 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gradient text for transparent header too */
.header-transparent .logo-text {
    background: linear-gradient(135deg, #4bdbfc 30%, #4bdbfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-dot {
    color: var(--color-accent);
}

.logo-img {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
    display: block !important;
}

.footer-logo .logo-img {
    height: 40px !important;
    max-height: 40px !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-size: 0.85rem;
    font-weight: 800;
    color: #000000 !important;
    padding: 7px 18px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid #000000 !important;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switch:hover {
    background: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Homepage Hero / Transparent State Override */
.header-transparent:not(.scrolled) .lang-switch {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.header-transparent:not(.scrolled) .lang-switch:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: var(--transition);
}

/* White text for transparent header */
.header-transparent .nav-link {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: var(--color-accent);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: var(--transition);
}

/* White bars for transparent header */
.header-transparent .mobile-toggle .bar {
    background-color: #ffffff;
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Video Background Styles */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1);
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.8s ease-out,
        filter 0.8s ease-out;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
    transition: background 0.8s ease-out;
}

/* Scroll transition effect - applied via JavaScript */
.hero.scrolled .hero-video {
    transform: translate(-50%, -45%) scale(1.15);
    filter: blur(3px);
}

.hero.scrolled .hero-video-overlay {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.5) 40%,
            rgba(0, 0, 0, 0.7) 100%);
}

.hero.scrolled .hero-container {
    opacity: 0;
    transform: translateY(-60px);
    pointer-events: none;
}

.hero-container {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 1;
}

.hero-badge {
    background: rgba(75, 219, 252, 0.2);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
    border: 1px solid var(--color-accent-glow);
    backdrop-filter: blur(10px);
}

/* Hero Title - Default (for other pages like solutions) */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    font-family: 'Outfit', sans-serif;
    /* Stability fix: use flexbox to prevent jumping when lines appear */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hero Title - Main Page Video Background Override */
.hero .hero-title {
    color: #217dba;
}



/* Text Gradient Override for Main Page */
.hero .hero-title .text-gradient {
    background: linear-gradient(135deg, #5284d0 30%, #cbc43f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.9));
    /* Fix for cut off text (Rock Salt font) */
    padding: 15px 5px;
    line-height: 1.4;
    display: inline-block;
    /* Ensure padding works around text */
    font-family: 'Oregano', cursive;
}



.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Description Override for Main Page */
.hero .hero-description {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

/* Button Overrides for Main Page */
.hero .hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.hero .hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: var(--color-accent);
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
    padding: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.03);
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

/* Stat Item Override for Main Page */
.hero .stat-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--color-accent-glow);
    transform: translateY(-3px);
}

/* Stat Item Hover Override for Main Page */
.hero .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 0.9rem;
    color: var(--color-accent);
}

.stat-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1;
}

/* Stat Number Override for Main Page */
.hero .stat-number {
    color: #ffffff;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Stat Label Override for Main Page */
.hero .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.hero-trust {
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-text {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.6;
    white-space: nowrap;
    position: relative;
    padding-right: 40px;
}

.trust-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(0, 0, 0, 0.15);
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 10px 0;
}

.trust-logo {
    height: 48px;
    /* Slightly larger for impact */
    width: auto;
    opacity: 0.95;
    filter: brightness(1.1);
    transition: var(--transition);
}

.trust-logo:hover {
    filter: brightness(1.3);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .hero-trust {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
        width: 100%;
        /* Ensure no overflow */
        box-sizing: border-box;
        /* Include padding in width */
    }

    .trust-text {
        padding-right: 0;
    }

    .trust-text::after {
        display: none;
    }

    .trust-logos {
        gap: 30px;
        justify-content: center;
        padding: 10px 0;
        flex-wrap: wrap;
        /* Allow wrapping */
        width: 100%;
    }

    .trust-logo {
        height: 32px;
        max-width: 100%;
        /* Prevent image overflow */
    }

    .container {
        padding: 0 15px;
        /* Slightly reduce padding on mobile */
        width: 100%;
        overflow-x: hidden;
        /* Safety net */
    }

    .section-header {
        width: 100%;
        padding: 0 10px;
    }
}

/* =========================================
   5. Solutions Section (Dynamic Parallax)
   ========================================= */
.solutions-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.solutions-bg-wrapper {
    position: absolute;
    top: -7.5%;
    left: 0;
    width: 100%;
    height: 115%;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
    transform: translateZ(0);
    /* Hardware acceleration */
}

.solutions-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('sevice-background-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1c1e;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1.05);
    /* Fix for low-res image: Blur it to look like a smooth abstract background */
    filter: blur(4px);
}

.solutions-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Slightly darker for better contrast */
    z-index: 1;
}

.solutions-section .container {
    position: relative;
    z-index: 2;
}

/* Generic Card Styles (for cards outside solutions section) */
.card {
    background: var(--color-bg-alt);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.card:hover .card-link {
    gap: 12px;
}

/* =========================================
   Service Cards Grid Layout (4x2)
   ========================================= */


.services-title {
    color: var(--color-white);
}

/* Grid Container - 4 Columns */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0;
}

/* Solutions Card Style */
.solutions-section .card {
    position: relative;
    width: 100%;
    height: 320px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    /* Reduced for performance */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    /* Smaller movement is smoother */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    overflow: hidden;
}

/* Scroll Reveal Final State */
.solutions-section .card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover State - White Background Only */
.solutions-section .card:hover {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Content Wrapper */
.solutions-section .card .card-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ============================
   Default State: Icon + Centered Title
   ============================ */
.card-default-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    transition: all 0.4s ease;
}

/* Hover: Fade Out */
.solutions-section .card:hover .card-default-state {
    opacity: 0;
    transform: translateY(-10px);
    /* Slight upward drift as it fades */
}

.card-default-state .card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-default-state .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.solutions-section .card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.card-default-state .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
}

/* ============================
   Hover State: Top Title + Desc + Link
   ============================ */
.card-hover-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align Top/Left as typical for reading, or Center? Prompt said "Title aligned at the top". Default usually left or center? I'll Center for consistency */
    align-items: center;
    text-align: center;
    padding: 32px 24px;

    /* Initial: Hidden & Offset */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    /* unexpected clicks */
}

.solutions-section .card:hover .card-hover-state {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.1s;
}

/* Staggered elements inside hover state */
.card-hover-state>* {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.solutions-section .card:hover .card-hover-state>* {
    opacity: 1;
    transform: translateY(0);
}

.solutions-section .card:hover .card-hover-state .card-title {
    transition-delay: 0.15s;
}

.solutions-section .card:hover .card-hover-state .card-text {
    transition-delay: 0.25s;
}

.solutions-section .card:hover .card-hover-state .card-link {
    transition-delay: 0.35s;
}

.card-hover-state .card-title {
    font-size: 1.3rem;
    /* Slightly larger */
    font-weight: 800;
    color: var(--color-accent);
    /* Highlight color */
    margin-bottom: 12px;
    margin-top: 0;
}

.card-hover-state .card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: auto;
    /* Push link to bottom */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-hover-state .card-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.card-hover-state .card-link i {
    transition: transform 0.3s;
}

.solutions-section .card:hover .card-link:hover i {
    transform: translateX(4px);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    /* On mobile, maybe show content by default or keep click interaction */
    .solutions-section .card {
        min-height: auto;
    }
}

/* =========================================
   6. About Section
   ========================================= */
.about {
    background: var(--color-bg-alt);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.about-list {
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.check-icon {
    color: var(--color-accent);
    font-weight: 800;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
}

/* =========================================
   7. Clients Section
   ========================================= */
.client-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.client-card {
    background: rgba(0, 0, 0, 0.02);
    padding: 40px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    height: 100%;
}

.client-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.client-logo {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 16px;
    transition: var(--transition);
}

.client-card:hover .client-logo {
    transform: scale(1.05);
}

.client-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* =========================================
   8. Contact Section
   ========================================= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-text .section-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.contact-form-wrapper {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.form-title {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

/* =========================================
   9. Footer
   ========================================= */
.footer {
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 16px;
    max-width: 260px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =========================================
   10. Animations
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

.fade-in-delay-5 {
    transition-delay: 0.5s;
}

/* =========================================
   Entry Animations
   ========================================= */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeReveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-badge {
    animation: badgeReveal 0.8s ease-out forwards;
}

.hero-title {
    opacity: 0;
    animation: heroReveal 0.8s ease-out 0.2s forwards;
}

.hero-description {
    opacity: 0;
    animation: heroReveal 0.8s ease-out 0.4s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: heroReveal 0.8s ease-out 0.6s forwards;
}

.hero-stats {
    opacity: 0;
    animation: heroReveal 0.8s ease-out 0.8s forwards;
}

.hero-trust {
    opacity: 0;
    animation: heroReveal 0.8s ease-out 1s forwards;
}

/* =========================================
   11. Responsiveness
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-actions .btn {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 55px;
        left: 0;
        width: 100vw;
        /* Ensure full viewport width */
        max-width: 100%;
        max-height: 80vh;
        /* Allow scrolling if content is tall */
        overflow-y: auto;
        overflow-x: hidden;
        background: var(--color-bg);
        padding: 40px 20px;
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        /* Add shadow for better visibility */
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    /* Fix nav link transparency on mobile menu */
    .header-transparent .nav-link {
        color: var(--color-text-main);
        text-shadow: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-col h4 {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   12. Solution Subpage Styles
   ========================================= */
.solution-hero-v2 {
    padding: 160px 0 80px;
    background: radial-gradient(circle at 50% 0%, rgba(75, 219, 252, 0.1) 0%, transparent 70%);
    text-align: center;
}

.section-alt {
    background: var(--color-bg-alt);
}

/* Features & Benefits Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--color-bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.02);
}

.feature-icon {
    font-size: 1.25rem;
    color: var(--color-accent);
    background: rgba(75, 219, 252, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-card p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    line-height: 1.4;
}

.benefit-card {
    border-left: 4px solid var(--color-accent);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Process Minimal Styling */
.process-minimal {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.minimal-step {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.step-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 10px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.minimal-step:hover .step-inner {
    border-color: var(--color-accent);
    transform: translateX(10px);
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
    min-width: 60px;
}

.minimal-step:hover .step-num {
    opacity: 1;
}

.step-text h4 {
    font-size: 1.4rem;
    color: var(--color-text-main);
    margin-bottom: 8px;
    word-break: break-word;
    /* Prevent overflow */
}

.step-text p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    word-break: break-word;
    /* Prevent overflow */
}

@media (max-width: 768px) {
    .step-inner {
        flex-direction: column;
        gap: 15px;
    }
}

.contact-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, #0b8eaf 100%);
    padding: 100px 0;
}

.contact-cta .section-title,
.contact-cta .section-subtitle {
    color: white;
}

/* Enhanced Footer V2 */
.footer-container-v2 {
    display: grid;
    grid-template-columns: 1.2fr 2.8fr;
    gap: 100px;
    padding-bottom: 80px;
}

.footer-info p {
    margin-top: 24px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-bottom-v2 {
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 32px;
}

@media (max-width: 992px) {
    .footer-container-v2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Process Minimal - Ensure step text doesn't overflow */
    .step-text {
        width: 100%;
        word-break: break-word;
    }

    .step-text p {
        max-width: 100%;
    }
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-item i {
    color: var(--color-accent);
    font-size: 1.1rem;
    width: 20px;
}

@media (max-width: 992px) {
    .footer-container-v2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-links-grid {
        gap: 40px;
    }

    .features-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

.footer-lbs-specific {
    margin-top: 4rem;
    background-color: var(--color-bg-alt);
}

/* Typewriter Animation Styles */
.typewriter-line {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 4px solid #ffffff;
    width: 0;
    color: linear-gradient(135deg, #ffffff 30%, #4bdbfc 100%);
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation:
        typing 3.5s steps(30, end) forwards,
        blink-caret 0.75s step-end 5,
        hide-caret 0s forwards 3.75s;
    line-height: 1.2;
}

.delayed-appear {
    display: block;
    opacity: 0;
    margin-top: 10px;
    font-family: 'Playwrite India Guides', cursive;
    animation: fadeInUp 1s ease-out 4s forwards;
    /* 4s delay + 1s fade */
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 85%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #ffffff;
    }
}

@keyframes hide-caret {
    to {
        border-right: none;
    }
}

@keyframes hide-caret-rtl {
    to {
        border-left: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        padding: 0 10px;
    }

    .logo-text {
        display: none;
    }

    /* Enable typewriter on mobile with responsive size */
    .typewriter-line {
        display: block;
        /* Stable line */
        white-space: nowrap;
        border-right: 3px solid #ffffff;
        width: 0;
        animation:
            typing 3.5s steps(30, end) forwards,
            blink-caret 0.75s step-end 5,
            hide-caret 0s forwards 3.75s;
        font-size: 6.5vw;
        overflow: hidden;
    }

    .delayed-appear {
        margin-top: 5px;
        font-size: 1.8rem;
        /* Scaled down to fit mobile screens */
        padding: 10px 0;
        /* Reset/reduce padding */
        animation: fadeInUp 1s ease-out 4s forwards;
        /* Restore delay */
    }

    .hero-video {
        /* Ensure video covers correctly on mobile without zooming issues */
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* =========================================
   Language Switcher
   ========================================= */
.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.lang-switch:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    color: var(--color-text-dark);
}

.scrolled .lang-switch {
    color: var(--color-text-dark);
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
}

.scrolled .lang-switch:hover {
    background: var(--color-primary);
    color: var(--color-text-dark);
}

/* =========================================
   RTL Support (Arabic)
   ========================================= */
[dir="rtl"] {
    font-family: 'Cairo', 'Inter', sans-serif;
}

[dir="rtl"] .hero-title {
    text-align: right;
}

[dir="rtl"] .hero-description {
    text-align: right;
}

[dir="rtl"] .hero-stats {
    flex-direction: row;
    /* Keep as row but layout will be reversed by browser */
}

[dir="rtl"] .stat-item {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 0;
    padding-left: 2rem;
}

[dir="rtl"] .stat-item:last-child {
    border-left: none;
}

[dir="rtl"] .about-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .check-icon {
    left: auto;
    right: 0;
}

[dir="rtl"] .card-link i {
    transform: rotate(180deg);
}

[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .footer-col {
    text-align: right;
}

[dir="rtl"] .lang-switch {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] .typewriter-line {
    border-left: 3px solid #ffffff;
    border-right: none;
    animation:
        typing 3.5s steps(30, end) forwards,
        blink-caret 0.75s step-end 5,
        hide-caret-rtl 0s forwards 3.75s;
}

@media (max-width: 768px) {
    [dir="rtl"] .stat-item {
        border-left: none;
        padding-left: 0;
    }
}