:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #6c757d;
  --color-text-light: #adb5bd;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-accent: #f59e0b;
  --color-border: #e9ecef;
  --color-card-shadow: rgba(0, 0, 0, 0.04);
  --color-hero-overlay: rgba(10, 10, 30, 0.7);
  --header-height: 72px;
  --section-padding: 100px 0;
  --border-radius: 16px;
  --border-radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --color-bg: #0a0a1a;
  --color-bg-alt: #111128;
  --color-surface: #1a1a3e;
  --color-text: #e8e8f0;
  --color-text-muted: #9ca3af;
  --color-text-light: #6b7280;
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-primary-light: #1e3a5f;
  --color-border: #2a2a4a;
  --color-card-shadow: rgba(0, 0, 0, 0.2);
  --color-hero-overlay: rgba(5, 5, 20, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: var(--transition);
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

.section {
  padding: var(--section-padding);
}

.section-label {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(20px);
}

.section-label.animate {
  animation: sectionFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(20px);
}

.section-title.animate {
  animation: sectionFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
}

.section-underline {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #7c3aed, transparent);
  border-radius: 2px;
  margin: -8px auto 20px;
}

.section-underline.animate {
  animation: sectionLineDraw 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes sectionLineDraw {
  0% { width: 0; }
  100% { width: 80px; }
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
}

.section-desc.animate {
  animation: sectionFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.45s;
}

@keyframes sectionFadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 48px;
}

.bg-light {
  background: var(--color-bg-alt);
}

.btn {
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-primary);
  z-index: 9999;
  width: 0;
  transition: width 0.1s;
}

/* Custom Cursor */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.15s ease;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0.4;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .header {
  background: rgba(10, 10, 26, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(32px) saturate(1.3);
  -webkit-backdrop-filter: blur(32px) saturate(1.3);
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow:
    0 1px 0 rgba(37, 99, 235, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

[data-theme="dark"] .header.scrolled {
  background: rgba(10, 10, 26, 0.78);
  backdrop-filter: blur(32px) saturate(1.3);
  -webkit-backdrop-filter: blur(32px) saturate(1.3);
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow:
    0 1px 0 rgba(37, 99, 235, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(37, 99, 235, 0.03);
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.header.scrolled::after {
  opacity: 1;
}

.header:not(.scrolled) .logo-name {
  color: rgba(255, 255, 255, 0.95);
}

.header:not(.scrolled) .logo-sub {
  color: rgba(255, 255, 255, 0.5);
}

.header:not(.scrolled) .navmenu ul li a {
  color: rgba(255, 255, 255, 0.6);
}

.header:not(.scrolled) .navmenu ul li a:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

.header:not(.scrolled) .navmenu ul li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.08);
}

.header:not(.scrolled) .theme-toggle {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.header:not(.scrolled) .theme-toggle:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.header:not(.scrolled) .lang-switch {
  color: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.header:not(.scrolled) .lang-switch:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.header:not(.scrolled) .mobile-nav-toggle {
  color: rgba(255, 255, 255, 0.7);
}







.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
  border-radius: inherit;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 400;
}

/* Navigation */
.navmenu {
  display: flex;
  align-items: center;
}

.navmenu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.navmenu ul li a {
  padding: 7px 18px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 100px;
  transition: all 0.3s ease;
  position: relative;
}

.navmenu ul li a:hover {
  color: var(--color-text);
  background: rgba(37, 99, 235, 0.06);
}

.navmenu ul li a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

.lang-switch {
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  padding: 5px 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
  border-radius: 100px !important;
  background: rgba(37, 99, 235, 0.05) !important;
  letter-spacing: 1px !important;
}

.lang-switch:hover {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

.mobile-nav-toggle {
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  display: none !important;
}

/* Theme Toggle */
.theme-toggle {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.1);
  color: var(--color-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}

.theme-toggle:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.08));
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--color-primary);
  transform: scale(1.05);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
  z-index: 2;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.08) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0% { transform: translate(-50%, -50%) scale(1) translateX(-30px); }
  100% { transform: translate(-50%, -50%) scale(1.15) translateX(30px); }
}

.hero-content-group {
  position: relative;
  z-index: 3;
  will-change: transform;
  padding-top: var(--header-height);
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 12px;
  letter-spacing: -1px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(20deg);
  animation: wordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.6s + var(--i, 0) * 0.2s);
}

@keyframes wordReveal {
  0% { opacity: 0; transform: translateY(40px) rotateX(20deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

.title-underline {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #7c3aed, transparent);
  border-radius: 2px;
  margin-bottom: 20px;
  animation: underlineDraw 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.3s;
}

@keyframes underlineDraw {
  0% { width: 0; opacity: 1; }
  100% { width: 120px; opacity: 1; }
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.5s;
}

.hero-stats {
  display: flex;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.7s;
}

.hero-stats .stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-stats .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 10;
  pointer-events: auto;
}

.scroll-down:hover {
  color: #fff;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* About Section */
.about-image-wrapper {
  position: relative;
  border-radius: var(--border-radius);
}

.about-image-wrapper img {
  width: 100%;
  display: block;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px var(--color-card-shadow);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), transparent);
  z-index: 2;
  pointer-events: none;
  animation: scanMove 4s ease-in-out infinite;
}

@keyframes scanMove {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.about-exp-badge {
  position: absolute;
  bottom: -30px;
  right: -60px;
  background: var(--color-primary);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  z-index: 3;
}

.exp-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.exp-text {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 4px;
  display: block;
}

/* About Text Group - Staggered Cascade */
.about-text-group {
  overflow: hidden;
}

.about-label {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateX(-30px);
}

.about-label.animate {
  animation: aboutSlideX 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(30px);
}

.about-heading.animate {
  animation: aboutSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
}

.about-underline {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #7c3aed, transparent);
  border-radius: 2px;
  margin-bottom: 20px;
}

.about-underline.animate {
  animation: aboutLineDraw 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.35s;
}

@keyframes aboutLineDraw {
  0% { width: 0; }
  100% { width: 80px; }
}

.about-p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
}

.about-p.p1.animate {
  animation: aboutSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

.about-p.p2.animate {
  animation: aboutSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.55s;
}

@keyframes aboutSlideX {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes aboutSlideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.card-col {
  opacity: 0;
  transform: translateY(20px);
}

.card-col:nth-child(1) { --cd: 0.7s; }
.card-col:nth-child(2) { --cd: 0.8s; }
.card-col:nth-child(3) { --cd: 0.9s; }
.card-col:nth-child(4) { --cd: 1.0s; }

.card-col.animate {
  animation: aboutSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--cd, 0.7s);
}

/* Feature Cards */
.about-feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  transform-style: preserve-3d;
  perspective: 800px;
}

.about-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-primary-light), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-feature-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 12px 40px var(--color-card-shadow);
}

.about-feature-card:hover::before {
  opacity: 1;
}

.af-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.about-feature-card:hover .af-icon {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1) translateZ(20px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.about-feature-card h6 {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.about-feature-card:hover h6 {
  color: var(--color-primary);
}

.about-feature-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  position: relative;
  z-index: 1;
}

.af-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #7c3aed, transparent);
  border-radius: 0 2px 2px 0;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.about-feature-card:hover .af-line {
  width: 100%;
}

/* Stats Section */
.stats-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1f6e, #1e3a8a, #4a1a8a, #0d6e6e, #0f1f6e);
  background-size: 400% 400%;
  animation: gradientMorph 12s ease infinite;
}

@keyframes gradientMorph {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Noise overlay */
.stats-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* Glow orbs behind cards */
.stats-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat2 8s ease-in-out infinite alternate;
}

@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(15%, 10%) scale(1.15); }
  100% { transform: translate(5%, -5%) scale(0.95); }
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stat-item {
  position: relative;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px 20px 32px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
  overflow: hidden;
}

/* Glow orb per card (mouse-driven) */
.stat-item::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  font-size: 1.6rem;
  opacity: 0.3;
  display: block;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

/* Ring + number container */
.stat-ring-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  margin: 0 auto 8px;
}

.stat-ring-box .purecounter {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  z-index: 1;
}

.stat-ring {
  position: absolute;
  top: 0;
  left: 0;
}

.stat-ring-fill {
  color: rgba(255, 255, 255, 0.85);
  transition: none;
}

.stat-item p {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 4px 0 0;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

/* Marquee on mobile */
@media (max-width: 767px) {
  .stats-section {
    padding: 64px 0;
  }
  .stats-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .stats-track::-webkit-scrollbar {
    display: none;
  }
  .stats-track > [class*="col-"] {
    flex: 0 0 60%;
    scroll-snap-align: start;
  }
  .stat-ring-box {
    width: 90px;
    height: 90px;
  }
  .stat-ring {
    width: 90px;
    height: 90px;
  }
  .stat-ring-box .purecounter {
    font-size: 1.5rem;
  }
}

/* Service Section */
#services {
  position: relative;
  overflow: hidden;
}

/* Circuit grid background */
#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Noise overlay */
#services::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

#services .container {
  position: relative;
  z-index: 1;
}

/* Service card link wrapper */
.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.15);
  border-color: var(--color-primary);
}

.service-card:hover .service-number {
  opacity: 0.35;
}

/* Number overlay */
.service-number {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #a0aab8;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.service-icon {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.25);
}

/* SVG ring around icon */
.icon-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--color-primary);
  opacity: 0.2;
  transition: opacity 0.4s ease;
}

.service-card:hover .icon-ring {
  opacity: 0.6;
}

.service-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.service-card > p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
  opacity: 0.8;
}

.service-card:hover .service-list li:nth-child(1) { transition-delay: 0.03s; }
.service-card:hover .service-list li:nth-child(2) { transition-delay: 0.07s; }
.service-card:hover .service-list li:nth-child(3) { transition-delay: 0.11s; }
.service-card:hover .service-list li:nth-child(4) { transition-delay: 0.15s; }

.check-svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.check-path {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.4s ease;
}

.service-card:hover .check-path {
  stroke-dashoffset: 0;
}

/* CTA link at bottom of card */
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .service-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode adjustments */
[data-theme="dark"] .service-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] #services::before {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

/* Product Section */
#products {
  position: relative;
  overflow: hidden;
}

/* Circuit grid background */
#products::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Noise overlay */
#products::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

#products .container {
  position: relative;
  z-index: 1;
}

/* Product card link */
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.15);
  border-color: var(--color-primary);
}

.product-number {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #51555a;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.product-card:hover .product-number {
  opacity: 0.3;
}

.product-img {
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-text-light);
  position: relative;
}

.product-icon-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary);
  opacity: 0.12;
  transition: opacity 0.4s ease;
  width: 80px;
  height: 80px;
}

.product-card:hover .product-icon-ring {
  opacity: 0.3;
}

.product-info {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.product-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.product-info h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.product-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.product-brands {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-brands span {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card:hover .product-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode */
[data-theme="dark"] .product-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .product-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] #products::before {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

/* Brands Section */
/* Brands Section */
#brands {
  position: relative;
  overflow: hidden;
}

#brands::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

#brands::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

#brands .container {
  position: relative;
  z-index: 1;
}

/* Brands Marquee */
.brands-marquee {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.brands-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 8px 0;
}

.brands-track-1 {
  animation: marqueeLeft 25s linear infinite;
}

.brands-track-2 {
  animation: marqueeRight 25s linear infinite;
  margin-top: 16px;
}

.brand-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

[dir="rtl"] .brands-track-1 {
  animation: marqueeLeft 25s linear infinite;
}

[dir="rtl"] .brands-track-2 {
  animation: marqueeRight 25s linear infinite;
}

[dir="rtl"] .brands-marquee {
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

/* Dark mode */
[data-theme="dark"] .brand-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] #brands::before {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

@media (max-width: 767px) {
  .brands-track {
    gap: 14px;
  }
  .brand-item {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  .brands-track-2 {
    margin-top: 10px;
  }
}

/* Testimonials */
.testimonials-section {
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.testimonial-hero {
  max-width: 680px;
  margin: 0 auto;
}

.testimonial-hero-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.testimonial-hero-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #7c3aed);
}

.testimonial-slides {
  position: relative;
  min-height: 220px;
  padding: 36px 40px 28px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  padding: 36px 40px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.testimonial-slide .testimonial-stars {
  color: var(--color-accent);
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.testimonial-slide > p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
}

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

.testimonial-author img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-author h6 {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 2px;
  color: var(--color-text);
}

.testimonial-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 3px 10px;
  border-radius: 6px;
}

.testimonial-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

.dot:hover {
  background: var(--color-primary-light);
}

/* Dark mode */
[data-theme="dark"] .testimonial-hero-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .dot {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .dot.active {
  background: var(--color-primary);
}

[data-theme="dark"] .testimonials-section::before {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

/* Team Cards */
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--color-card-shadow);
}

.team-img {
  height: 200px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text-light);
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
}

.team-info {
  padding: 20px;
}

.team-info h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-text);
}

.team-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* FAQ */
.accordion-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 20px 24px;
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.accordion-button::after {
  background-size: 16px;
}

.accordion-body {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-item i {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-item h6 {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--color-text);
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

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

.contact-form .form-control {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--color-surface);
}

.contact-form .form-control::placeholder {
  color: var(--color-text-light);
}

/* Footer */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 0;
}

.footer-info h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.footer-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.footer-links li a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.footer-contact li i {
  color: var(--color-primary);
  width: 16px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

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

/* Responsive */
@media (max-width: 1199px) {
  .navmenu ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    flex-direction: column;
    padding: 88px 28px 28px;
    box-shadow: -20px 0 60px rgba(0,0,0,0.08);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    gap: 4px;
    overflow-y: auto;
    border-left: 1px solid rgba(37, 99, 235, 0.06);
    border-radius: 0;
  }

  [data-theme="dark"] .navmenu ul {
    background: rgba(10, 10, 26, 0.92);
    border-left: 1px solid rgba(37, 99, 235, 0.08);
  }

  .navmenu ul.show {
    right: 0;
  }

  .navmenu ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .mobile-nav-toggle {
    display: block !important;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 70px 0;
  }

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

  .hero-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
  }

  .hero-stats {
    gap: 24px;
  }

  .about-exp-badge {
    right: 10px;
    bottom: -10px;
    padding: 14px 18px;
  }

  .exp-num {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .logo-name {
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-stats .stat-num {
    font-size: 1.4rem;
  }
}

@media (max-width: 575px) {
  .btn-lg {
    padding: 12px 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    margin-left: 0 !important;
  }
}

[dir="rtl"] {
  --font-primary: var(--font-fa);
  --font-heading: var(--font-fa);
}

[dir="rtl"] .service-number {
  right: auto;
  left: 20px;
}

[dir="rtl"] .product-number {
  right: auto;
  left: 20px;
}

[dir="rtl"] .service-list li {
  flex-direction: row-reverse;
}

[dir="rtl"] .about-exp-badge {
  right: auto;
  left: -20px;
}

[dir="rtl"] .navmenu ul {
  padding-right: 0;
}

[dir="rtl"] .hero-actions .btn.ms-3 {
  margin-left: 0 !important;
  margin-right: 12px;
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 30px;
}

[dir="rtl"] .lang-switch {
  direction: ltr;
}

@media (max-width: 1199px) {
  [dir="rtl"] .navmenu ul {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid rgba(37, 99, 235, 0.06);
    box-shadow: 20px 0 60px rgba(0,0,0,0.08);
  }

  [data-theme="dark"] [dir="rtl"] .navmenu ul {
    border-right: 1px solid rgba(37, 99, 235, 0.08);
  }

  [dir="rtl"] .navmenu ul.show {
    right: auto;
    left: 0;
  }
}

@media (max-width: 575px) {
  [dir="rtl"] .hero-actions .btn.ms-3 {
    margin-right: 0;
  }
}

/* ===================================================
   Service Detail Pages
   =================================================== */

.service-page .header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
}

[data-theme="dark"] .service-page .header {
  background: rgba(10, 10, 26, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.service-page .header:not(.scrolled) .navmenu ul li a {
  color: var(--color-text-muted);
}

.service-page .header:not(.scrolled) .navmenu ul li a:hover {
  color: var(--color-text);
  background: rgba(37, 99, 235, 0.06);
}

.service-page .header:not(.scrolled) .navmenu ul li a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

.service-page .header:not(.scrolled) .logo-name {
  color: var(--color-heading);
}

.service-page .header:not(.scrolled) .logo-sub {
  color: var(--color-text-muted);
}

.service-page .header:not(.scrolled) .theme-toggle {
  color: var(--color-text-muted);
  border-color: var(--color-border);
  background: transparent;
}

.service-page .header:not(.scrolled) .lang-switch {
  color: var(--color-text-muted) !important;
  border-color: var(--color-border) !important;
  background: transparent !important;
}

.service-page .header:not(.scrolled) .mobile-nav-toggle {
  color: var(--color-heading);
}

/* Service Subnav */
.service-subnav {
  position: sticky;
  top: 64px;
  z-index: 99;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.service-subnav-scroll {
  display: flex;
  gap: 4px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-subnav-scroll::-webkit-scrollbar {
  display: none;
}

.service-subnav-item {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.service-subnav-item:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: transparent;
}

.service-subnav-item.active {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Service Banner */
.service-banner {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.service-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.service-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

.service-banner .container {
  position: relative;
  z-index: 1;
}

.service-banner-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 5px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.service-banner h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
}

.service-banner p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}

/* Service Content Sections */
.service-content {
  padding: 60px 0;
}

.service-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
}

.service-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.service-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-content ul:not(.service-list) {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.service-content ul:not(.service-list) li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-content ul:not(.service-list) li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
}

/* Service Cards Grid (for related services) */
.service-grid-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 28px;
  height: 100%;
  text-decoration: none;
  display: block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--color-card-shadow);
  border-color: var(--color-primary);
}

.service-grid-card .sg-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
  transition: background 0.3s, color 0.3s;
}

.service-grid-card:hover .sg-icon {
  background: var(--color-primary);
  color: #fff;
}

.service-grid-card h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.service-grid-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.service-grid-card .sg-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1rem;
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}

.service-grid-card:hover .sg-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Service CTA Section */
.service-cta-section {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 60px 0;
  text-align: center;
}

.service-cta-section h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.service-cta-section p {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.service-cta-section .btn {
  padding: 14px 40px;
}

/* Dark mode overrides for service pages */
[data-theme="dark"] .service-subnav {
  background: var(--color-bg);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .service-subnav-item {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .service-subnav-item:hover {
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .service-subnav-item.active {
  color: #fff;
  background: var(--color-primary);
}

[data-theme="dark"] .service-banner::before {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .service-grid-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

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

[data-theme="dark"] .service-cta-section {
  background: rgba(255, 255, 255, 0.02);
}

/* Responsive */
@media (max-width: 767px) {
  .service-banner {
    padding: 60px 0 40px;
  }
  .service-banner h1 {
    font-size: 1.8rem;
  }
  .service-content {
    padding: 40px 0;
  }
  .service-content h2 {
    font-size: 1.3rem;
  }
  .service-cta-section {
    padding: 40px 0;
  }
  .service-cta-section h2 {
    font-size: 1.4rem;
  }
}

/* ===================================================
   Accessibility
   =================================================== */

/* Skip Navigation */
.skip-nav {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-nav:focus {
  top: 0;
}

/* Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Hide decorative elements from screen readers */
.cursor,
.cursor-follower,
#particle-canvas,
.scroll-progress {
  pointer-events: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .header {
    transition: none !important;
  }

  .about-exp-badge,
  .service-card,
  .product-card,
  .brand-item,
  .team-card,
  .stat-item {
    transform: none !important;
  }
}

/* Main landmark */
main {
  display: block;
  min-height: calc(100vh - var(--header-height));
}

/* Form Labels */
.contact-form .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
