/* ==========================================================================
   صناع الذكاء الرقمي (MID) - Flagship Enterprise Design System
   Ultra-Modern AI & Enterprise Software Showcase
   WCAG 2.1/2.2 AA Compliant | 100% Responsive | Luxury Animations
   ========================================================================== */

:root {
  /* Brand Palette (Dynamic API Overrides) */
  --primary: #0284c7;
  --primary-light: #38bdf8;
  --primary-dark: #0369a1;
  --secondary: #6366f1;
  --secondary-light: #818cf8;
  --secondary-dark: #4f46e5;
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-dark: #059669;
  
  /* Deep Luxury Tech Dark Theme (Default) */
  --bg-main: #030712;
  --bg-surface: #070c18;
  --bg-card: rgba(11, 18, 36, 0.78);
  --bg-card-hover: rgba(18, 28, 54, 0.92);
  --bg-glass: rgba(7, 12, 24, 0.88);
  --border-color: rgba(56, 189, 248, 0.16);
  --border-glow: rgba(56, 189, 248, 0.45);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gradient-title: linear-gradient(135deg, #ffffff 15%, #38bdf8 65%, #818cf8 100%);
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-border: rgba(255, 255, 255, 0.12);

  --font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --font-scale: 1rem;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 40px rgba(2, 132, 199, 0.28);
  --shadow-card: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

/* Radiant High-End Platinum Light Mode */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --border-color: rgba(2, 132, 199, 0.14);
  --border-glow: rgba(2, 132, 199, 0.38);
  
  --text-main: #090d16;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  /* High contrast brand text in light mode */
  --primary: #0284c7;
  --primary-light: #0369a1;
  --secondary: #4f46e5;
  --secondary-light: #3730a3;
  --accent: #059669;
  --accent-light: #047857;

  --gradient-title: linear-gradient(135deg, #090d16 15%, #0284c7 60%, #4338ca 100%);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;

  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.16);
  --shadow-card: 0 15px 35px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.08);
}

/* High-Contrast Accessibility Mode */
[data-contrast="high"] {
  --bg-main: #000000 !important;
  --bg-surface: #0a0a0a !important;
  --bg-card: #000000 !important;
  --border-color: #ffffff !important;
  --border-glow: #00ffff !important;
  --text-main: #ffffff !important;
  --text-muted: #ffff55 !important;
  --text-dim: #cccccc !important;
  --primary: #00e5ff !important;
  --primary-light: #00ffff !important;
  --secondary: #ffff00 !important;
  --accent: #00ff66 !important;
  --gradient-title: none !important;
  --input-bg: #000000 !important;
  --input-border: #ffffff !important;
}

[data-contrast="high"] * {
  color: #ffffff !important;
  background-color: transparent;
}

[data-contrast="high"] body,
[data-contrast="high"] .site-header,
[data-contrast="high"] .card,
[data-contrast="high"] .service-card,
[data-contrast="high"] .portfolio-card,
[data-contrast="high"] .blog-card,
[data-contrast="high"] .stat-box,
[data-contrast="high"] .contact-info-panel,
[data-contrast="high"] .contact-form-panel,
[data-contrast="high"] .modal-box {
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

[data-contrast="high"] .btn-primary {
  background-color: #00ffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

/* Reduced Motion Mode */
[data-reduced-motion="true"] *,
[data-reduced-motion="true"] *::before,
[data-reduced-motion="true"] *::after {
  animation: none !important;
  transition: none !important;
}

/* Dyslexic-Friendly Font Mode */
[data-dyslexic="true"] {
  font-family: Arial, Tahoma, Verdana, sans-serif !important;
  letter-spacing: 0.06em !important;
  word-spacing: 0.12em !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-scale);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
}

[data-theme="light"] body {
  background-image: radial-gradient(rgba(2, 132, 199, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

/* WCAG Accessible Focus Ring */
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 4px;
}

/* ================= 0. HIGH-TECH PRELOADER ANIMATION ================= */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0a1124 0%, #030610 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s ease;
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  max-width: 440px;
  width: 90%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.preloader-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 0 15px rgba(2, 132, 199, 0.6));
  animation: preloaderPulse 2.5s infinite ease-in-out;
}

.preloader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #0284c7;
  border-right-color: #6366f1;
  border-bottom-color: #10b981;
  animation: preloaderSpin 1.4s linear infinite;
}

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

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(2, 132, 199, 0.6)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.9)); }
}

.preloader-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 20%, #38bdf8 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 3px;
  margin-bottom: 2rem;
}

.preloader-progress-track {
  width: 100%;
  max-width: 280px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.preloader-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #6366f1, #10b981);
  border-radius: 999px;
  position: absolute;
  left: -100%;
  animation: preloaderSweep 1.8s infinite ease-in-out;
}

@keyframes preloaderSweep {
  0% { left: -100%; width: 30%; }
  50% { left: 20%; width: 70%; }
  100% { left: 100%; width: 30%; }
}

.preloader-status {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  z-index: 10000;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 20px;
}

/* Ambient Cybernetic Lights Effect */
.cyber-bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cyber-bg-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.cyber-bg-glow::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(0,0,0,0) 70%);
  filter: blur(100px);
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

[data-theme="light"] .cyber-bg-glow::before {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(255,255,255,0) 70%);
}
[data-theme="light"] .cyber-bg-glow::after {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(255,255,255,0) 70%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 1;
}

/* ================= HEADER & NAVBAR ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.brand-logo:hover img {
  transform: scale(1.03);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

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

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ================= BUTTONS & CONTROLS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.65);
}

.btn-outline {
  border-color: var(--border-color);
  color: var(--text-main);
  background: var(--input-bg);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(2, 132, 199, 0.1);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-outline:hover {
  color: var(--primary);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--primary-light);
  border-color: var(--primary);
  background: rgba(2, 132, 199, 0.12);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-icon:hover {
  color: var(--primary);
}

/* ================= SECTIONS GLOBAL ================= */
section {
  padding: 7.5rem 0;
  position: relative;
  z-index: 1;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .badge-tag {
  color: var(--primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.35rem;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

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

.section-subtitle {
  font-size: 1.22rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ================= 1. HERO SECTION ================= */
.hero-section {
  padding: 8.5rem 0 6.5rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  align-items: center;
  gap: 4.5rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1.75rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.28rem;
  color: var(--text-muted);
  margin-bottom: 2.75rem;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3.75rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 1.5rem;
}

.metric-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.15rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.metric-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.2);
}

.metric-item strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .metric-item strong {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-item span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Futuristic Interactive Card in Hero */
.hero-visual {
  position: relative;
}

.hero-card-glow {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transition: var(--transition);
}

[data-theme="light"] .hero-card-glow {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(2, 132, 199, 0.22);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.09), 0 0 25px rgba(2, 132, 199, 0.1);
}

.hero-card-glow:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.hero-code-block {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  background: #080d1a;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  direction: ltr;
  text-align: left;
  line-height: 1.8;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .hero-code-block {
  background: #090e1c;
  color: #38bdf8;
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.2);
}

/* ================= 2. SERVICES SECTION ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  background: var(--bg-card-hover);
  box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.4);
}

.service-card-cover {
  position: relative;
  width: 100%;
  height: 215px;
  overflow: hidden;
  background: #090e1c;
}

.service-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-cover img {
  transform: scale(1.08);
}

.service-cover-badge {
  position: absolute;
  bottom: 14px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  transition: transform 0.3s ease;
}

[dir="ltr"] .service-cover-badge {
  right: auto;
  left: 18px;
}

.service-card:hover .service-cover-badge {
  transform: translateY(-3px) scale(1.08);
}

.service-card-content {
  padding: 2rem 2rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--primary-light);
  margin: 2rem 2rem 0.5rem 2rem;
  transition: var(--transition);
}

[data-theme="light"] .service-icon {
  color: var(--primary);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.5);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.service-summary {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  flex-grow: 1;
}

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

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

.service-features-list li i {
  color: var(--accent);
  font-size: 1.15rem;
}
  margin-bottom: 1.75rem;
}

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

.service-features-list li i {
  color: var(--accent);
  font-size: 1.15rem;
}

/* ================= 3. PORTFOLIO SECTION ================= */
.portfolio-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3.75rem;
}

.tab-btn {
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.tab-btn:hover, .tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 25px rgba(2, 132, 199, 0.45);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 2.25rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .portfolio-card:hover {
  border-color: var(--primary);
}

.portfolio-thumb {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #060b17;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.08);
}

.portfolio-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.tech-tag {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

[data-theme="light"] .tech-tag {
  color: var(--primary);
  background: rgba(2, 132, 199, 0.1);
}

.portfolio-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.portfolio-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
  flex-grow: 1;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ================= 4. STATS SECTION ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow-card);
}

.stat-box:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
}

.stat-icon {
  font-size: 2.75rem;
  color: var(--primary-light);
  margin-bottom: 1.15rem;
}

[data-theme="light"] .stat-icon {
  color: var(--primary);
}

.stat-number {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ================= 5. BLOG SECTION ================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 2.25rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-card);
}

.blog-thumb {
  height: 230px;
  background: #060b17;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.08);
}

.blog-content {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.95rem;
}

.blog-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.95rem;
  color: var(--text-main);
  line-height: 1.45;
}

.blog-summary {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.75;
  flex-grow: 1;
}

/* ================= 6. CONTACT SECTION ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-info-panel, .contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.25rem 2.75rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  margin-bottom: 2.25rem;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.6rem;
  flex-shrink: 0;
}

[data-theme="light"] .contact-icon {
  color: var(--primary);
}

.contact-text h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.contact-text p, .contact-text a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.02rem;
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--primary-light);
}

[data-theme="light"] .contact-text a:hover {
  color: var(--primary);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25);
  outline: none;
}

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

/* ================= 7. LUXURY ENTERPRISE FOOTER ================= */
.site-footer {
  background: linear-gradient(180deg, var(--bg-surface) 0%, #030712 100%);
  border-top: 1px solid var(--border-color);
  padding: 0 0 2.5rem 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, #f8fafc 0%, #0f172a 100%);
  border-top: 1px solid rgba(2, 132, 199, 0.15);
}

.footer-cta-band {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.12), rgba(99, 102, 241, 0.12));
  border-bottom: 1px solid var(--border-color);
  padding: 2.75rem 0;
  margin-bottom: 4rem;
  position: relative;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta-inner h3 {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.footer-cta-inner p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0;
}

.footer-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-whatsapp-direct {
  background: #22c55e !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-whatsapp-direct:hover {
  background: #16a34a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6);
}

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

.footer-brand-logo img {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.footer-brand-logo:hover img {
  transform: scale(1.03);
}

.footer-bio {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-top: 1.25rem;
  line-height: 1.85;
}

.footer-badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  margin-top: 1.25rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  position: relative;
  padding-bottom: 0.65rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

[dir="ltr"] .footer-col h4::after {
  right: auto;
  left: 0;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(-4px);
}

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

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

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-icon-mini {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-label-mini {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 700;
}

.contact-val-mini {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-val-mini:hover {
  color: var(--primary-light);
}

.social-links-bar {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.35rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.5);
}

/* Platform-specific glowing social colors */
.social-icon.social-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; box-shadow: 0 0 18px rgba(24, 119, 242, 0.6); }
.social-icon.social-insta:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; color: #fff; box-shadow: 0 0 18px rgba(220, 39, 67, 0.6); }
.social-icon.social-wa:hover { background: #25d366; border-color: #25d366; color: #fff; box-shadow: 0 0 18px rgba(37, 211, 102, 0.6); }
.social-icon.social-in:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; box-shadow: 0 0 18px rgba(10, 102, 194, 0.6); }
.social-icon.social-x:hover { background: #000000; border-color: #ffffff; color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, 0.4); }
.social-icon.social-yt:hover { background: #ff0000; border-color: #ff0000; color: #fff; box-shadow: 0 0 18px rgba(255, 0, 0, 0.6); }
.social-icon.social-gh:hover { background: #24292e; border-color: #ffffff; color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, 0.3); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom-copy {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-standards {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-back-to-top {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.footer-back-to-top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ================= 8. ACCESSIBILITY TOOLBAR (WCAG 2.1 AA) ================= */
.a11y-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9990;
}

[dir="rtl"] .a11y-widget {
  left: auto;
  right: 30px;
}

.a11y-trigger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.a11y-trigger:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.6);
}

.a11y-menu {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  display: none;
  flex-direction: column;
  gap: 1rem;
}

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

.a11y-menu.show {
  display: flex;
  animation: a11yMenuIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.a11y-menu h5 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.a11y-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.94rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: var(--transition);
}

.a11y-btn:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: var(--primary);
}

/* ================= 9. MODALS ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 1.75rem;
}

/* ================= 10. RESPONSIVE BREAKPOINTS ================= */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .services-grid, .portfolio-grid, .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-cta-actions {
    width: 100%;
    justify-content: center;
  }
  .footer-cta-actions .btn {
    width: 100%;
  }
  .contact-info-panel, .contact-form-panel {
    padding: 2rem 1.5rem;
  }
  .modal-box {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .header-inner {
    height: 62px;
    gap: 0.35rem;
  }
  .brand-logo img {
    height: 38px;
    max-width: 130px;
  }
  .header-actions {
    gap: 0.3rem;
  }
  #langSelect {
    padding: 0.3rem 0.45rem !important;
    font-size: 0.8rem !important;
    max-width: 100px !important;
  }
  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .header-actions a[href="/admin"] {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    justify-content: center;
  }
  .header-actions a[href="/admin"] span {
    display: none !important;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem;
  }
  .metric-item {
    padding: 1rem 0.75rem !important;
  }
  .metric-item strong {
    font-size: 1.6rem !important;
  }
  .metric-item span {
    font-size: 0.78rem !important;
  }
  .hero-code-block {
    font-size: 0.78rem;
    padding: 1.25rem 1rem;
    overflow-x: auto;
  }
  .a11y-widget {
    bottom: 16px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 999;
  }
  [dir="ltr"] .a11y-widget {
    left: 16px !important;
    right: auto !important;
  }
  .a11y-trigger {
    width: 46px;
    height: 46px;
    font-size: 1.35rem;
  }
  .a11y-menu {
    width: calc(100vw - 32px) !important;
    max-width: 320px;
    bottom: 66px;
    padding: 1.25rem;
  }
  .modal-box {
    padding: 1.5rem;
  }
  .modal-banner-wrap {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem !important;
    height: 160px !important;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-standards {
    justify-content: center;
  }
}

/* ================= 11. LUXURY MOTION & REVEAL SYSTEM ================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.delay-1 {
  transition-delay: 0.12s;
}

.reveal-on-scroll.delay-2 {
  transition-delay: 0.24s;
}

/* Reduced motion WCAG compliance */
[data-reduced-motion="true"] .reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Card hover light sweep */
.service-card, .portfolio-card, .blog-card, .stat-box {
  position: relative;
  overflow: hidden;
}

.service-card::before, .portfolio-card::before, .blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transition: left 0.65s ease;
  pointer-events: none;
}

.service-card:hover::before, .portfolio-card:hover::before, .blog-card:hover::before {
  left: 100%;
}

/* ================= 12. RESPONSIVE CONTROLS & MOBILE DRAWER ================= */
#mobileMenuBtn {
  display: none !important;
}

@media (min-width: 992px) {
  #mobileMenuBtn, .d-md-none, .d-lg-none {
    display: none !important;
  }
}

@media (max-width: 991px) {
  #mobileMenuBtn {
    display: inline-flex !important;
  }
  .nav-links {
    display: none !important;
  }
  .header-actions .btn-outline span {
    display: none;
  }
}

/* Off-Canvas Mobile Navigation Drawer */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(310px, 85vw);
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  z-index: 10060;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.5);
}

[dir="ltr"] .mobile-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  border-left: none;
  border-right: 1px solid var(--border-color);
  box-shadow: 15px 0 45px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--text-main);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

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

.drawer-link {
  display: block;
  padding: 0.85rem 1.15rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: var(--input-bg);
  border: 1px solid transparent;
}

.drawer-link:hover {
  background: rgba(2, 132, 199, 0.12);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateX(-4px);
}

[dir="ltr"] .drawer-link:hover {
  transform: translateX(4px);
}

/* ================= 13. LANGUAGE SWITCH OVERLAY ================= */
.lang-switch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

[data-theme="light"] .lang-switch-overlay {
  background: rgba(248, 250, 252, 0.88);
}

.lang-switch-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.lang-switch-box {
  text-align: center;
  padding: 2.5rem 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switch-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  border-bottom-color: var(--accent);
  animation: preloaderSpin 1s linear infinite;
  margin: 0 auto 1.25rem auto;
}

.lang-switch-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.lang-switch-subtitle {
  font-size: 0.94rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* Skeleton Wireframe Pulse & Shimmer */
.skeleton-glow {
  position: relative;
  overflow: hidden;
  animation: skeletonPulse 1.6s ease-in-out infinite alternate;
}

.skeleton-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.15), transparent);
  animation: skeletonShimmerWave 1.4s infinite linear;
}

/* ================= 14. NOSCRIPT ALERT BANNER ================= */
.noscript-alert-banner {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #ffffff;
  padding: 1.75rem 1.5rem;
  border-bottom: 3px solid #f87171;
  position: relative;
  z-index: 100000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-family: inherit;
}

.noscript-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.noscript-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.3);
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.noscript-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.noscript-text {
  font-size: 0.98rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 0.5rem auto;
  color: #fecaca;
}

.noscript-text-en {
  font-size: 0.86rem;
  color: #fca5a5;
  direction: ltr;
  margin: 0;
}

/* Noscript Device Accordion Guide (Pure HTML & CSS) */
.noscript-guide-box {
  margin: 1.75rem auto 1.5rem auto;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: right;
}

[dir="ltr"] .noscript-guide-box {
  text-align: left;
}

.noscript-guide-head {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 1.25rem;
  text-align: center;
}

.noscript-devices-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.noscript-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: background 0.2s ease;
}

.noscript-card[open] {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(254, 240, 138, 0.4);
}

.noscript-summary {
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  font-size: 0.98rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.noscript-summary::-webkit-details-marker {
  display: none;
}

.noscript-toggle-indicator {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  color: #fca5a5;
}

.noscript-card[open] .noscript-toggle-indicator {
  transform: rotate(180deg);
  color: #fef08a;
}

.noscript-steps {
  padding: 0.75rem 1.5rem 1.25rem 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 0.94rem;
  line-height: 1.85;
}

.noscript-steps ol {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.noscript-steps li {
  margin-bottom: 0.45rem;
}

.noscript-steps strong {
  color: #fef08a;
}

.noscript-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem 0;
}

.noscript-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #991b1b;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.noscript-btn-primary:hover {
  background: #fef08a;
  color: #7f1d1d;
}

.noscript-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.noscript-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}



