/* ============================================
   TECHMATRIX SERVICES — Global Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --navy:        #0a1628;
  --navy-light:  #111d35;
  --navy-mid:    #162544;
  --charcoal:    #1a1a2e;
  --slate:       #2d3748;
  --accent:      #00d4ff;
  --accent-alt:  #0099ff;
  --accent-dark: #007acc;
  --teal:        #00c9a7;
  --purple:      #7b61ff;
  --white:       #ffffff;
  --off-white:   #f0f4f8;
  --gray-100:    #f7fafc;
  --gray-200:    #edf2f7;
  --gray-300:    #e2e8f0;
  --gray-400:    #cbd5e0;
  --gray-500:    #a0aec0;
  --gray-600:    #718096;
  --gray-700:    #4a5568;
  --gray-800:    #2d3748;
  --gray-900:    #1a202c;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #7b61ff 100%);
  --gradient-dark:    linear-gradient(180deg, #0a1628 0%, #111d35 50%, #1a1a2e 100%);
  --gradient-card:    linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-glow:    radial-gradient(ellipse at center, rgba(0,212,255,0.15) 0%, transparent 70%);
  --gradient-hero:    linear-gradient(135deg, #0a1628 0%, #111d35 40%, #162544 70%, #0a1628 100%);

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.18);
  --shadow-xl:    0 16px 48px rgba(0,0,0,0.24);
  --shadow-glow:  0 0 40px rgba(0,212,255,0.15);
  --shadow-accent:0 4px 24px rgba(0,212,255,0.25);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Borders */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 50%;
  --border-glass: 1px solid rgba(255,255,255,0.08);

  /* Transitions */
  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width:   1280px;
  --header-h:    80px;
}

/* ---------- Light Mode Override ---------- */
[data-theme="light"] {
  --navy:        #f8fafc;
  --navy-light:  #f1f5f9;
  --navy-mid:    #e8edf4;
  --charcoal:    #ffffff;
  --slate:       #e2e8f0;
  --white:       #0f172a;
  --off-white:   #f0f4f8;
  --gray-100:    #1e293b;
  --gray-200:    #334155;
  --gray-300:    #475569;
  --gray-400:    #64748b;
  --gray-500:    #94a3b8;
  --gray-600:    #cbd5e1;
  --gray-700:    #e2e8f0;
  --gray-800:    #f1f5f9;
  --gray-900:    #f8fafc;

  --gradient-card:    linear-gradient(145deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.01) 100%);
  --gradient-hero:    linear-gradient(135deg, #f8fafc 0%, #e8edf4 40%, #dbeafe 70%, #f8fafc 100%);
  --border-glass: 1px solid rgba(0,0,0,0.08);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl:    0 16px 48px rgba(0,0,0,0.1);
  --shadow-glow:  0 0 40px rgba(0,153,255,0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--gray-400); line-height: 1.8; }

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 640px;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section--dark {
  background: var(--navy);
}

.section--darker {
  background: var(--charcoal);
}

.section--alt {
  background: var(--navy-light);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0,212,255,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

.btn-icon {
  font-size: 1.1em;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ---------- Cards ---------- */
.card {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,212,255,0.15);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(123,97,255,0.1) 100%);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

.card-title {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Glass Effect ---------- */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

[data-theme="light"] .header.scrolled {
  background: rgba(248,250,252,0.92);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

.logo:hover .logo-img {
  transform: scale(1.04);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* In light mode, softer shadow and subtle border */
[data-theme="light"] .logo-img {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

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

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

.header-cta {
  margin-left: 1rem;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-400);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  margin-left: 0.6rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.2);
  color: var(--accent);
  transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: var(--gray-400);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0,153,255,0.1);
  border-color: rgba(0,153,255,0.2);
  color: var(--accent-alt);
}

[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .mobile-nav {
  background: rgba(248,250,252,0.98);
}

[data-theme="light"] .menu-toggle span {
  background: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1100;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

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

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1050;
  background: rgba(10,22,40,0.98);
  backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-400);
}

.mobile-nav .nav-link:hover {
  color: var(--white);
}

/* ============================================
   HERO SECTION  (Slider)
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-top: var(--header-h);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,97,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

[data-theme="light"] .hero::before {
  background: radial-gradient(circle, rgba(0,153,255,0.06) 0%, transparent 60%);
}

[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(123,97,255,0.04) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-slides {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  overflow: hidden;
}

/* Slide background image */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 6s ease;
  transform: scale(1);
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.08);
}

/* Dark overlay over the background image */
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,22,40,0.7) 0%,
    rgba(10,22,40,0.55) 40%,
    rgba(10,22,40,0.75) 100%
  );
}

[data-theme="light"] .hero-slide-bg::after {
  background: linear-gradient(
    180deg,
    rgba(248,250,252,0.78) 0%,
    rgba(248,250,252,0.6) 40%,
    rgba(248,250,252,0.82) 100%
  );
}

/* Each slide's unique background */
.hero-slide[data-bg="1"] .hero-slide-bg { background-image: url('../images/hero-slide-1.webp'); }
.hero-slide[data-bg="2"] .hero-slide-bg { background-image: url('../images/hero-slide-2.webp'); }
.hero-slide[data-bg="3"] .hero-slide-bg { background-image: url('../images/hero-slide-3.webp'); }
.hero-slide[data-bg="4"] .hero-slide-bg { background-image: url('../images/hero-slide-4.webp'); }

.hero-slide.active {
  opacity: 1;
  pointer-events: all;
  z-index: 1;
}

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

.hero-slide .hero-slide-content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active .hero-slide-content > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.hero-slide.active .hero-slide-content > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.hero-slide.active .hero-slide-content > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.hero-slide.active .hero-slide-content > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.hero-slide.active .hero-slide-content > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* Slider Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.slider-arrow:hover {
  background: rgba(0,212,255,0.15);
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev { left: 2rem; }
.slider-next { right: 2rem; }

[data-theme="light"] .slider-arrow {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

[data-theme="light"] .slider-arrow:hover {
  background: rgba(0,153,255,0.12);
  border-color: rgba(0,153,255,0.2);
}

/* Slider Dots */
.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--space-2xl);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255,255,255,0.4);
}

.slider-dot.active {
  width: 32px;
  border-radius: 5px;
  background: var(--gradient-primary);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
}

[data-theme="light"] .slider-dot {
  background: rgba(0,0,0,0.15);
}

[data-theme="light"] .slider-dot:hover {
  background: rgba(0,0,0,0.3);
}

/* Slider progress bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 0 3px 3px 0;
  transition: width 0.3s linear;
  z-index: 10;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto var(--space-lg);
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--gray-400);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: var(--space-4xl);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.2rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 13px;
  color: rgba(255,255,255,0.2);
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 3px;
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

.scroll-text {
  font-size: 0.7rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ============================================
   SERVICES OVERVIEW (Home)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--gradient-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,212,255,0.12);
}

.service-card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,212,255,0.12) 0%, rgba(123,97,255,0.08) 100%);
  font-size: 1.6rem;
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-bottom: var(--space-lg);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-fast);
}

.service-card-link:hover {
  gap: 0.8rem;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.feature-item {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.1);
  font-size: 1.8rem;
  transition: all var(--transition-normal);
}

.feature-item:hover .feature-icon {
  background: rgba(0,212,255,0.12);
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}

.feature-item h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.feature-item p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ============================================
   PROCESS / HOW WE WORK
   ============================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0.2;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.process-step h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.process-step p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ============================================
   TECH STACK
   ============================================ */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: all var(--transition-normal);
}

.tech-item:hover {
  border-color: rgba(0,212,255,0.2);
  background: rgba(0,212,255,0.06);
  color: var(--white);
  transform: translateY(-3px);
}

.tech-item-icon {
  font-size: 1.3rem;
}

/* ============================================
   INDUSTRIES
   ============================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.industry-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all var(--transition-normal);
}

.industry-card:hover {
  background: rgba(0,212,255,0.04);
  border-color: rgba(0,212,255,0.1);
  transform: translateY(-4px);
}

.industry-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.industry-card h4 {
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================
   PORTFOLIO / PROJECTS
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gradient-card);
  border: var(--border-glass);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--navy-mid), var(--charcoal));
  position: relative;
  overflow: hidden;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,22,40,0.9));
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-xl);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-body {
  padding: var(--space-xl);
}

.project-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.project-body h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.project-body p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 100px;
  color: var(--accent);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: var(--border-glass);
  backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: var(--space-lg);
  color: #fbbf24;
  font-size: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.testimonial-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ============================================
   CLIENT LOGOS / TRUST
   ============================================ */
.logos-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.5;
}

.logo-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gray-400);
  transition: all var(--transition-normal);
}

.logo-item:hover {
  color: var(--white);
  opacity: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--gradient-card);
  border: var(--border-glass);
  backdrop-filter: blur(20px);
}

.cta-box h2 {
  margin-bottom: var(--space-md);
}

.cta-box p {
  margin-bottom: var(--space-2xl);
  color: var(--gray-400);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
  background: rgba(255,255,255,0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-600);
}

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

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-error {
  font-size: 0.8rem;
  color: #f56565;
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .form-select {
  border-color: #f56565;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  padding: var(--space-xl);
  text-align: center;
  color: var(--teal);
  font-weight: 600;
  display: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--space-4xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-4xl);
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray-400);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.2);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.85rem;
}

.newsletter-form input::placeholder {
  color: var(--gray-600);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 0.7rem 1.2rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.newsletter-form button:hover {
  box-shadow: var(--shadow-accent);
}

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */
.page-header {
  padding: calc(var(--header-h) + var(--space-4xl)) 0 var(--space-4xl);
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

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

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.page-breadcrumb a {
  color: var(--accent);
  transition: color var(--transition-fast);
}

.page-breadcrumb a:hover {
  color: var(--white);
}

/* ============================================
   ABOUT PAGE SPECIFICS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-text h2 {
  margin-bottom: var(--space-lg);
}

.about-text p {
  margin-bottom: var(--space-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: var(--border-glass);
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.value-card h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.value-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* About image placeholder */
.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-mid), var(--charcoal));
  aspect-ratio: 4/3;
  position: relative;
}

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

/* ============================================
   SERVICES PAGE (Detailed)
   ============================================ */
.service-detail {
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.service-detail:nth-child(even) .service-detail-grid {
  direction: rtl;
}

.service-detail:nth-child(even) .service-detail-grid > * {
  direction: ltr;
}

.service-detail-content h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-lg);
}

.service-detail-content p {
  margin-bottom: var(--space-xl);
}

.service-detail-content ul {
  margin-bottom: var(--space-xl);
}

.service-detail-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.5rem 0;
  color: var(--gray-400);
  font-size: 0.95rem;
}

.service-detail-content ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.service-visual {
  border-radius: var(--radius-xl);
  background: var(--gradient-card);
  border: var(--border-glass);
  padding: var(--space-2xl);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.service-visual h4 {
  color: var(--white);
  font-size: 1.1rem;
}

.service-visual-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-visual-list span {
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.service-visual-list span:hover {
  background: rgba(0,212,255,0.06);
  border-color: rgba(0,212,255,0.12);
  color: var(--white);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  transition: color var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding-bottom: var(--space-xl);
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* ============================================
   MAP PLACEHOLDER
   ============================================ */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-light);
  border: var(--border-glass);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info-item {
  display: flex;
  gap: var(--space-lg);
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.1);
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-info-item h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS – Scroll Reveals
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.counter { display: inline-block; }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 900;
  box-shadow: var(--shadow-accent);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0,212,255,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-timeline::before { display: none; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail-grid { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }

  .container { padding: 0 var(--space-lg); }
  .section { padding: var(--space-4xl) 0; }

  .nav-links { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 3rem) 0 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat-number { font-size: 2rem; }

  .slider-arrow { display: none; }
  .hero-slides { min-height: 70vh; }

  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }

  .logos-strip { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { width: 100%; }
}

@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ============================================
   LIGHT MODE—Enhanced Overrides
   ============================================ */

/* --- Gradient Text Enhancement --- */
[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0066cc 0%, #6d28d9 50%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero-badge {
  background: rgba(0,102,204,0.1);
  border-color: rgba(0,102,204,0.2);
  color: #0066cc;
}

[data-theme="light"] .hero-badge-dot {
  background: #0066cc;
  box-shadow: 0 0 8px rgba(0,102,204,0.5);
}

/* --- Cards & Containers --- */
[data-theme="light"] .service-card,
[data-theme="light"] .card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .value-card,
[data-theme="light"] .project-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

[data-theme="light"] .service-card:hover,
[data-theme="light"] .card:hover,
[data-theme="light"] .testimonial-card:hover,
[data-theme="light"] .project-card:hover {
  box-shadow: 0 4px 12px rgba(0,102,204,0.08), 0 12px 40px rgba(0,0,0,0.1);
  border-color: rgba(0,102,204,0.2);
  transform: translateY(-4px);
}

[data-theme="light"] .value-card:hover {
  box-shadow: 0 4px 12px rgba(0,102,204,0.08), 0 12px 40px rgba(0,0,0,0.1);
  border-color: rgba(0,102,204,0.2);
}

/* --- Feature Icons --- */
[data-theme="light"] .feature-icon,
[data-theme="light"] .card-icon {
  background: linear-gradient(135deg, rgba(0,102,204,0.08), rgba(109,40,217,0.06));
  border: 1px solid rgba(0,102,204,0.15);
}

/* --- Section Alternating Backgrounds --- */
[data-theme="light"] .section--dark {
  background: #ffffff;
}

[data-theme="light"] .section--alt {
  background: linear-gradient(180deg, #f0f4ff 0%, #f8fafc 100%);
}

/* --- Service Detail Cards --- */
[data-theme="light"] .service-visual {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

[data-theme="light"] .service-visual h4 {
  color: #0f172a;
}

[data-theme="light"] .service-visual-list span {
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
  color: #334155;
}

[data-theme="light"] .service-visual-list span:hover {
  background: rgba(0,102,204,0.06);
  border-color: rgba(0,102,204,0.15);
  color: #0066cc;
}

[data-theme="light"] .service-detail-content h4 {
  color: #0f172a !important;
}

[data-theme="light"] .service-detail-content ul li {
  color: #475569;
}

/* --- Tech Stack Pills --- */
[data-theme="light"] .tech-item {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  color: #334155;
}

[data-theme="light"] .tech-item:hover {
  background: #f0f4ff;
  border-color: rgba(0,102,204,0.2);
  box-shadow: 0 2px 8px rgba(0,102,204,0.1);
  color: #0066cc;
}

/* --- Industry Cards --- */
[data-theme="light"] .industry-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

[data-theme="light"] .industry-card:hover {
  background: #f0f4ff;
  border-color: rgba(0,102,204,0.15);
  box-shadow: 0 4px 16px rgba(0,102,204,0.1);
}

/* --- CTA Section --- */
[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, #0066cc 0%, #6d28d9 50%, #9333ea 100%);
  border: none;
  box-shadow: 0 8px 40px rgba(0,102,204,0.25);
}

[data-theme="light"] .cta-box h2,
[data-theme="light"] .cta-box p {
  color: #ffffff !important;
}

[data-theme="light"] .cta-box .text-gradient {
  background: linear-gradient(135deg, #7dd3fc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .cta-box .btn-primary {
  background: #ffffff;
  color: #0066cc;
  border: none;
}

[data-theme="light"] .cta-box .btn-primary:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

[data-theme="light"] .cta-box .btn-secondary {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

[data-theme="light"] .cta-box .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
  color: #ffffff;
}

/* --- Forms --- */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus,
[data-theme="light"] .form-select:focus {
  background: #ffffff;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
  color: #9ca3af;
}

/* --- Footer — Rich dark footer for contrast --- */
[data-theme="light"] .footer {
  background: #0f172a;
  border-top: none;
}

[data-theme="light"] .footer,
[data-theme="light"] .footer p,
[data-theme="light"] .footer .footer-link {
  color: #94a3b8;
}

[data-theme="light"] .footer .footer-heading {
  color: #f8fafc;
}

/* Footer logo uses same white badge style in both themes */

[data-theme="light"] .footer .footer-link:hover {
  color: #ffffff;
}

[data-theme="light"] .footer-social a {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: #94a3b8;
}

[data-theme="light"] .footer-social a:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(255,255,255,0.08);
}

[data-theme="light"] .footer-bottom p,
[data-theme="light"] .footer-bottom-links a {
  color: #64748b;
}

[data-theme="light"] .footer-bottom-links a:hover {
  color: var(--accent);
}

[data-theme="light"] .newsletter-form input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #f8fafc;
}

[data-theme="light"] .newsletter-form input::placeholder {
  color: #64748b;
}

[data-theme="light"] .newsletter-form button {
  color: #ffffff;
}

/* --- FAQ --- */
[data-theme="light"] .faq-question {
  color: #0f172a;
}

[data-theme="light"] .faq-item {
  border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .faq-answer-inner {
  color: #475569;
}

/* --- Contact Page --- */
[data-theme="light"] .contact-info-icon {
  background: linear-gradient(135deg, rgba(0,102,204,0.08), rgba(109,40,217,0.06));
  border-color: rgba(0,102,204,0.15);
}

[data-theme="light"] .map-container {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* --- Portfolio --- */
[data-theme="light"] .project-image {
  background: linear-gradient(135deg, #f0f4ff, #dbeafe);
}

[data-theme="light"] .project-tech span {
  background: #f0f4ff;
  border: 1px solid rgba(0,102,204,0.12);
  color: #0066cc;
}

/* --- Page Headers --- */
[data-theme="light"] .page-header {
  background: linear-gradient(135deg, #f0f4ff 0%, #dbeafe 40%, #e8edf4 70%, #f8fafc 100%);
}

[data-theme="light"] .page-header::before {
  background-image:
    linear-gradient(rgba(0,102,204,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,204,0.04) 1px, transparent 1px);
}

[data-theme="light"] .page-breadcrumb a,
[data-theme="light"] .page-breadcrumb span {
  color: #64748b;
}

/* --- About Images --- */
[data-theme="light"] .about-image {
  background: linear-gradient(135deg, #f0f4ff, #dbeafe);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* --- Buttons --- */
[data-theme="light"] .btn-secondary {
  color: #0f172a;
  border: 2px solid #d1d5db;
  background: transparent;
}

[data-theme="light"] .btn-secondary:hover {
  border-color: #0066cc;
  color: #0066cc;
  background: rgba(0,102,204,0.04);
}

/* --- Process Timeline --- */
[data-theme="light"] .process-number {
  color: #ffffff;
}

[data-theme="light"] .process-step {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

[data-theme="light"] .process-step:hover {
  box-shadow: 0 4px 16px rgba(0,102,204,0.1);
  border-color: rgba(0,102,204,0.15);
}

/* --- Logos Strip --- */
[data-theme="light"] .logos-strip .logo-item {
  color: #94a3b8;
}

[data-theme="light"] .logos-strip .logo-item:hover {
  color: #0066cc;
}

/* --- Stats --- */
[data-theme="light"] .hero-stat-number {
  color: #0066cc;
}

[data-theme="light"] .hero-stat-label {
  color: #64748b;
}

/* --- Testimonials --- */
[data-theme="light"] .testimonial-card .testimonial-text {
  color: #475569;
}

[data-theme="light"] .testimonial-card .testimonial-stars {
  color: #f59e0b;
}

/* --- Scroll & Back to Top --- */
[data-theme="light"] .back-to-top {
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,102,204,0.3);
}

[data-theme="light"] .scroll-mouse {
  border-color: rgba(0,0,0,0.2);
}

[data-theme="light"] .scroll-mouse::before {
  background: rgba(0,0,0,0.3);
}

/* logo-img needs no light mode color override */

/* --- Section Labels --- */
[data-theme="light"] .section-label {
  color: #0066cc;
}

/* --- Section Subtitles --- */
[data-theme="light"] .section-subtitle {
  color: #64748b;
}

/* --- Why Choose Us feature items --- */
[data-theme="light"] .feature-item h4 {
  color: #0f172a;
}

[data-theme="light"] .feature-item p {
  color: #64748b;
}

