/* ================================================
   CAMC INN — Design System & Base Styles
   الجمعية التعاونية للاستشارات الطبية
   ================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Cairo:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables (Design Tokens) ── */
:root {
    /* Ultra-Premium Colors */
    --color-primary: #2AABE1;
    /* Medical Cyan (Logo Core) */
    --color-primary-dark: #1F88B4;
    /* Darker Cyan for hovers */
    --color-primary-light: #EBF5FB;
    --color-hero-cyan: #00F2FE;
    /* Brighter cyan for hero/network accents */
    /* Glacial Blue for subtle backgrounds */

    --color-accent: #C9A84C;
    /* Warm Saudi Gold */
    --color-accent-dark: #B8963A;
    --color-accent-light: #D4B95F;

    --color-bg-white: #FFFFFF;
    --color-bg-light: #F8FAFC;
    /* Cool Pearl Gray */
    --color-bg-teal: #EBF5FB;
    /* Updated to Glacial Blue */
    --color-bg-dark: #1B3A4B;
    /* Deep Royal Navy (Section bg-dark) */
    --color-midnight-blue: #0b1026;
    /* Deep Midnight Blue (Header/Footer/Premium sections) */

    --color-text-primary: #1B2A3D;
    /* Dark Navy Charcoal */
    --color-text-secondary: #6B7280;
    /* Neutral Gray */
    --color-text-light: #9CA3AF;
    --color-text-white: #FFFFFF;

    --color-border: #E5E7EB;
    --color-border-light: #F0F0F0;

    /* Typography */
    --font-heading: 'Tajawal', sans-serif;
    /* High-end corporate font */
    --font-arabic: 'Cairo', sans-serif;
    /* Body text */
    --font-english: 'Inter', sans-serif;

    --fs-hero: clamp(2.5rem, 5vw, 4rem);
    /* Slightly larger for bold editorial look */
    --fs-h2: clamp(1.8rem, 4vw, 2.5rem);
    --fs-h3: clamp(1.3rem, 2.5vw, 1.75rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.875rem;
    --fs-btn: 1rem;

    --lh-heading: 1.3;
    --lh-body: 1.8;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-section: clamp(4rem, 8vw, 7rem);

    /* Layout */
    --container-max: 1200px;
    --container-wide: 1400px;
    --header-height: 80px;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.12);

    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Preloader ── */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2838 50%, #0D1B2A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader--hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preloader__logo {
    width: 100px;
    height: auto;
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.preloader__logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
    animation: shine 2s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 150%;
    }
}

.preloader__text {
    text-align: center;
}

.preloader__title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.preloader__subtitle {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
}

.preloader__loader {
    width: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.preloader__bar {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #00F2FE);
    border-radius: 3px;
    animation: loading-bar 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(42, 171, 225, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(42, 171, 225, 0.6));
    }
}

@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden; /* منع الـ scroll الأفقي من أي عنصر يتجاوز حدود الـ viewport */
}

body {
    font-family: var(--font-arabic);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text-primary);
    background-color: var(--color-bg-white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    /* Upgraded to Tajawal */
    font-weight: 700;
    line-height: var(--lh-heading);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--fs-hero);
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 600;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--space-section) 0;
}

/* ══════════════════════════════════════════
   13. Footer (Premium Dark)
   ══════════════════════════════════════════ */
.footer {
    padding-top: var(--space-3xl);
    background-color: var(--color-bg-light);
    border-top: 1px solid rgba(0, 194, 224, 0.15);
    /* Subtle cyan top border */
}

/* Dark Footer Variant (Used by default now) */
.footer--dark {
    background-color: var(--color-midnight-blue);
    /* Deep Midnight Blue to match header */
    color: var(--color-text-white);
}

.footer--dark .footer__text,
.footer--dark .footer__link,
.footer--dark .footer__contact-text {
    color: rgba(255, 255, 255, 0.6);
}

.footer--dark .footer__link:hover {
    color: #00c2e0;
    /* Cyan hover */
    padding-right: 5px;
    /* Slight movement on hover */
}

.section--light {
    background-color: var(--color-bg-light);
}

.section--teal {
    background-color: var(--color-bg-teal);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.section--midnight {
    background-color: var(--color-midnight-blue);
    color: var(--color-text-white);
}

/* Active nav link for sub-pages */
.nav__link--active {
    color: var(--color-primary) !important;
}
.dropdown__link--active {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    background: rgba(42, 171, 225, 0.06);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section__title {
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent); /* Default: Gold */
    margin: var(--space-sm) auto 0;
    border-radius: 2px;
    transition: background 0.3s ease;
}

/* Adaptive underline on dark sections — use cyan */
.section--midnight .section__title::after,
.section--dark .section__title::after,
.services-flow-section .section__title::after,
.about-section .section__title::after {
    background: var(--color-primary);
}

/* Subtitle in dark sections must be readable */
.section--midnight .section__subtitle,
.section--dark .section__subtitle,
.services-flow-section .section__subtitle,
.about-section .section__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* Section title in dark sections must be white */
.section--midnight .section__title,
.section--dark .section__title,
.services-flow-section .section__title,
.about-section .section__title {
    color: #ffffff;
}

.section__subtitle {
    color: var(--color-text-secondary);
    font-size: var(--fs-body);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    text-decoration: none;
    line-height: 1;
    min-height: 48px;
}

/* Header actions buttons - equal height */
.header__actions .btn,
.nav__mobile-actions .btn {
    min-height: 44px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.header__actions .btn::before,
.nav__mobile-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.header__actions .btn:hover::before,
.nav__mobile-actions .btn:hover::before {
    left: 100%;
}

/* Button Icons */
.btn i {
    font-size: 1.1em;
}

/* 1. Primary Button (Cyan/Teal) - Glassmorphism */
.btn--primary {
    background: rgba(42, 171, 225, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(42, 171, 225, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(42, 171, 225, 0.1), inset 0 0 20px rgba(42, 171, 225, 0.05);
}

.btn--primary:hover {
    background: rgba(42, 171, 225, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(42, 171, 225, 0.4), 0 10px 40px rgba(42, 171, 225, 0.2);
    color: #fff;
}

/* 2. Secondary Button (Gold/Yellow) - Solid */
.btn--secondary {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    border: 1px solid var(--color-accent);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn--secondary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
    color: var(--color-bg-dark);
}


.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-small);
}

/* ── Cards ── */
.card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-teal);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.card:hover .card__icon {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.card__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.card__text {
    color: var(--color-text-secondary);
    font-size: var(--fs-small);
    line-height: 1.7;
}

.service-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: right;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Glass Reveal Background on Hover */
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(135deg, rgba(11, 16, 38, 0.95) 0%, rgba(22, 36, 79, 0.95) 100%);
    backdrop-filter: blur(10px);
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    border-radius: var(--radius-lg);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(11, 16, 38, 0.2);
    border-color: transparent;
}

.service-card:hover::before {
    height: 100%;
    top: 0;
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 194, 224, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--space-md);
    transition: all 0.4s ease;
}

.service-card:hover .service-card__icon {
    background: rgba(255, 255, 255, 0.1);
    color: #00c2e0;
    transform: scale(1.1) rotate(5deg);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-bg-dark);
    transition: color 0.4s ease;
}

.service-card:hover .service-card__title {
    color: #ffffff;
}

.service-card__desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex-grow: 1;
    transition: color 0.4s ease;
}

.service-card:hover .service-card__desc {
    color: rgba(255, 255, 255, 0.8);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-card__link {
    color: var(--color-accent);
    /* Turns gold on hover */
}

.service-card__link i {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link i {
    transform: translateX(-5px);
    /* Move left for Arabic */
}

/* ── Grid System ── */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid--4,
    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   3. Header & Navigation (Advanced Premium)
   ================================================ */

.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    /* Fully transparent at the top */
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle line */
}

/* Glassmorphism effect when scrolled */
.header.scrolled,
.header.header--scrolled {
    background-color: var(--color-midnight-blue);
    /* Match Footer Midnight Blue */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Soft, wide shadow */
    border-bottom: 1px solid rgba(0, 194, 224, 0.15);
    /* Subtle cyan border */
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    z-index: 1001;
    /* Above mobile menu */
}

.header__logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header__logo-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.6rem 1rem;
    /* Slightly larger padding for pill effect */
    margin: 0 2px;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    /* Tajawal */
    font-weight: 500;
    color: var(--color-text-white);
    /* White text on dark header */
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    border-radius: 50px;
    /* Pill shape */
    background: transparent;
}

/* Remove bottom line effect */
.nav__link::after {
    display: none;
}

.nav__link:hover {
    color: #00c2e0;
    /* Cyan text */
    background: rgba(0, 194, 224, 0.08);
    /* Metallic cyan pill background */
    box-shadow: inset 0 0 0 1px rgba(0, 194, 224, 0.15);
    /* Subtle inner border */
}

.nav__link .arrow {
    font-size: 0.65rem;
    transition: transform var(--transition-fast);
}

.nav__item:hover .arrow {
    transform: rotate(180deg);
}

/* Premium Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 15px);
    /* Floating gap */
    right: 0;
    min-width: 260px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(11, 16, 38, 0.15), 0 0 0 1px rgba(11, 16, 38, 0.05);
    /* Soft outer glow */
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

/* Invisible bridge so mouse doesn't fall off */
.dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.nav__item:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown__item {
    position: relative;
    padding: 2px var(--space-xs);
}

.dropdown__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-bg-dark);
    /* Dark text for readability */
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.dropdown__link:hover {
    background: rgba(0, 194, 224, 0.08);
    /* Cyan tint */
    color: #00c2e0;
    padding-right: 1.25rem;
    /* Slight indent hover effect */
}

/* Nested Dropdown */
.dropdown__item>.dropdown {
    top: -10px;
    right: 100%;
    margin-right: 5px;
    /* Gap between main dropdown and nested */
}

/* Invisible bridge for nested dropdown */
.dropdown__item>.dropdown::before {
    top: 0;
    right: -10px;
    width: 10px;
    height: 100%;
}

.dropdown__item:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    /* Slide in instead of up */
}

/* Header Actions (CTA buttons) */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: #fff;
    font-size: 1.5rem;
    z-index: 1001;
    border-radius: 8px;
}

/* ══════════════════════════════════════════
   HERO — Cinematic Split + Floating Elements
   ══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #16244f;
    /* Main Dark Blue from image */
    padding-top: var(--header-height);
}

/* ── Advanced Abstract Hero Background ── */
.hero__bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Elegant Grid Pattern */
.hero__bg-grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-move 20s linear infinite;
    opacity: 0.6;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

/* Glowing Orbs for Depth */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orb-float 10s ease-in-out infinite alternate;
}

.orb-primary {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 36, 79, 0.8) 0%, transparent 70%);
    top: -10%;
    right: -10%;
}

.orb-cyan {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 194, 224, 0.25) 0%, transparent 70%);
    bottom: -10%;
    left: 10%;
    animation-delay: -5s;
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

/* Floating Medical Icons */
.floating-med-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.05);
    /* Very subtle white */
    font-size: 4rem;
    z-index: 1;
    animation: med-icon-float 8s ease-in-out infinite;
}

.med-icon-1 {
    top: 20%;
    right: 15%;
    animation-duration: 12s;
    font-size: 6rem;
}

.med-icon-2 {
    bottom: 30%;
    right: 40%;
    animation-duration: 9s;
    animation-delay: 2s;
    font-size: 3rem;
}

.med-icon-3 {
    top: 40%;
    left: 35%;
    animation-duration: 15s;
    animation-delay: 1s;
    font-size: 5rem;
}

@keyframes med-icon-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ── Split Layout ── */
.hero .container {
    position: relative;
    z-index: 10;
}

.hero__split {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    min-height: calc(100vh - var(--header-height));
    padding: var(--space-xl) 0;
}

.hero__text-block {
    flex: 0 0 50%;
    /* Take 50% width */
    text-align: right;
    /* Align text to right */
    color: #FFFFFF;
}

/* ── Staggered Entrance Animation ── */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: hero-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes hero-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Badge ── */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 194, 224, 0.15);
    /* Cyan subtle background */
    border: 1px solid rgba(0, 194, 224, 0.4);
    border-radius: 50px;
    color: #00c2e0;
    /* Cyan text */
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(8px);
}

.pulse {
    width: 8px;
    height: 8px;
    background: #00c2e0;
    /* Cyan pulse */
    border-radius: 50%;
    display: inline-block;
    animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 194, 224, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(0, 194, 224, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 194, 224, 0);
    }
}

/* ── Title ── */
.hero__title {
    margin-bottom: var(--space-md);
    perspective: 1000px;
}

.hero__title-line {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Slightly larger */
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero__title-line--accent {
    /* Gradient Text Effect */
    background: linear-gradient(135deg, #0ac2df 0%, #00c2e0 50%, #EBF5FB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
    filter: drop-shadow(0 0 15px rgba(0, 194, 224, 0.4));
    /* Cyan glow */
    display: inline-block;
    padding-bottom: 0.2em;
    /* Prevents descenders like the bottom of 'ع' from being clipped */
    margin-bottom: -0.2em;
    /* Offsets the padding so layout doesn't shift */
}

/* ── Subtitle ── */
.hero__subtitle {
    font-size: 1.15rem;
    /* Slightly larger */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    /* Regular weight for elegance */
    line-height: 1.9;
    margin: 0 0 var(--space-lg) 0;
}

/* ── Hero Buttons ── */
.hero__actions {
    display: flex;
    justify-content: flex-start;
    /* Align buttons to right (start) */
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

/* ── Mini Stats ── */
.hero__mini-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* White border */
}

.hero__mini-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__mini-stat strong {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #FFFFFF;
    /* White numbers */
}

.hero__mini-stat span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    /* White text with transparency */
    font-weight: 600;
}

.hero__mini-stat-divider {
    width: 1px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.25), transparent);
    /* White divider */
}

/* ══════════════════════════════════════════
   HERO — Doctor 3D Image (Left Side)
   ══════════════════════════════════════════ */
.hero__visual-block {
    flex: 0 0 45%;
    display: flex;
    align-items: flex-end;
    /* Align to the bottom so it naturally rests on the edge */
    justify-content: center;
    position: relative;
    z-index: 20;
    /* High z-index to overlap the next section */
}

.hero__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* Increased max width so doctor can scale bigger */
}

/* Glow behind the doctor */
.hero__doctor-glow {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 194, 224, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: doctor-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes doctor-glow-pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.9) translateY(0);
    }

    100% {
        opacity: 1;
        transform: scale(1.1) translateY(-10px);
    }
}

/* The Doctor Image */
.hero__doctor-img {
    position: relative;
    width: 140%;
    /* Scaled up for 3D imposing effect */
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: doctor-float 6s ease-in-out infinite;
    transform-origin: bottom center;
    margin-bottom: -180px;
    /* Pushes deeply into the stats section below */
    margin-top: -60px;
    /* Pulls up slightly into header */
    margin-left: -5%;
}

/* Portrait Doctor Image Adjustment (Specifically for ZC7Ti1Kf) */
.hero__doctor-img--portrait {
    width: auto;
    max-width: none;
    height: 95vh;
    /* Very tall */
    max-height: 1000px;
    object-fit: contain;
    object-position: bottom center;
    margin-bottom: -150px;
    /* 3D overlap effect over stats card */
    margin-top: -50px;
    margin-left: 5%;
}

@media (max-width: 992px) {
    .hero__doctor-img--portrait {
        height: auto;
        max-height: 70vh;
        margin-bottom: -50px; /* Still overlap slightly on mobile */
    }
}

@keyframes doctor-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Floating Badges */
.hero__floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: badge-float 4s ease-in-out infinite alternate;
}

@keyframes badge-float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

.badge-1 {
    top: 15%;
    right: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: 1.5s;
    animation-duration: 5s;
}

/* Custom styling for Badge 2 to contrast against the white coat */
.hero__floating-badge.badge-2 {
    background: rgba(22, 36, 79, 0.85);
    /* Solid dark blue for contrast */
    border: 1px solid rgba(0, 194, 224, 0.4);
    /* Cyan border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero__floating-badge.badge-2 .badge-icon {
    background: #FFFFFF;
    /* White icon background */
    color: #16244f;
    /* Dark Blue icon */
}

.hero__floating-badge.badge-2 .badge-text strong {
    color: #00c2e0;
    /* Cyan text */
}

.hero__floating-badge.badge-2 .badge-text span {
    color: #FFFFFF;
    /* White subtitle */
}

.hero__floating-badge .badge-icon {
    width: 40px;
    height: 40px;
    background: #00c2e0;
    /* Cyan */
    color: #16244f;
    /* Dark Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero__floating-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.hero__floating-badge .badge-text strong {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero__floating-badge .badge-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── Floating Particles ── */
.hero__particle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    animation: particle-drift linear infinite;
}

.hero__particle--1 {
    width: 6px;
    height: 6px;
    background: #00c2e0;
    /* Cyan particle */
    opacity: 0.5;
    top: 10%;
    right: -10%;
    animation-duration: 7s;
}

.hero__particle--2 {
    width: 4px;
    height: 4px;
    background: #ffffff;
    /* White particle */
    opacity: 0.6;
    bottom: 15%;
    left: -8%;
    animation-duration: 9s;
}

.hero__particle--3 {
    width: 8px;
    height: 8px;
    background: #00c2e0;
    /* Cyan particle */
    opacity: 0.3;
    top: 60%;
    right: -15%;
    animation-duration: 11s;
}

.hero__particle--4 {
    width: 3px;
    height: 3px;
    background: #ffffff;
    opacity: 0.5;
    top: 30%;
    left: -5%;
    animation-duration: 6s;
}

.hero__particle--5 {
    width: 5px;
    height: 5px;
    background: var(--color-bg-dark);
    opacity: 0.25;
    bottom: 30%;
    right: 5%;
    animation-duration: 8s;
}

@keyframes particle-drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: var(--particle-opacity, 0.5);
    }

    80% {
        opacity: var(--particle-opacity, 0.5);
    }

    100% {
        transform: translate(-20px, -40px) scale(0.5);
        opacity: 0;
    }
}

/* ── Bottom Separator ── */
.hero__separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.7), transparent);
}

/* ── Hero Responsive ── */
@media (max-width: 992px) {
    .hero__split {
        flex-direction: column-reverse;
        text-align: center;
        gap: var(--space-xl);
        padding: var(--space-2xl) 0;
    }

    .hero__text-block {
        flex: none;
        width: 100%;
    }

    .hero__subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__mini-stats {
        justify-content: center;
    }

    .hero__visual-block {
        flex: none;
        width: 100%;
    }

    .hero__glass-card {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero__title-line {
        font-size: 2rem;
    }

    .hero__mini-stats {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .hero__mini-stat-divider {
        display: none;
    }
}

/* ══════════════════════════════════════════
   Stats Section — Premium Floating Card (Glassmorphism)
   ══════════════════════════════════════════ */
.stats--floating {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: var(--space-xl);
    background: transparent;
}

.stats__card {
    background: rgba(255, 255, 255, 0.90);
    /* Bright Frosted Glass */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: var(--space-lg) var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient top border instead of solid line */
.stats__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00c2e0, #f6b426, #00c2e0);
    background-size: 200% 100%;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.stats__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.stats__item {
    flex: 1;
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    transition: transform var(--transition-base);
}

.stats__item:hover {
    transform: translateY(-8px);
    /* More pronounced lift */
}

.stats__icon {
    position: relative;
    font-size: 2.2rem;
    /* Slightly larger */
    color: #00c2e0;
    /* Vibrant Cyan */
    margin-bottom: var(--space-sm);
    display: inline-block;
}

/* Glowing pulse behind icons */
.stats__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 194, 224, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: icon-pulse 3s infinite alternate;
}

@keyframes icon-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.stats__number {
    font-size: 3rem;
    /* Larger */
    font-weight: 800;
    /* Clean metallic gradient appropriate for white bg */
    background: linear-gradient(135deg, #0b1026 0%, #16244f 50%, #00c2e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 8px;
}

.stats__plus {
    color: var(--color-accent);
    /* Gold plus */
    font-weight: 700;
    font-size: 2rem;
    -webkit-text-fill-color: var(--color-accent);
    /* Override gradient for plus */
}

.stats__label {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.stats__divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
    flex-shrink: 0;
}

/* Stats Responsive */
@media (max-width: 768px) {
    .stats__grid {
        flex-wrap: wrap;
    }

    .stats__item {
        flex: 0 0 50%;
    }

    .stats__divider {
        display: none;
    }

    .stats__card {
        padding: var(--space-md);
    }
}

/* ══════════════════════════════════════════
   About Preview — Asymmetric Editorial Split
   ══════════════════════════════════════════ */
/* Typography watermark in background */
.bg-watermark {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-size: 30vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    /* Subtle dark for light background */
    font-family: var(--font-heading);
    line-height: 1;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}

.about-preview--editorial {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Asymmetric allocation */
    gap: var(--space-3xl);
    align-items: center;
}

.about-preview__visual {
    position: relative;
    padding: var(--space-xl) 0;
}

/* Video container in about section */
.about-preview__visual .about-preview__video-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-preview__visual:hover .about-preview__video-container {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.about-preview__content {
    padding-right: var(--space-lg);
}

@media (max-width: 992px) {
    .about-preview--editorial {
        gap: var(--space-xl);
    }
    .about-preview__content {
        padding-right: 0;
    }
}

/* Sleek Image Container */
.about-preview__image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 2;
    aspect-ratio: 4/5;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-preview__image-container:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.about-preview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.about-preview__image-container:hover .about-preview__img {
    transform: scale(1.05);
}

.about-preview__image-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(0, 194, 224, 0.2) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: pulse-glow 4s infinite alternate;
}

/* Video Container */
.about-preview__video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.about-preview__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-preview__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 16, 38, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes pulse-glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Floating Accent Element */
.about-preview__floating-element {
    position: absolute;
    bottom: 50px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 194, 224, 0.2);
    z-index: 3;
    font-size: 3rem;
    color: #00c2e0;
    animation: float-element 5s ease-in-out infinite alternate;
}

@keyframes float-element {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(15px);
    }
}

/* ══════════════════════════════════════════
   Values Section (Neon Glassmorphism)
   ══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   Values Section (Modern Light Bento Grid)
   ══════════════════════════════════════════ */
.values-section {
    position: relative;
    background-color: var(--color-bg-white);
    padding: var(--space-4xl) 0;
    overflow: hidden;
    z-index: 1;
}

.values-section .section__title {
    color: var(--color-bg-dark);
}
.values-section .section__subtitle {
    color: var(--color-text-secondary);
}

/* Base Bento Card Style (Dark Frosted Glass on White) */
.value-card-neo {
    background: rgba(11, 16, 38, 0.95); /* Deep midnight blue */
    border: 1px solid rgba(0, 194, 224, 0.1); /* Subtle cyan border */
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(11, 16, 38, 0.15); /* Soft dark shadow */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Glowing top border shimmer */
.value-card-neo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.value-card-neo:hover::before {
    opacity: 1;
    animation: shimmer-line 1.5s ease infinite alternate;
}

@keyframes shimmer-line {
    0%   { transform: scaleX(0.3); opacity: 0.6; }
    100% { transform: scaleX(1);   opacity: 1; }
}

.value-card-neo:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0, 194, 224, 0.2); /* Cyan glow shadow */
    border-color: rgba(0, 194, 224, 0.4);
    background: rgba(11, 16, 38, 1);
}

.value-card-neo__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    background: rgba(0, 194, 224, 0.08); /* Transparent cyan circle */
    border-radius: 16px;
    margin-bottom: var(--space-md);
    transition: all 0.4s ease;
}

.value-card-neo:hover .value-card-neo__icon {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 0 20px rgba(0, 194, 224, 0.3);
}

.value-card-neo__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff; /* Contrast text */
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
}

.value-card-neo__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75); /* Slightly muted white */
    line-height: 1.6;
}

/* Accent Card (Gold/Secondary) */
.value-card-neo--accent .value-card-neo__icon {
    color: var(--color-accent);
    background: rgba(201, 168, 76, 0.1);
}
.value-card-neo--accent:hover .value-card-neo__icon {
    background: var(--color-accent);
    color: #0b1026;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

/* Accent Card (Teal to lighter blue) */
.value-card-neo--teal {
    background: linear-gradient(135deg, #0b1026 0%, #1a2a40 100%);
    border-color: rgba(255, 255, 255, 0.05); /* Less bright border */
}

.value-card-neo--teal .value-card-neo__icon {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}
.value-card-neo--teal:hover .value-card-neo__icon {
    background: #ffffff;
    color: var(--color-bg-dark);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════════════════
   Mission / Tag Fixes
   ══════════════════════════════════════════ */
.about-preview__accent-dot {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(246, 180, 38, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -20px;
    left: -20px;
    z-index: 1;
    filter: blur(10px);
}

/* Unified Tag Badge — works on both dark & light backgrounds */
.about-preview__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: var(--space-sm);
    padding: 5px 14px;
    border: 1px solid rgba(42, 171, 225, 0.35);
    border-radius: 50px; /* Pill shape */
    background: rgba(42, 171, 225, 0.06);
    backdrop-filter: blur(4px);
}

.about-preview__title {
    font-size: var(--fs-h2);
    color: var(--color-text-white);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.about-preview__text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* Highlights */
.about-preview__highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.about-preview__highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-text-white);
}

.about-preview__highlight-item i {
    font-size: 1.2rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .about-preview--editorial {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   Vision & Mission — Clean Typography Flow
   ══════════════════════════════════════════ */
.transition-curve-top {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: -110px; /* Overlap the previous dark section */
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.transition-curve-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

.vm-clean-section {
    background-color: #FAFBFC; /* Slightly off-white instead of stark #ffffff */
    padding: calc(var(--space-xl) + 40px) 0 var(--space-4xl) 0;
    color: var(--color-bg-dark);
    position: relative;
    z-index: 4;
}

/* Big Editorial Quote */
.vm-section__quote {
    text-align: center;
    margin-bottom: var(--space-4xl);
    position: relative;
}

.vm-section__quote-mark {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15rem;
    color: rgba(0, 0, 0, 0.02);
    font-family: serif;
    line-height: 0;
    z-index: -1;
    user-select: none;
}

.vm-section__quote-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--color-bg-dark); /* Dark text for light background */
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* Glowing text highlight */
.text-accent-glowing {
    display: inline-block;
    position: relative;
}

.text-accent-glowing::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00c2e0, transparent);
    animation: scanline 2s linear infinite;
}

.vm-clean-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.vm-clean-module {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-2xl);
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vm-clean-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 194, 224, 0.08); /* Soft cyan glow shadow */
    border-color: rgba(0, 194, 224, 0.1);
}

.vm-clean-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.vm-clean-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border-radius: 18px;
    font-size: 2.2rem;
    color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vm-clean-module:hover .vm-clean-icon {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 194, 224, 0.15);
    background: #ffffff;
}

.vm-clean-title {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--color-bg-dark);
    letter-spacing: -0.5px;
}

.vm-clean-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
}

.vm-clean-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08), transparent);
    min-height: 100%;
}

@media (max-width: 768px) {
    .vm-clean-grid {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .vm-clean-divider {
        width: 100%;
        height: 1px;
        min-height: 1px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.08), transparent);
        margin: var(--space-md) 0;
    }
}

/* ── Values Section ── */
.values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.value-card {
    text-align: center;
    padding: var(--space-lg);
}

.value-card__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-teal);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
    color: var(--color-primary);
    font-size: 1.75rem;
    transition: all var(--transition-base);
}

.value-card:hover .value-card__icon {
    background: var(--color-primary);
    color: var(--color-text-white);
    transform: scale(1.1);
}

.value-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-text-primary);
}

.value-card__text {
    font-size: var(--fs-small);
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .values__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ══════════════════════════════════════════
   Services — Connected Flow Process (Dark Glassmorphic)
   ══════════════════════════════════════════ */
.services-flow-section {
    position: relative;
    padding: var(--space-4xl) 0;
    background-color: #0b1026; /* Unified midnight blue — same as Hero & Footer */
    /* Deep space dark background */
    overflow: hidden;
}

/* Deep Space Glow (Background) */
.services-flow-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 194, 224, 0.08) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.services-flow-grid {
    position: relative;
    z-index: 2;
    /* CSS Grid applied in media queries */
}

/* Individual flow cards */
.flow-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    background: rgba(11, 16, 38, 0.6);
    /* Translucent dark navy */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.flow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 194, 224, 0.15);
    /* Suble cyan glow on hover */
    background: rgba(11, 16, 38, 0.8);
}

.flow-card__number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    opacity: 0.9;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Glow effect */
}

.flow-card__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    /* White text for dark mode */
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
}

.flow-card__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    /* Slightly muted white */
    line-height: 1.6;
    margin: 0;
}

/* Connection Arrows */
.flow-arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(11, 16, 38, 0.9);
    /* Dark background for arrow */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    font-size: 1.4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Theming (Glowing Accents instead of solid borders) */

/* Cyan Cards */
.flow-card--cyan:hover {
    border-color: rgba(0, 194, 224, 0.5);
}

.flow-card--cyan .flow-card__number {
    color: var(--color-primary);
    text-shadow: 0 0 15px rgba(0, 194, 224, 0.4);
}

.flow-card--cyan .flow-arrow {
    color: var(--color-primary);
    border: 1px solid rgba(0, 194, 224, 0.3);
    box-shadow: 0 0 15px rgba(0, 194, 224, 0.2);
}

/* Navy (Secondary/Goldish accent in dark mode) Cards */
.flow-card--navy:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.flow-card--navy .flow-card__number {
    color: #D4AF37;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.flow-card--navy .flow-arrow {
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* ── Modern Bento Grid Base Classes ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: var(--space-lg);
    position: relative;
    z-index: 2;
}

.bento-item {
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item--wide {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item--large,
    .bento-item--wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}


/* ── Responsive Layouts & Flow Logic ── */

/* DESKTOP (3 columns, snake path) */
@media (min-width: 993px) {
    .services-flow-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2xl) var(--space-xl);
    }

    /* Reorder bottom row to create Snake effect */
    .flow-card:nth-child(4) {
        order: 6;
    }

    .flow-card:nth-child(5) {
        order: 5;
    }

    .flow-card:nth-child(6) {
        order: 4;
    }

    /* Flow Arrows Logic (RTL Adjusted) */
    /* In Arabic (RTL), we read Right-to-Left. 
       So card 1 is on the RIGHT, pointing LEFT to card 2.
       Card 2 points LEFT to card 3.
       Card 3 points DOWN to card 4.
       Row 2 (cards 4,5,6) goes Left-to-Right.
       So card 4 points RIGHT to card 5.
       Card 5 points RIGHT to card 6. */

    /* Card 1 -> 2 (Points left) */
    .flow-card:nth-child(1) .flow-arrow {
        top: 50%;
        left: -20px;
        transform: translateY(-50%) rotate(180deg);
    }

    /* Card 2 -> 3 (Points left) */
    .flow-card:nth-child(2) .flow-arrow {
        top: 50%;
        left: -20px;
        transform: translateY(-50%) rotate(180deg);
    }

    /* Card 3 -> 4 (Points down) */
    .flow-card:nth-child(3) .flow-arrow {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    /* Card 4 -> 5 (Points right) */
    .flow-card:nth-child(4) .flow-arrow {
        top: 50%;
        right: -20px;
        transform: translateY(-50%) rotate(0deg);
        /* 0deg is default right */
    }

    /* Card 5 -> 6 (Points right) */
    .flow-card:nth-child(5) .flow-arrow {
        top: 50%;
        right: -20px;
        transform: translateY(-50%) rotate(0deg);
    }

    /* Card 6 - End of line */
    .flow-card:nth-child(6) .flow-arrow {
        display: none;
    }
}

/* TABLET (2 columns, snake path) */
@media (max-width: 992px) and (min-width: 769px) {
    .services-flow-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    /* Reorder middle row to create Snake effect */
    .flow-card:nth-child(1) {
        order: 1;
    }

    /* Row 1, Right */
    .flow-card:nth-child(2) {
        order: 2;
    }

    /* Row 1, Left */
    .flow-card:nth-child(3) {
        order: 4;
    }

    /* Row 2, Left */
    .flow-card:nth-child(4) {
        order: 3;
    }

    /* Row 2, Right */
    .flow-card:nth-child(5) {
        order: 5;
    }

    /* Row 3, Right */
    .flow-card:nth-child(6) {
        order: 6;
    }

    /* Row 3, Left */

    /* Flow Arrows Logic (RTL Adjusted) */
    /* Card 1 -> 2 (Points Left) */
    .flow-card:nth-child(1) .flow-arrow {
        top: 50%;
        left: -20px;
        transform: translateY(-50%) rotate(180deg);
    }

    /* Card 2 -> 3 (Points Down) */
    .flow-card:nth-child(2) .flow-arrow {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    /* Card 3 -> 4 (Points Right) */
    .flow-card:nth-child(3) .flow-arrow {
        top: 50%;
        right: -20px;
        transform: translateY(-50%) rotate(0deg);
    }

    /* Card 4 -> 5 (Points Down) */
    .flow-card:nth-child(4) .flow-arrow {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    /* Card 5 -> 6 (Points Left) */
    .flow-card:nth-child(5) .flow-arrow {
        top: 50%;
        left: -20px;
        transform: translateY(-50%) rotate(180deg);
    }

    /* Card 6 - End */
    .flow-card:nth-child(6) .flow-arrow {
        display: none;
    }
}

/* MOBILE (1 column vertical stack) */
@media (max-width: 768px) {
    .services-flow-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* All arrows point straight down */
    .flow-card .flow-arrow {
        bottom: -24px;
        /* Slightly lower because gap is lg */
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    .flow-card:nth-child(6) .flow-arrow {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   Partners Section - Static Grid Design
   ═══════════════════════════════════════════════════════════ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.partner-card__inner {
    width: 100%;
    aspect-ratio: 3/2;
    background: #ffffff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.partner-card__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42, 171, 225, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.partner-card:hover .partner-card__inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(42, 171, 225, 0.15);
    border-color: var(--color-primary);
}

.partner-card:hover .partner-card__inner::before {
    opacity: 1;
}

.partner-card__img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.8;
    transition: all 0.4s;
}

.partner-card:hover .partner-card__img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.partner-card__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    transition: color 0.3s;
}

.partner-card:hover .partner-card__label {
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Old carousel styles - disabled */
.partners-carousel {
    display: none;
}

/* ── Partners Carousel ── */
.partners__track {
    display: flex;
    animation: scroll-partners 30s linear infinite;
    gap: var(--space-xl);
}

.partners__logo {
    flex-shrink: 0;
    height: 50px;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.partners__logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ══════════════════════════════════════════
   CTA (Premium Cinematic)
   ══════════════════════════════════════════ */
.cta-premium {
    background-color: #0b1026;
    /* Deep Midnight Blue to match footer & values */
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--color-text-white);
    border-top: 1px solid rgba(0, 194, 224, 0.1);
    /* Subtle tie-in with header/footer */
}

/* Cinematic Ambient Orbs */
.cta-premium__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: float-orb 20s infinite alternate ease-in-out;
}

.cta-premium__orb--1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 194, 224, 0.15);
    /* Soft Cyan */
    top: -100px;
    right: -100px;
}

.cta-premium__orb--2 {
    width: 300px;
    height: 300px;
    background: rgba(246, 180, 38, 0.1);
    /* Soft Gold */
    bottom: -50px;
    left: -50px;
    animation-delay: -10s;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

.cta-premium__content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-premium__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    margin-bottom: var(--space-md);
    color: var(--color-text-white);
    line-height: 1.2;
}

.cta-premium__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

/* Premium Pulsing CTA Button */
.btn--cta-pulse {
    background: linear-gradient(135deg, #f6b426 0%, #d49815 100%);
    color: #0b1026;
    font-weight: 800;
    font-size: 1.2rem;
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(246, 180, 38, 0.4);
    transition: all 0.4s ease;
    border: none;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn--cta-pulse::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn--cta-pulse:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(246, 180, 38, 0.6);
    color: #0b1026;
}

.btn--cta-pulse:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: btn-pulse 2s infinite alternate;
}

@keyframes btn-pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* ── Footer ── */
.footer {
    background: var(--color-midnight-blue);
    color: var(--color-text-white);
    padding-top: var(--space-2xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-small);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-white);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.footer__social a:hover {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    transform: translateY(-3px);
}

.footer__heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer__links li {
    margin-bottom: var(--space-xs);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-small);
    transition: all var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-accent);
    padding-right: 5px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-small);
}

.footer__contact-item i {
    color: var(--color-accent);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Footer Partners Strip */
.footer__partners {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.footer__partners img {
    height: 35px;
    opacity: 0.4;
    filter: grayscale(100%) brightness(2);
    transition: opacity var(--transition-fast);
}

.footer__partners img:hover {
    opacity: 0.7;
}

/* Footer Copyright */
.footer__copyright {
    padding: var(--space-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer__copyright a {
    color: rgba(255, 255, 255, 0.5);
}

.footer__copyright a:hover {
    color: var(--color-accent);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__copyright {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.active>*:nth-child(1) {
    transition-delay: 0ms;
}

.reveal-stagger.active>*:nth-child(2) {
    transition-delay: 100ms;
}

.reveal-stagger.active>*:nth-child(3) {
    transition-delay: 200ms;
}

.reveal-stagger.active>*:nth-child(4) {
    transition-delay: 300ms;
}

.reveal-stagger.active>*:nth-child(5) {
    transition-delay: 400ms;
}

.reveal-stagger.active>*:nth-child(6) {
    transition-delay: 500ms;
}

.reveal-stagger.active>* {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Navigation ── */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-bg-white);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--header-height) + var(--space-md)) var(--space-md) var(--space-md);
        transition: right var(--transition-slow);
        overflow-y: auto;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav__link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border-light);
        width: 100%;
        justify-content: space-between;
        color: var(--color-text-primary);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-right: var(--space-md);
        display: none;
        background: var(--color-bg-light);
        border-radius: var(--radius-sm);
        margin: var(--space-xs) 0;
    }

    .dropdown.open {
        display: block;
    }

    .dropdown__item>.dropdown {
        right: auto;
        margin-right: 0;
        padding-right: var(--space-lg);
    }

    .menu-toggle {
        display: flex;
    }

    .header__actions {
        display: none;
    }

    /* Mobile CTA in nav */
    .nav__mobile-actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-xs);
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: 1px solid var(--color-border);
    }
}

@media (min-width: 1025px) {
    .nav__mobile-actions {
        display: none;
    }
}

/* ── Mobile Overlay ── */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── Utility Classes ── */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-white {
    color: var(--color-text-white);
}

.bg-white {
    background-color: var(--color-bg-white);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}


/* ══════════════════════════════════════════
   14. Internal Pages (About, Services, etc.)
   ══════════════════════════════════════════ */

.page-hero {
    padding: var(--space-2xl) 0 var(--space-xl);
    background-color: var(--color-midnight-blue);
    background-image: linear-gradient(135deg, var(--color-midnight-blue) 0%, #16244f 100%);
    color: var(--color-text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(42, 171, 225, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero__title {
    font-size: var(--fs-hero);
    margin-bottom: var(--space-sm);
    color: var(--color-text-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb .ph {
    font-size: 0.7rem;
    opacity: 0.5;
}

.breadcrumb .active {
    color: var(--color-text-white);
    font-weight: 500;
}

/* About Intro */
.about-intro {
    padding: var(--space-section) 0;
}

.about-intro__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-intro__content {
    text-align: right;
}

.about-intro__text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.about-intro__visual {
    position: relative;
}

.about-intro__img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-intro__experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-accent);
    color: var(--color-bg-dark);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
    z-index: 2;
}

.about-intro__experience-badge strong {
    font-size: 2rem;
    font-family: var(--font-english);
    line-height: 1;
}

.about-intro__experience-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Page Specific Adjustments */
.page-vm {
    padding: var(--space-3xl) 0;
}

/* ══════════════════════════════════════════
   Partners Section (Infinite Carousel)
   ══════════════════════════════════════════ */
.partners-section {
    background-color: #F8FAFC; /* Crisp light-grey background */
    overflow: hidden;
    padding: var(--space-4xl) 0 var(--space-3xl) 0;
    position: relative;
}

/* Decorative top-border accent */
.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 0 0 4px 4px;
}

.partners-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--space-md) 0;
}

/* Gradient fades for the edges */
.partners-carousel::before,
.partners-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-light) 0%, transparent 100%);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-light) 0%, transparent 100%);
}

.partners-carousel__track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.partners-carousel:hover .partners-carousel__track {
    animation-play-state: paused;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 125px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    padding: var(--space-md);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}

.partner-logo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 194, 224, 0.15);
    border-color: rgba(0, 194, 224, 0.3);
}

.partner-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: opacity(100%); /* Show logos in full color */
    transition: transform 0.5s ease;
}

.partner-logo:hover .partner-logo__img {
    transform: scale(1.08);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 2rem));
    }
}

.page-values {
    background-color: var(--color-bg-light);
}

/* ═══════════════════════════════════════════════════════════
   FORM STYLES - CAMC INN
   ═══════════════════════════════════════════════════════════ */

.camc-form {
    --form-bg: rgba(255, 255, 255, 0.08);
    --form-border: rgba(42, 171, 225, 0.3);
    --form-focus: var(--color-primary);
    --form-text: #e2e8f0;
    --form-text-muted: #94a3b8;
    --form-error: #ef4444;
    --form-success: #22c55e;
}

.camc-form__group {
    margin-bottom: 1.5rem;
    position: relative;
}

.camc-form__label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--form-text);
    font-family: var(--font-heading);
}

.camc-form__label--required::after {
    content: " *";
    color: var(--form-error);
}

.camc-form__input,
.camc-form__select,
.camc-form__textarea {
    width: 100%;
    background: var(--form-bg);
    border: 1px solid var(--form-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--form-text);
    font-family: var(--font-arabic);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.camc-form__input::placeholder,
.camc-form__textarea::placeholder {
    color: var(--form-text-muted);
}

.camc-form__input:focus,
.camc-form__select:focus,
.camc-form__textarea:focus {
    outline: none;
    border-color: var(--form-focus);
    background: rgba(42, 171, 225, 0.08);
    box-shadow: 0 0 0 4px rgba(42, 171, 225, 0.15);
}

.camc-form__input--error,
.camc-form__select--error,
.camc-form__textarea--error {
    border-color: var(--form-error);
}

.camc-form__textarea {
    min-height: 140px;
    resize: vertical;
}

.camc-form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.camc-form__select option {
    background: var(--color-midnight-blue);
    color: #fff;
}

.camc-form__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.camc-form__error-msg {
    display: none;
    color: var(--form-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.camc-form__group--error .camc-form__error-msg {
    display: block;
}

.camc-form__btn {
    width: 100%;
    padding: 1.125rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.camc-form__btn--primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(42, 171, 225, 0.3);
}

.camc-form__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(42, 171, 225, 0.4);
}

.camc-form__btn--primary:active {
    transform: translateY(-1px);
}

.camc-form__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.camc-form__btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Success Message */
.camc-form__success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.camc-form__success--visible {
    display: block;
}

.camc-form__success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.2) 0%, rgba(46, 213, 115, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.camc-form__success-icon i {
    font-size: 2.5rem;
    color: var(--form-success);
}

.camc-form__success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.camc-form__success-text {
    color: var(--form-text-muted);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════
   MODAL STYLES
   ═══════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay--active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(42, 171, 225, 0.25);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 80px rgba(42, 171, 225, 0.15), 0 0 0 1px rgba(42, 171, 225, 0.1);
    backdrop-filter: blur(20px);
}

.modal-overlay--active .modal {
    transform: scale(1) translateY(0);
}

.modal__header {
    padding: 2rem 2rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.modal__subtitle {
    color: var(--form-text-muted);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal__close {
    background: rgba(42, 171, 225, 0.1);
    border: 1px solid rgba(42, 171, 225, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal__close:hover {
    background: rgba(42, 171, 225, 0.2);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(42, 171, 225, 0.3);
}

.modal__body {
    padding: 2rem;
}

.modal__footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   SERVICE CARD CTA BUTTONS
   ═══════════════════════════════════════════════════════════ */

.service-request-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 171, 225, 0.25);
}

.service-request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(42, 171, 225, 0.35);
}

/* ═══════════════════════════════════════════════════════════
   PAGE FORMS (Join, Contact, Training)
   ═══════════════════════════════════════════════════════════ */

.page-form-section {
    padding: 180px 20px 100px;
    background: radial-gradient(ellipse at 50% 0%, rgba(42, 171, 225, 0.12) 0%, rgba(15, 23, 42, 1) 70%);
    text-align: center;
    min-height: 60vh;
}

.page-form-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 60%, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-form-section p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.page-form-container {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 30px;
}

.page-form-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(42, 171, 225, 0.2);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.page-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* Benefits List for Membership */
.form-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(42, 171, 225, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(42, 171, 225, 0.15);
    border: 1px solid rgba(42, 171, 225, 0.15);
}

.form-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.form-benefit-item i {
    color: var(--color-primary);
    font-size: 1.25rem;
}

/* File Upload */
.camc-form__file {
    position: relative;
}

.camc-form__file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.camc-form__file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    background: var(--form-bg);
}

.camc-form__file-label:hover {
    border-color: var(--form-focus);
    background: rgba(42, 171, 225, 0.05);
}

.camc-form__file-label i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.camc-form__file-name {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-primary);
}

/* Radio/Checkbox Group */
.camc-form__radio-group,
.camc-form__checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.camc-form__radio,
.camc-form__checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--form-text);
}

.camc-form__radio input,
.camc-form__checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .camc-form__row {
        grid-template-columns: 1fr;
    }

    .modal {
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 85vh;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .page-form-card {
        padding: 2rem 1.5rem;
    }

    .form-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .about-intro__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-intro__content {
        order: 2;
    }

    .about-intro__visual {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ── 2. Network Container & Smart Links ── */
.hero__network-container {
    position: relative;
    width: 100%;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* SVG Network Links */
.network-links-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5;
    pointer-events: none;
}

.link-base {
    stroke: rgba(0, 242, 254, 0.1);
    stroke-width: 1px;
    transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.link-beam {
    stroke: var(--color-hero-cyan);
    stroke-width: 2px;
    opacity: 0.15;
    stroke-dasharray: 4 15;
    animation: beam-flow 3s linear infinite;
    transition: opacity 0.4s ease;
}

.link-dot {
    fill: #ffffff;
    opacity: 0.4;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.8));
    animation: pulse-travel var(--travel-time, 2.5s) cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: var(--delay, 0s);
}

.link-group.is-active .link-base {
    stroke: rgba(0, 242, 254, 0.5);
    stroke-width: 2px;
    filter: drop-shadow(0 0 4px var(--color-hero-cyan));
}

.link-group.is-active .link-beam {
    opacity: 0.8;
    stroke-dasharray: 8 12;
    animation: beam-flow 1.5s linear infinite;
}

.link-group.is-active .link-dot {
    opacity: 1;
    filter: drop-shadow(0 0 10px #ffffff);
    animation-duration: 1s;
}

@keyframes beam-flow {
    0% { stroke-dashoffset: 40; }
    100% { stroke-dashoffset: 0; }
}

@keyframes pulse-travel {
    0% { transform: translate(var(--startX), var(--startY)); opacity: 0; }
    10% { opacity: var(--max-opacity, 0.4); }
    90% { opacity: var(--max-opacity, 0.4); }
    100% { transform: translate(var(--endX), var(--endY)); opacity: 0; }
}

.link-group.is-active {
    --max-opacity: 1;
}

/* ── 3. Network Nodes ── */
.node-wrapper {
    position: absolute;
    z-index: 10;
}

.node-wrapper--center { top: 50%; left: 50%; margin-top: -75px; margin-left: -75px; z-index: 15; }
.node-wrapper--tl { top: 12%; left: 12%; }
.node-wrapper--tr { top: 12%; right: 12%; }
.node-wrapper--bl { bottom: 12%; left: 15%; }
.node-wrapper--br { bottom: 12%; right: 15%; }

.network-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    --p-x: 0px;
    --p-y: 0px;
    transform: translate3d(var(--p-x), var(--p-y), 0);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.network-node__anim {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: crystal-float 6s ease-in-out infinite alternate;
}

.network-node__icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-hero-cyan);
    font-size: 1.5rem;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.network-node:hover .network-node__icon {
    background: rgba(0, 242, 254, 0.12);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.25);
    border-color: rgba(0, 242, 254, 0.6);
}

.network-node__label {
    background: rgba(5, 11, 20, 0.85);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.network-node:hover .network-node__label {
    background: var(--color-hero-cyan);
    color: #050b14;
    border-color: var(--color-hero-cyan);
    transform: translateY(-5px);
    font-weight: 800;
}

/* ── 4. Center Node (Logo as Energy Core) ── */
.network-node--center .network-node__anim {
    animation: center-float 8s ease-in-out infinite alternate;
}

.network-node--center .network-node__icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 254, 0.3);
    background: linear-gradient(135deg, rgba(11, 16, 38, 0.8) 0%, rgba(11, 16, 38, 0.4) 100%);
    box-shadow: 
        inset 0 0 40px rgba(0, 242, 254, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 242, 254, 0.1);
}

.center-logo {
    width: 65%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.network-node--center:hover .network-node__icon {
    background: rgba(11, 16, 38, 0.95);
    box-shadow: 
        inset 0 0 50px rgba(0, 242, 254, 0.3),
        0 0 60px rgba(0, 242, 254, 0.3);
    border-color: var(--color-hero-cyan);
}

.network-node--center:hover .center-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

/* Orbital Rings */
.pulse-glow-center { position: relative; }
.pulse-glow-center::before {
    content: ''; position: absolute;
    top: -25px; left: -25px; right: -25px; bottom: -25px;
    border-radius: 50%;
    border: 1px dashed rgba(230, 208, 112, 0.25); border-top: 2px solid rgba(230, 208, 112, 0.6);
    animation: spin-ring 15s linear infinite; pointer-events: none;
}
.pulse-glow-center::after {
    content: ''; position: absolute;
    top: -55px; left: -55px; right: -55px; bottom: -55px;
    border-radius: 50%;
    border: 1px solid rgba(0, 242, 254, 0.1); border-bottom: 2px solid rgba(0, 242, 254, 0.8);
    animation: spin-ring-reverse 25s linear infinite; pointer-events: none;
}

@keyframes spin-ring { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-ring-reverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }

/* Animation Delays */
.network-node--tl .network-node__anim { animation-delay: -1.5s; }
.network-node--tr .network-node__anim { animation-delay: -2.5s; }
.network-node--bl .network-node__anim { animation-delay: -3.5s; }
.network-node--br .network-node__anim { animation-delay: -4.5s; }

@keyframes crystal-float { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-8px) rotate(1deg); } }
@keyframes center-float { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-6px) scale(1.01); } }

/* Floating Badges Position */
.hero__floating-badge.badge-1 { top: -2%; right: 40%; animation-delay: -1s; z-index: 20; }
.hero__floating-badge.badge-2 { bottom: 0%; left: 35%; animation-delay: -2s; z-index: 20; }

/* ── Hero Network Responsive ── */
@media (max-width: 992px) {
    .hero__network-container { height: 450px; }
    .network-node__icon { width: 50px; height: 50px; font-size: 1.4rem; }
    .node-wrapper--center { margin-top: -55px; margin-left: -55px; }
    .network-node--center .network-node__icon { width: 110px; height: 110px; }
    .network-node__label { font-size: 0.75rem; padding: 4px 12px; }
    .hero__floating-badge.badge-1 { top: -20px; right: 5%; }
    .hero__floating-badge.badge-2 { bottom: -20px; left: 5%; }
    .pulse-glow-center::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   Process Section (How We Work)
   ═══════════════════════════════════════════════════════════ */
.process-section {
    background-color: var(--color-bg-light);
    padding: var(--space-4xl) 0;
    position: relative;
}

.process-section .section__title {
    color: var(--color-bg-dark);
}

.process-section .section__subtitle {
    color: var(--color-text-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
    position: relative;
}

.process-step {
    text-align: center;
    padding: var(--space-lg) var(--space-sm);
    position: relative;
    z-index: 1;
}

.process-step__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(42, 171, 225, 0.25);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.process-step__icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0 auto var(--space-md);
    box-shadow: 0 4px 15px rgba(42, 171, 225, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover .process-step__icon {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(42, 171, 225, 0.3);
}

.process-step__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
}

.process-step__text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .process-step {
        text-align: right;
        padding: var(--space-md) var(--space-xl) var(--space-md) var(--space-sm);
        display: flex;
        align-items: center;
        gap: var(--space-md);
    }
    .process-step__number {
        margin-bottom: 0;
        font-size: 1.8rem;
    }
    .process-step__icon {
        margin: 0;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    .process-step__text {
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Testimonials Section (Client Quotes)
   ═══════════════════════════════════════════════════════════ */
.testimonials-section {
    position: relative;
    padding: var(--space-section) 0;
    overflow: hidden;
    background: var(--color-midnight-blue);
    margin-top: var(--space-xl);
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 171, 225, 0.06) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.testimonials-carousel {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: var(--space-lg);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: grab;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
    background: linear-gradient(145deg, rgba(11, 16, 38, 0.7) 0%, rgba(22, 36, 79, 0.5) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(42, 171, 225, 0.15);
    border-color: rgba(42, 171, 225, 0.3);
}

.testimonial-card__quote-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    opacity: 0.4;
    line-height: 1;
}

.testimonial-card__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin: 0;
    font-family: var(--font-heading);
}

.testimonial-card__result {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(42, 171, 225, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 171, 225, 0.15);
}

.testimonial-card__metric {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-heading);
    line-height: 1;
}

.testimonial-card__metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    background: rgba(42, 171, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.testimonial-card__info strong {
    display: block;
    font-size: 0.95rem;
    color: #ffffff;
    font-family: var(--font-heading);
}

.testimonial-card__info span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Testimonials Navigation */
.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.testimonials-nav__btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-nav__btn:hover {
    background: rgba(42, 171, 225, 0.15);
    border-color: rgba(42, 171, 225, 0.4);
    color: var(--color-primary);
}

.testimonials-nav__dots {
    display: flex;
    gap: 8px;
}

.testimonials-nav__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.testimonials-nav__dot--active {
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(42, 171, 225, 0.4);
}

@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - var(--space-lg) / 2);
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

.process-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(42, 171, 225, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.process-section .section__title {
    color: var(--color-bg-dark);
}

.process-section .section__subtitle {
    color: var(--color-text-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
    position: relative;
}

.process-steps::before {
    display: none;
}

.process-step {
    text-align: center;
    padding: var(--space-lg) var(--space-sm);
    position: relative;
    z-index: 1;
    background: transparent;
    transition: all 0.4s ease;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(42, 171, 225, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.process-step:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
}

.process-step__number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-primary);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(42, 171, 225, 0.5);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: var(--space-xs);
    transition: all 0.4s ease;
}

.process-step:hover .process-step__number {
    color: transparent;
    -webkit-text-stroke: 1px rgba(42, 171, 225, 0.3);
    text-shadow: none;
}

.process-step__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0 auto var(--space-md);
    box-shadow: 
        0 4px 15px rgba(42, 171, 225, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.process-step__icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.process-step:hover .process-step__icon::before {
    left: 100%;
}

.process-step:hover .process-step__icon {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--color-primary);
    border-color: rgba(42, 171, 225, 0.3);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(42, 171, 225, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.process-step__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-bg-dark);
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.process-step:hover .process-step__title {
    color: var(--color-primary);
}

.process-step__text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.process-step:hover .process-step__text {
    color: var(--color-text-primary);
}

/* Arrow indicators between steps */
.process-step__arrow {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    opacity: 0.4;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.process-step:last-child .process-step__arrow {
    display: none;
}

/* Check icon for final step */
.process-step__check {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #10B981;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.process-step:last-child .process-step__check {
    opacity: 0.4;
}

.process-step:last-child:hover .process-step__check {
    opacity: 1;
    animation: check-bounce 0.5s ease;
}

@keyframes check-bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

@media (max-width: 992px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    .process-steps::before {
        top: 48px;
        right: 15%;
        left: 15%;
    }
    .process-step__arrow, .process-step__check {
        display: none;
    }
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }
    .process-steps::before {
        top: 35px;
        bottom: 0;
        right: 35px;
        left: auto;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary) 90%, transparent 100%);
    }
    .process-step {
        text-align: right;
        padding: 0 0 0 var(--space-xl);
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-md);
    }
    .process-step__number {
        display: none;
    }
    .process-step__icon {
        margin: 0;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        flex-shrink: 0;
        border-radius: 16px;
    }
    .process-step__title {
        font-size: 1rem;
    }
    .process-step__text {
        font-size: 0.8rem;
        display: none;
    }
    .process-step:hover .process-step__text {
        display: block;
    }
}

/* ══════════════ WHATSAPP FLOATING BUTTON ══════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    direction: rtl;
    animation: whatsapp-slide-in 0.5s 2.5s both;
}

.whatsapp-float__bubble {
    background: #fff;
    color: #1a1a2e;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float__bubble {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float__btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
    position: relative;
}

.whatsapp-float__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float__btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.whatsapp-float__btn::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.3;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-float__bubble {
        display: none;
    }
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
    }
    .whatsapp-float__btn {
        width: 54px;
        height: 54px;
    }
    .whatsapp-float__btn svg {
        width: 27px;
        height: 27px;
    }
    .whatsapp-float__btn::before {
        width: 54px;
        height: 54px;
    }
}