:root {
  /* Brand Colors */
  --fielse-blue: #395FFF;
  --fielse-blue-dark: #0A2B7A;
  --fielse-blue-deep: #061849;
  --fielse-blue-glow: #4D8AFF;
  --fielse-cyan: #00D4FF;
  --fielse-accent: #FFD93D;

  /* Neutrals */
  --black: #000000;
  --night: #0A0E1F;
  --charcoal: #14182B;
  --gray-700: #2A2F45;
  --gray-500: #6B7280;
  --gray-300: #C5CCD9;
  --white: #FFFFFF;
  --off-white: #F5F7FB;

  --font-display: 'Satoshi', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Satoshi', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Tajawal', 'Manrope', sans-serif;

  /* Layout */
  --max-width: 1280px;
  --section-padding: clamp(60px, 10vw, 140px);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] {
  --font-display: 'Tajawal', 'Manrope', sans-serif;
  --font-body: 'Tajawal', 'Manrope', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: #000000;
  color: var(--white);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}
body.page-home {
  background: linear-gradient(135deg, #061849 0%, #000000 35%, #000000 70%, #1E5FFF 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ==========================================================================
   Loading State
   ========================================================================== */
body.loading main {
  opacity: 0;
}

main {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   Header - Transparent over hero, blurs on scroll
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(10, 14, 31, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo svg {
    height: 45px;
    width: auto;
    padding-bottom: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: -6px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-300);
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fielse-blue);
  transition: width 0.3s var(--ease-out);
}

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

.header-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  color: #000000;
  font-weight:600;
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
  font-size:16px;
}

.pill:hover {
  background: #acacac;
}

.pill svg {
  width: 12px;
  height: 12px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 24px clamp(60px, 8vw, 100px);
  background: transparent;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 40ch;
  margin: 50px auto;
  background: linear-gradient(180deg, #FFFFFF 0%, #C5DAFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0 auto 0;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
}

/* ==========================================================================
   Showcase (Infinite Marquee Course Posters) - Image only, endless scroll
   ========================================================================== */
.showcase {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
  background: transparent;
  margin-top: -1px;
  overflow: hidden;
}

.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  margin-bottom: 24px;
  /* Edge fade mask — hint that catalog continues forever */
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee:last-child {
  margin-bottom: 0;
}

.marquee-track {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  padding-right: 20px;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}

[dir="rtl"] .marquee-track {
  padding-right: 0;
  padding-left: 20px;
}

/* Second row scrolls in the opposite direction for organic rhythm */
.marquee--reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 75s;
}

/* Pause on hover so users can study a poster */
.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

[dir="rtl"] .marquee-track {
  animation-name: marquee-scroll-rtl;
}

@keyframes marquee-scroll-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.poster {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 320px);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  cursor: pointer;
}

.poster:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 24px 60px rgba(30, 95, 255, 0.45);
  border-color: rgba(77, 138, 255, 0.5);
  z-index: 2;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.poster:hover img {
  transform: scale(1.05);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .marquee::-webkit-scrollbar {
    display: none;
  }
}

/* ==========================================================================
   Manifesto Section
   ========================================================================== */
.manifesto {
  padding: clamp(80px, 10vw, 140px) 24px;
  text-align: center;
  background: transparent;
  position: relative;
}

.manifesto-inner {
  max-width: 780px;
  margin: 0 auto;
}

.manifesto-title {
  font-size: clamp(32px, 5vw, 78px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.manifesto-body {
  font-size: clamp(16px, 1.8vw, 28px);
  color: var(--gray-300);
  line-height: 1.7;
}


/* ==========================================================================
   Pillars Section
   ========================================================================== */
  padding: clamp(60px, 8vw, 100px) 24px clamp(80px, 10vw, 140px);
  background: transparent;
  position: relative;
}

.pillars::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 138, 255, 0.4), transparent);
}

.pillars-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.pillars-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.pillar {
  position: relative;
  padding: 36px 28px;
  background: linear-gradient(180deg, rgba(30, 95, 255, 0.08) 0%, rgba(30, 95, 255, 0.02) 100%);
  border: 1px solid rgba(77, 138, 255, 0.15);
  border-radius: 16px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
  overflow: hidden;
  text-align: center;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fielse-blue-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 138, 255, 0.4);
  background: linear-gradient(180deg, rgba(30, 95, 255, 0.15) 0%, rgba(30, 95, 255, 0.04) 100%);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #09121e4a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 8px 24px rgba(30, 95, 255, 0.35);
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.pillar-body {
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.65;
}

/* ==========================================================================
   Vision Section
   ========================================================================== */
.vision {
  padding: clamp(80px, 10vw, 140px) 24px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.vision::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 138, 255, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vision-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.vision-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fielse-cyan);
  margin-bottom: 24px;
  padding: 6px 16px;
  border-radius: 999px;
}

.vision-title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.vision-body {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--gray-300);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
  padding: clamp(60px, 8vw, 100px) 24px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.stats-title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  text-align: center;
  color: var(--gray-300);
  margin-bottom: 48px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--white) 0%, var(--fielse-blue-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  padding: clamp(80px, 10vw, 140px) 24px;
  background: transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-body {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--gray-300);
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--fielse-blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(30, 95, 255, 0.4);
}

.btn-primary:hover {
  background: var(--fielse-blue-glow);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(30, 95, 255, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 48px 24px 32px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.footer-logo svg {
  height: 24px;
  width: auto;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
  font-size: 12px;
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: var(--fielse-blue);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: var(--gray-300);
}

.footer-social a:hover svg {
  fill: var(--white);
}

/* ==========================================================================
   Language Dropdown
   ========================================================================== */
.lang-dropdown {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 140px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease-out);
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  color: var(--gray-300);
  border-radius: 4px;
  font-weight: 500;
}

[dir="rtl"] .lang-menu button {
  text-align: right;
}

.lang-menu button:hover {
  background: var(--fielse-blue);
  color: var(--white);
}

.lang-menu button.active {
  color: var(--fielse-blue-glow);
  font-weight: 600;
}

/* ==========================================================================
   Animations - Fade in on scroll
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero animations on load */
.hero-title,
.hero-subtitle {
  opacity: 0;
  animation: heroFadeIn 0.9s var(--ease-out) forwards;
}

.hero-subtitle {
  animation-delay: 0.15s;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .pill span.long {
    display: none;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 14px 16px;
  }

  .hero {
    padding: 80px 16px 60px;
  }

  .poster {
    width: 200px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Mobile menu open state */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--night);
  z-index: 200;
  padding: 80px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  overflow-y: auto;
}

[dir="rtl"] .mobile-menu {
  transform: translateX(-100%);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu nav a {
  padding: 16px 0;
  font-size: 22px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  font-size: 28px;
  color: var(--white);
}

[dir="rtl"] .mobile-close {
  right: auto;
  left: 24px;
}
.purpose {
  padding: clamp(50px, 8vw, 90px) 24px;
  background: transparent;
}

.purpose-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vw, 140px);
}

.purpose-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.purpose-row__icon img {
  width: 100%;
  height: auto;
  max-width: 200px;
}

.purpose-row__kicker {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fielse-cyan);
  margin-bottom: 16px;
}

.purpose-row__title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.purpose-row__body {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.72;
  color: var(--gray-300);
  max-width: 50ch;
}
@media (max-width: 700px) {
  .purpose-row {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: start;
  }
  .purpose-row__icon img { max-width: 130px; }
  .purpose-inner { gap: 68px; }
}