:root {
    /* Light Theme (Default) */
    --color-bg: #e8eaed;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --color-accent: #38bdf8;
    --color-accent-glow: rgba(56, 189, 248, 0.4);
    
    --glass-nav-bg: rgba(255, 255, 255, 0.6);
    --glass-nav-border: rgba(255, 255, 255, 0.8);
    --glass-nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    
    --glass-card-bg: rgba(255, 255, 255, 0.7);
    --glass-card-border: rgba(255, 255, 255, 0.9);
    --glass-card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    
    --font-heading: 'Space Grotesk', 'Cairo', sans-serif;
    --font-body: 'Outfit', 'Cairo', sans-serif;
}

[data-theme="dark"] {
    /* Dark Theme */
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    
    --glass-nav-bg: rgba(20, 20, 20, 0.6);
    --glass-nav-border: rgba(255, 255, 255, 0.1);
    --glass-nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    
    --glass-card-bg: rgba(30, 30, 30, 0.6);
    --glass-card-border: rgba(255, 255, 255, 0.08);
    --glass-card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Force dark mode styling when deep underwater, ensuring readability over dark blue abyss */
body.submerged-theme {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    
    --glass-nav-bg: rgba(20, 20, 20, 0.6);
    --glass-nav-border: rgba(255, 255, 255, 0.1);
    
    --glass-card-bg: rgba(30, 30, 30, 0.6);
    --glass-card-border: rgba(255, 255, 255, 0.08);
}

/* Force light logo when submerged (dark background) */
body.submerged-theme .nav-logo-img {
    content: url('../assets/images/9-transparent.png');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body, html {
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: color 0.5s ease;
}

/* RTL Support */
[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .feature-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .feature-list li::before {
    left: auto;
    right: 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

a {
    color: var(--color-text);
    text-decoration: none;
}

/* Three.js Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    pointer-events: none;
}

/* Pill Navigation (Island Style) */
.nav-container {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 50;
    padding: 0 2rem;
    pointer-events: none;
    transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-nav-border);
    box-shadow: var(--glass-nav-shadow);
    border-radius: 100px;
    padding: 0.75rem 1.75rem;
    width: 100%;
    max-width: 1000px;
    pointer-events: auto;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center top;
}

/* Compact Shrunk State (Motion Graphic Island) */
.nav-container.nav-scrolled {
    top: 1rem;
}

.pill-nav.compact {
    max-width: 780px;
    padding: 0.45rem 1.25rem;
    border-radius: 100px;
    background: var(--glass-nav-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18), 0 0 25px var(--color-accent-glow);
    border-color: rgba(56, 189, 248, 0.4);
    transform: scale(0.97);
}

[data-theme="dark"] .pill-nav.compact {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 25px var(--color-accent-glow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-nav.compact .logo {
    gap: 0.5rem;
    font-size: 1.05rem;
}

.nav-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transform: scale(1.4);
    transform-origin: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-nav.compact .nav-logo-img {
    width: 34px;
    height: 34px;
    transform: scale(1.25);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-nav.compact .nav-links {
    gap: 1.2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.pill-nav.compact .nav-links a {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}

.nav-links a.active, .nav-links a:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.nav-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-nav.compact .nav-controls {
    gap: 0.6rem;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.control-btn:hover {
    transform: scale(1.1);
}

.pill-nav.compact .control-btn {
    font-size: 0.85rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--color-text);
    color: var(--color-bg);
    transition: all 0.3s ease;
}

.pill-nav.compact .lang-btn {
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.hero-title {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3vw, 4rem);
    font-weight: 400; /* Increased weight for legibility */
    margin-top: 0; 
    color: var(--color-text);
    /* Solid sharp outline + glow */
    text-shadow: 
        -2px -2px 0 var(--color-bg), 
         2px -2px 0 var(--color-bg), 
        -2px  2px 0 var(--color-bg), 
         2px  2px 0 var(--color-bg), 
         0 0 15px var(--color-bg),
         0 0 25px var(--color-bg);
    white-space: nowrap;
    width: 100%;
    z-index: 10;
}

.hero-subtitle {
    position: absolute;
    top: calc(48% + 5rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(0.7rem, 0.9vw, 1rem);
    letter-spacing: 0.8em;
    margin-right: -0.8em;
    font-weight: 500; /* Increased weight */
    color: var(--color-text);
    opacity: 0.9;
    text-transform: uppercase;
    /* Solid sharp outline + glow */
    text-shadow: 
        -1px -1px 0 var(--color-bg), 
         1px -1px 0 var(--color-bg), 
        -1px  1px 0 var(--color-bg), 
         1px  1px 0 var(--color-bg), 
         0 0 10px var(--color-bg);
    z-index: 10;
}

.title-side {
    display: inline-block;
}

.z-character {
    font-size: 1.8em; /* Massive Z */
    font-style: italic;
    font-weight: 400;
    color: var(--color-accent); /* Vibrant blue/cyan */
    text-shadow: 
        0 0 10px var(--color-bg), 
        0 0 20px var(--color-bg), 
        0 0 10px var(--color-accent), 
        0 0 30px var(--color-accent-glow);
    display: inline-block;
    transform: translateY(-5%);
}

.scroll-wrapper {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.scroll-wrapper:hover {
    transform: translateX(-50%) scale(1.05);
}

.scroll-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-nav-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    animation: bounceDown 2s infinite ease-in-out;
    transition: all 0.3s ease;
}

.scroll-wrapper:hover .scroll-arrow-btn {
    background: var(--color-text);
    color: var(--color-bg);
    box-shadow: 0 0 20px var(--color-cyan-glow);
}

.scroll-wrapper:hover .scroll-arrow-btn svg {
    filter: drop-shadow(0 0 2px var(--color-bg));
}

.scroll-arrow-btn svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 5px var(--color-cyan-glow));
    pointer-events: none;
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.scroll-indicator {
    font-size: 0.85rem;
    letter-spacing: 0.6em;
    color: var(--color-text);
    text-shadow: 0 0 8px var(--color-cyan-glow), 0 0 20px var(--color-cyan-glow);
    transition: color 0.3s ease;
    text-transform: uppercase;
}

html[lang="ar"] .hero-subtitle,
html[lang="ar"] .scroll-indicator {
    letter-spacing: normal;
    margin-right: 0;
}

/* Ecosystem Section - Sticky Stack */
.ecosystem-section {
    padding: 8rem 2rem 10rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-heading {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 6rem;
    text-shadow: 0 0 20px var(--color-cyan-glow);
}

.ecosystem-scroll-wrapper {
    width: 100%;
    position: relative;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Clean spacing between cards */
    padding-bottom: 5vh;
}

/* Glass Cards (Global base class) */
.glass-card {
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-card-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-card-shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease, background 0.5s ease;
}

.glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px var(--color-accent-glow);
}

[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-accent-glow);
}

/* Holographic Cards (Ecosystem specific) */
.g-card {
    background: var(--glass-card-bg); 
    border: 1px solid var(--glass-card-border);
    border-radius: 30px;
    width: 100%;
    min-height: 400px;
    position: relative;
    transform-origin: center center;
    /* 3D Transform setup for mouse hover */
    transform-style: preserve-3d;
    perspective: 2000px;
    overflow: visible;
}

.g-card:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3), 0 0 40px var(--color-accent-glow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.6);
}

[data-theme="dark"] .g-card:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px var(--color-accent-glow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem;
    /* Contains all card content so we can pop it out together or separately */
    transform-style: preserve-3d;
    pointer-events: none; /* Let the parent capture the mouse */
}

@media (max-width: 768px) {
    .card-inner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: visible; /* Let images pop out */
    transform: translateZ(60px); /* 3D pop out */
}

.card-img.fade-bg {
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.8;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.2));
    border-radius: 16px;
}

[data-theme="dark"] .card-img.fade-bg {
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.card-img.logo-img {
    width: 60%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

[data-theme="dark"] .card-img.logo-img {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.card-img.mobile-screen-img {
    max-height: 280px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
    transition: transform 0.4s ease;
}

[data-theme="dark"] .card-img.mobile-screen-img {
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
}

.expanded-img.mobile-screen-img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
    border-radius: 24px;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(40px); /* 3D pop out for text */
    color: var(--color-text); /* Use dynamic theme text color */
}

.card-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

[data-theme="dark"] .card-content h3 {
    background: linear-gradient(135deg, #fff, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Feature list adapted for both themes */
.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

html[lang="ar"] .feature-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.feature-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

html[lang="ar"] .feature-list li::before {
    left: auto;
    right: 0;
    content: '◃';
}

.card-placeholder-bg {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.card-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.contact-card {
    padding: 3.5rem;
    max-width: 1050px;
    width: 100%;
}

.contact-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    text-align: left;
}

html[lang="ar"] .contact-grid-layout {
    text-align: right;
}

.contact-info-block h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.contact-info-block p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-quick-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .contact-quick-details {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    font-weight: 700;
}

.contact-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-secondary);
}

/* Contact Map Square Card */
.contact-map-square-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="light"] .contact-map-square-wrapper {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.contact-map-square-wrapper:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 153, 255, 0.15);
}

.map-square-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-square-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
}

.map-square-direct-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.map-square-direct-link:hover {
    opacity: 0.8;
}

.map-square-iframe-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Pure square aspect ratio */
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .map-square-iframe-container {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.map-square-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: invert(90%) hue-rotate(180deg) contrast(95%);
    transition: filter 0.5s ease;
}

[data-theme="light"] .map-square-iframe-container iframe {
    filter: none;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-text);
    color: var(--color-bg);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (max-width: 850px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    html[lang="ar"] .contact-grid-layout {
        text-align: center;
    }

    .contact-map-square-wrapper {
        max-width: 380px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Initial reveal states for GSAP */
.reveal {
    opacity: 0;
    visibility: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

/* --- Services Section --- */
.services-section {
    padding: 10rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 4rem;
}

.services-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

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

.service-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 28px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 30px var(--color-accent-glow);
    border-color: rgba(56, 189, 248, 0.5);
}

.service-media-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-icon-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .service-icon-badge {
    right: auto;
    left: 1rem;
}

.service-body {
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-body h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.service-body p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .service-tags {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.service-tags span {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--color-accent);
    font-weight: 500;
}

/* --- Process Section --- */
.process-section {
    padding: 10rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
}

/* Vertical line for timeline */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-cyan-glow), transparent);
    z-index: 0;
}
[dir="rtl"] .process-timeline::before {
    left: auto;
    right: 2rem;
}

.process-step {
    padding: 3rem;
    position: relative;
    z-index: 1;
    margin-left: 4rem;
    backdrop-filter: blur(20px);
    overflow: hidden;
}
[dir="rtl"] .process-step {
    margin-left: 0;
    margin-right: 4rem;
}

.step-number {
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-family: var(--font-heading), 'Outfit', 'Inter', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 0;
    user-select: none;
}
[data-theme="light"] .step-number {
    color: rgba(0, 0, 0, 0.07);
}
[dir="rtl"] .step-number {
    left: auto;
    right: 1.5rem;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.process-step p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- About Section --- */
.about-section {
    padding: 10rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    max-width: 1100px;
    width: 100%;
}

.about-card {
    padding: 4.5rem 3.5rem;
    text-align: center;
    position: relative;
    border-radius: 32px;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.85;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .about-stats-grid {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-accent);
    text-shadow: 0 0 20px var(--color-accent-glow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    text-align: center;
}

/* --- Vision Section --- */
.vision-section {
    padding: 10rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vision-content {
    max-width: 1200px;
    width: 100%;
}

.vision-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.vision-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.vision-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pillar-card {
    padding: 3.5rem 2.5rem;
    text-align: center;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.pillar-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- Footer --- */
.site-footer {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.footer-content {
    padding: 1.5rem 3rem;
    text-align: center;
    border-radius: 100px;
}

.footer-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* --- Loading Screen --- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent; /* Show WebGL ripples underneath */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-shadow: 0 0 40px rgba(0, 153, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 20px rgba(0, 153, 255, 0.1); }
    50% { transform: scale(1); box-shadow: 0 0 40px rgba(0, 153, 255, 0.3); }
    100% { transform: scale(0.95); box-shadow: 0 0 20px rgba(0, 153, 255, 0.1); }
}

.loading-video {
    width: 110%;
    height: 110%;
    object-fit: cover;
    transform: scale(1.15); /* Zoom slightly to ensure no hard edges show inside the circle */
}

/* --- Telemetry HUD --- */
.telemetry-hud {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: -4;
    display: flex;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* We will position it dynamically via JS, but we use transform to align its center */
    transform: translate(20px, -50%); 
}

[dir="rtl"] .telemetry-hud {
    transform: translate(-100%, -50%);
    margin-left: -40px;
}

.hud-line {
    width: 40px;
    height: 1px;
    background: var(--color-cyan-glow);
    box-shadow: 0 0 10px var(--color-cyan-glow);
    margin-right: 15px;
}
[dir="rtl"] .hud-line {
    margin-right: 0;
    margin-left: 15px;
    order: 2; /* Put line after text in RTL */
}

.hud-content {
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--color-cyan-glow);
    text-shadow: 0 0 5px var(--color-cyan-glow);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0,0,0,0.4);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 2px solid var(--color-cyan-glow);
    backdrop-filter: blur(5px);
}
[dir="rtl"] .hud-content {
    border-left: none;
    border-right: 2px solid var(--color-cyan-glow);
    text-align: right;
    order: 1;
}

@media (max-width: 768px) {
    .about-card {
        padding: 2rem;
    }
}


/* ==========================================================================
   Project Modal & Interactive Elements
   ========================================================================== */

/* Glowing Neural String */
.ecosystem-scroll-wrapper {
    position: relative;
    width: 100%;
}

.neural-string-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Modal Overlay */
/* Removed: Inline Expansion CSS replacing it */

.g-card {
    transition: min-height 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease, border-color 0.4s ease, transform 0.6s ease;
    cursor: pointer;
}

.g-card.expanded {
    min-height: 80vh;
    z-index: 20;
}

.expanded-content {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1), margin-top 0.4s ease;
    margin-top: 0;
    align-items: center;
    pointer-events: auto; /* Allow clicks on buttons/links inside */
}

.g-card.expanded .expanded-content {
    opacity: 1;
    max-height: 1200px; /* Increased to hold gallery */
    margin-top: 2rem;
}

.expanded-img {
    flex: 1;
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
}

.expanded-text {
    flex: 1;
    color: var(--color-text);
}

.expanded-text h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.expanded-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Taalomy Main Slider (Crossfade) */
.taalomy-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
}
.taalomy-slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.taalomy-slider img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    border-radius: 12px;
    animation: crossfade 20s infinite;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
}

[data-theme="dark"] .taalomy-slider img {
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
}

.taalomy-slider img:nth-child(1) { animation-delay: 0s; }
.taalomy-slider img:nth-child(2) { animation-delay: 5s; }
.taalomy-slider img:nth-child(3) { animation-delay: 10s; }
.taalomy-slider img:nth-child(4) { animation-delay: 15s; }

@keyframes crossfade {
    0% { opacity: 0; z-index: 0; }
    5% { opacity: 1; z-index: 1; }
    25% { opacity: 1; z-index: 1; }
    30% { opacity: 0; z-index: 0; }
    100% { opacity: 0; z-index: 0; }
}

/* Stack Details & Use Cases */
.tech-stack-details {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.tech-stack-details h5, .use-cases h5 {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
}
.badges {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Taalomy Gallery Custom Styles */
.taalomy-expanded {
    flex-direction: column;
}

.taalomy-gallery {
    width: 100%;
    overflow: hidden;
    padding: 10px 0 20px 0;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-continuous 20s linear infinite;
    will-change: transform;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-continuous {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

html[lang="ar"] .gallery-track {
    animation: marquee-continuous-rtl 20s linear infinite;
}

html[lang="ar"] .gallery-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-continuous-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.gallery-track .gallery-img {
    height: 250px;
    width: auto;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    cursor: pointer;
}

.gallery-track .gallery-img:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 15px 25px var(--color-accent-glow));
}

@media (max-width: 768px) {
    .expanded-content {
        flex-direction: column;
    }
    .expanded-img {
        max-width: 100%;
    }
    .g-card.expanded .expanded-content {
        max-height: 1500px;
    }
    .gallery-track .gallery-img {
        height: 180px;
    }
}

/* ------------------------------------
   Vertical Section Indicator
------------------------------------ */
.section-indicator {
    position: fixed;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 100;
    pointer-events: none; 
}

.indicator-current, .indicator-total {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: var(--color-text);
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 1px;
}

.indicator-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    pointer-events: all;
    position: relative;
}

.indicator-dots::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--color-text);
    opacity: 0.1;
    z-index: -1;
    border-radius: 2px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-text);
    border-radius: 4px;
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.dot:hover {
    opacity: 0.7;
    transform: scale(1.3);
}

.dot.active {
    opacity: 1;
    height: 32px;
    background-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.6);
}

.dot-label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: var(--glass-card-bg);
    color: var(--color-text);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-card-border);
    box-shadow: var(--glass-card-shadow);
}

.dot:hover .dot-label, .dot.active .dot-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* RTL Support for dot label */
[dir="rtl"] .dot-label {
    right: auto;
    left: 20px;
    transform: translateY(-50%) translateX(-10px);
}

[dir="rtl"] .dot:hover .dot-label, [dir="rtl"] .dot.active .dot-label {
    transform: translateY(-50%) translateX(0);
}

/* ------------------------------------
   Massive Typographic Footer
------------------------------------ */
.site-footer {
    position: relative;
    padding: 6rem 5% 2rem;
    background: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-col h4 {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-col a, .footer-col p {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

/* Embedded Google Map in Footer */
.footer-map-embed-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 1rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
}

.map-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.map-direct-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.map-direct-btn:hover {
    transform: translateX(4px);
    opacity: 1;
}

html[lang="ar"] .map-direct-btn:hover {
    transform: translateX(-4px);
}

.map-iframe-container {
    padding: 6px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] .map-iframe-container {
    box-shadow: 0 15px 35px rgba(0, 153, 255, 0.08);
}

.map-iframe-container:hover {
    border-color: var(--color-primary);
}

.map-iframe-container iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(95%);
    transition: filter 0.5s ease;
}

[data-theme="light"] .map-iframe-container iframe {
    filter: none;
}

.footer-middle {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.massive-text {
    font-size: clamp(2.5rem, 12vw, 15rem);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, var(--color-text) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
}

[data-theme="dark"] .massive-text {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
    filter: drop-shadow(0 -10px 40px rgba(56, 189, 248, 0.15));
}

.massive-text::after {
    content: 'SIGMA Z LINE';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.2;
    filter: blur(10px);
    z-index: -1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.back-to-top {
    background: none;
    border: none;
    color: var(--color-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.back-to-top:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    /* Base Body & Touch scrolling */
    body, html {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }

    /* Global spacing adjustments for mobile */
    section {
        padding: 4rem 1.25rem !important;
    }
    
    .hero-section {
        min-height: 90vh;
        padding: 5rem 1.25rem 2rem !important;
    }

    /* Typography adjustments */
    .section-heading {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.6rem);
        white-space: normal;
        text-align: center;
        width: 90%;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
        margin-right: -0.3em;
        width: 85%;
        text-align: center;
        top: calc(48% + 4rem);
    }

    /* Floating Pill Navigation on Mobile */
    .nav-container {
        top: 1rem;
        padding: 0 1rem;
    }

    .pill-nav {
        padding: 0.5rem 1rem;
        border-radius: 50px;
        width: 100%;
        max-width: 100%;
    }
    
    .pill-nav.compact {
        max-width: 100%;
        padding: 0.4rem 0.85rem;
        transform: none;
    }

    .logo {
        gap: 0.4rem;
        font-size: 0.95rem;
    }
    
    .nav-logo-img {
        width: 32px;
        height: 32px;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .lang-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Hide desktop nav links on small devices */
    .nav-links {
        display: none;
    }

    .section-indicator {
        display: none !important;
    }

    /* Ecosystem Card Optimizations for Mobile */
    .ecosystem-section {
        padding: 4rem 1rem 3rem !important;
    }

    .cards-container {
        gap: 2rem;
    }

    .g-card {
        border-radius: 20px;
        min-height: auto;
        transform: none !important; /* Disable 3D tilt overhead on mobile */
    }

    .card-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        transform: none !important;
    }

    .card-image-wrapper {
        min-height: 180px;
        transform: none !important;
    }

    .card-content {
        padding: 0;
        transform: none !important;
    }

    .card-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .card-content p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-media-wrapper {
        height: 170px;
    }

    .service-body {
        padding: 1.5rem;
    }

    .service-body h3 {
        font-size: 1.35rem;
    }

    /* Process Timeline Mobile */
    .process-timeline::before {
        left: 1rem;
    }
    [dir="rtl"] .process-timeline::before {
        right: 1rem;
    }

    .process-step {
        margin-left: 2rem;
        padding: 1.75rem;
    }
    [dir="rtl"] .process-step {
        margin-right: 2rem;
    }

    .step-number {
        font-size: 3rem;
        top: 0.5rem;
        left: 1rem;
    }
    [dir="rtl"] .step-number {
        left: auto;
        right: 1rem;
    }

    /* About Section Mobile */
    .about-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .about-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Vision Pillars Mobile */
    .vision-header {
        margin-bottom: 2.5rem;
    }

    .vision-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .vision-pillars {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pillar-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    /* Contact Card Mobile */
    .contact-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .contact-card h2 {
        font-size: 1.8rem;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 4rem 1.25rem 2rem;
        gap: 2.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .massive-text {
        font-size: clamp(2rem, 11vw, 4rem);
    }
}
