:root {
    --background: #f8fafc;
    --foreground: #1E293B;
    --primary: #FF6B6B;
    --primary-foreground: #ffffff;
    --secondary: #4ECDC4;
    --secondary-foreground: #ffffff;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #F5B01C;
    --accent-foreground: #1E293B;
    --border: #e2e8f0;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --font-family-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Additional variables from the other style block to ensure compatibility */
    --success: #10b981;
    --success-foreground: #ffffff;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --warning: #f59e0b;
    --warning-foreground: #111827;
    --card: #ffffff;
    --card-foreground: #0f1724;
    --sidebar: #f8fafc;
    --sidebar-foreground: #1E293B;
    --sidebar-primary: #FF6B6B;
    --sidebar-primary-foreground: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Ensures sticky header doesn't cover content */


    /* Layout Utilities */
    .container {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .section {
        padding: 80px 0;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: center;
    }

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

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

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

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

    .grid-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

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

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

    .flex-center {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .text-center {
        text-align: center;
    }

    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        padding: 0 32px;
        border-radius: 999px;
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
        transition: all 0.2s ease;
        cursor: pointer;
        white-space: nowrap;
    }

    .btn-primary {
        background-color: var(--primary);
        color: var(--primary-foreground);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        position: relative;
        overflow: hidden;
    }

    .btn-primary::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .btn-primary:hover::after {
        left: 100%;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(124, 58, 237, 0.5);
    }

    .btn-outline {
        background-color: transparent;
        border: 2px solid var(--primary);
        color: var(--primary);
    }

    .btn-outline:hover {
        background-color: var(--secondary);
        color: white;
        border-color: var(--secondary);
    }

    .btn-secondary {
        background-color: white;
        color: var(--foreground);
        border: 1px solid var(--border);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .btn-sm {
        height: 36px;
        padding: 0 16px;
        font-size: 13px;
    }

    /* Typography */
    h1 {
        font-size: 56px;
        line-height: 1.1;
        font-weight: 800;
        margin: 0 0 24px 0;
        letter-spacing: -0.02em;
    }

    @media (max-width: 768px) {
        h1 {
            font-size: 40px;
        }
    }

    h2 {
        font-size: 40px;
        line-height: 1.2;
        font-weight: 700;
        margin: 0 0 16px 0;
        letter-spacing: -0.01em;
    }

    @media (max-width: 768px) {
        h2 {
            font-size: 32px;
        }
    }

    h3 {
        font-size: 20px;
        font-weight: 600;
        margin: 0 0 12px 0;
    }

    p {
        font-size: 16px;
        color: var(--muted-foreground);
        margin: 0 0 24px 0;
    }

    .lead {
        font-size: 20px;
        line-height: 1.6;
        max-width: 540px;
    }

    .text-highlight {
        color: var(--primary);
    }

    /* Cards */
    .card {
        background: white;
        border-radius: var(--radius-lg);
        padding: 32px;
        border: 1px solid var(--muted);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        border-color: var(--secondary);
    }

    .icon-box {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        font-size: 24px;
        transition: transform 0.3s ease;
    }

    .card:hover .icon-box {
        transform: scale(1.1) rotate(5deg);
    }

    /* Header Styles */
    header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        padding: 16px 0;
    }

    .nav-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

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

    .mobile-only {
        display: none;
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: white;
            flex-direction: column;
            padding: 24px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border-top: 1px solid var(--border);
        }

        .nav-links.active {
            display: flex;
        }
    }

    .mobile-menu-toggle {
        display: none;
        background: transparent;
        border: none;
        color: var(--foreground);
        cursor: pointer;
        padding: 4px;
    }

    @media (max-width: 768px) {
        .mobile-menu-toggle {
            display: block;
        }
    }

    .nav-link {
        color: var(--muted-foreground);
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
        position: relative;
        padding-bottom: 4px;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--primary);
        transition: width 0.3s ease;
    }

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

    .nav-link:hover::after {
        width: 100%;
    }

    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

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

    .mobile-only {
        display: block;
        border-top: 1px solid var(--border);
        padding-top: 12px;
        margin-top: 12px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    color: #111;
    text-decoration: none;
}

/* Hero Styles */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #fdf4ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--muted-foreground);
}

.star-row {
    display: flex;
    color: var(--accent);
    gap: 2px;
}

.trusted-by {
    text-align: center;
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--muted);
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    opacity: 0.5;
    font-weight: 700;
    font-size: 18px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Features Styles */
.feature-icon-bg-1 {
    background: #ffe4e4;
    color: #FF6B6B;
}

.feature-icon-bg-2 {
    background: #dbfbf9;
    color: #4ECDC4;
}

.feature-icon-bg-3 {
    background: #fff8e1;
    color: #F5B01C;
}

.feature-icon-bg-4 {
    background: #e2e8f0;
    color: #1E293B;
}

.process-step {
    position: relative;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-line {
    position: absolute;
    top: 20px;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

/* LTR Default Step Lines */
.process-step:nth-child(1) .step-line {
    width: 50%;
    left: 50%;
}

.process-step:nth-child(2) .step-line {
    width: 100%;
    left: 0;
}

.process-step:nth-child(3) .step-line {
    width: 50%;
    left: 0;
}

@media (max-width: 968px) {
    .step-line {
        display: none;
    }
}

.step-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.gallery-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.gallery-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.gallery-content {
    padding: 24px;
}

/* Social Proof Styles */
.proof-section {
    background: #1E293B;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.proof-section h2,
.proof-section p {
    color: white;
}

.metric-item {
    text-align: center;
}

.metric-val {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--secondary);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, white 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 16px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    border-radius: 16px;
    text-align: left;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    filter: blur(2px);
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items if needed */
.grid-4>div:nth-child(1) {
    transition-delay: 0.1s;
}

.grid-4>div:nth-child(2) {
    transition-delay: 0.2s;
}

.grid-4>div:nth-child(3) {
    transition-delay: 0.3s;
}

.grid-4>div:nth-child(4) {
    transition-delay: 0.4s;
}

.gallery-grid>div:nth-child(1) {
    transition-delay: 0.1s;
}

.gallery-grid>div:nth-child(2) {
    transition-delay: 0.2s;
}

.gallery-grid>div:nth-child(3) {
    transition-delay: 0.3s;
}

.gallery-grid>div:nth-child(4) {
    transition-delay: 0.4s;
}

/* Language Button */
.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.lang-btn:hover {
    background: var(--muted);
    border-color: var(--muted-foreground);
    color: var(--primary);
}

/* Social Links */
.social-link {
    color: #6b7280;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--primary);
}

/* =================================== */
/* RTL Support                         */
/* =================================== */
:root[dir="rtl"] {
    --font-family-body: 'Cairo', sans-serif;
}

[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] a,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] .btn {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 0;
}

/* Flatten gradients direction or animations if needed */
[dir="rtl"] .btn-primary::after {
    left: auto;
    right: -100%;
    background: linear-gradient(-90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

[dir="rtl"] .btn-primary:hover::after {
    left: auto;
    right: 100%;
}

[dir="rtl"] .testimonial-card {
    text-align: right;
}

/* Fix for footer logo inline margin if possible, or just add margin-left to img */
[dir="rtl"] .logo img {
    margin-right: 0 !important;
    /* Override inline style */
    margin-left: 8px !important;
}

[dir="rtl"] .text-center {
    text-align: center;
}

/* Mobile Menu Slide In from opposite side */
@media (max-width: 768px) {
    [dir="rtl"] .nav-links {
        left: auto;
        right: 0;
    }
}

/* Floating Badge Rotation Flip */
[dir="rtl"] .hero-image-wrapper>div:last-child {
    left: auto;
    right: -20px;
    transform: rotate(3deg);
}

/* Icons Spacing */
[dir="rtl"] iconify-icon {
    margin-right: 0;
    margin-left: initial;
}

/* Notification Slide */
[dir="rtl"] .notification {
    left: auto;
    right: 30px;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Video Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    border-radius: 16px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
    display: flex;
    /* Removes bottom space */
}

.close-btn {
    color: white;
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

/* RTL Close Button */
[dir="rtl"] .close-btn {
    right: auto;
    left: 0;
}

.close-btn:hover,
.close-btn:focus {
    color: white;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    text-decoration: none;
}

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

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* RTL Step Lines */
[dir="rtl"] .process-step:nth-child(1) .step-line {
    left: 0;
    right: auto;
    width: 50%;
}

[dir="rtl"] .process-step:nth-child(2) .step-line {
    left: 0;
    width: 100%;
}

[dir="rtl"] .process-step:nth-child(3) .step-line {
    left: 50%;
    width: 50%;
}