/* ==========================================================================
   MOHAMED SAAD TAHA — EXECUTIVE PLATFORM DESIGN SYSTEM
   Dark Slate, Cinematic Gold & Electric Cyan Design Language
   Full Native LTR & RTL (Arabic) Support
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Inter:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #060913;
  --bg-secondary: #0c1222;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.35);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --cyan-primary: #0ea5e9;
  --cyan-light: #38bdf8;
  --cyan-dark: #0284c7;
  --cyan-glow: rgba(14, 165, 233, 0.25);
  
  --gold-primary: #d97706;
  --gold-light: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.2);
  
  --font-latin: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Cinzel', serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-latin);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"] {
  font-family: var(--font-arabic);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #0f172a 0%, #060913 70%);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060913;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-dark);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Glassmorphism Surface */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px -10px var(--cyan-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-primary), #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan-light);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #060913;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 9, 19, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.15);
  color: var(--cyan-light);
  border: 1px solid rgba(14, 165, 233, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* ==========================================================================
   FULLSCREEN 360° IMMERSIVE ORBIT BACKGROUND
   ========================================================================== */
#orbit-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#orbit-video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Cinematic Atmospheric Overlays for Crystal-Clear Text Legibility */
.orbit-backdrop-vignette {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 45%, rgba(6, 9, 19, 0.25) 0%, rgba(6, 9, 19, 0.72) 65%, rgba(6, 9, 19, 0.95) 100%),
    linear-gradient(to bottom, rgba(6, 9, 19, 0.85) 0%, rgba(6, 9, 19, 0.3) 30%, rgba(6, 9, 19, 0.5) 70%, rgba(6, 9, 19, 0.96) 100%);
  pointer-events: none;
}

/* Floating Orbit Telemetry HUD (Bottom Right Pill) */
.orbit-hud-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--cyan-glow);
  pointer-events: auto;
}

html[dir="rtl"] .orbit-hud-floating {
  right: auto;
  left: 2rem;
}

/* Main Content Floating Layer (Above Background) */
.main-content-layer {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Fullscreen Hero Section */
.orbit-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  margin-bottom: 1.5rem;
}

html[dir="rtl"] .hero-tagline {
  font-family: var(--font-arabic);
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #e2e8f0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Enhanced Glassmorphism Panels Floating Above 360 Canvas */
.glass-panel {
  background: rgba(10, 15, 29, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--cyan-light);
  box-shadow: 0 20px 50px -10px var(--cyan-glow);
}


.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

html[dir="rtl"] .hero-tagline {
  font-family: var(--font-arabic);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Proven Impact Metric Strip */
.metrics-strip {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 18, 34, 0.4);
}

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

.metric-card {
  text-align: center;
  padding: 1.5rem;
}

.metric-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-feature-settings: "tnum";
}

.metric-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Triple-Pillar Convergence Matrix */
.pillars-section {
  padding: 6rem 0;
}

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

.pillar-card {
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-light);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.pillar-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pillar-tag {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* Services Page & Grids */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-features {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-features li::before {
  content: "✓";
  color: var(--cyan-light);
  font-weight: 800;
}

/* Case Studies Cards */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.case-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(14, 165, 233, 0.15);
  color: var(--cyan-light);
  border: 1px solid rgba(14, 165, 233, 0.25);
  margin-bottom: 1rem;
}

.case-role-meta {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.case-impact-box {
  background: rgba(6, 9, 19, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

/* The Book Showcase */
.book-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

@media (max-width: 900px) {
  .book-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.book-mockup-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.book-3d {
  width: 280px;
  height: 400px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 6px 18px 18px 6px;
  box-shadow: -15px 20px 40px rgba(0, 0, 0, 0.8), 0 0 35px var(--gold-glow);
  transform: rotateY(-20deg) rotateX(10deg);
  transition: transform 0.4s ease;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.book-3d:hover {
  transform: rotateY(-10deg) rotateX(5deg) translateY(-8px);
}

/* RTL Support Tweaks */
html[dir="rtl"] .book-3d {
  transform: rotateY(20deg) rotateX(10deg);
  text-align: right;
  border-radius: 18px 6px 6px 18px;
}

html[dir="rtl"] .book-3d:hover {
  transform: rotateY(10deg) rotateX(5deg) translateY(-8px);
}

/* Filmmaking Showcase */
.video-theater {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  margin-bottom: 2rem;
}

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

/* Digital Products Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan-light);
  margin: 1rem 0;
}

/* Insights / Blog */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.insight-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

/* Contact & Booking */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan-light);
  box-shadow: 0 0 15px var(--cyan-glow);
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  padding: 4rem 0 2rem;
  background: #04060d;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Mobile Responsive */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #060913;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
  }
  .nav-links.open {
    display: flex;
  }
}
