/* ==========================================================================
   TAMOOH DIGITAL PLATFORM - AWWWARDS MASTERPIECE DESIGN SYSTEM
   Dark Luxury Aesthetics | Ultra-Fluid Motion | 60FPS Glassmorphism
   Platform Colors Enhanced: Neon Cyan (#00f2fe) + Emerald Teal (#00e5c9) + Violet (#7000ff)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700;800;900&family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  /* Core Luxury Dark Palette */
  --bg-deep: #050505;
  --bg-surface-1: #090a10;
  --bg-surface-2: #0e111a;
  --bg-surface-3: #141824;
  --bg-glass: rgba(14, 17, 26, 0.65);
  --bg-glass-card: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  /* Enhanced Platform Brand Colors */
  --tamooh-cyan-base: #00bcd4;
  --neon-cyan: #00f2fe;
  --neon-cyan-glow: rgba(0, 242, 254, 0.45);
  
  --tamooh-teal-base: #009688;
  --neon-teal: #00e5c9;
  --neon-teal-glow: rgba(0, 229, 201, 0.4);

  --neon-purple: #7000ff;
  --neon-purple-glow: rgba(112, 0, 255, 0.55);
  --neon-violet: #8b5cf6;
  --neon-magenta: #d946ef;

  /* Text Colors */
  --text-pure: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-subtle: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.25);

  /* Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.25);
  --border-purple-glow: rgba(112, 0, 255, 0.35);

  /* Gradients */
  --gradient-tamooh: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-teal) 50%, var(--neon-purple) 100%);
  --gradient-neon-shift: linear-gradient(90deg, #00f2fe, #00e5c9, #7000ff, #00f2fe);
  --gradient-purple-cyan: linear-gradient(135deg, #00f2fe 0%, #7000ff 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(0, 242, 254, 0.4) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(112, 0, 255, 0.4) 100%);

  /* Typography */
  --font-arabic-heading: 'Tajawal', sans-serif;
  --font-arabic-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-latin: 'Outfit', sans-serif;

  /* Fluid Clamp Sizing */
  --text-hero: clamp(2.8rem, 7.5vw, 6.2rem);
  --text-h1: clamp(2.2rem, 5vw, 4.2rem);
  --text-h2: clamp(1.8rem, 3.8vw, 3rem);
  --text-h3: clamp(1.25rem, 2.2vw, 1.85rem);
  --text-body: clamp(0.95rem, 1.1vw, 1.15rem);

  /* Transitions & Animation Eases */
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Layers */
  --z-noise: 1;
  --z-ambient: 2;
  --z-content: 10;
  --z-header: 1000;
  --z-cursor: 99999;
  --z-modal: 9999;
}

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

html {
  font-family: var(--font-arabic-body);
  background-color: var(--bg-deep);
  color: var(--text-pure);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-pure);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Custom Selection Highlight */
::selection {
  background: var(--neon-cyan);
  color: #000;
}

/* ==========================================================================
   Noise Texture & Ambient Glow Mesh
   ========================================================================== */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: var(--z-noise);
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: var(--z-ambient);
  overflow: hidden;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  will-change: transform;
}

.orb-cyan {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--neon-cyan) 0%, rgba(0, 188, 212, 0) 70%);
  top: -150px;
  right: -100px;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-purple {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, var(--neon-purple) 0%, rgba(112, 0, 255, 0) 70%);
  bottom: 10%;
  left: -150px;
  animation: floatOrb 26s ease-in-out infinite alternate-reverse;
}

.orb-teal {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--neon-teal) 0%, rgba(0, 150, 136, 0) 70%);
  top: 45%;
  right: 25%;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.12); }
  100% { transform: translate(-40px, -50px) scale(0.92); }
}

/* ==========================================================================
   Custom Liquid Mouse Cursor (Dual-Layer)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, input, textarea, select, [role="button"], .clickable {
    cursor: none !important;
  }
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 0 10px var(--neon-cyan);
  display: none;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(0, 242, 254, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: calc(var(--z-cursor) - 1);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-elastic),
              height 0.35s var(--ease-elastic),
              border-color 0.3s ease,
              background-color 0.3s ease,
              transform 0.15s ease-out;
  display: none;
  backdrop-filter: blur(1px);
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: block;
  }
}

/* Cursor Hover States */
.cursor-hover .custom-cursor-ring {
  width: 68px;
  height: 68px;
  border-color: var(--neon-purple);
  background-color: rgba(112, 0, 255, 0.12);
  box-shadow: 0 0 25px rgba(112, 0, 255, 0.3);
}

.cursor-hover .custom-cursor-dot {
  transform: translate(-50%, -50%) scale(1.6);
  background: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple);
}

.cursor-click .custom-cursor-ring {
  transform: translate(-50%, -50%) scale(0.85);
  border-color: var(--neon-teal);
}

/* ==========================================================================
   Smart Auto-Hide Navbar
   ========================================================================== */
.awwwards-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  padding: 1.5rem 0;
  transition: transform 0.45s var(--ease-cinematic),
              background 0.4s ease,
              padding 0.4s ease,
              border-color 0.4s ease;
  will-change: transform;
}

.awwwards-navbar.nav-hidden {
  transform: translateY(-110%);
}

.awwwards-navbar.nav-visible {
  transform: translateY(0);
}

.awwwards-navbar.scrolled {
  padding: 0.85rem 0;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-pure);
}

.brand-icon-box {
  position: relative;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(112, 0, 255, 0.25) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--neon-cyan);
  transition: all 0.4s var(--ease-elastic);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.brand-logo:hover .brand-icon-box {
  transform: rotate(12deg) scale(1.08);
  border-color: var(--neon-purple);
  box-shadow: 0 0 30px rgba(112, 0, 255, 0.4);
  color: #fff;
}

.brand-title {
  font-family: var(--font-arabic-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff 0%, var(--neon-cyan) 60%, var(--neon-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  background: rgba(112, 0, 255, 0.2);
  border: 1px solid rgba(112, 0, 255, 0.4);
  color: #c084fc;
  border-radius: 999px;
  margin-right: 0.4rem;
  letter-spacing: 0.5px;
}

/* Nav Links Desktop */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.nav-link-pill {
  position: relative;
  display: inline-block;
  padding: 0.6rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.nav-link-pill:hover,
.nav-link-pill.active {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-pill.active {
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

/* Nav Actions */
.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  display: none;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: #fff;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

@media (max-width: 992px) {
  .nav-links-desktop {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
}

/* ==========================================================================
   Pill Buttons & Magnetic CTA Elements
   ========================================================================== */
.btn-magnetic-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.1rem 2.5rem;
  border-radius: 9999px;
  font-family: var(--font-arabic-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.4s var(--ease-cinematic);
  will-change: transform;
  overflow: hidden;
  z-index: 1;
}

/* Primary Neon Cyan / Teal Pill */
.btn-magnetic-pill.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-teal) 100%);
  color: #050508;
  box-shadow: 0 0 35px -5px var(--neon-cyan-glow);
}

.btn-magnetic-pill.btn-primary:hover {
  box-shadow: 0 0 50px 5px var(--neon-cyan-glow);
  transform: translateY(-3px) scale(1.02);
}

/* Secondary Glassmorphic Pill */
.btn-magnetic-pill.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-magnetic-pill.btn-glass:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--neon-purple);
  box-shadow: 0 0 30px rgba(112, 0, 255, 0.25);
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
}

/* Pulse Glow Keyframe */
@keyframes pulseGlowRing {
  0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(0, 242, 254, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.btn-pulse {
  animation: pulseGlowRing 3s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* Pill Icon */
.btn-magnetic-pill i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-magnetic-pill:hover i {
  transform: translateX(-4px);
}

/* ==========================================================================
   Awwwards Hero Section
   ========================================================================== */
.awwwards-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 5rem;
  z-index: var(--z-content);
  overflow: hidden;
}

.hero-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--neon-cyan);
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
}

.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-super-title {
  font-family: var(--font-arabic-heading);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
  max-width: 1100px;
}

.stagger-word {
  display: inline-block;
  will-change: transform, opacity;
}

.text-gradient-hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 50%, var(--neon-teal) 80%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 35px rgba(0, 242, 254, 0.25));
}

.hero-subtitle {
  font-size: var(--text-body);
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 3.2rem;
  font-weight: 400;
  line-height: 1.85;
}

.hero-cta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

/* Hero Metric Badges */
.hero-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding: 1.8rem 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  backdrop-filter: blur(20px);
}

.metric-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.metric-number {
  font-family: var(--font-latin);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

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

.metric-divider {
  width: 1px;
  height: 45px;
  background: var(--border-subtle);
}

@media (max-width: 768px) {
  .metric-divider {
    display: none;
  }
  .hero-metrics-strip {
    gap: 2rem;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Awwwards Services Section - The Pinnacle of Motion Design
   ========================================================================== */
.awwwards-services-section {
  position: relative;
  padding: 8rem 2rem 10rem;
  z-index: var(--z-content);
  overflow: hidden;
}

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

.section-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background: rgba(112, 0, 255, 0.12);
  border: 1px solid rgba(112, 0, 255, 0.35);
  color: #c084fc;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(112, 0, 255, 0.2);
}

/* The Scroll-Driven Dynamic Color Shifting Title */
.scroll-gradient-title {
  font-family: var(--font-arabic-heading);
  font-size: var(--text-h1);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  
  /* ScrollTrigger updates background position and colors dynamically */
  background: linear-gradient(90deg, #00f2fe 0%, #00e5c9 30%, #7000ff 70%, #d946ef 100%);
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.3s ease;
  will-change: background-position;
}

.section-desc-text {
  font-size: var(--text-body);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* View Mode Switcher (Grid vs Horizontal Showcase) */
.view-switcher-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  margin-bottom: 2rem;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-arabic-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(112, 0, 255, 0.25) 100%);
  color: #fff;
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   3D Tilt Glass Cards Grid
   ========================================================================== */
.services-cards-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  perspective: 1500px; /* Crucial for realistic 3D perspective */
}

@media (max-width: 1100px) {
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* The 3D Tilt Card Component */
.service-tilt-card {
  position: relative;
  background: rgba(14, 17, 26, 0.45);
  border-radius: 30px;
  padding: 3rem 2.2rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
}

/* Mouse-Tracking Radial Spotlight / Flashlight inside Card */
.service-tilt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(112, 0, 255, 0.18),
    rgba(0, 242, 254, 0.08) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.service-tilt-card:hover::before {
  opacity: 1;
}

/* Highlighting Border Glow on Hover */
.service-tilt-card:hover {
  border-color: rgba(112, 0, 255, 0.6);
  box-shadow: 0 20px 50px -10px rgba(112, 0, 255, 0.35),
              0 0 35px -5px rgba(0, 242, 254, 0.25),
              inset 0 0 20px rgba(112, 0, 255, 0.1);
}

/* Parallax Depth: Pop elements out on the Z-axis */
.card-content-z {
  position: relative;
  z-index: 2;
  transform: translateZ(40px);
  transform-style: preserve-3d;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.card-icon-sphere {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(112, 0, 255, 0.22) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--neon-cyan);
  transition: all 0.4s var(--ease-elastic);
  transform: translateZ(30px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.service-tilt-card:hover .card-icon-sphere {
  transform: translateZ(50px) scale(1.12) rotate(-8deg);
  border-color: var(--neon-purple);
  color: #ffffff;
  box-shadow: 0 0 35px var(--neon-purple-glow);
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.4) 0%, rgba(0, 242, 254, 0.3) 100%);
}

.card-service-num {
  font-family: var(--font-latin);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1px;
  transform: translateZ(20px);
  transition: color 0.3s ease;
}

.service-tilt-card:hover .card-service-num {
  color: var(--neon-purple);
}

.card-title {
  font-family: var(--font-arabic-heading);
  font-size: var(--text-h3);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.35;
  transform: translateZ(35px);
  transition: color 0.3s ease;
}

.service-tilt-card:hover .card-title {
  color: #ffffff;
}

.card-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  transform: translateZ(25px);
}

/* Card Bottom Link with Smooth Sliding Arrow */
.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateZ(30px);
}

.action-link-text {
  font-family: var(--font-arabic-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-cyan);
  transition: color 0.3s ease;
}

.service-tilt-card:hover .action-link-text {
  color: #c084fc;
}

/* Interactive Floating Arrow */
.card-arrow-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 1.1rem;
  transition: all 0.4s var(--ease-elastic);
  transform: translateZ(25px);
}

.service-tilt-card:hover .card-arrow-circle {
  background: var(--neon-purple);
  border-color: var(--neon-purple);
  color: #ffffff;
  transform: translateZ(45px) translateX(-8px) scale(1.15);
  box-shadow: 0 0 25px var(--neon-purple-glow);
}

/* ==========================================================================
   Horizontal Scroll Showcase (Pin-based GSAP ScrollTrigger)
   ========================================================================== */
.horizontal-scroll-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: none; /* Active when switched */
}

.horizontal-scroll-section.active {
  display: block;
}

.horizontal-track-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.horizontal-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 5vw;
  will-change: transform;
}

.horizontal-card-item {
  width: 440px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .horizontal-card-item {
    width: 320px;
  }
}

/* ==========================================================================
   Cinematic Full-Screen Mobile Menu
   ========================================================================== */
.fullscreen-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.5rem 4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-cinematic), visibility 0.5s;
}

.fullscreen-mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

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

.close-menu-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-menu-btn:hover {
  background: var(--neon-purple);
  border-color: var(--neon-purple);
  transform: rotate(90deg);
}

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

.mobile-link-item {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s var(--ease-cinematic), opacity 0.4s;
}

.fullscreen-mobile-menu.open .mobile-link-item {
  transform: translateY(0);
  opacity: 1;
}

.mobile-link-item a {
  font-family: var(--font-arabic-heading);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.mobile-link-item a:hover {
  color: var(--neon-cyan);
}

.mobile-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Footer Luxury Aesthetics
   ========================================================================== */
.awwwards-footer {
  position: relative;
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: 6rem 2rem 3rem;
  z-index: var(--z-content);
}

.footer-inner-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

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

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

.footer-col h4 {
  font-family: var(--font-arabic-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

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

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-links-col a:hover {
  color: var(--neon-cyan);
  padding-right: 5px;
}

.footer-bottom-bar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Light Mode Theme Adaptation for 3D Services & Cards
   ========================================================================== */
html[data-theme="light"] body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html[data-theme="light"] .section-desc-text {
  color: #334155 !important;
}

html[data-theme="light"] .section-tag-pill {
  background: rgba(0, 188, 212, 0.1) !important;
  border: 1px solid rgba(0, 188, 212, 0.3) !important;
  color: #00838f !important;
}

html[data-theme="light"] .view-switcher-container {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .view-btn {
  color: #334155 !important;
}

html[data-theme="light"] .view-btn:hover {
  color: #0f172a !important;
}

html[data-theme="light"] .view-btn.active {
  background: linear-gradient(135deg, #00bcd4 0%, #009688 100%) !important;
  color: #ffffff !important;
  border: 1px solid #00bcd4 !important;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .view-btn.active * {
  color: #ffffff !important;
}

html[data-theme="light"] .service-tilt-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .service-tilt-card .card-title,
html[data-theme="light"] .card-title {
  color: #0f172a !important;
}

html[data-theme="light"] .service-tilt-card .card-desc,
html[data-theme="light"] .card-desc {
  color: #334155 !important;
}

html[data-theme="light"] .service-tilt-card .card-service-num {
  color: #94a3b8 !important;
}

html[data-theme="light"] .service-tilt-card .card-action-bar {
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .service-tilt-card .action-link-text {
  color: #00838f !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .service-tilt-card .card-arrow-circle {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .service-tilt-card:hover .card-arrow-circle {
  background: #00bcd4 !important;
  border-color: #00bcd4 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .service-tilt-card .card-icon-sphere {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.12) 0%, rgba(112, 0, 255, 0.15) 100%) !important;
  border: 1px solid rgba(0, 188, 212, 0.3) !important;
  color: #00838f !important;
}
