/* ===================================
   CSS Variables & Root Styles - Futuristic SaaS Edition
   =================================== */
:root {
    /* Color Palette - Future of Building */
    /* Dark Theme Base */
    --bg-dark: #0B0E14;
    /* Deep Tech Black */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    /* Brand Colors */
    --primary: #FF3366;
    /* Neon Red/Pink for high contrast */
    --primary-glow: rgba(255, 51, 102, 0.5);
    --secondary: #3B82F6;
    /* Electric Blue */
    --secondary-glow: rgba(59, 130, 246, 0.5);

    /* Text Colors */
    --white: #FFFFFF;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-light: #CBD5E1;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF3366 0%, #C41E3A 100%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-glass-border: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Typography */
    --font-family: 'Almarai', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 4rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;
    --spacing-4xl: 8rem;

    /* Border Radius & Glass */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --backdrop-blur: blur(20px);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===================================
   Reset & Base Styles
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-muted);
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 51, 102, 0.08), transparent 25%);
    background-attachment: fixed;
    overflow-x: hidden;
    direction: rtl;
}
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 800;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea {
    font-family: inherit;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

/* Glass Effect Mixin Class */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ===================================
   Buttons & Inteactive Elements
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 700;
    font-size: var(--font-size-base);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 0 20px -5px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px -5px var(--primary-glow);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 800;
    font-size: var(--font-size-xl);
}

.logo-text {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 24px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--font-size-sm);
    position: relative;
    transition: var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a.nav-cta {
    display: none;
    /* Hide standard CTA in links, keeping layout clean */
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
}

/* ===================================
   Hero Section - SaaS Future style
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--secondary);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    top: -20%;
    left: -10%;
    animation: pulseGlow 10s infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.1;
    border-radius: 50%;
    bottom: -10%;
    right: -5%;
    animation: pulseGlow 8s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    /* Sits behind detailed content */
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    /* Glass badge */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(to bottom right, #ffffff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-title span {
    display: block;
    font-weight: 300;
    /* Almarai Light */
    color: var(--secondary);
    font-size: 0.5em;
    /* relative to title */
    margin-top: 10px;
    -webkit-text-fill-color: var(--secondary);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-3xl);
}

/* Stats as Glass Cards */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat-item {
    background: var(--gradient-glass);
    border: var(--glass-border);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    text-align: center;
    min-width: 160px;
    transition: transform var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, white 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 400;
}

.stat-divider {
    display: none;
}

/* Removed vertical lines for card style */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
    opacity: 0.7;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-3xl);
}

.section-badge {
    color: var(--secondary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: var(--font-size-lg);
    font-weight: 300;
}

/* ===================================
   Cards (Features, Services, Products)
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

/* Common SaaS Glass Card Style */
.feature-card,
.about-card {
    position: relative;
    background: var(--gradient-glass);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 0, 0.02) 40%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 0 20px var(--secondary-glow);
}

.feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    height: 200px;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-card:hover img {
    transform: scale(1.1);
}

.feature-content,
.service-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-lg);
}

.feature-content h3,
.service-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-content p,
.service-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    opacity: 0.9;
    padding-left: var(--spacing-sm);
    /* Visual balance for text */
    border-right: 2px solid rgba(255, 51, 102, 0.5);
    /* Subtle accent line */
    padding-right: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

/* ===================================
   Services Section - Tech Grid Style
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.service-image {
    height: 240px;
    width: 100%;
    margin: 0;
    border-radius: 0;
    position: relative;
}

.service-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: var(--spacing-xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(11, 14, 20, 0), rgba(11, 14, 20, 1));
    margin-top: -60px;
    /* Overlap image */
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-10px) rotate(5deg);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(to right, #fff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.service-features {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-md);
}

.service-features li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===================================
   Products Section - Premium Showcase
   =================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.product-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-glow);
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.product-image {
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--white);
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-tag.hot {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    border: none;
}

.product-content {
    text-align: center;
    padding-top: var(--spacing-sm);
}

.product-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    transition: color 0.3s ease;
}

.product-card:hover .product-content h4 {
    color: var(--primary-light);
}

.product-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.8;
}

.products-cta {
    text-align: center;
    margin-top: var(--spacing-3xl);
}

/* ===================================
   Clients/Advantages - Info Tiles
   =================================== */
/* ===================================
   Advantages Section - Responsive Overhaul
   =================================== */
.advantages {
    position: relative;
    overflow: hidden;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.advantages-content {
    /* Reset padding for better grid alignment */
    padding: 0;
    order: 1;
    /* Content on right (RTL: appears first in source usually, but let's explicity handle visual order) */
}

/* RTL handling: Since html is dir="rtl", first column is right, second is left. 
   If typical design has text on right and image on left:
   Grid col 1: Text
   Grid col 2: Image
*/

.advantages-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    color: var(--white);
    line-height: 1.2;
}

.advantages-description {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
    line-height: 1.7;
}

.advantage-item {
    display: flex;
    align-items: center;
    /* Center vertically specifically */
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-lg);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border-right: 4px solid var(--primary);
    /* Stronger accent */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-item:last-child {
    margin-bottom: 0;
}

.advantage-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
    transform: translateX(-10px);
    /* Move slightly left in RTL to indicate active */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.advantage-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(11, 14, 20, 0.5);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 51, 102, 0.3);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.1);
}

.advantage-content h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.advantage-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.advantages-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    min-height: 500px;
    /* Ensure height matches content */
    order: 2;
}

.advantages-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

.advantages-image:hover img {
    transform: scale(1.1);
}

.advantages-badge {
    position: absolute;
    bottom: 40px;
    right: 40px;
    /* RTL adjustments might flip this, let's keep it safe */
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 2;
    min-width: 150px;
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 30px var(--primary-glow);
}

.badge-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Responsive Styles for Advantages */
@media (max-width: 968px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .advantages-content {
        order: 2;
    }

    .advantages-image {
        order: 1;
        min-height: 300px;
        height: 300px;
    }

    .advantages-badge {
        bottom: 20px;
        right: 20px;
        padding: 15px;
    }

    .advantage-item {
        padding: var(--spacing-md);
    }
}

/* ===================================
   Clients Section - Strategic Partners
   =================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.client-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

/* Hover Glow Background */
.client-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.5s ease;
    z-index: 1;
}

.client-card:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

.client-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.client-icon {
    width: 80px;
    height: 80px;
    background: rgba(11, 14, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.client-card:hover .client-icon {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--secondary-glow);
}

.client-icon svg {
    width: 40px;
    height: 40px;
}

.client-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 2;
}

.client-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.client-card:hover p {
    color: var(--text-light);
}

/* ===================================
   About Section - Futuristic Layout
   =================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    position: relative;
}

/* Decorative background glow behind about section */
.about-grid::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.about-images {
    position: relative;
    padding-left: 30px;
    /* Space for secondary image */
    padding-bottom: 30px;
}

.about-image-main {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.about-image-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.about-images:hover .about-image-main img {
    transform: scale(1.05);
}

.about-image-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 240px;
    height: 180px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 2;
    box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.6);
}

.about-experience {
    background: rgba(11, 14, 20, 0.9);
    /* Dark glass */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Glass border */
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    position: absolute;
    top: 30px;
    right: -20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
    text-align: center;
    min-width: 140px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-images:hover .about-experience {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--primary-glow);
}

.experience-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-content .section-badge {
    margin-bottom: var(--spacing-md);
}

.about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-description {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.about-card {
    display: flex;
    gap: var(--spacing-md);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.about-card:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.about-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.about-card:hover .about-card-icon {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 0 20px var(--secondary-glow);
    border-color: transparent;
}

.about-card-content h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Values Grid */
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.value-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.value-item svg {
    color: var(--primary);
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.value-item:hover svg {
    transform: scale(1.2);
}

/* ===================================
   FAQ - Modern Floating Accordion
   =================================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateX(-10px);
    /* Subtle shift */
}

.faq-item.active::before {
    transform: scaleY(1);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
    font-size: 1.1rem;
}

.faq-icon {
    color: var(--text-muted);
    transition: transform 0.4s ease, color 0.4s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 var(--spacing-xl);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding-bottom: var(--spacing-xl);
    max-height: 300px;
    opacity: 1;
}

/* ===================================
   Contact Section - Command Center
   =================================== */
.contact {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info {
    padding: var(--spacing-lg) 0;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #ffffff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    background: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(10px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(11, 14, 20, 0.6);
    border-radius: var(--radius-full);
    /* Circular */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-item-icon {
    color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.contact-item-content h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.contact-item-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Wrapper */
.contact-form-wrapper {
    background: rgba(20, 24, 33, 0.8);
    padding: 60px;
    /* Spacious padding */
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* Holographic Edge */
.contact-form-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 40%, rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 30px;
    background: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.1);
    transform: translateY(-2px);
}

.form-group:focus-within label {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .contact-form-wrapper {
        padding: var(--spacing-xl);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    background: rgba(0, 0, 0, 0.4);
    margin-top: var(--spacing-4xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    font-size: var(--font-size-xl);
    font-weight: 800;
}

.footer-slogan {
    color: var(--secondary);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.footer h4 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--text-muted);
    transition: 0.2s;
}

.footer ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* ===================================
   Animations
   =================================== */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-left"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"] {
    transform: translateX(30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ===================================
   Enhanced Responsive System
   =================================== */

/* Tablet & Mobile Screens */
@media (max-width: 992px) {
    :root {
        --spacing-4xl: 4rem;
        --spacing-3xl: 3rem;
    }

    .section {
        padding: var(--spacing-3xl) 0;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-grid,
    .advantages-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

/* Small Device / Mobile Phone Specifics */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navbar fixes */
    .navbar {
        padding: var(--spacing-md) 0;
        background: rgba(11, 14, 20, 0.92);
        backdrop-filter: blur(30px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
    }

    .nav-toggle .bar {
        width: 100%;
        height: 3px;
        background: #FFFFFF;
        border-radius: 10px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(11, 14, 20, 0.98);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 100px var(--spacing-xl);
        transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1);
        border-radius: 0;
        backdrop-filter: blur(20px);
        z-index: 1050;
        gap: var(--spacing-lg);
    }

    .nav-links.active {
        right: 0;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: #FFFFFF;
    }

    .nav-links a.nav-cta {
        display: inline-flex;
        margin-top: var(--spacing-md);
        background: var(--gradient-primary);
        padding: 15px 30px;
        border-radius: var(--radius-lg);
        justify-content: center;
        width: fit-content;
        color: white;
    }

    /* Hero Responsive */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--spacing-4xl);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    .stat-item {
        min-width: 130px;
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    /* About Section Mobile */
    .about-images {
        margin-bottom: var(--spacing-xl);
        padding-left: 0;
        padding-bottom: 0;
    }

    .about-image-secondary {
        width: 160px;
        height: 120px;
    }

    .about-experience {
        top: 10px;
        right: 10px;
        padding: 10px;
        min-width: 100px;
    }

    .experience-number {
        font-size: 1.8rem;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    /* Advantages Mobile Fixes */
    .advantages-image {
        min-height: 250px;
        height: 250px;
    }

    .advantage-item {
        flex-direction: column;
        text-align: center;
        border-right: none;
        border-bottom: 4px solid var(--primary);
    }

    /* Product & Service Grids */
    .services-grid,
    .products-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ Mobile */
    .faq-question {
        padding: var(--spacing-md);
        font-size: 1rem;
    }

    .faq-item.active {
        transform: none;
        /* remove shift on mobile */
    }

    /* Contact Mobile */
    .contact-form-wrapper {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links ul li a:hover {
        padding-right: 0;
    }
}

/* RTL Horizontal Overflow & Global Fixes */
body {
    overflow-x: hidden;
    width: 100%;
}

* {
    max-width: 100vw;
}

/* User Defined Font Classes */
.almarai-light {
    font-family: "Almarai", sans-serif;
    font-weight: 300;
}

.almarai-regular {
    font-family: "Almarai", sans-serif;
    font-weight: 400;
}

.almarai-bold {
    font-family: "Almarai", sans-serif;
    font-weight: 700;
}

.almarai-extrabold {
    font-family: "Almarai", sans-serif;
    font-weight: 800;
}