/* ═══════════════════════════════════════════════
   MIRAJ | معراج — Premium Technical Landing Page
   ═══════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --font-heading-en: 'Space Grotesk', sans-serif;
    --font-body-en: 'Inter', sans-serif;
    --font-heading-ar: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
    --font-body-ar: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;

    --bg: #ffffff;
    --bg-alt: #f8fafb;
    --bg-dark: #0a1628;
    --bg-card: #ffffff;

    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-200: #a5f3fc;
    --cyan-300: #67e8f9;
    --cyan-400: #22d3ee;
    --cyan-500: #0891b2;
    --cyan-600: #0e7490;
    --cyan-700: #0c5f75;
    --cyan-800: #0a4d5e;
    --cyan-900: #083d4a;

    --primary: #0c7b93;
    --primary-light: #0ea5c7;
    --primary-dark: #095e72;
    --primary-glow: rgba(12, 123, 147, 0.12);
    --primary-glow-strong: rgba(12, 123, 147, 0.25);

    --navy: #0a1628;
    --navy-light: #1a2a42;
    --charcoal: #1e293b;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-on-dark: #e2e8f0;

    --border: #e2e8f0;
    --border-hover: rgba(12, 123, 147, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

/* ─── Reset ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body-en);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Arabic typography */
html[lang="ar"] body,
html[dir="rtl"] body {
    font-family: var(--font-body-ar);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: var(--font-heading-ar);
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
    font-family: var(--font-heading-en);
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ─── Container ─── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Text Accent ─── */
.text-accent {
    color: var(--primary);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 16px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 24px var(--primary-glow-strong);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 24px;
    height: 72px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-text-ar {
    font-family: var(--font-heading-ar);
    color: var(--primary);
    font-size: 1.2rem;
}

.logo-text-en {
    font-family: var(--font-heading-en);
    color: var(--navy);
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.logo-divider {
    color: var(--text-muted);
    font-weight: 300;
    margin: 0 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.82rem;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.hero-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    inset-inline-end: -100px;
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-400) 0%, transparent 70%);
    bottom: -100px;
    inset-inline-start: -100px;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(12, 123, 147, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 123, 147, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    max-width: 780px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 1.75rem;
    padding: 8px 20px;
    background: var(--primary-glow);
    border-radius: 100px;
    border: 1px solid rgba(12, 123, 147, 0.15);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

html[lang="ar"] .hero h1 {
    line-height: 1.5;
    letter-spacing: 0;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 6px 16px;
    background: var(--primary-glow);
    border-radius: 100px;
    border: 1px solid rgba(12, 123, 147, 0.12);
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--navy);
}

html[lang="ar"] .section-header h2 {
    line-height: 1.6;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ═══════════════════════════════════════
   ABOUT (STORY TELLING)
   ═══════════════════════════════════════ */
.story-chunks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20vh;
    padding: 8vh 0;
}

.story-chunk {
    width: 100%;
    max-width: 800px;
    text-align: center;
    position: relative;
    /* Will be animated by GSAP */
}

.story-chunk p {
    color: var(--navy);
    line-height: 1.5;
    margin: 0;
}

.chunk-huge p {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.3;
}

.chunk-massive p {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.1;
}

.chunk-large p {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
}

.chunk-medium p {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 600;
    line-height: 1.7;
    color: var(--text-secondary);
}

.chunk-small p {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.chunk-l {
    text-align: start;
    margin-right: auto;
    margin-left: 0;
}

.chunk-r {
    text-align: end;
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .chunk-l { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .chunk-r { margin-left: 0; margin-right: auto; }



.chunk-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: all var(--transition);
    will-change: transform;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.story-card .material-symbols-outlined {
    font-size: 42px;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.story-card p {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--navy);
}

.chunk-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: start;
    max-width: 1000px;
}
html[dir="rtl"] .chunk-split { text-align: start; }

.chunk-split .split-text {
    flex: 1;
}

.chunk-split .split-text p {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 500;
    line-height: 1.9;
    color: var(--text-secondary);
}

.chunk-split .split-img {
    flex: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chunk-split .split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.story-badge {
    padding: 0.85rem 2rem;
    background: var(--bg-card);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.btn-glow {
    box-shadow: 0 0 30px var(--primary-glow-strong);
    font-size: 1.25rem;
    padding: 1.2rem 3.5rem;
    border-radius: 100px;
    display: inline-flex;
}
.btn-glow:hover {
    box-shadow: 0 0 50px var(--primary-glow-strong);
}

.text-navy p { color: var(--navy) !important; }
.text-accent p { color: var(--primary) !important; }
.font-ar p { font-family: var(--font-heading-ar); }

@media (max-width: 768px) {
    .story-chunks { gap: 12vh; }
    .chunk-split { flex-direction: column; text-align: center; }
    html[dir="rtl"] .chunk-split { text-align: center; }
    .chunk-l, .chunk-r { text-align: center; margin: 0 auto; }
    html[dir="rtl"] .chunk-l, html[dir="rtl"] .chunk-r { text-align: center; margin: 0 auto; }
    .chunk-huge p { font-size: clamp(1.8rem, 5vw, 3rem); }
    .chunk-massive p { font-size: clamp(2rem, 6vw, 4rem); }
    .chunk-large p { font-size: clamp(1.4rem, 4vw, 2.2rem); }
    .hero-circle { opacity: 0.03; }
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    will-change: transform;
}

.about-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.about-icon .material-symbols-outlined {
    font-size: 26px;
    color: var(--primary);
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.about-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.svc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition);
}

.svc-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(12, 123, 147, 0.12);
}

.svc-card:hover::before {
    opacity: 1;
}

.svc-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.svc-icon .material-symbols-outlined {
    font-size: 24px;
    color: var(--primary);
}

.svc-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.svc-card>p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ═══════════════════════════════════════
   TRACKS
   ═══════════════════════════════════════ */
.tracks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.tracks-grid .track-card {
    flex: 0 1 calc((100% - 4rem) / 3);
    min-width: 0;
}

/* Center last row when only 2 cards remain (5 cards in 3-col grid) */
.tracks-grid .track-card:nth-child(4),
.tracks-grid .track-card:nth-child(5) {
    max-width: calc((100% - 4rem) / 3);
}

.track-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.track-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.track-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-glow), rgba(12, 123, 147, 0.06));
    border: 1px solid rgba(12, 123, 147, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.track-icon-wrap .material-symbols-outlined {
    font-size: 28px;
    color: var(--primary);
}

.track-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.track-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex: 1;
}

.track-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.track-link:hover {
    color: var(--primary-light);
    gap: 10px;
}

/* RTL arrow direction */
html[dir="rtl"] .track-link {
    direction: rtl;
}

/* ═══════════════════════════════════════
   STATS
   ═══════════════════════════════════════ */
.stats-section {
    background: var(--navy);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(12, 123, 147, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(12, 123, 147, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading-en);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--cyan-300);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
    font-size: 0.65em;
    margin-inline-start: 2px;
    opacity: 0.8;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-on-dark);
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════
   FOUNDERS
   ═══════════════════════════════════════ */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.founder-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--cyan-400), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition);
}

/* ═══════════════════════════════════════
   PROJECT MODAL
   ═══════════════════════════════════════ */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

/* Fix missing icons on close button */
.modal-close .material-symbols-outlined {
    font-size: 24px;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-img-wrap {
    width: 100%;
    height: 450px;
    background: #0c1524;
    position: relative;
    overflow: hidden;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slider-img.active {
    opacity: 1;
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    display: none; /* Shown dynamically via JS when multiple images */
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    color: var(--navy);
    transition: all var(--transition-fast);
}

.modal-img-wrap:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    inset-inline-start: 16px;
}

.slider-btn.next {
    inset-inline-end: 16px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.modal-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.3));
    pointer-events: none;
    z-index: 3;
}

.modal-info {
    padding: 3rem;
}

.modal-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal-info p#modal-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-tech-section {
    margin-bottom: 2.5rem;
}

.modal-tech-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tech-list li {
    background: var(--primary-glow);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(12, 123, 147, 0.15);
}

.modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.modal-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-figma {
    background: var(--primary-glow);
    color: var(--primary-dark);
    border: 1px solid rgba(12, 123, 147, 0.2);
}
.btn-figma:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 123, 147, 0.25);
}

.btn-solidworks {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.btn-solidworks:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-video {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.btn-video:hover {
    background: #16a34a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

/* Video Section in Modal */
.modal-video-section {
    padding: 1.5rem 3rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.modal-video-section h4 {
    display: flex;
    align-items: center;
    font-weight: 700;
}

.modal-video-section video {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .project-modal {
        padding: 16px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }

    .modal-close {
        top: 12px;
        inset-inline-end: 12px;
        width: 36px;
        height: 36px;
    }

    .modal-close .material-symbols-outlined {
        font-size: 20px;
    }

    .modal-img-wrap {
        height: 280px;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-info h3 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .modal-info p#modal-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .modal-tech-section h4 {
        font-size: 0.9rem;
    }

    .modal-tech-list li {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .modal-links {
        flex-direction: column;
        gap: 10px;
        padding-top: 1.5rem;
    }
    
    .modal-link-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .modal-video-section {
        padding: 1rem 1.5rem;
    }
}

.founder-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(12, 123, 147, 0.12);
}

.founder-card:hover::before {
    opacity: 1;
}

.founder-img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--border);
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.founder-card:hover .founder-img {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow-strong);
}

.founder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.founder-card:hover .founder-img img {
    transform: scale(1.05);
}

.founder-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--navy);
}

.founder-role {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    padding: 4px 14px;
    background: var(--primary-glow);
    border-radius: 100px;
    border: 1px solid rgba(12, 123, 147, 0.1);
}

.founder-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.founder-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.founder-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
}

.founder-social-link:hover {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow-strong);
}

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    position: relative;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-card);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group label {
    position: absolute;
    top: 50%;
    inset-inline-start: 18px;
    transform: translateY(-50%);
    font-size: 0.88rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
    background: var(--bg-card);
    padding: 0 4px;
}

.form-group textarea~label {
    top: 18px;
    transform: translateY(0);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    grid-column: 1 / -1;
}

.contact-info {
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.contact-method:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.contact-method .material-symbols-outlined {
    font-size: 22px;
    color: var(--primary);
    margin-top: 2px;
}

.contact-method span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
    letter-spacing: 0.02em;
}

.contact-method a {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-method a:hover {
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    background: var(--navy);
    color: var(--text-on-dark);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 48px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.7;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(12, 123, 147, 0.15);
}

.footer-col h5 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.65);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--cyan-300);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.5);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(226, 232, 240, 0.5);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--cyan-300);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        inset-inline-start: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 120px 20px 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem 3rem;
    }

    .stat-item {
        min-width: auto;
    }

    .stat-divider {
        display: none;
    }

    .founders-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.65rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    /* Tame blue glow on small screens */
    .hero-circle {
        opacity: 0.02;
    }

    .hero-circle-1 {
        width: 300px;
        height: 300px;
    }

    .hero-circle-2 {
        width: 200px;
        height: 200px;
    }
}

/* ═══════════════════════════════════════
   ROBOT ANIMATION CONTAINER
   ═══════════════════════════════════════ */
#robot-animation {
    pointer-events: none;
}

/* Allow pointer events on desktop for robot click interactions */
@media (min-width: 769px) {
    #robot-animation {
        pointer-events: auto;
    }
}

/* Mobile: hide the robot entirely to prevent layout/interaction issues */
@media (max-width: 768px) {
    #robot-animation {
        display: none !important;
    }

    .robot-speech-bubble {
        display: none !important;
    }
}

/* ═══════════════════════════════════════
   ACCESSIBILITY — Focus States
   ═══════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}


/* ═══════════════════════════════════════
   RTL ADJUSTMENTS
   ═══════════════════════════════════════ */
html[dir="rtl"] .hero-badge,
html[dir="rtl"] .section-badge {
    letter-spacing: 0.05em;
}

html[dir="rtl"] .footer-col h5 {
    letter-spacing: 0;
}

/* Animation states are handled by GSAP in main.js */

/* ═══════════════════════════════════════
   SUBPAGE SHARED STYLES
   ═══════════════════════════════════════ */
.subpage .roadmap-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    text-align: center;
}

.subpage .roadmap-hero .section-badge {
    opacity: 1;
}

.subpage .roadmap-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
    opacity: 1;
}

html[lang="ar"] .subpage .roadmap-hero h1 {
    line-height: 1.6;
}

.subpage .roadmap-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 1;
}

.roadmap-content {
    padding: 80px 0;
}

.roadmap-stage {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.roadmap-stage:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.roadmap-stage h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.roadmap-stage h3 .stage-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-glow);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.roadmap-stage ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.roadmap-stage li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
}

.roadmap-stage li .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.roadmap-cta {
    text-align: center;
    padding: 60px 0 80px;
    background: var(--bg-alt);
}

.roadmap-cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.roadmap-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .roadmap-stage ul {
        grid-template-columns: 1fr;
    }

    .roadmap-stage {
        padding: 1.5rem;
    }
}

/* ─── Form Success State ─── */
.form-success {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.form-success .material-symbols-outlined {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════
   PUBLICATION TEASER (Homepage)
   ═══════════════════════════════════════ */
.pub-teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pub-teaser-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pub-teaser-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pub-teaser-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pub-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.03em;
}

.pub-type-journal {
    background: rgba(12, 123, 147, 0.1);
    color: var(--primary);
    border: 1px solid rgba(12, 123, 147, 0.15);
}

.pub-type-conf {
    background: rgba(26, 54, 93, 0.08);
    color: var(--navy);
    border: 1px solid rgba(26, 54, 93, 0.12);
}

.pub-year {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pub-teaser-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   OUR WORK PAGE
   ═══════════════════════════════════════ */
.ow-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    text-align: center;
}

.ow-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--navy);
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.ow-hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.ow-jump-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ─── Project Cards ─── */
.ow-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ow-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.ow-project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.ow-project-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ow-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ow-project-card:hover .ow-project-img img {
    transform: scale(1.05);
}

.ow-project-tag {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.ow-project-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ow-project-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.ow-project-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* ─── Project Details Button ─── */
button.btn-project-details,
.ow-project-body .btn-project-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #0a6577));
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(12, 123, 147, 0.25);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

button.btn-project-details::before,
.ow-project-body .btn-project-details::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

button.btn-project-details:hover,
.ow-project-body .btn-project-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(12, 123, 147, 0.35);
    color: #fff !important;
}

button.btn-project-details:hover::before,
.ow-project-body .btn-project-details:hover::before {
    opacity: 1;
}

button.btn-project-details:active,
.ow-project-body .btn-project-details:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(12, 123, 147, 0.2);
}

/* ─── Course Cards ─── */
.ow-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ow-course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
}

.ow-course-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.ow-course-img {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.ow-course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ow-course-card:hover .ow-course-img img {
    transform: scale(1.05);
}

.ow-course-tag {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.ow-course-body {
    padding: 1.5rem;
}

.ow-course-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.ow-course-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.ow-course-body .btn {
    display: inline-flex;
    align-items: center;
}

/* ─── R&D Cards ─── */
.ow-rnd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ow-rnd-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
    will-change: transform;
}

.ow-rnd-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ow-rnd-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.ow-rnd-icon .material-symbols-outlined {
    font-size: 28px;
    color: var(--primary);
}

.ow-rnd-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.ow-rnd-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ─── Publication Cards (Our Work) ─── */
.ow-pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ow-pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
}

.ow-pub-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.ow-pub-header {
    margin-bottom: 0.75rem;
}

.ow-pub-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ow-pub-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.ow-pub-authors {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.ow-pub-abstract {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* ─── Responsive: Our Work Page ─── */
@media (max-width: 992px) {

    .ow-projects-grid,
    .ow-courses-grid,
    .ow-rnd-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tracks-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .tracks-grid .track-card {
        flex: none;
        width: auto;
        max-width: none;
    }

    .tracks-grid .track-card:nth-child(4),
    .tracks-grid .track-card:nth-child(5) {
        max-width: none;
    }
}

@media (max-width: 640px) {

    .ow-projects-grid,
    .ow-courses-grid,
    .ow-rnd-grid,
    .pub-teaser-grid {
        grid-template-columns: 1fr;
    }

    .tracks-grid .track-card {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .ow-hero {
        padding: 120px 0 60px;
    }

    .ow-hero h1 {
        font-size: 1.8rem;
    }

    .ow-jump-links {
        gap: 0.5rem;
    }
}

/* ═══════════════════════════════════════
   SPA ROUTING
   ═══════════════════════════════════════ */
.spa-page {
    display: none;
}

.spa-page.active {
    display: block;
}

/* ═══════════════════════════════════════
   FLOATING WHATSAPP (CONVERSION)
   ═══════════════════════════════════════ */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.floating-wa svg {
    width: 38px;
    height: 38px;
}

html[dir="rtl"] .floating-wa {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: 20px;
        right: 20px;
        left: auto;
        width: 52px;
        height: 52px;
    }
    html[dir="rtl"] .floating-wa {
        right: auto;
        left: 20px;
    }
    .floating-wa svg {
        width: 30px;
        height: 30px;
    }

    /* Service page hero spacing fix */
    .subpage .roadmap-hero {
        padding: 100px 0 50px;
    }

    .subpage .roadmap-hero h1 {
        font-size: 1.6rem;
    }
}