/* Fonts loaded asynchronously via HTML <link> for maximum performance */
/* Google Fonts: Cairo + Outfit - loaded non-blocking from index.html */

/* --- CUSTOM FONTS FROM EXTERNAL CDN --- */
@font-face {
  font-family: 'GT America Extended';
  src: url('https://cdn.prod.website-files.com/68b57ef5ef86011d9b251e8e/68e92ebfc1095153b9f8a4e5_GT-America-LC-Extended-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT America Extended';
  src: url('https://cdn.prod.website-files.com/68b57ef5ef86011d9b251e8e/68e92ed78eb39e32bd211ab4_GT-America-LC-Extended-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT America Expanded';
  src: url('https://cdn.prod.website-files.com/68b57ef5ef86011d9b251e8e/68e92e9565236710932d3b3a_GT-America-LC-Expanded-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- CUSTOM VARIABLES --- */
:root {
  --bg-color: #06090f;
  --bg-card: rgba(13, 20, 32, 0.6);
  --bg-glass: rgba(13, 20, 32, 0.4);
  --border-color: transparent;
  --border-glow: rgba(14, 210, 247, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;
  --accent-cyan: #0ed2f7;
  --accent-teal: #06b6d4;
  --accent-gold: #d4af37;
  --font-en: 'GT America Extended', 'Outfit', sans-serif;
  --font-en-expanded: 'GT America Expanded', 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-en);
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Arabic support base */
[lang="ar"] {
  font-family: var(--font-ar) !important;
  direction: rtl;
  text-align: right;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] .h1, [lang="ar"] .h2, [lang="ar"] .h3, [lang="ar"] .h4, [lang="ar"] p, [lang="ar"] a, [lang="ar"] button, [lang="ar"] span, [lang="ar"] label, [lang="ar"] input, [lang="ar"] select, [lang="ar"] textarea {
  font-family: var(--font-ar) !important;
}

/* Custom Scrollbar (Invisible but functional like premium sites) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* --- PERFORMANCE: GPU LAYER HINTS --- */
/* Tell browser to paint these independently to avoid repaints */
.hero-visual,
.about-visual,
.video-sec-visual {
  will-change: transform;
  transform: translateZ(0);
}

/* Contain layout for independent sections — avoids full-page reflow */
/* NOTE: contain:layout removed from hero-sec/about-sec to avoid clipping fixed background */
.m-section {
  contain: layout style;
}

/* Image rendering optimizations */
img {
  image-rendering: -webkit-optimize-contrast;
  max-width: 100%;
  height: auto;
}

video {
  transform: translateZ(0); /* Force GPU layer for smooth video playback */
}

/* --- CUSTOM CURSOR --- */
.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(14, 210, 247, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s, height 0.3s, border-color 0.3s;
}

/* Hover effects for cursor */
.cursor-hover .custom-cursor {
  width: 14px;
  height: 14px;
  background-color: var(--accent-gold);
}
.cursor-hover .custom-cursor-follower {
  width: 60px;
  height: 60px;
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

/* --- PRELOADER --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  width: 80%;
  max-width: 600px;
}

.preloader-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  color: var(--text-primary);
  text-transform: uppercase;
}

.preloader-bar-w {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.preloader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.preloader-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --- TYPOGRAPHY & UTILITIES --- */
.h1, .h2, .h3, .h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.h1 {
  font-family: var(--font-en-expanded);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.h2 {
  font-family: var(--font-en-expanded);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  letter-spacing: -0.01em;
}

.h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

.p-large {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

.p-normal {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.glow-text {
  text-shadow: 0 0 15px rgba(14, 210, 247, 0.4);
}

.cyan-gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- LAYOUT STRUCTURE --- */
.section {
  padding: 6rem 2rem;
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  background-color: var(--bg-color); /* Solid background to cover fixed video */
  z-index: 5; /* Higher layer to slide over the video */
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Back-grid background overlay */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center center;
  pointer-events: none;
  z-index: 1;
}

.bg-radial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(14, 210, 247, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* --- HEADER / NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between; /* Logo left, Nav center (via absolute), Lang toggle right */
  align-items: center;
  pointer-events: none; /* Allow clicks to pass through the full-width header wrapper */
}

/* Site logo / brand name — left side */
.header-logo {
  pointer-events: auto;
  text-decoration: none;
  font-family: var(--font-en-expanded);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-logo span {
  color: var(--accent-cyan);
}

.nav-c {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Perfectly center the nav pill in the viewport */
  background: rgba(10, 16, 26, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 100px;
  padding: 0.55rem 1.8rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto; /* Enable clicks on the menu bar */
  white-space: nowrap;
}

.nav-c:hover {
  background: rgba(10, 16, 26, 0.8);
  border-color: rgba(14, 210, 247, 0.3);
  box-shadow: 0 15px 45px rgba(14, 210, 247, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.logo-w {
  text-decoration: none;
  font-family: var(--font-en);
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  margin-left: 8px;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: logoPulse 2s infinite alternate;
}

@keyframes logoPulse {
  0% { transform: scale(1); box-shadow: 0 0 5px var(--accent-cyan); }
  100% { transform: scale(1.5); box-shadow: 0 0 15px var(--accent-cyan); }
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-cyan);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-link:hover::after {
  width: 100%;
}

/* Login / CTA nav button style */
.nav-btn {
  background: rgba(14, 210, 247, 0.08);
  border: 1px solid rgba(14, 210, 247, 0.25);
  border-radius: 20px;
  padding: 0.35rem 0.9rem !important;
  color: var(--accent-cyan) !important;
  transition: var(--transition-smooth);
}
.nav-btn:hover {
  background: var(--accent-cyan);
  color: #000 !important;
  border-color: var(--accent-cyan);
}
.nav-btn::after { display: none; }

.lang-toggle {
  background: rgba(10, 16, 26, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-family: var(--font-ar);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: auto; /* Enable clicks */
  flex-shrink: 0;
}

.lang-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(10, 16, 26, 0.8);
  box-shadow: 0 0 15px rgba(14, 210, 247, 0.25);
}

/* --- HERO SECTION --- */
.hero-sec {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5rem; /* Account for fixed header height */
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 5;
}

.hero-content {
  max-width: 850px;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 25px rgba(0, 0, 0, 0.95);
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-subtitle::before, .hero-subtitle::after {
  content: '';
  width: 25px;
  height: 1px;
  background-color: var(--accent-cyan);
}

.hero-desc {
  margin-top: 1.5rem;
  max-width: 680px;
  color: var(--text-secondary);
}

.hero-cta-w {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.btn-primary, .btn-secondary {
  text-decoration: none;
  padding: 1rem 2.2rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 4px 20px rgba(14, 210, 247, 0.25);
}

.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(14, 210, 247, 0.15);
}

.hero-visual {
  position: fixed; /* Fixed in viewport so it stays behind as page scrolls */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1; /* Keep in the background */
  overflow: hidden;
}

.hero-visual-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(14, 210, 247, 0.08) 0%, transparent 70%);
  z-index: 0;
}

/* --- HERO SLIDESHOW (replaces video background) --- */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.42) contrast(1.08);
}

.hero-slide.active {
  opacity: 1;
}

/* Overlay gradient for text readability */
.hero-slideshow-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    linear-gradient(180deg, rgba(6, 9, 15, 0.25) 0%, transparent 30%, transparent 60%, rgba(6, 9, 15, 0.5) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(6, 9, 15, 0.4) 100%);
  pointer-events: none;
}

/* --- VIDEO HUB SLIDESHOW (replaces video background) --- */
.video-hub-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-hub-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.55) contrast(1.05);
}

.video-hub-slide.active {
  opacity: 1;
}

.hero-tech-circle {
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px dashed rgba(14, 210, 247, 0.1);
  border-radius: 50%;
  animation: spin 45s linear infinite;
  z-index: 3;
  opacity: 0.5;
}

.hero-tech-circle::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* --- HERO WATCH VIDEO LINK --- */
.hero-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}
.hero-watch-link:hover {
  color: var(--accent-cyan);
}
.hero-watch-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
  padding-left: 2px;
}
.hero-watch-link:hover .hero-watch-icon {
  border-color: var(--accent-cyan);
  background: rgba(14, 210, 247, 0.08);
  color: var(--accent-cyan);
}


/* --- HERO VIDEO PREVIEW CARD --- */
.hero-video-preview {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem 1.5rem 0.75rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
  width: 100%;
  text-align: left;
}

.hero-video-preview:hover {
  background: rgba(14, 210, 247, 0.06);
  border-color: rgba(14, 210, 247, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(14, 210, 247, 0.15);
}

.preview-thumbnail {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
}

.preview-play-btn {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  background: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06090f;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: playPulse 2s infinite alternate;
}

@keyframes playPulse {
  0% { transform: scale(1); box-shadow: 0 0 5px var(--accent-cyan); }
  100% { transform: scale(1.15); box-shadow: 0 0 15px var(--accent-cyan); }
}

.preview-text-w {
  display: flex;
  flex-direction: column;
}

.preview-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.preview-duration {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* RTL overrides for preview card */
[lang="ar"] .preview-text-w {
  text-align: right;
}

[lang="ar"] .hero-video-preview {
  padding: 0.75rem 0.8rem 0.75rem 1.5rem;
}

/* --- ABOUT SECTION --- */
.about-sec {
  min-height: 80vh; /* Reduced from 100vh to tighten vertical space and remove large gaps */
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  background-color: var(--bg-color);
  z-index: 5;
  padding: 4.5rem 4rem; /* Reduced top/bottom padding from 8rem to 4.5rem to compress gaps */
}

.about-sec .container {
  max-width: 1550px; /* Expanded container to push text strictly to the far-left (and far-right in Arabic) */
  width: 100%;
}

.about-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.about-bg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right 30%; /* Lifts his face and chest up to the center-upper section of the viewport */
  opacity: 0.95;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
  transition: var(--transition-smooth);
}

.about-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-color) 0%, rgba(6, 9, 15, 0.8) 35%, rgba(6, 9, 15, 0.4) 65%, transparent 100%);
  pointer-events: none;
}

/* Bidirectional Language Alignment Mirroring for LTR/RTL */
/* Keeping the layout of Page 2 (About Section) consistent with Page 3 (Videos) */
/* The portrait stays on the right and the text stays on the left, only the text contents and borders adapt for RTL */

.about-content {
  width: 100%;
  max-width: 100%; /* Expand to full container width (1550px) to push text strictly to the far sides */
  margin: 0;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  direction: ltr; /* Always layout left-to-right to keep text pane on the left side */
}

.about-bio-pane {
  max-width: 520px; /* Highly compact to guarantee zero overlap with the portrait face on the right */
  width: 100%;
  z-index: 5;
  position: relative;
  border-left: 2px solid rgba(14, 210, 247, 0.15); /* Premium vertical precision surgical line */
  padding-left: 2.5rem; /* Spacious padding after the line */
  text-align: left;
  transition: border-color 0.6s ease;
}

[lang="ar"] .about-content {
  direction: ltr !important;
  justify-content: flex-start !important;
}

.about-bio-pane h2,
.about-bio-pane .h2 {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

[lang="ar"] .about-bio-pane {
  direction: rtl; /* Restore Arabic text flow and right-alignment */
  border-left: none;
  border-right: 2px solid rgba(14, 210, 247, 0.15);
  padding-right: 2.5rem;
  padding-left: 0;
  text-align: right;
  transition: border-color 0.6s ease;
}

.about-bio-pane:hover {
  border-color: rgba(14, 210, 247, 0.45); /* Brightens surgical vertical precision line on hover */
}

.about-bio-text {
  margin-top: 1.5rem;
}

.about-bio-stats-w {
  display: flex;
  flex-direction: column;
  gap: 1.4rem; /* Reduced gap between credential items from 2.2rem to 1.4rem */
  margin-top: 2.2rem; /* Reduced margin above the credentials from 3.5rem to 2.2rem */
}

.about-feature-item {
  border-left: none; /* Removed nested borders for clean vertical baseline alignment */
  padding-left: 0;
  transition: var(--transition-smooth);
  text-align: left;
}

[lang="ar"] .about-feature-item {
  border-left: none;
  border-right: none;
  padding-right: 0;
  padding-left: 0;
  text-align: right;
}

.about-feature-item:hover {
  transform: translateX(6px);
}

[lang="ar"] .about-feature-item:hover {
  transform: translateX(-6px);
}

.about-feature-title {
  font-family: var(--font-en-expanded);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.about-feature-item:hover .about-feature-title {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(14, 210, 247, 0.3);
}

.about-feature-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- INTERACTIVE BLUEPRINT SECTION --- */
.blueprint-title-w {
  text-align: center;
  margin-bottom: 5rem;
}

.blueprint-canvas {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  box-shadow: none;
  overflow: visible;
}

.blueprint-diagram-w {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 480px;
}

.blueprint-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 0 20px rgba(14, 210, 247, 0.1));
}

.blueprint-overlay-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(14, 210, 247, 0.05);
  background-image: 
    linear-gradient(rgba(14, 210, 247, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 210, 247, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  border-radius: 8px;
}

/* Hotspots */
.hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  cursor: pointer;
  z-index: 5;
}

.hotspot-circle {
  width: 100%;
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: var(--transition-fast);
}

.hotspot-pulse {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  animation: hotspotRipple 2s infinite ease-out;
  pointer-events: none;
}

@keyframes hotspotRipple {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hotspot:hover .hotspot-circle {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 20px #fff;
}

/* Position Hotspots accurately */
.hotspot-1 { top: 72%; left: 54%; }
.hotspot-2 { top: 61%; left: 42%; }
.hotspot-3 { top: 46%; left: 48%; }
.hotspot-4 { top: 24%; left: 58%; }

/* Info panels based on hotspot clicks */
.blueprint-info-pane {
  background: rgba(13, 20, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 8px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition-smooth);
}

.blueprint-meta-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.blueprint-info-pane h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.blueprint-info-pane p {
  color: var(--text-secondary);
}

/* --- GALLERY / PORTFOLIO SECTION --- */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-img-w {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: contrast(1.05) brightness(0.9);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(6, 9, 15, 0.9) 0%, rgba(6, 9, 15, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  background: linear-gradient(to top, rgba(6, 9, 15, 0.95) 0%, rgba(6, 9, 15, 0.4) 60%, rgba(14, 210, 247, 0.05) 100%);
}

.gallery-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.gallery-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.gallery-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  max-height: 0;
  overflow: hidden;
}

.gallery-item:hover .gallery-desc {
  opacity: 1;
  transform: translateY(0);
  max-height: 80px;
  margin-top: 0.5rem;
}

/* Play button for video items */
.gallery-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 64px;
  height: 64px;
  background: rgba(14, 210, 247, 0.15);
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  opacity: 0.8;
  color: var(--text-primary);
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 30px var(--accent-cyan);
  opacity: 1;
}

/* --- VIDEO HUB SECTION --- */
.video-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  direction: ltr; /* Always layout left-to-right to keep text pane on the left side */
}

[lang="ar"] .video-info-glass-pane {
  direction: rtl; /* Restore Arabic text flow and right-alignment */
}

.video-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.video-showcase:hover .video-thumb {
  transform: scale(1.05);
}

.video-showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.video-showcase:hover .video-showcase-overlay {
  background: rgba(14, 210, 247, 0.08);
}

.video-play-pulse {
  width: 80px;
  height: 80px;
  background: rgba(14, 210, 247, 0.2);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(14, 210, 247, 0.3);
  position: relative;
  transition: var(--transition-smooth);
}

.video-showcase:hover .video-play-pulse {
  transform: scale(1.1);
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 40px var(--accent-cyan);
}

/* --- ACADEMY GATEWAY SECTION --- */
.academy-sec {
  background: linear-gradient(180deg, var(--bg-color) 0%, #06111f 100%);
}

.academy-card {
  background: radial-gradient(circle at top right, rgba(14, 210, 247, 0.06), transparent 60%), var(--bg-card);
  border: 1px solid rgba(14, 210, 247, 0.15);
  border-radius: 16px;
  padding: 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.academy-glow-spot {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 210, 247, 0.1) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.academy-title-group h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.academy-features-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.academy-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.academy-features-list li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.academy-visual-box {
  border: 1px solid var(--border-color);
  background: rgba(6, 9, 15, 0.7);
  border-radius: 12px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.academy-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.01);
  border-radius: 8px;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-en);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* --- PREMIUM COURSE CARDS SYSTEM --- */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.course-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: left;
}

[lang="ar"] .course-card {
  text-align: right;
}

.course-card:hover {
  background: rgba(14, 210, 247, 0.03);
  border-color: rgba(14, 210, 247, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(14, 210, 247, 0.08);
}

.course-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(14, 210, 247, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(14, 210, 247, 0.15);
}

.course-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.course-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.02);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 1.2rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 15px rgba(14, 210, 247, 0.1);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

/* --- FOOTER --- */
.footer {
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-color);
  background: #04060a;
}

.footer-c {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- POPUP VIDEO MODAL --- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10005;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-container {
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border-color);
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
}

.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.video-modal-close:hover {
  color: var(--accent-cyan);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1200px) {
  /* Tighten nav pill on mid-range screens */
  .nav-c {
    padding: 0.5rem 1.4rem;
  }
  .nav-menu {
    gap: 1.4rem;
  }
  .nav-link {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 1024px) {
  .section {
    padding: 5rem 1.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-sec {
    min-height: auto;
    height: auto;
    padding: 5rem 1.5rem;
  }
  .about-visual {
    width: 100%;
    height: 100%;
    opacity: 0.18;
  }
  .about-bg-img {
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.18;
  }
  .about-visual-overlay {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(6, 9, 15, 0.7) 40%, rgba(6, 9, 15, 0.8) 80%, var(--bg-color) 100%);
  }
  [lang="ar"] .about-visual-overlay {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(6, 9, 15, 0.7) 40%, rgba(6, 9, 15, 0.8) 80%, var(--bg-color) 100%);
  }
  .about-content {
    justify-content: center !important;
  }
  .about-bio-pane {
    max-width: 100%;
    text-align: center;
    border-left: none !important;
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .about-bio-stats-w {
    margin-top: 2.5rem;
  }
  .about-feature-item {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  [lang="ar"] .about-feature-item {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  .about-feature-item:hover {
    transform: translateY(-4px);
  }
  [lang="ar"] .about-feature-item:hover {
    transform: translateY(-4px);
  }
  .blueprint-canvas {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem;
  }
  .blueprint-diagram-w {
    height: 350px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .video-hub-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .academy-card {
    grid-template-columns: 1fr;
    padding: 3.5rem;
    gap: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  /* Tighten header on tablet */
  .header {
    padding: 1rem 1.5rem;
  }
  .nav-c {
    padding: 0.5rem 1.1rem;
  }
  .nav-menu {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
  .header-logo {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }
}

@media (max-width: 768px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .footer-c {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  /* Hide brand logo on mobile since desktop header is hidden at 768px */
  .header-logo {
    display: none !important;
  }
  
  /* Hide heavy looping background videos on mobile to save bandwidth and GPU */
  #js-hero-video,
  #js-video-sec-bg-video {
    display: none !important;
  }
  
  /* Stacking buttons vertically on small screens for ergonomic mobile UX */
  .hero-cta-w {
    flex-direction: column !important;
    width: 100% !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
  }
  .btn-primary, .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
  }
  .hero-video-preview {
    max-width: 100% !important;
  }
}

/* --- VIDEO HUB SECTION DYNAMIC BG VIDEO --- */
.video-sec-visual {
  position: absolute;
  top: 0;
  right: 0; /* Align video container to the right side */
  width: 65%; /* Occupy the right 65% of the page */
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.video-sec-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* 100% full opacity */
  filter: contrast(1.05) brightness(1.60) drop-shadow(0 0 30px rgba(14, 210, 247, 0.15));
}

.video-sec-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Blend horizontally from solid dark on the left to transparent on the right, and vertically on the top/bottom */
  background: 
    linear-gradient(90deg, var(--bg-color) 35%, rgba(6, 9, 15, 0.3) 65%, rgba(6, 9, 15, 0.3) 100%),
    linear-gradient(180deg, var(--bg-color) 0%, transparent 20%, transparent 80%, var(--bg-color) 100%);
  pointer-events: none;
}

.video-info-glass-pane {
  background: none; /* Remove card background */
  border: none; /* Remove card border */
  padding: 0; /* Remove padding for frameless alignment */
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none; /* Remove box-shadow */
  max-width: 600px;
  z-index: 5;
  position: relative;
  transition: var(--transition-smooth);
}

.video-info-glass-pane:hover {
  border-color: transparent;
  box-shadow: none;
}

/* Responsiveness for Video Hub Glass Pane */
@media (max-width: 991px) {
  .video-sec-visual {
    width: 100%; /* Cover full width on mobile for responsive layout */
    opacity: 0.35;
  }
  .video-sec-bg-video {
    opacity: 0.35;
  }
  .video-sec-overlay {
    background: 
      linear-gradient(180deg, var(--bg-color) 0%, rgba(6, 9, 15, 0.5) 40%, rgba(6, 9, 15, 0.5) 75%, var(--bg-color) 100%);
  }
  .video-info-glass-pane {
    padding: 0;
    max-width: 100%;
  }
}

/* --- DEDICATED LAYOUT SPLITTING SYSTEM --- */
/* Hide mobile layout by default so it never bleeds or duplicates on desktop/initial load */
.mobile-only-layout {
  display: none !important;
}
.desktop-only-layout {
  display: block !important;
}

@media (max-width: 768px) {
  .desktop-only-layout {
    display: none !important;
  }
  .mobile-only-layout {
    display: block !important;
  }
  /* Hide desktop header & language toggle on mobile */
  .header {
    display: none !important;
  }
  body, html {
    overflow-x: hidden;
    scroll-behavior: smooth;
  }
}

/* --- DEDICATED MOBILE VERSION STYLES --- */
.mobile-only-layout {
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-en);
  min-height: 100vh;
  overflow-x: hidden;
}

[lang="ar"] .mobile-only-layout {
  font-family: var(--font-ar) !important;
}

/* --- STANDALONE FLOATING HAMBURGER BUTTON --- */
.m-menu-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: rgba(6, 9, 15, 0.75);
  border: 1px solid rgba(14, 210, 247, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(14, 210, 247, 0.04);
  z-index: 10002;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-menu-toggle:active,
.m-menu-toggle:hover {
  background: rgba(14, 210, 247, 0.12);
  border-color: rgba(14, 210, 247, 0.45);
  box-shadow: 0 6px 25px rgba(14, 210, 247, 0.15), 0 0 0 1px rgba(14, 210, 247, 0.12);
}

.m-menu-toggle .bar {
  width: 18px;
  height: 2px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

/* Hamburger → X transform */
.m-menu-toggle.active .bar-1 {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--accent-cyan);
}
.m-menu-toggle.active .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}
.m-menu-toggle.active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--accent-cyan);
}

/* --- PREMIUM FULLSCREEN OVERLAY DRAWER --- */
/* Fullscreen Overlay Menu Drawer */
.m-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(3, 5, 9, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
}

/* Subtle top cyan glow when open */
.m-menu-drawer::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 210, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.m-menu-drawer.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer Logo */
.m-drawer-logo {
  font-family: var(--font-en-expanded);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 3rem;
  text-align: center;
}

[lang="ar"] .m-drawer-logo {
  font-family: var(--font-ar);
  letter-spacing: 0;
  font-size: 1rem;
}

.m-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  text-align: center;
  width: 100%;
}

.m-drawer-link {
  text-decoration: none;
  font-family: var(--font-en-expanded);
  font-size: 1.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  width: 100%;
  display: block;
}

.m-drawer-link:last-child {
  border-bottom: none;
}

[lang="ar"] .m-drawer-link {
  font-family: var(--font-ar) !important;
  letter-spacing: 0;
  font-size: 1.4rem;
}

.m-drawer-link:active,
.m-drawer-link:hover {
  color: #fff;
  background: rgba(14, 210, 247, 0.04);
}

/* Language toggle INSIDE the drawer */
.m-lang-toggle {
  margin-top: 2.5rem;
  background: rgba(14, 210, 247, 0.06);
  border: 1px solid rgba(14, 210, 247, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.m-lang-toggle:active,
.m-lang-toggle:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}

/* --- MOBILE SECTIONS & EDITORIAL LAYOUT --- */
.m-section {
  padding: 4.5rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-color);
}

.m-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* --- MOBILE HERO (FULL BLEED HERO IMAGE) --- */
.m-hero-sec {
  min-height: 100vh;
  padding: 0 0 4rem 0; /* No top padding, image starts at the absolute top */
  border-bottom: 1px solid var(--border-color);
  position: relative;
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.m-hero-visual {
  width: 100%;
  aspect-ratio: 16 / 11;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* Luxury bottom gradient fade for hero image */
.m-hero-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
  pointer-events: none;
}

.m-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 0 1.5rem; /* Apply grid padding to text content only */
  margin-top: 1.5rem;
}

[lang="ar"] .m-hero-content {
  align-items: flex-end;
  text-align: right;
}

.m-h1 {
  font-family: var(--font-en-expanded);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.m-h2 {
  font-family: var(--font-en-expanded);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.m-p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.8rem;
  font-weight: 300;
}

.m-cta-w {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.8rem;
}

.m-btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--accent-cyan);
  color: #000;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(14, 210, 247, 0.2);
  transition: var(--transition-fast);
}

.m-btn-primary:active {
  transform: translateY(1px);
  background: #fff;
}

.m-btn-video {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.m-btn-video:active {
  background: rgba(14, 210, 247, 0.08);
  border-color: var(--accent-cyan);
}

/* --- MOBILE ABOUT SECTION (EDITORIAL GRID) --- */
.m-about-visual-w {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  background: #000;
}

.m-about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
}

.m-about-content {
  text-align: left;
}

[lang="ar"] .m-about-content {
  text-align: right;
}

.m-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* Remove gaps for seamless listing */
  margin-top: 2rem;
}

/* Elegant borderless achievement items */
.m-stat-card {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 1.2rem 0 1.2rem 1.5rem !important;
  border-left: 2px solid rgba(14, 210, 247, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[lang="ar"] .m-stat-card {
  padding: 1.2rem 1.5rem 1.2rem 0 !important;
  border-left: none !important;
  border-right: 2px solid rgba(14, 210, 247, 0.15) !important;
}

.m-stat-card:last-child {
  border-bottom: none !important;
}

.m-stat-card h4 {
  font-family: var(--font-en-expanded);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

[lang="ar"] .m-stat-card h4 {
  font-family: var(--font-ar) !important;
}

.m-stat-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

/* --- MOBILE GALLERY SECTION (EDITORIAL CATALOG) --- */
.m-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* High-end unboxed catalog items */
.m-gallery-card {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 0 1.8rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 0 !important;
}

.m-gallery-card:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.m-gallery-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.m-gallery-info {
  padding: 1.2rem 0 0 0 !important; /* Elegant frameless spacing */
  text-align: left;
}

[lang="ar"] .m-gallery-info {
  text-align: right;
}

.m-gallery-info h4 {
  font-family: var(--font-en-expanded);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

[lang="ar"] .m-gallery-info h4 {
  font-family: var(--font-ar) !important;
}

.m-gallery-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 300;
}

/* --- MOBILE VIDEO HUB (NETFLIX STYLE) --- */
.m-videos-sec {
  background: radial-gradient(circle at center top, rgba(14, 210, 247, 0.04) 0%, var(--bg-color) 75%);
  text-align: center;
}

.m-video-card {
  background: rgba(13, 20, 32, 0.45);
  border: 1px solid rgba(14, 210, 247, 0.15);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 2.2rem 1.5rem;
}

/* --- MOBILE COURSES (LUXURY TEXTURE) --- */
.m-courses-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.m-course-card {
  background: rgba(13, 20, 32, 0.35);
  border: 1px solid rgba(14, 210, 247, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  text-align: left;
  border-left: 3px solid var(--accent-cyan);
}

[lang="ar"] .m-course-card {
  text-align: right;
  border-left: none;
  border-right: 3px solid var(--accent-cyan);
}

.m-course-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: inline-block;
}

.m-course-card h3 {
  font-family: var(--font-en-expanded);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

[lang="ar"] .m-course-card h3 {
  font-family: var(--font-ar) !important;
}

.m-course-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 300;
}

/* --- MOBILE CONTACT (STRIPE-STYLE MINIMAL INPUTS) --- */
.m-contact-sec {
  text-align: left;
}

[lang="ar"] .m-contact-sec {
  text-align: right;
}

.m-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
}

[lang="ar"] .m-contact-info p {
  text-align: right;
  direction: rtl;
}

.m-contact-form {
  background: rgba(13, 20, 32, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  border-radius: 16px;
  padding: 2rem 1.4rem !important;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.m-form-group {
  width: 100%;
}

/* Stripe-style bottom border only inputs */
.m-form-input, .m-form-textarea {
  width: 100%;
  padding: 0.8rem 0;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-form-input:focus, .m-form-textarea:focus {
  border-bottom-color: var(--accent-cyan) !important;
  box-shadow: none !important;
  outline: none !important;
}

.m-form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Mobile Footer */
.m-footer {
  padding: 3rem 1.5rem;
  background: #04060a;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.m-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ================================================
   MAGAZINE EDITORIAL MOBILE DESIGN — me-* classes
   ================================================ */

/* --- BASE --- */
.me-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.me-h1 {
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 60%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.me-h2 {
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 60%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.me-p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* --- SECTION WRAPPER --- */
.me-section {
  background: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.me-section-head {
  padding: 2.5rem 1.5rem 1rem;
}

.me-section-body {
  padding: 2.5rem 1.5rem 3rem;
}

/* --- 1. HERO --- */
.me-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
}

.me-hero-img-w {
  position: relative;
  width: 100%;
  height: 52dvh; /* Reduced from 62dvh so CTAs/title visible above fold */
  overflow: hidden;
  flex-shrink: 0;
}

.me-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Bottom gradient so text is readable */
.me-hero-img-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(6, 9, 15, 0.5) 65%,
    var(--bg-color) 100%
  );
}

.me-hero-body {
  padding: 1.5rem 1.5rem 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically in remaining space */
}

.me-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Primary CTA */
.me-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: var(--accent-cyan);
  color: #06090f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.me-btn-primary:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* Ghost play button */
.me-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  background: transparent;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.me-btn-ghost:active {
  background: rgba(255,255,255,0.08);
}

/* --- 2. ABOUT --- */
.me-about {
  border-top: 1px solid var(--border-color);
}

.me-portrait-w {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.me-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.me-portrait-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(6, 9, 15, 0.6) 75%,
    var(--bg-color) 100%
  );
}

/* Credential list */
.me-cred-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.me-cred {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.me-cred-dot {
  width: 3px;
  min-height: 100%;
  align-self: stretch;
  background: var(--accent-cyan);
  border-radius: 2px;
  flex-shrink: 0;
}

.me-cred-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.me-cred-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- 3. SURGICAL GUIDE — SWIPE CARDS --- */
.me-guide {
  border-top: 1px solid var(--border-color);
}

.me-guide-hint {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* Horizontal scroll container */
.me-swipe-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.5rem 1.25rem;
  scrollbar-width: none;      /* Firefox */
  cursor: grab;
}
.me-swipe-track::-webkit-scrollbar {
  display: none;              /* Chrome/Safari */
}
.me-swipe-track:active {
  cursor: grabbing;
}

/* Each swipeable card */
.me-guide-card {
  flex: 0 0 80vw;
  max-width: 320px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.me-guide-card:active {
  transform: scale(0.98);
  border-color: var(--accent-cyan);
}

.me-guide-card-img-w {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.me-guide-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.me-guide-card:active .me-guide-card-img {
  transform: scale(1.04);
}

/* Expand icon overlay */
.me-guide-card-overlay {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  background: rgba(6, 9, 15, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(14, 210, 247, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.me-guide-card-body {
  padding: 1rem 1.1rem 1.25rem;
}

.me-guide-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.4rem;
}

.me-guide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.me-guide-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Progress dots */
.me-swipe-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 0 2.5rem;
}

.me-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.25s ease;
}
.me-dot.active {
  background: var(--accent-cyan);
  width: 18px;
  border-radius: 3px;
}

/* --- 4. VIDEO HUB --- */
.me-video {
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-color) 0%, #060d18 100%);
}

.me-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.25rem 0 1.25rem;
  cursor: pointer;
  border: 1px solid rgba(14, 210, 247, 0.2);
  transition: border-color 0.2s, transform 0.2s;
}
.me-video-thumb:active {
  transform: scale(0.98);
  border-color: var(--accent-cyan);
}

.me-video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.me-video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 15, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.me-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #06090f;
  box-shadow: 0 0 0 0 rgba(14, 210, 247, 0.5);
  animation: me-pulse 2s infinite;
  padding-left: 3px;
}

@keyframes me-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14, 210, 247, 0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(14, 210, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 210, 247, 0); }
}

.me-play-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}

/* --- 5. COURSES --- */
.me-courses {
  border-top: 1px solid var(--border-color);
}

.me-course-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.me-course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  transition: border-color 0.2s;
}
.me-course-card:active {
  border-left-color: #fff;
}

.me-course-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  background: rgba(14, 210, 247, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.me-course-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.me-course-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.me-course-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* --- 6. CONTACT --- */
.me-contact {
  border-top: 1px solid var(--border-color);
}

.me-contact-chips {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0 2rem;
}

.me-contact-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: border-color 0.2s;
}
.me-contact-chip:active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.me-contact-chip svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Stripe-style form */
.me-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.me-field {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0;
  transition: border-color 0.2s;
}
.me-field:focus-within {
  border-color: var(--accent-cyan);
}

.me-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-en);
  padding: 0.7rem 0;
  line-height: 1.5;
}

.me-input::placeholder {
  color: var(--text-muted);
}

.me-textarea {
  resize: none;
  min-height: 90px;
}

.me-btn-submit {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem;
  background: var(--accent-cyan);
  color: #06090f;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.me-btn-submit:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* --- FOOTER --- */
.me-footer {
  padding: 2.5rem 1.5rem;
  background: #04060a;
  text-align: center;
  border-top: 1px solid var(--border-color);
}
.me-footer p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* RTL support for me- classes */
[lang="ar"] .me-hero-body,
[lang="ar"] .me-section-head,
[lang="ar"] .me-section-body {
  direction: rtl;
  text-align: right;
}

[lang="ar"] .me-guide-card-overlay {
  right: auto;
  left: 0.7rem;
}

[lang="ar"] .me-cta-row {
  flex-direction: row-reverse;
}

[lang="ar"] .me-input,
[lang="ar"] .me-textarea {
  direction: rtl;
  text-align: right;
  font-family: var(--font-ar) !important;
}
