/* ============================================
   WIDDX - Premium Digital Experience Stylesheet
   ============================================ */

/* ----- CSS Custom Properties / Theming ----- */
:root {
  /* HSL Colors - Light Theme (Ultra-Clean Digital Space) */
  --primary-h: 245;
  --primary-s: 85%;
  --primary-l: 63%;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-dark: hsl(var(--primary-h), var(--primary-s), 53%);
  
  --secondary-h: 272;
  --secondary-s: 88%;
  --secondary-l: 66%;
  --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
  
  --accent-h: 182;
  --accent-s: 90%;
  --accent-l: 50%;
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  
  --bg-primary: hsl(220, 20%, 97%);
  --bg-secondary: hsl(220, 16%, 94%);
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-nav: rgba(245, 246, 250, 0.8);
  --text-primary: hsl(224, 71%, 4%);
  --text-secondary: hsl(220, 16%, 36%);
  --text-muted: hsl(218, 12%, 60%);
  
  --border: rgba(0, 0, 0, 0.06);
  --border-glow: rgba(79, 70, 229, 0.1);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 16px -8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.07);
  --shadow-xl: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
  --shadow-primary: rgba(79, 70, 229, 0.15);
  
  --gradient-bg: linear-gradient(135deg, hsl(220, 20%, 97%) 0%, hsl(220, 16%, 92%) 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-neon: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  
  --hero-overlay: rgba(245, 246, 250, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
  --footer-bg: hsl(224, 71%, 3%);
  --footer-text: hsl(220, 12%, 70%);
  --code-bg: hsl(220, 12%, 92%);
  --success: hsl(150, 84%, 40%);
  --error: hsl(350, 84%, 55%);
  --warning: hsl(40, 90%, 50%);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  --font-arabic: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-english: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Theme - Warm Charcoal (راحة بصرية عالية) */
[data-theme="dark"] {
  --bg-primary: hsl(225, 14%, 13%);
  --bg-secondary: hsl(225, 12%, 17%);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-nav: rgba(28, 30, 42, 0.85);
  --text-primary: hsl(220, 25%, 92%);
  --text-secondary: hsl(220, 15%, 70%);
  --text-muted: hsl(220, 10%, 50%);

  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(124, 58, 237, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-primary: rgba(102, 126, 234, 0.12);

  --gradient-bg: linear-gradient(135deg, hsl(225, 14%, 13%) 0%, hsl(225, 12%, 17%) 100%);
  --hero-overlay: rgba(28, 30, 42, 0.80);
  --glass-bg: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.06);
  --footer-bg: hsl(225, 16%, 9%);
  --footer-text: hsl(220, 12%, 62%);
  --code-bg: hsl(225, 14%, 18%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-arabic);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* Elite Font Configuration by Language */
html[lang="en"] body,
[dir="ltr"] body {
  font-family: var(--font-english);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-neon);
  z-index: 10000;
  box-shadow: 0 1px 12px var(--primary);
  transition: width 0.1s ease;
}

/* Grid overlay Matrix background */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(rgba(124, 58, 237, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}

[data-theme="dark"] .grid-overlay {
  background-image: 
    radial-gradient(rgba(124, 58, 237, 0.055) 1px, transparent 1px);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 {
  letter-spacing: -0.03em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

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

/* High-Tech Animated Mesh Background */
.mesh-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.18) 0px, transparent 40%),
    radial-gradient(at 80% 10%, rgba(124, 58, 237, 0.12) 0px, transparent 40%),
    radial-gradient(at 50% 80%, rgba(186, 104, 200, 0.08) 0px, transparent 40%),
    radial-gradient(at 100% 100%, rgba(0, 229, 255, 0.12) 0px, transparent 40%);
  z-index: -1;
  overflow: hidden;
}

[data-theme="dark"] .mesh-bg {
  background-image: 
    radial-gradient(at 5% 5%, rgba(79, 70, 229, 0.14) 0px, transparent 45%),
    radial-gradient(at 85% 15%, rgba(124, 58, 237, 0.08) 0px, transparent 45%),
    radial-gradient(at 50% 75%, rgba(244, 114, 182, 0.04) 0px, transparent 45%),
    radial-gradient(at 95% 95%, rgba(6, 182, 212, 0.09) 0px, transparent 45%);
}

/* Ambient Moving Blobs inside background */
.mesh-bg::before,
.mesh-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.mesh-bg::before {
  background: var(--primary);
  top: -10%;
  left: 20%;
  animation: drift-glow-1 25s infinite alternate ease-in-out;
}

.mesh-bg::after {
  background: var(--accent);
  bottom: 10%;
  right: 15%;
  animation: drift-glow-2 20s infinite alternate ease-in-out;
}

[data-theme="dark"] .mesh-bg::before { opacity: 0.08; }
[data-theme="dark"] .mesh-bg::after { opacity: 0.06; }

@keyframes drift-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 80px) scale(1.2); }
  100% { transform: translate(-50px, 150px) scale(0.9); }
}

@keyframes drift-glow-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(-120px, -60px) scale(0.8); }
  100% { transform: translate(80px, 80px) scale(1.3); }
}

/* ----- Utility Classes ----- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-bg {
  background: var(--bg-secondary);
  transition: background 0.5s ease;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 20px auto 80px;
  font-weight: 400;
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.45);
  color: #fff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 12px rgba(79, 70, 229, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-outline:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.3);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
  transition: height 0.4s ease;
}

/* Nav Shrink on Scroll handled by modern JS/CSS */
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-glow);
}

.navbar.scrolled .container {
  height: 66px;
}

.navbar-logo {
  font-size: 1.9rem;
  font-weight: 900;
  text-decoration: none;
  margin-inline-end: 45px;
  position: relative;
  display: inline-flex;
  align-items: center;
}
.navbar-logo img { height: 26px; display: block; max-width: 160px; object-fit: contain; }
@media (max-width: 768px) { .navbar-logo img { height: 22px; max-width: 120px; } }
.navbar-logo .logo-for-light { display: none; }
[data-theme="light"] .navbar-logo .logo-for-light { display: block; }
[data-theme="light"] .navbar-logo .logo-for-dark { display: none; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 24px;
}

/* Nav controls (theme + language toggles) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
}

.nav-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.nav-control-btn:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.25);
}

.lang-btn {
  width: auto;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 6px;
}

/* Hamburger */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}
.hamburger:hover { color: var(--primary); }

.hamburger:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding-top: 76px;
  background: var(--gradient-bg); text-align: center;
}
.hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); z-index: 1; }
.hero-bg-animation { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-gradient-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; animation: orbFloat 20s ease-in-out infinite; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle,rgba(79,70,229,0.3),transparent); top:-200px; left:-100px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle,rgba(124,58,237,0.25),transparent); bottom:-150px; right:-100px; animation-delay:-7s; }
@keyframes orbFloat{0%,100%{transform:translate(0,0)scale(1)}25%{transform:translate(50px,-80px)scale(1.1)}50%{transform:translate(-30px,60px)scale(.9)}75%{transform:translate(40px,40px)scale(1.05)}}
.hero-grid {
  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;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}
.hero-shapes { position: absolute; inset: 0; z-index: 0; }
.shape { position: absolute; border: 1px solid rgba(255,255,255,0.06); border-radius: 50%; animation: shapeFloat 30s ease-in-out infinite; }
.shape-1 { width: 80px; height: 80px; border-radius: 16px; top: 15%; left: 8%; background: rgba(79,70,229,0.05); }
.shape-2 { width: 50px; height: 50px; top: 25%; right: 12%; background: rgba(124,58,237,0.06); border-color: rgba(124,58,237,0.1); }
.shape-3 { width: 100px; height: 100px; bottom: 20%; left: 5%; border-color: rgba(6,182,212,0.08); }
.shape-4 { width: 40px; height: 40px; border-radius: 8px; bottom: 35%; right: 20%; background: rgba(245,158,11,0.05); border-color: rgba(245,158,11,0.1); }
.shape-5 { width: 60px; height: 60px; border-radius: 12px; top: 60%; left: 50%; border-color: rgba(255,255,255,0.04); background: rgba(255,255,255,0.02); }
@keyframes shapeFloat { 0%,100%{transform:translateY(0)rotate(0deg);opacity:.4} 25%{transform:translateY(-60px)rotate(90deg);opacity:.8} 50%{transform:translateY(-30px)rotate(180deg);opacity:.5} 75%{transform:translateY(-80px)rotate(270deg);opacity:.7} }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 50px;
  padding: 9px 22px; font-size: 0.85rem; color: var(--primary); font-weight: 700;
  margin-bottom: 32px;
  animation: pulseBorder 3s infinite alternate ease-in-out;
}
@keyframes pulseBorder { 0%{border-color:var(--glass-border)} 100%{border-color:rgba(79,70,229,0.3)} }
.hero-title {
  font-size: 4.2rem; font-weight: 900; line-height: 1.15; margin-bottom: 24px;
  background: var(--gradient-neon); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 40px; max-width: 650px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-glow { animation: btnGlow 3s ease-in-out infinite alternate; }
@keyframes btnGlow { 0%{box-shadow:0 4px 14px rgba(79,70,229,0.25)} 100%{box-shadow:0 4px 24px rgba(79,70,229,0.5),0 0 40px rgba(79,70,229,0.15)} }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(79,70,229,0.05); }

@media (max-width: 1024px) {
  .hero-split { flex-direction: column; gap: 40px; text-align: center; }
  .hero-text-col { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}
@media (max-width: 768px) {
  .hero-line { font-size: 2.6rem; }
  .hero-line-sub { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }
  .cube-wrapper { width: 200px; height: 200px; perspective: 600px; }
  .cube, .cube-face { width: 120px; height: 120px; }
  .cube-face i { font-size: 1.3rem; }
  .front { transform: translateZ(60px); }
  .back { transform: rotateY(180deg) translateZ(60px); }
  .right { transform: rotateY(90deg) translateZ(60px); }
  .left { transform: rotateY(-90deg) translateZ(60px); }
  .top { transform: rotateX(90deg) translateZ(60px); }
  .bottom { transform: rotateX(-90deg) translateZ(60px); }
  @keyframes cubeSpin { from { transform: rotateX(-15deg) rotateY(0deg); } to { transform: rotateX(-15deg) rotateY(360deg); } }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero-bg-animation {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Modern Glowing floating points */
.hero-bg-animation span {
  position: absolute;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 22s infinite linear;
  bottom: -200px;
}

.hero-bg-animation span:nth-child(1) { left: 10%; width: 220px; height: 220px; animation-delay: 0s; animation-duration: 28s; }
.hero-bg-animation span:nth-child(2) { left: 20%; width: 140px; height: 140px; animation-delay: 2s; animation-duration: 20s; }
.hero-bg-animation span:nth-child(3) { left: 35%; width: 180px; height: 180px; animation-delay: 4s; animation-duration: 25s; }
.hero-bg-animation span:nth-child(4) { left: 50%; width: 260px; height: 260px; animation-delay: 0s; animation-duration: 32s; }
.hero-bg-animation span:nth-child(5) { left: 65%; width: 150px; height: 150px; animation-delay: 3s; animation-duration: 22s; }
.hero-bg-animation span:nth-child(6) { left: 75%; width: 190px; height: 190px; animation-delay: 5s; animation-duration: 27s; }
.hero-bg-animation span:nth-child(7) { left: 88%; width: 240px; height: 240px; animation-delay: 7s; animation-duration: 30s; }

@keyframes float {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-1200px) rotate(360deg) scale(1.2); opacity: 0; }
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 9px 22px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
  animation: pulse-border 3s infinite alternate ease-in-out;
}

@keyframes pulse-border {
  0% { border-color: var(--glass-border); box-shadow: var(--shadow-sm); }
  100% { border-color: rgba(79, 70, 229, 0.3); box-shadow: 0 0 12px rgba(79, 70, 229, 0.1); }
}

.hero-title {
  font-size: 4.8rem;
  font-weight: 900;
  margin-bottom: 28px;
  line-height: 1.15;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}

html[lang="en"] .hero-title {
  letter-spacing: -0.06em;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 55px;
  font-weight: 400;
  line-height: 1.75;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats Bar - Stripe Inspired Obsidian Layout */
.stats-bar {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  margin-top: -65px;
  position: relative;
  z-index: 3;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01) 50%, rgba(255,255,255,0.04));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  width: 1px;
  height: 70%;
  background: var(--border);
}

[dir="rtl"] .stat-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 6px;
}

/* ============================================
   SERVICES CARDS (Home Glassmorphism redone)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 55px 40px;
  text-align: center;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 60%, rgba(255,255,255,0.03));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(79, 70, 229, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl), 0 10px 30px rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.35);
}

.service-icon {
  font-size: 2.7rem;
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.1);
  transition: all 0.5s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(3deg);
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ============================================
   WHY US
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 10px 20px rgba(0,0,0,0.02);
  border-color: rgba(79, 70, 229, 0.2);
}

.why-card .why-icon {
  font-size: 1.6rem;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.12);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover .why-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.2);
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 15px;
  left: 30px;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.15;
  font-family: var(--font-english);
  font-weight: 900;
}

[dir="rtl"] .testimonial-card::before {
  left: auto;
  right: 30px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: normal;
  line-height: 1.85;
  margin-bottom: 26px;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2px;
  display: block;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 90px 45px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 20px 40px rgba(79, 70, 229, 0.25);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.12) 0%, transparent 60%), radial-gradient(circle at 80% 80%, rgba(0,229,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  -webkit-text-fill-color: #fff;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 40px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-section .btn {
  background: #fff;
  color: hsl(var(--primary-h), var(--primary-s), 30%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: relative;
}

.cta-section .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  background: hsl(220, 20%, 98%);
  color: var(--primary-dark);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 180px 0 90px;
  text-align: center;
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 22px;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story {
  max-width: 850px;
  margin: 0 auto;
}

.about-story p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.95;
  margin-bottom: 28px;
}

.about-mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mission-card,
.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-md);
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), 0 10px 20px rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.2);
}

.mission-card .icon,
.vision-card .icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--primary);
}

.mission-card h3,
.vision-card h3 {
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.mission-card p,
.vision-card p {
  color: var(--text-secondary);
  line-height: 1.85;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 70, 229, 0.2);
}

.value-icon {
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.12);
  margin-bottom: 22px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover .value-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* Legacy value-number kept for fallback */
.value-number {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  font-family: var(--font-english);
  display: block;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 30px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-md);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 10px 25px rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
  border: 3px solid var(--bg-primary);
}

.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.team-role {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

.team-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================
   SERVICES PAGE (Detailed)
   ============================================ */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-md);
}

.service-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 10px 30px rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
}

.service-detail-card .service-icon {
  font-size: 2.8rem;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-radius: 20px;
  margin-bottom: 26px;
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.1);
  transition: all 0.4s ease;
}

.service-detail-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.25);
}

.service-detail-card h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  line-height: 1.4;
  color: var(--text-primary);
}

.service-detail-card p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 24px;
  font-size: 0.96rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 35px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 15px 30px rgba(0, 0, 0, 0.05);
}

.pricing-card.featured {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(79, 70, 229, 0.15);
  transform: scale(1.03);
  background: rgba(79, 70, 229, 0.015);
}

.pricing-card.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: var(--shadow-xl), 0 15px 40px rgba(79, 70, 229, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  padding: 6px 24px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.pricing-name {
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  font-family: var(--font-english);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  text-align: start;
  margin-bottom: 35px;
  flex-grow: 1;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* FAQ Accordion styling */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.faq-item:hover {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-md), 0 0 15px rgba(79, 70, 229, 0.05);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: var(--secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 28px 24px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.96rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 35px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(79, 70, 229, 0.005);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select {
  background: rgba(255, 255, 255, 0.005);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12), 0 4px 12px rgba(79, 70, 229, 0.05);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666eea' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 20px center;
  padding-left: 45px;
}

[dir="rtl"] .form-select {
  background-position: right 20px center;
  padding-left: 20px;
  padding-right: 45px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

/* Contact Info Cards */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 35px;
  color: var(--text-primary);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

/* Social section in contact page */
.social-section {
  margin-top: 32px;
}

.social-section h4 {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.social-icon:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 120px 0 40px;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.4), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

.footer-brand h3 {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.85;
  opacity: 0.8;
  max-width: 320px;
}

.footer h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  list-style: none;
}

.footer-links li i {
  width: 20px;
  margin-left: 6px;
  color: var(--primary);
  opacity: 0.8;
}

[dir="rtl"] .footer-links li i {
  margin-left: 0;
  margin-right: 6px;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.75;
  text-decoration: none;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateX(-5px);
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 40px;
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.6;
}

.footer-bottom i {
  margin-left: 4px;
}

[dir="rtl"] .footer-bottom i {
  margin-left: 0;
  margin-right: 4px;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.error-code {
  font-size: 11rem;
  font-weight: 900;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.05em;
  font-family: var(--font-english);
  animation: glow-pulse 3s infinite alternate ease-in-out;
}

@keyframes glow-pulse {
  0% { filter: drop-shadow(0 0 5px rgba(79, 70, 229, 0.15)); }
  100% { filter: drop-shadow(0 0 25px rgba(79, 70, 229, 0.35)); }
}

.error-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.error-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1.15rem;
  max-width: 500px;
  line-height: 1.7;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 180px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5);
  color: #fff;
}

[dir="rtl"] .scroll-top {
  right: auto;
  left: 32px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   RTL SPECIFIC OVERRIDES
   ============================================ */
[dir="rtl"] .pricing-features li::before {
  margin-left: 12px;
  margin-right: 0;
}

[dir="rtl"] .feature-list li::before {
  margin-left: 10px;
  margin-right: 0;
}

[dir="rtl"] .form-select {
  background-position: right 20px center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .services-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1.05rem;
    margin-bottom: 50px;
  }

  .hamburger {
    display: flex;
  }

  .navbar-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-glow);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
  }

  .navbar-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-controls {
    margin-left: auto;
    margin-right: 15px;
  }
  
  [dir="rtl"] .nav-controls {
    margin-right: auto;
    margin-left: 15px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
    margin-bottom: 40px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 20px;
    margin-top: -45px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .cta-section {
    padding: 60px 30px;
    margin: 0 16px;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer {
    padding: 80px 0 30px;
  }

  .page-hero {
    padding: 140px 0 60px;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .service-detail-card {
    padding: 35px 25px;
  }

  .contact-form,
  .contact-info-card {
    padding: 35px 25px;
  }

  .scroll-top {
    bottom: 80px;
    right: 24px;
    width: 44px;
    height: 44px;
  }

  [dir="rtl"] .scroll-top {
    right: auto;
    left: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 35px 20px;
  }
  
  .stat-item:not(:last-child)::after {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .error-code {
    font-size: 7rem;
  }
}

/* ============================================
   NEW COMPONENTS: WHATSAPP & SOCIAL
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 35px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: whatsapp-pulse 2s infinite alternate ease-in-out;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
  100% { transform: scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  color: #fff;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.7);
  animation: none;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 28px;
}

.footer-social {
  margin-top: 25px;
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.social-icon:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-3px);
  border-color: transparent;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 28px;
    bottom: 20px;
    right: 20px;
  }
  [dir="rtl"] .whatsapp-float {
    right: auto;
    left: 20px;
  }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.widdx-toast span {
  display: inline-block;
  margin-inline-end: 8px;
  font-weight: 700;
}

/* Hero mobile responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 1rem; padding: 0 10px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero .btn, .btn-outline { width: 100%; max-width: 300px; justify-content: center; }
  .shape { display: none; }
  .orb-1, .orb-2 { width: 300px; height: 300px; }
}
