@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* --- Design Tokens & CSS Variables --- */
:root {
    --primary-purple: #5D3CF3;
    --primary-purple-hover: #4F2EE0;
    --primary-navy: #081E29;
    --dark-bg: #050E13;
    --light-bg: #F8FAFC;
    --card-light-bg: rgba(255, 255, 255, 0.8);
    --card-dark-bg: rgba(8, 30, 41, 0.6);
    --text-dark: #0F172A;
    --text-light: #F1F5F9;
    --text-gray: #64748B;
    --border-color: rgba(226, 232, 240, 0.8);
    --glow-purple: rgba(93, 60, 243, 0.2);
    --glow-navy: rgba(8, 30, 41, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Default Fonts (LTR) */
    --font-primary: 'Outfit', sans-serif;
}

/* RTL overrides handled by root element */
[dir="rtl"] {
    --font-primary: 'Tajawal', sans-serif;
}

/* --- Base Resets & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple-hover);
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glow-purple);
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(93, 60, 243, 0.15);
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-navy);
    margin-bottom: 20px;
    max-width: 700px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 50px;
    max-width: 600px;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.glass-dark-panel {
    background: rgba(8, 30, 41, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(93, 60, 243, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --- 1. Splash Preloader Animation --- */
.splash-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
}

.splash-preloader.fade-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.splash-logo-container {
    text-align: center;
    position: relative;
}

.splash-logo-svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 15px rgba(93, 60, 243, 0.6));
}

.splash-logo-svg path.chevron {
    fill: none;
    stroke: var(--primary-purple);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawChevron 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-logo-svg path.chevron-2 {
    animation-delay: 0.4s;
}

.splash-wordmark {
    margin-top: 24px;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideWordmark 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.splash-wordmark span {
    color: var(--primary-purple);
}

.splash-wordmark-sub {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(10px);
    animation: slideWordmark 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

@keyframes drawChevron {
    to {
        stroke-dashoffset: 0;
        fill: var(--primary-purple);
    }
}

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

/* --- 2. Interactive Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.sticky {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.navbar.sticky .nav-logo-img {
    max-height: 38px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-fast);
}

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

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

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

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

/* Custom Interactive Language Selector */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-navy);
    text-decoration: none;
    gap: 6px;
    transition: var(--transition-smooth);
}

.lang-toggle:hover {
    background: var(--primary-purple);
    color: var(--text-light);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(93, 60, 243, 0.3);
}

.lang-toggle svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-purple);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(93, 60, 243, 0.25);
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-purple-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(93, 60, 243, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(8, 30, 41, 0.05);
    transform: translateY(-3px);
}

/* Mobile Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    transition: var(--transition-smooth);
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-navy);
    border-radius: 3px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Nav Menu Drawer Wrapper */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

/* Hide mobile elements by default */
.mobile-only-action {
    display: none;
}

.desktop-only {
    display: inline-flex !important;
}

/* --- 3. Hero Section --- */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    background: radial-gradient(circle at 80% 20%, rgba(93, 60, 243, 0.04) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(93, 60, 243, 0.02) 0%, transparent 50%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.hero-badge {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(93, 60, 243, 0.1);
    color: var(--text-gray);
    padding: 6px 14px;
    border-radius: 100px;
    transition: var(--transition-fast);
}

.hero-badge:hover {
    background: var(--primary-purple);
    color: var(--text-light);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
}

.hero-title {
    font-size: 58px;
    font-weight: 850;
    line-height: 1.15;
    color: var(--primary-navy);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-title span {
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(93, 60, 243, 0.12);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Premium Dashboard Illustration */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-visual-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(93, 60, 243, 0.12) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: rotateGlow 15s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.dashboard-widget {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: var(--transition-smooth);
    box-shadow: 0 30px 60px rgba(8, 30, 41, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.dashboard-widget:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.widget-header {
    background: var(--primary-navy);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-dots {
    display: flex;
    gap: 8px;
}

.widget-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.widget-dots span:nth-child(1) { background: #FF5F56; }
.widget-dots span:nth-child(2) { background: #FFBD2E; }
.widget-dots span:nth-child(3) { background: #27C93F; }

.widget-title {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.widget-body {
    padding: 28px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 24px;
}

.widget-chart-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

.widget-stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-navy);
}

.widget-growth-badge {
    background: rgba(39, 201, 63, 0.15);
    color: #27C93F;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
}

.bar-chart {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 10px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8);
}

.bar-item {
    width: 28px;
    background: linear-gradient(180deg, var(--primary-purple) 0%, rgba(93, 60, 243, 0.4) 100%);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    height: 0;
    transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    position: relative;
}

.bar-item::before {
    content: attr(data-height);
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-navy);
    opacity: 0;
    transition: var(--transition-fast);
}

.bar-item:hover::before {
    opacity: 1;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    animation: floatAnim 4s ease-in-out infinite;
}

.float-1 {
    top: 10%;
    left: -15%;
    animation-delay: 0s;
}

.float-2 {
    bottom: 12%;
    right: -10%;
    animation-delay: 1.5s;
}

@keyframes floatAnim {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- 4. About Us Section --- */
.about {
    background-color: var(--light-bg);
}

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

.about-images {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-img-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-img-box:hover img {
    transform: scale(1.08);
}

.about-img-box:nth-child(1) {
    grid-row: span 2;
    height: 380px;
    margin-top: 30px;
}

.about-img-box:nth-child(2) {
    height: 200px;
}

.about-img-box:nth-child(3) {
    height: 200px;
}

.about-badge-sticker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(93, 60, 243, 0.4);
    border: 4px solid var(--light-bg);
    text-align: center;
    line-height: 1.2;
}

.about-badge-sticker span {
    font-size: 20px;
    font-weight: 850;
}

.about-bullets {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-bullet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
}

.about-bullet-item svg {
    color: var(--primary-purple);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* --- 5. Services Section --- */
.services {
    background-color: var(--light-bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(93, 60, 243, 0.05) 0%, transparent 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(93, 60, 243, 0.3);
    box-shadow: 0 20px 40px rgba(93, 60, 243, 0.06);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--glow-purple);
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--primary-purple);
    color: var(--text-light);
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.service-desc {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding-top: 20px;
}

.service-bullet {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-bullet svg {
    width: 14px;
    height: 14px;
    color: var(--primary-purple);
}

/* --- 6. Why Choose Us Section --- */
.why-us {
    background-color: var(--light-bg);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
}

.why-us-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-us-card {
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
}

.why-us-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.why-us-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Asymmetric Highlights Card */
.why-us-highlight-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.metric-panel {
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Circular SVG Progress Bar */
.radial-progress-box {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.radial-progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.radial-progress-bg {
    fill: none;
    stroke: rgba(226, 232, 240, 0.8);
    stroke-width: 10;
}

.radial-progress-bar {
    fill: none;
    stroke: var(--primary-purple);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440; /* Animated via JS */
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.radial-progress-number {
    position: absolute;
    font-size: 36px;
    font-weight: 850;
    color: var(--primary-navy);
}

.metric-panel h3 {
    font-size: 20px;
    font-weight: 750;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.metric-panel p {
    font-size: 14px;
    color: var(--text-gray);
    max-width: 250px;
}

/* --- 7. Timeline / How We Work Section --- */
.timeline {
    background-color: var(--light-bg);
}

.timeline-box {
    position: relative;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-box::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: repeating-linear-gradient(to bottom, transparent, transparent 4px, var(--border-color) 4px, var(--border-color) 8px);
}

[dir="rtl"] .timeline-box::before {
    left: auto;
    right: 40px;
}

.timeline-item {
    display: flex;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.timeline-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--card-light-bg);
    border: 2px solid var(--border-color);
    color: var(--primary-purple);
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-number {
    background: var(--primary-purple);
    color: var(--text-light);
    border-color: var(--primary-purple);
    box-shadow: 0 10px 25px rgba(93, 60, 243, 0.3);
}

.timeline-content-card {
    border-radius: 20px;
    padding: 30px 40px;
    transition: var(--transition-smooth);
    width: 100%;
}

.timeline-content-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
}

[dir="rtl"] .timeline-content-card:hover {
    transform: translateX(-10px);
}

.timeline-content-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.timeline-content-card p {
    font-size: 15px;
    color: var(--text-gray);
}

/* --- 8. Testimonials Section --- */
.testimonials {
    background-color: var(--light-bg);
    overflow: hidden;
}

.testimonial-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonial-slider {
    position: relative;
    height: 320px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0px);
}

.testimonial-quote {
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    color: var(--primary-navy);
    line-height: 1.6;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--border-color);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--primary-purple);
}

.testimonial-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-navy);
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Slider Controls */
.slider-control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-light-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.slider-control-btn:hover {
    background: var(--primary-purple);
    color: var(--text-light);
    border-color: var(--primary-purple);
    box-shadow: 0 5px 15px rgba(93, 60, 243, 0.3);
}

.slider-prev { left: -20px; }
.slider-next { right: -20px; }

[dir="rtl"] .slider-prev { left: auto; right: -20px; }
[dir="rtl"] .slider-next { right: auto; left: -20px; }

/* --- 9. FAQ Section --- */
.faq {
    background-color: var(--light-bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: start;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-navy);
    transition: var(--transition-fast);
}

.faq-trigger svg {
    width: 18px;
    height: 18px;
    color: var(--text-gray);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-trigger {
    color: var(--primary-purple);
}

.faq-item.active .faq-trigger svg {
    transform: rotate(180deg);
    color: var(--primary-purple);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.faq-content-inner {
    padding: 0 24px 24px 24px;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- 10. Insights / Blog Section --- */
.insights {
    background-color: var(--light-bg);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.blog-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #E2E8F0;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08);
}

.blog-cat {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-purple);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    text-transform: uppercase;
}

[dir="rtl"] .blog-cat {
    left: auto;
    right: 20px;
}

.blog-details {
    padding: 30px;
}

.blog-date {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 20px;
    font-weight: 750;
    color: var(--primary-navy);
    line-height: 1.3;
    margin-bottom: 14px;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-title a:hover {
    color: var(--primary-purple);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.5;
}

.blog-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.blog-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-link svg {
    transform: translateX(4px);
}

[dir="rtl"] .blog-card:hover .blog-link svg {
    transform: translateX(-4px);
}

/* --- 11. Contact Form Section --- */
.contact {
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--glow-purple);
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
}

.contact-info-text p {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
}

/* Contact Form Card styling */
.contact-form-card {
    border-radius: 28px;
    padding: 50px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    color: var(--primary-navy);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px var(--glow-purple);
}

textarea.form-input {
    resize: none;
    height: 120px;
}

.contact-status-box {
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.contact-status-box.success {
    display: block;
    background: rgba(39, 201, 63, 0.15);
    color: #27C93F;
}

.contact-status-box.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

/* --- 12. Modern Footer --- */
.footer {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 26px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-logo-arrow {
    width: 32px;
    height: 32px;
}

.footer-logo-text span {
    color: var(--primary-purple);
}

.footer-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--primary-purple);
    color: var(--text-light);
    transform: scale(1.1);
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-purple);
}

[dir="rtl"] .footer-col h3::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link-item a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-link-item a:hover {
    color: var(--primary-purple);
}

.footer-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-subscribe-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--primary-purple);
}

/* --- 13. Responsive Adaptation Rules --- */
@media (max-width: 1024px) {
    .hero-grid, .about-grid, .why-us-grid, .faq-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-visual {
        order: 2;
    }
    .hero-content {
        order: 1;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-title {
        font-size: 46px;
    }
    .hero-badge-container {
        justify-content: center;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only-action {
        display: block;
        width: 100%;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: -10px 0 40px rgba(8, 30, 41, 0.12);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        padding: 100px 30px 40px 30px;
        z-index: 1005;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    [dir="rtl"] .nav-menu-wrapper {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--border-color);
        box-shadow: 10px 0 40px rgba(8, 30, 41, 0.12);
    }
    
    .nav-menu-wrapper.open {
        right: 0;
    }
    
    [dir="rtl"] .nav-menu-wrapper.open {
        right: auto;
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }
    
    .nav-link {
        font-size: 18px;
        font-weight: 600;
        width: 100%;
        display: block;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form-card {
        padding: 30px;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- SUCCESS PARTNERS MARQUEE ROW --- */
.partners-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 70px;
    animation: marqueeScroll 25s linear infinite;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-navy);
    opacity: 0.5;
    transition: var(--transition-fast);
    cursor: pointer;
    user-select: none;
}

.partner-logo:hover {
    opacity: 0.95;
    color: var(--primary-purple);
    transform: scale(1.05);
}

.partner-logo-svg {
    color: var(--primary-purple);
    transition: var(--transition-fast);
}

.partner-logo:hover .partner-logo-svg {
    transform: rotate(8deg);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 35px));
    }
}

[dir="rtl"] .marquee-track {
    animation: marqueeScrollRtl 25s linear infinite;
}

@keyframes marqueeScrollRtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(50% + 35px));
    }
}
