@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* =======================================
   Base Variables and Generative Token Setup
   ======================================= */
:root {
    --primary: rgb(0, 27, 127);
    --primary-dark: rgb(0, 20, 90);
    --secondary: rgb(135, 3, 7);
    --secondary-dark: rgb(100, 2, 5);
    --bg-color: #f8fafc;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(0, 27, 127, 0.08);
    --text-glow: 0 0 15px rgba(0, 27, 127, 0.15);

    --text-100: #0f172a;
    --text-200: #475569;

    --font-heading: "Outfit", "Jost", sans-serif;
    --font-body: "Inter", "Montserrat", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-200);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =======================================
   Typography & Utilities
   ======================================= */
h1,
h2,
h3,
h4,
.logo-text,
.counter {
    font-family: var(--font-heading);
    color: var(--text-100);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-main-title .gradient-text,
.hero-text-content .gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.4));
}

.highlight {
    color: var(--primary);
    text-shadow: var(--text-glow);
}

.subheading {
    display: block;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Base Buttons */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 16, 130, 0.2);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--surface-border);
    color: var(--text-100);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* =======================================
   Layout & Components
   ======================================= */
.section-padding {
    padding: 6rem 5%;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Navigation - Glassmorphism */
.navbarglass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 16, 130, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbarglass.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 10px 30px rgba(0, 16, 130, 0.05);
    background: rgba(255, 255, 255, 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-img {
    height: 80px;
    /* Increased for better visibility */
    width: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 16, 130, 0.4));
    /* Highlighting effect */
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 16, 130, 0.6));
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 101;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0, 16, 130, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .nav-cta {
        display: none;
    }
}

/* Minimalist Hero Layout - Updated for Overlay */
.hero-minimal {
    /* padding: 6rem 5% 4rem; */
    padding: 10rem 5% 4rem;
    /* Increased to clear the fixed navbar */
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-video-minimal-container {
    width: 100%;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    height: 75vh;
    background: #000;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Very subtle, thin clear border */
}



.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    /* Darker for better text contrast */
}

/* New Overlay Styling */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.hero-text-content {
    max-width: 900px;
}

.hero-main-title {
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-side-desc {
    max-width: 580px;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-sub-title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.5px;
    color: #fff;
    margin: 0;
    /* Reset margin for flex centering */
    opacity: 0.95;
}

.hero-inline-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .hero-minimal {
        padding-top: 8rem;
        min-height: auto;
    }

    .hero-video-minimal-container {
        height: auto;
        border-radius: 30px;
    }

    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero-overlay {
        position: relative;
        z-index: 2;
        padding: 3rem 1.5rem;
        height: auto;
    }

    .hero-main-title {
        margin-bottom: 1.5rem;
    }

    .hero-side-desc {
        margin-bottom: 2rem;
    }
}

.hero-accent {
    color: #3b82f6; /* Vibrant sky blue matching brand design */
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    background-color: #ffffff;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    width: fit-content;
}

.btn-hero-cta i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background-color: #f8fafc;
    color: var(--primary-dark);
}

.btn-hero-cta:hover i {
    transform: translateX(4px);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Internal Page Headers */
.internal-hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 60px;
    background: linear-gradient(to bottom, rgba(0, 27, 127, 0.05), transparent);
    position: relative;
    z-index: 10;
}

.internal-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Video Background Styles */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 16, 130, 0.1);
    z-index: 10;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    /* Makes it more subtle */
}

.video-overlay {
    display: none;
}

/* Canvas & Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.background-generative {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 16, 130, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(154, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    display: block;
}

/* SVG Animations */
.hero-svg-anim .box-floating {
    animation: float1 4s ease-in-out infinite;
}

.hero-svg-anim .box-floating-delay {
    animation: float1 4s ease-in-out infinite 2s;
}

.hero-svg-anim .dash-lines {
    animation: dashMove 1s linear infinite;
    stroke-dasharray: 10 10;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes dashMove {
    from {
        stroke-dashoffset: 20;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Glass Card Global Styles */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 16, 130, 0.05);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(154, 0, 0, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 16, 130, 0.15);
    box-shadow: 0 25px 50px rgba(0, 16, 130, 0.1);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card:last-child {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card:last-child {
        grid-column: span 1;
    }
}

/* ── Image-based Services Card ── */
.service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 340px;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Photo */
.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-img {
    transform: scale(1.06);
}

/* Gradient overlay - simplified for clarity */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            transparent 100%);
    transition: background 0.35s ease;
}

.service-card:hover .card-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
}

/* Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 26px;
    transform: translateY(0);
    transition: padding 0.35s ease;
}

.card-icon {
    font-size: 1.7rem;
    margin-bottom: 10px;
    display: inline-block;
    color: #fff;
    /* White icon to pop against dark overlay */
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.9rem;
    color: #cbd5e0;
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    margin: 0;
}

.service-card:hover p {
    max-height: 120px;
    opacity: 1;
}

/* Accent line */
.card-line {
    width: 36px;
    height: 3px;
    background: #4fc3f7;
    /* Keep the light blue for high contrast pop on dark mode */
    border-radius: 2px;
    margin-bottom: 15px;
    transition: width 0.35s ease;
}

.service-card:hover .card-line {
    width: 60px;
}



#process {
    padding-bottom: 2rem;
}

#about {
    padding-top: 2rem;
}

/* About Split Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--primary);
    font-size: 1.25rem;
}

.tech-globe-svg {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

/* SVG Animations About */
.pulse-ring {
    animation: pulseRing 3s ease-out infinite;
}

.rotate-fast {
    animation: spinApp 8s linear infinite;
    transform-origin: 200px 200px;
}

.rotate-slow {
    animation: spinApp 20s linear infinite reverse;
    transform-origin: 200px 200px;
}

.orbit {
    animation: spinOrbit 10s linear infinite;
    transform-origin: 200px 200px;
}

.satellite {
    animation: orbitMove 10s linear infinite;
    transform-origin: 200px 200px;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes spinApp {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinOrbit {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbitMove {
    100% {
        transform: rotate(-360deg);
    }
}

/* Keeps satellite upright if complex */

/* Stats Banner */
.glass-banner {
    background: #fdfdfd;
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 5%;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-200);
}

/* Footer */
footer {
    padding: 4rem 5% 0;
    position: relative;
    z-index: 10;
}

.footer-glass {
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: 30px 30px 0 0;
    padding: 4rem 4rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-glass {
        padding: 2rem 2rem 1rem;
    }
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--surface-border);
}

.socials a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* =======================================
   New Section Styles
   ======================================= */

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    text-align: left;
    padding: 3rem;
}

.why-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.1;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

/* Process Timeline */
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.2;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--primary);
    z-index: 5;
}

.timeline-content {
    width: 90%;
    max-width: 400px;
    margin: 0 2rem;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 20px;
    }
}

/* Global Network Map */
.network-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    background: var(--surface);
}

.network-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.n-stat strong {
    display: block;
    font-size: 2.5rem;
    color: var(--primary);
    font-family: var(--font-heading);
}

.n-stat span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-200);
}

.map-svg {
    width: 100%;
    height: auto;
}

@keyframes pulse {

    0%,
    100% {
        r: 18;
        opacity: 0.18;
    }

    50% {
        r: 32;
        opacity: 0;
    }
}

@keyframes nodePulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0;
    }
}

@keyframes dash {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -30;
    }
}

.flow-line {
    stroke-dasharray: 6 6;
    animation: dash 2.4s linear infinite;
}

.flow-line-rev {
    stroke-dasharray: 6 6;
    animation: dash 3s linear infinite reverse;
}

.flow-line-slow {
    stroke-dasharray: 6 6;
    animation: dash 3.8s linear infinite;
}

.pulse-ring {
    animation: pulse 2.4s ease-out infinite;
}

.pulse-ring2 {
    animation: pulse 2.4s ease-out infinite 0.8s;
}

.node-ring {
    animation: nodePulse 3s ease-out infinite;
}

@media (max-width: 992px) {
    .network-container {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding: 2rem;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Testimonials Marquee */
.testimonial-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2rem 0;
    /* Soft fading edges using gradient mask */
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
}

/* Pause scroll on hover for premium user experience */
.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    width: 350px;
    flex-shrink: 0;
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 1rem;
    line-height: 1.6;
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-200);
    margin-bottom: 1.5rem;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 27, 127, 0.2);
}

.user-info {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-info strong {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-200);
    font-weight: 500;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* CTA Section */
.cta-container {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.cta-container h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.cta-inline-logo {
    height: 3.0em;
    /* Slightly larger than text for visibility */
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin: 0 4px;
    filter: drop-shadow(0 2px 5px rgba(0, 16, 130, 0.15));
}

/* Downloads Section */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--surface-border);
    transition: all 0.4s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 16, 130, 0.1);
}

.dl-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    background: rgba(154, 0, 0, 0.05);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.dl-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.dl-content p {
    font-size: 0.95rem;
    color: var(--text-200);
    margin-bottom: 1rem;
}

.dl-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.download-card:hover .dl-action {
    gap: 0.8rem;
}

/* Enhanced Background */
.background-generative {
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 16, 130, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(154, 0, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 16, 130, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(154, 0, 0, 0.05) 0%, transparent 50%);
}

/* Final Polish */
.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 10px 40px rgba(0, 16, 130, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group:nth-child(4) {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-100);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 16, 130, 0.05);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group:nth-child(4) {
        grid-column: span 1;
    }
}

/* Scroll Reveal Animations */
.reveal,
.reveal-onload,
.reveal-onload-delay {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active,
.reveal-onload.active,
.reveal-onload-delay.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-onload.active {
    transition-delay: 0.1s;
}

.reveal-onload-delay.active {
    transition-delay: 0.4s;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ==========================================================================
   Premium Page Preloader (Glowy Lodisna Style - Light Theme)
   ========================================================================== */
.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    height: 100px;
    animation: preloader-logo-glow 2s infinite ease-in-out;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.08));
    display: block;
}

.preloader-spinner {
    width: 160px;
    height: 3px;
    background: rgba(1, 28, 77, 0.08);
    border-radius: 100px;
    margin-top: 2.5rem;
    position: relative;
    overflow: hidden;
}

.preloader-spinner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #f32735, transparent);
    animation: preloader-loading-bar 1.4s infinite ease-in-out;
    box-shadow: 0 0 8px #f32735;
}

@keyframes preloader-logo-glow {
    0%, 100% {
        transform: scale(0.96);
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
        opacity: 0.95;
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 10px 25px rgba(243, 39, 53, 0.25));
        opacity: 1;
    }
}

@keyframes preloader-loading-bar {
    100% {
        left: 100%;
    }
}

/* ==========================================================================
   Bilingual Language Switcher & RTL Styling System
   ========================================================================== */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.scrolled .lang-toggle-btn {
    background: rgba(0, 27, 127, 0.06);
    border-color: rgba(0, 27, 127, 0.15);
}

.lang-toggle-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 27, 127, 0.2);
}

.lang-toggle-btn i {
    font-size: 0.95rem;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.lang-toggle-btn:hover i {
    color: #ffffff;
}

.lang-toggle-btn span.lang-en,
.lang-toggle-btn span.lang-ar {
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.lang-toggle-btn span.active {
    opacity: 1;
    color: var(--secondary);
    font-weight: 800;
}

.lang-toggle-btn:hover span.active {
    color: #ffffff;
}

/* --- Right-to-Left (RTL) Arabic Overrides --- */
[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] a,
[dir="rtl"] span:not([class*="fa-"]),
[dir="rtl"] div,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .subheading,
[dir="rtl"] .stat-item span,
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-secondary,
[dir="rtl"] .btn-hero-cta {
    font-family: 'Tajawal', sans-serif !important;
    letter-spacing: normal !important;
}

/* Preserve FontAwesome icons in RTL mode */
[dir="rtl"] i,
[dir="rtl"] [class*="fa-"],
[dir="rtl"] .fa-solid,
[dir="rtl"] .fa-regular {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
}

[dir="rtl"] .fa-brands,
[dir="rtl"] [class*="fa-brands"] {
    font-family: "Font Awesome 6 Brands" !important;
}

/* Hero Section RTL alignment */
[dir="rtl"] .hero-text-content {
    text-align: right;
}

[dir="rtl"] .hero-side-desc {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .btn-hero-cta:hover i {
    transform: translateX(-4px) scaleX(-1);
}

/* Timeline alignment in RTL */
[dir="rtl"] .process-timeline::before {
    left: 50%;
}

[dir="rtl"] .timeline-item {
    justify-content: flex-start;
    padding-left: 50%;
    padding-right: 0;
}

[dir="rtl"] .timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-right: 50%;
    padding-left: 0;
}

[dir="rtl"] .timeline-content {
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .process-timeline::before {
        right: 20px;
        left: auto;
    }

    [dir="rtl"] .timeline-item,
    [dir="rtl"] .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 50px;
        padding-left: 0;
    }

    [dir="rtl"] .timeline-dot {
        right: 20px;
        left: auto;
        transform: translateX(50%);
    }
}

/* About & Split Section RTL */
[dir="rtl"] .about-content {
    text-align: right;
}

/* Cards & Services Grid RTL */
[dir="rtl"] .service-card .card-content {
    text-align: right;
}

[dir="rtl"] .card-line {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .why-card {
    text-align: right;
}

/* Contact Form RTL */
[dir="rtl"] .contact-form label {
    text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
    text-align: right;
}

/* Footer RTL */
[dir="rtl"] .footer-grid {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .socials {
    justify-content: flex-start;
}

[dir="rtl"] .footer-links ul {
    padding-right: 0;
}

/* Marquee Scroll Direction in RTL */
[dir="rtl"] .testimonial-track {
    animation: marquee-scroll-rtl 45s linear infinite;
}

@keyframes marquee-scroll-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

[dir="rtl"] .fa-arrow-right {
    transform: scaleX(-1);
}