:root {
  /* Primary Backgrounds */
  --color-bg: #0B1220;
  --color-bg-secondary: #111827;
  --color-bg-tertiary: #0F172A;

  /* Elevated Surfaces & Cards */
  --color-bg-card: #1A2332;
  --color-bg-elevated: #202B3D;
  
  /* Borders */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.12);

    /* Typography */
  --color-heading-primary: #FFFFFF;
  --color-heading-secondary: #F8FAFC;
  --color-text: #E2E8F0;
  --color-text-label: #CBD5E1;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #94A3B8;

  /* Accents */
  --color-primary: #3B82F6;
  --color-secondary: #06B6D4;
  --color-accent-purple: #8B5CF6;

  /* Status Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0B1220, #111827, #1E293B);
  --gradient-card-glow: linear-gradient(135deg, #3B82F6, #06B6D4);
  --gradient-premium-accent: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --gradient-divider: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  --gradient-blue: linear-gradient(135deg, #3B82F6, #60A5FA);
  --gradient-dark: linear-gradient(135deg, #1E293B, #334155);
  --gradient-purple: linear-gradient(135deg, #8B5CF6, #A78BFA);

  /* Typography Scale */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows (Dark optimized) */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --container-max: 1400px;
  --container-wide: 1400px;
  --header-height: 80px;
  --z-header: 1000;
  --z-overlay: 1100;
  --z-modal: 1200;
}

/* Background Utilities */
.bg-light-blue { background-color: var(--color-bg-light-blue); }
.bg-light-purple { background-color: var(--color-bg-light-purple); }
.bg-dark-navy { background-color: var(--color-bg-secondary); color: white; }
.bg-dark-navy .section-header__title,
.bg-dark-navy .section-header__desc,
.bg-dark-navy p,
.bg-dark-navy h1, .bg-dark-navy h2, .bg-dark-navy h3, .bg-dark-navy h4 {
  color: white;
}

.bg-gradient-blue { background: var(--gradient-blue); color: white; }
.bg-gradient-dark { background: var(--gradient-dark); color: white; }
.bg-gradient-purple { background: var(--gradient-purple); color: white; }

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

/* Section Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  position: relative;
  display: flex;
  justify-content: center;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 300px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  box-shadow: 0 0 15px 1px rgba(59, 130, 246, 0.4);
}

/* Background Glow Effects */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.bg-glow--blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.bg-glow--purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent-purple) 0%, transparent 70%);
}


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

/* ── Custom Scrollbar — Light Mode ── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── Custom Scrollbar — Dark Mode ── */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0F172A; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; border-radius: 99px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Firefox scrollbar */
* { scrollbar-width: thin; scrollbar-color: #CBD5E1 #F1F5F9; }
[data-theme="dark"] * { scrollbar-color: #334155 #0F172A; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.015) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.005'/%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(2.25rem, 5vw, var(--text-5xl));
  color: var(--color-heading-primary);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.875rem, 4vw, var(--text-4xl));
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, var(--text-2xl));
}

h4 {
  font-size: var(--text-xl);
}

p {
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

::selection {
  background-color: rgb(37 99 235 / 0.15);
  color: var(--color-text);
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.section,
.section--sm,
.section--lg {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  .section,
  .section--sm,
  .section--lg {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (min-width: 1024px) {
  .section,
  .section--sm,
  .section--lg {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

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

.section--dark {
  background-color: var(--color-secondary);
  color: white;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: white;
}

.section--dark p,
.section--dark .section-subtitle {
  color: rgb(255 255 255 / 0.7);
}

.section--dark .stat-item__label {
  color: rgb(255 255 255 / 0.6);
}

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section--dark .section-label {
  color: var(--color-accent);
}

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

.section-subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
}

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

.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;
}

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

.page-hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: var(--space-16);
  background: var(--gradient-hero);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero__content {
  max-width: 720px;
}

.page-hero__title {
  margin-bottom: var(--space-4);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 36px;
}

@media (min-width: 768px) {
  .page-hero__title {
    font-size: 44px;
  }
}

@media (min-width: 1024px) {
  .page-hero__title {
    font-size: 56px;
  }
}

.page-hero__subtitle {
  font-size: var(--text-xl);
  line-height: 1.8;
  color: #E2E8F0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

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

.breadcrumb__sep {
  color: var(--color-text-light);
}

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

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

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-16);
  }

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

  .container {
    padding-inline: var(--space-4);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: rgba(11,18,32,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.header--scrolled {
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  border-bottom-color: rgba(255,255,255,0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
  box-sizing: border-box;
}

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

.logo-img {
  width: 65px;
  height: auto;
  max-height: calc(var(--header-height) - 20px);
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__name {
  font-weight: 700;
  font-size: 18px;
  color: #F1F5F9;
  letter-spacing: -0.025em;
  transition: color 0.20s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.logo:hover .logo__name {
  color: #2563EB;
}

.logo__tagline {
  font-size: 10px;
  font-family: monospace;
  letter-spacing: 0.15em;
  color: #0EA5E9;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 2px;
}

.footer__brand .logo:hover .logo__name {
  color: #38bdf8;
}

/* Dark mode: logo text visible against dark header */
[data-theme="dark"] .logo__name {
  color: #F1F5F9;
}
[data-theme="dark"] .logo:hover .logo__name {
  color: #60A5FA;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  height: 100%;
}

.nav__link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: #CBD5E1;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: #FFFFFF;
  background: rgba(255,255,255,0.05);
}

.nav__link--active {
  color: #3B82F6;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle--open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text-light);
  background: var(--color-bg-light);
}

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

.btn--outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn--white {
  background: white;
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-bg-light);
  transform: translateY(-1px);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Cards */
.card {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6, .card p, .card__title, .card__text {
  color: var(--color-text);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-light);
}

.card--lift:hover {
  transform: translateY(-4px);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(37 99 235 / 0.08);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.card__text {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: gap var(--transition-fast);
}

.card__link:hover {
  gap: var(--space-3);
}

/* Service Card Extended */
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
}

.service-card__header {
  padding: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.service-card__body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.015) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.005'/%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.service-card__list {
  margin-top: var(--space-4);
}

.service-card__list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--color-bg-light);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

.tag--primary {
  background: rgb(37 99 235 / 0.08);
  color: var(--color-primary);
  border-color: rgb(37 99 235 / 0.15);
}

/* Project Card */
.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.project-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-muted);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img {
  transform: scale(1.03);
}

.project-card__content {
  padding: var(--space-8);
}

.project-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.project-card__title {
  margin-bottom: var(--space-3);
}

.project-card__desc {
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat-item {
  text-align: center;
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

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

.stat-item__number {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: var(--space-2);
  line-height: 1;
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: var(--text-lg);
  color: #94A3B8;
  font-weight: 500;
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.process-step__title {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.process-step__text {
  font-size: var(--text-sm);
}

/* Process step connector arrows (desktop only) */
.process-step:not(:last-child)::after {
  content: '\2192';
  position: absolute;
  right: calc(-1 * var(--space-4) - 0.6em);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}

/* CTA Banner */
.cta-banner {
  background: var(--gradient-dark);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.6), transparent);
  z-index: 1;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
}

.cta-banner__title {
  color: white;
  margin-bottom: var(--space-4);
}

.cta-banner__text {
  color: rgb(255 255 255 / 0.75);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

/* Footer */
.footer {
  background: var(--color-bg);
  color: rgb(255 255 255 / 0.8);
  padding-top: var(--space-16);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.footer__brand p {
  color: var(--color-text);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 320px;
  line-height: 1.7;
}

.footer__heading {
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid transparent;
  border-image: var(--gradient-blue) 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: var(--gradient-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
}

.footer__social svg {
  height: 18px;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-error {
  font-size: var(--text-xs);
  color: #EF4444;
  margin-top: var(--space-1);
}

.form-success {
  padding: var(--space-4);
  background: rgb(16 185 129 / 0.1);
  border: 1px solid rgb(16 185 129 / 0.2);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

/* Team Card */
.team-card {
  text-align: center;
}

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  margin-inline: auto;
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-md);
}

.team-card__name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.team-card__bio {
  font-size: var(--text-sm);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline__year {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.timeline__text {
  font-size: var(--text-sm);
}

/* Tech Category */
.tech-category {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.tech-category__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.tech-category__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(37 99 235 / 0.08);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.tech-category__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tech-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.tech-item:hover {
  border-color: var(--color-primary);
  background: rgb(37 99 235 / 0.04);
}

/* Job Listing */
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--transition-base);
}

.job-card:hover {
  box-shadow: var(--shadow-md);
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* Contact Info */
.contact-info-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.contact-info-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(37 99 235 / 0.08);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.contact-info-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: var(--space-1);
}

.contact-info-card__value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.contact-info-card__value a:hover {
  color: var(--color-primary);
}

.map-placeholder {
  width: 100%;
  height: 360px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Value Pill */
.value-card {
  background: var(--color-bg);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--card-accent, var(--color-border));
}

.value-card.accent-blue { --card-accent: #2563EB; }
.value-card.accent-purple { --card-accent: #7C3AED; }
.value-card.accent-cyan { --card-accent: #06B6D4; }
.value-card.accent-green { --card-accent: #10B981; }
.value-card.accent-orange { --card-accent: #F97316; }
.value-card.accent-indigo { --card-accent: #4F46E5; }

.value-card__title {
  margin-bottom: var(--space-4);
}

.value-card__text {
  font-size: var(--text-sm);
}

/* Animations */
.animate-on-scroll {
  opacity: 0.6;
  transform: translateY(15px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

.animate-on-scroll[data-delay="1"] {
  transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="2"] {
  transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="3"] {
  transition-delay: 0.3s;
}

.animate-on-scroll[data-delay="4"] {
  transition-delay: 0.4s;
}

/* Mobile Nav */
@media (max-width: 1023px) {
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-bg);
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    flex-direction: column;
    align-items: flex-end;
    padding: var(--space-8) var(--space-6);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.4) calc(100% - 280px), var(--color-bg) calc(100% - 280px), var(--color-bg) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    /* Reset desktop properties */
    height: auto;
    margin-left: 0;
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav__link {
    width: 232px;
    padding: var(--space-4);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
    text-align: left;
    margin-bottom: var(--space-2);
  }

  .header__actions .btn--primary {
    display: none;
  }

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

  .process-grid {
    grid-template-columns: 1fr;
  }

  /* Hide connectors when steps stack vertically */
  .process-step:not(:last-child)::after {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .logo__tagline {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner {
    padding: var(--space-10) var(--space-6);
  }

  .hero {
    min-height: auto;
    padding-block: calc(var(--header-height) + var(--space-8)) var(--space-12);
  }

  .hero__content {
    padding-block: 0;
  }

  .hero__title {
    font-size: 1.875rem;
  }

  .hero__subtitle {
  font-size: var(--text-xl);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 580px;
  color: #E2E8F0;
}

  .page-hero {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-8);
  }

  .page-hero__subtitle {
  font-size: var(--text-xl);
  line-height: 1.8;
  color: #E2E8F0;
}
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Home Hero Layout Redesign */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}


.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__left {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.hero__right {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgb(37 99 235 / 0.08);
  border: 1px solid rgb(37 99 235 / 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero__title span {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-xl);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 580px;
  color: #E2E8F0;
}

@media (min-width: 992px) {
  .hero {
    height: calc(100vh - var(--header-height));
    min-height: 620px;
    max-height: 900px;
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 0;
  }
  .hero__grid {
    grid-template-columns: 55fr 45fr;
    gap: var(--space-16);
    align-items: center;
  }
  .hero__left {
    max-width: 100%;
  }
  .hero__right {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* ============================================================
   Premium Transparent Technology Showcase
   ============================================================ */
.hero-showcase-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  padding: var(--space-4) 0;
}
.hero-showcase__visuals {
  position: relative;
  width: 100%;
  height: 210px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center;
}
.hero-showcase__visuals::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: showcaseGlow 5s infinite ease-in-out;
}
@keyframes showcaseGlow {
  0%, 100% { transform: translate(-50%,-50%) scale(.88); opacity:.7; }
  50%       { transform: translate(-50%,-50%) scale(1.1); opacity:1; }
}
.hero-showcase__slide {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.93);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-showcase__slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}
.hero-showcase__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
}
.hero-showcase__graphic {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.showcase-svg {
  width: 100%; height: 100%;
  max-width: 230px; max-height: 175px;
  filter: drop-shadow(0 6px 24px rgba(37,99,235,.07));
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.hero-showcase-container:hover .showcase-svg { transform: scale(1.04) translateY(-3px); }
.hero-showcase__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: var(--space-5);
  position: relative;
  z-index: 10;
}
.showcase-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(37, 99, 235, 0.09);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.04), 0 2px 8px -2px rgba(37, 99, 235, 0.03);
  text-align: center;
  min-width: 220px;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
[data-theme="dark"] .showcase-badge {
  background: rgba(30, 41, 59, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
}
.hero-showcase-container:hover .showcase-badge {
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.07), 0 2px 8px -2px rgba(37, 99, 235, 0.04);
}
[data-theme="dark"] .hero-showcase-container:hover .showcase-badge {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.45);
}
.showcase-badge__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.showcase-badge__chips {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-primary-light);
}
.showcase-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.showcase-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: rgba(15,23,42,.1);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width .3s ease, background-color .3s ease;
}
.showcase-dot:hover { background: rgba(15,23,42,.22); }
.showcase-dot.active { width: 16px; background: var(--color-primary-light); }
.showcase-progress-container {
  width: 90px; height: 2px;
  background: rgba(15,23,42,.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-3);
}
.showcase-progress-bar {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
}
.hero-showcase-container.autoplay-running .showcase-progress-bar {
  animation: progress-fill 5s linear forwards;
}
.hero-showcase-container:hover .showcase-progress-bar { animation-play-state: paused; }

/* Legacy card selector */

.hero-slider-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: 
    0 10px 30px rgba(15, 23, 42, 0.03), 
    0 1px 3px rgba(15, 23, 42, 0.02),
    inset 0 0 20px rgba(37, 99, 235, 0.015);
  padding: var(--space-8);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  z-index: 3;
}

.hero-slider-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.hero-slider-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 45px rgba(37, 99, 235, 0.08), 
    0 2px 8px rgba(37, 99, 235, 0.03),
    inset 0 0 20px rgba(37, 99, 235, 0.03);
}

.hero-slider__slides {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.hero-slider__slide {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px) scale(0.95);
  transition: 
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-slider__slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}

/* Slide Content Structure */
.hero-slider__slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.hero-slider__graphic {
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slider-svg {
  width: 100%;
  height: 100%;
  max-width: 220px;
  max-height: 160px;
}

.hero-slider__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  max-width: 90%;
}

.hero-slider__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-secondary);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}

.hero-slider__tagline {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
  border: none;
  padding: 0;
  line-height: 1.5;
}

.hero-slider__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.tech-chip:hover {
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

/* Controls & Indicators */
.hero-slider__controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  z-index: 10;
  position: relative;
}

.hero-slider__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.12);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-slider__dot:hover {
  background: rgba(15, 23, 42, 0.25);
}

.hero-slider__dot.active {
  width: 24px;
  background: var(--color-primary-light);
}

.hero-slider__progress-container {
  width: 100%;
  height: 3px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hero-slider__progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-accent) 100%);
}

.hero-slider-card.autoplay-running .hero-slider__progress-bar {
  animation: progress-fill 5s linear forwards;
}

.hero-slider-card:hover .hero-slider__progress-bar {
  animation-play-state: paused;
}

@keyframes progress-fill {
  from { width: 0%; }
  to { width: 100%; }
}

/* Unique Background Animation Effects */
.hero-slider__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* bg-software: code lines and blocks */
.bg-software .code-line {
  position: absolute;
  height: 4px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-full);
}
.bg-software .line-1 { top: 15%; left: 10%; width: 25%; animation: codeDrift 8s infinite ease-in-out; }
.bg-software .line-2 { top: 25%; right: 15%; width: 35%; animation: codeDrift 10s infinite ease-in-out reverse; }
.bg-software .line-3 { bottom: 20%; left: 15%; width: 30%; animation: codeDrift 9s infinite ease-in-out 1s; }
.bg-software .code-block {
  position: absolute;
  border: 1.5px solid rgba(37, 99, 235, 0.05);
  border-radius: 4px;
}
.bg-software .block-1 { top: 40%; right: 8%; width: 40px; height: 40px; animation: floatSpin 12s infinite linear; }
.bg-software .block-2 { bottom: 35%; left: 8%; width: 50px; height: 30px; animation: floatSpin 15s infinite linear reverse; }

/* bg-ai: particles floating */
.bg-ai .particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-primary-light);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(0.5px);
}
.bg-ai .p-1 { top: 20%; left: 20%; animation: floatAround 12s infinite ease-in-out; }
.bg-ai .p-2 { top: 60%; right: 15%; animation: floatAround 16s infinite ease-in-out 2s; }
.bg-ai .p-3 { bottom: 15%; left: 30%; animation: floatAround 14s infinite ease-in-out 4s; }

/* bg-cyber: scanning laser grid and ripple rings */
.bg-cyber .cyber-grid {
  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: 20px 20px;
  background-position: center;
  opacity: 0.8;
}
.bg-cyber .pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
}
.bg-cyber .pr-1 { animation: cyberRipple 6s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.bg-cyber .pr-2 { animation: cyberRipple 6s infinite cubic-bezier(0.16, 1, 0.3, 1) 3s; }

/* bg-web: wireframe browser panels floating */
.bg-web .web-panel {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}
.bg-web .wp-1 { top: 15%; left: 8%; width: 60px; height: 40px; animation: gentleDrift 12s infinite ease-in-out; }
.bg-web .wp-2 { bottom: 25%; right: 8%; width: 80px; height: 50px; animation: gentleDrift 14s infinite ease-in-out reverse; }

/* bg-mobile: smartphone floating outlines and pulses */
.bg-mobile .mob-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.1);
  transform: scale(0);
  opacity: 0;
}
.bg-mobile .ring-1 { top: 30%; left: 15%; width: 60px; height: 60px; animation: mobGlow 8s infinite ease-out; }
.bg-mobile .ring-2 { bottom: 20%; right: 15%; width: 80px; height: 80px; animation: mobGlow 8s infinite ease-out 4s; }

/* bg-cloud: floating clouds and data paths */
.bg-cloud .cloud-blob {
  position: absolute;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
}
.bg-cloud .cb-1 { top: 10%; right: 20%; width: 100px; height: 100px; animation: gentleDrift 18s infinite ease-in-out; }
.bg-cloud .cb-2 { bottom: 15%; left: 15%; width: 120px; height: 120px; animation: gentleDrift 20s infinite ease-in-out 3s; }
.bg-cloud .cloud-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(37,99,235,0.1), transparent);
}
.bg-cloud .cl-1 { top: 10%; left: 25%; height: 50%; animation: dataLineFlow 8s infinite linear; }
.bg-cloud .cl-2 { top: 30%; right: 25%; height: 40%; animation: dataLineFlow 10s infinite linear reverse; }

/* bg-iot: connecting hub networks */
.bg-iot .iot-network-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.02) 0%, transparent 60%);
}
.bg-iot .signal-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 1px dashed rgba(14, 165, 233, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  animation: iotPulse 10s infinite linear;
}

/* bg-consulting: flowchart nodes */
.bg-consulting .consulting-nodes {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.6;
}
.bg-consulting .flow-arrow {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 50%;
}
.bg-consulting .fa-1 { top: 30%; left: 15%; animation: flowNodePath 12s infinite linear; }

/* KEYFRAMES FOR BACKGROUND ANIMATIONS */
@keyframes codeDrift {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(15px); opacity: 0.6; }
}
@keyframes floatSpin {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-10px) rotate(180deg); opacity: 0.5; }
  100% { transform: translateY(0) rotate(360deg); opacity: 0.3; }
}
@keyframes floatAround {
  0%, 100% { transform: translate(0, 0); opacity: 0.1; }
  33% { transform: translate(25px, -15px); opacity: 0.25; }
  66% { transform: translate(-15px, 20px); opacity: 0.15; }
}
@keyframes cyberRipple {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
@keyframes gentleDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8px, -8px) scale(1.05); }
}
@keyframes mobGlow {
  0% { transform: scale(0.3); opacity: 0; }
  50% { opacity: 0.25; }
  100% { transform: scale(1.2); opacity: 0; }
}
@keyframes dataLineFlow {
  0% { transform: translateY(-20px); opacity: 0; }
  50% { opacity: 0.4; }
  100% { transform: translateY(20px); opacity: 0; }
}
@keyframes iotPulse {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(0.4); opacity: 0.1; }
  50% { opacity: 0.3; }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1.3); opacity: 0; }
}
@keyframes flowNodePath {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translate(120px, 30px); opacity: 0; }
}

/* SVG Animations when active */
.hero-slider__slide.active .floating-char {
  animation: svgFloat 4s infinite ease-in-out;
}
.hero-slider__slide.active .char-2 {
  animation-delay: 2s;
}

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

/* Software IDE typing animation */
.hero-slider__slide.active .svg-code-group rect {
  animation: codeType 3s infinite ease-in-out;
  transform-origin: left;
}
.hero-slider__slide.active .svg-line-1 { animation-delay: 0.1s; }
.hero-slider__slide.active .svg-line-2 { animation-delay: 0.3s; }
.hero-slider__slide.active .svg-line-3 { animation-delay: 0.5s; }
.hero-slider__slide.active .svg-line-4 { animation-delay: 0.7s; }
.hero-slider__slide.active .svg-line-5 { animation-delay: 0.9s; }
.hero-slider__slide.active .svg-line-6 { animation-delay: 1.1s; }

@keyframes codeType {
  0%, 100% { transform: scaleX(0); opacity: 0; }
  10%, 90% { transform: scaleX(1); opacity: 1; }
}

/* AI Node pulsing and signaling */
.hero-slider__slide.active .core-pulse {
  animation: coreGlow 3s infinite ease-in-out;
}
@keyframes coreGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.2; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

.hero-slider__slide.active .signal-dot {
  animation: signalRun 4s infinite linear;
}
.hero-slider__slide.active .dot-1 {
  offset-path: path('M100 75L50 45');
  animation-delay: 0s;
}
.hero-slider__slide.active .dot-2 {
  offset-path: path('M100 75L150 45');
  animation-delay: 1s;
}
.hero-slider__slide.active .dot-3 {
  offset-path: path('M100 75L60 110');
  animation-delay: 2s;
}
.hero-slider__slide.active .dot-4 {
  offset-path: path('M100 75L140 110');
  animation-delay: 3s;
}

@keyframes signalRun {
  0% { offset-distance: 0%; opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Cyber Scanning Line */
.hero-slider__slide.active .scan-laser {
  animation: laserScan 4s infinite ease-in-out;
}
@keyframes laserScan {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(75px); opacity: 0.8; }
}
.hero-slider__slide.active .shield-inner {
  animation: shieldPulse 3s infinite ease-in-out;
}
@keyframes shieldPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.9; }
}

/* Web chart drawing & buttons */
.hero-slider__slide.active .drawing-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: pathDraw 3s infinite ease-in-out;
}
@keyframes pathDraw {
  0%, 100% { stroke-dashoffset: 100; }
  50%, 90% { stroke-dashoffset: 0; }
}
.hero-slider__slide.active .cursor-pointer-sim {
  animation: buttonClick 3s infinite ease-in-out;
}
@keyframes buttonClick {
  0%, 100% { transform: scale(1); fill: #10B981; }
  45%, 55% { transform: scale(0.8); fill: #3B82F6; }
}

/* Mobile Column chart grow and notifications */
.hero-slider__slide.active .bar-chart-1 { animation: chartGrow 3s infinite ease-in-out; transform-origin: bottom; }
.hero-slider__slide.active .bar-chart-2 { animation: chartGrow 3s infinite ease-in-out 0.2s; transform-origin: bottom; }
.hero-slider__slide.active .bar-chart-3 { animation: chartGrow 3s infinite ease-in-out 0.4s; transform-origin: bottom; }
@keyframes chartGrow {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.hero-slider__slide.active .msg-bubble {
  animation: bubblePop 4s infinite ease-in-out;
}
.hero-slider__slide.active .b-1 { animation-delay: 0.5s; transform-origin: bottom left; }
.hero-slider__slide.active .b-2 { animation-delay: 2s; transform-origin: bottom right; }
@keyframes bubblePop {
  0%, 100% { transform: scale(0) translateY(10px); opacity: 0; }
  10%, 80% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Cloud LEDs and arrow slide */
.hero-slider__slide.active .cloud-server-led { animation: blinkLed 1.5s infinite step-end; }
.hero-slider__slide.active .cloud-server-led-2 { animation: blinkLed 1.5s infinite step-end 0.75s; }
@keyframes blinkLed {
  50% { fill: #EF4444; }
}
.hero-slider__slide.active .arrow-up { animation: arrowSlideUp 3s infinite ease-in-out; }
.hero-slider__slide.active .arrow-down { animation: arrowSlideDown 3s infinite ease-in-out; }
@keyframes arrowSlideUp {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-8px); opacity: 1; }
}
@keyframes arrowSlideDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* IoT Gauge and signal lines */
.hero-slider__slide.active .gauge-needle {
  animation: needleWiggle 4s infinite ease-in-out;
  transform-origin: 155px 45px;
}
@keyframes needleWiggle {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(45deg); }
  60% { transform: rotate(-25deg); }
}
.hero-slider__slide.active .bulb-glow {
  animation: bulbBlink 4s infinite ease-in-out;
}
@keyframes bulbBlink {
  0%, 40%, 100% { fill: #475569; }
  50%, 90% { fill: #F59E0B; }
}

/* Consulting flowchart and strategy */
.hero-slider__slide.active .check-draw {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDrawAn 4s infinite ease-in-out;
}
@keyframes checkDrawAn {
  0%, 30%, 100% { stroke-dashoffset: 40; }
  50%, 90% { stroke-dashoffset: 0; }
}
.hero-slider__slide.active .growth-lines {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: linesDrawAn 4s infinite ease-in-out;
}
@keyframes linesDrawAn {
  0%, 50%, 100% { stroke-dashoffset: 30; }
  70%, 95% { stroke-dashoffset: 0; }
}
.hero-slider__slide.active .bulb-glow-circle,
.hero-showcase__slide.active .bulb-glow-circle {
  animation: bulbRingGlow 4s infinite ease-in-out;
}
@keyframes bulbRingGlow {
  0%, 20%, 100% { opacity: 0; transform: scale(0.6); }
  45%, 85% { opacity: 0.4; transform: scale(1.2); }
}

/* Showcase slide active animation duplicates */
.hero-showcase__slide.active .floating-char { animation: svgFloat 4s infinite ease-in-out; }
.hero-showcase__slide.active .char-2 { animation-delay: 2s; }
.hero-showcase__slide.active .svg-code-group rect { animation: codeType 3s infinite ease-in-out; transform-origin: left; }
.hero-showcase__slide.active .svg-line-1 { animation-delay: 0.1s; }
.hero-showcase__slide.active .svg-line-2 { animation-delay: 0.3s; }
.hero-showcase__slide.active .svg-line-3 { animation-delay: 0.5s; }
.hero-showcase__slide.active .svg-line-4 { animation-delay: 0.7s; }
.hero-showcase__slide.active .svg-line-5 { animation-delay: 0.9s; }
.hero-showcase__slide.active .svg-line-6 { animation-delay: 1.1s; }
.hero-showcase__slide.active .core-pulse { animation: coreGlow 3s infinite ease-in-out; }
.hero-showcase__slide.active .signal-dot { animation: signalRun 4s infinite linear; }
.hero-showcase__slide.active .dot-1 { offset-path: path('M100 75L50 45'); animation-delay: 0s; }
.hero-showcase__slide.active .dot-2 { offset-path: path('M100 75L150 45'); animation-delay: 1s; }
.hero-showcase__slide.active .dot-3 { offset-path: path('M100 75L60 110'); animation-delay: 2s; }
.hero-showcase__slide.active .dot-4 { offset-path: path('M100 75L140 110'); animation-delay: 3s; }
.hero-showcase__slide.active .scan-laser { animation: laserScan 4s infinite ease-in-out; }
.hero-showcase__slide.active .shield-inner { animation: shieldPulse 3s infinite ease-in-out; }
.hero-showcase__slide.active .drawing-path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: pathDraw 3s infinite ease-in-out; }
.hero-showcase__slide.active .cursor-pointer-sim { animation: buttonClick 3s infinite ease-in-out; }
.hero-showcase__slide.active .bar-chart-1 { animation: chartGrow 3s infinite ease-in-out; transform-origin: bottom; }
.hero-showcase__slide.active .bar-chart-2 { animation: chartGrow 3s infinite ease-in-out 0.2s; transform-origin: bottom; }
.hero-showcase__slide.active .bar-chart-3 { animation: chartGrow 3s infinite ease-in-out 0.4s; transform-origin: bottom; }
.hero-showcase__slide.active .msg-bubble { animation: bubblePop 4s infinite ease-in-out; }
.hero-showcase__slide.active .b-1 { animation-delay: 0.5s; transform-origin: bottom left; }
.hero-showcase__slide.active .b-2 { animation-delay: 2s; transform-origin: bottom right; }
.hero-showcase__slide.active .cloud-server-led { animation: blinkLed 1.5s infinite step-end; }
.hero-showcase__slide.active .cloud-server-led-2 { animation: blinkLed 1.5s infinite step-end 0.75s; }
.hero-showcase__slide.active .arrow-up { animation: arrowSlideUp 3s infinite ease-in-out; }
.hero-showcase__slide.active .arrow-down { animation: arrowSlideDown 3s infinite ease-in-out; }
.hero-showcase__slide.active .gauge-needle { animation: needleWiggle 4s infinite ease-in-out; transform-origin: 155px 45px; }
.hero-showcase__slide.active .bulb-glow { animation: bulbBlink 4s infinite ease-in-out; }
.hero-showcase__slide.active .check-draw { stroke-dasharray: 40; stroke-dashoffset: 40; animation: checkDrawAn 4s infinite ease-in-out; }
.hero-showcase__slide.active .growth-lines { stroke-dasharray: 30; stroke-dashoffset: 30; animation: linesDrawAn 4s infinite ease-in-out; }
.hero-showcase__slide.active .bulb-glow-circle { animation: bulbRingGlow 4s infinite ease-in-out; }

/* Company Overview */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.overview__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-secondary) 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.overview__image-inner {
  text-align: center;
  color: white;
  padding: var(--space-8);
}

.overview__stat-row {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.overview__mini-stat {
  text-align: left;
}

.overview__mini-stat strong {
  display: block;
  font-size: var(--text-2xl);
  color: white;
  font-weight: 700;
}

.overview__mini-stat span {
  font-size: var(--text-sm);
  color: rgb(255 255 255 / 0.6);
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.why-item {
  padding: var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base);
}

.why-item:hover {
  border-color: var(--color-primary);
}

.why-item__number {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

/* Tech Expertise Home */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.tech-pill {
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.tech-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgb(37 99 235 / 0.04);
}

/* About Page */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.mission-card {
  padding: var(--space-10);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text);
  transition: 
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
    border-color 0.4s ease,
    background 0.4s ease,
    color 0.4s ease;
  will-change: transform, box-shadow;
}

.mission-card h3,
.mission-card p,
.mission-card .section-label {
  transition: color 0.4s ease, opacity 0.4s ease;
}

.mission-card h3 {
  color: var(--color-text);
}

.mission-card p {
  color: var(--color-text);
}

.mission-card .section-label {
  color: var(--color-primary);
}

.mission-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
}

/* Vision Card Hover State (turns blue) */
.mission-card:not(.mission-card--primary):hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-color: transparent;
  color: white;
}

.mission-card:not(.mission-card--primary):hover h3 {
  color: white;
}

.mission-card:not(.mission-card--primary):hover p {
  color: white;
  opacity: 0.85;
}

.mission-card:not(.mission-card--primary):hover .section-label {
  color: rgba(255, 255, 255, 0.8);
}

/* Primary Mission Card (Default State is blue) */
.mission-card--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: 1px solid transparent;
  color: white;
}

.mission-card--primary h3 {
  color: white;
}

.mission-card--primary p {
  color: white;
  opacity: 0.85;
}

.mission-card--primary .section-label {
  color: rgba(255, 255, 255, 0.8);
}

.mission-card--primary:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 45px -12px rgba(37, 99, 235, 0.35),
    0 4px 12px -2px rgba(37, 99, 235, 0.15);
}

/* When Vision is hovered, Mission (primary) card turns white */
.mission-vision-grid:has(.mission-card:not(.mission-card--primary):hover) .mission-card--primary {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  box-shadow: none;
}

.mission-vision-grid:has(.mission-card:not(.mission-card--primary):hover) .mission-card--primary h3 {
  color: var(--color-text);
}

.mission-vision-grid:has(.mission-card:not(.mission-card--primary):hover) .mission-card--primary p {
  color: var(--color-text-muted);
  opacity: 1;
}

.mission-vision-grid:has(.mission-card:not(.mission-card--primary):hover) .mission-card--primary .section-label {
  color: var(--color-primary);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

/* Projects Page Detail */
.project-detail {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
}

.project-detail__hero {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--color-bg-muted);
}

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

.project-detail__body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.015) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.005'/%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.project-detail__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-10);
}

.project-detail__section {
  margin-bottom: var(--space-8);
}

.project-detail__section h4 {
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.project-detail__sidebar {
  padding: var(--space-6);
  background: var(--color-bg-light);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  height: fit-content;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.project-gallery__item {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-muted);
}

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

/* Careers */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.benefit-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.benefit-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(16 185 129 / 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-success);
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.internship-banner {
  background: linear-gradient(135deg, rgb(37 99 235 / 0.05) 0%, rgb(14 165 233 / 0.08) 100%);
  border: 1px solid rgb(37 99 235 / 0.12);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
}

.contact-form-card {
  padding: var(--space-10);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {

  .overview-grid,
  .about-intro,
  .culture-grid,
  .contact-grid,
  .project-detail__grid {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .benefits-grid,
  .mission-vision-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .hero__subtitle {
  font-size: var(--text-xl);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 580px;
  color: #E2E8F0;
}

  .project-gallery {
    grid-template-columns: 1fr;
  }
}

/* Sub-page top layout spacing fixes to prevent overlapping with fixed header */
#services-page,
#projects {
  padding-top: calc(var(--header-height) + var(--space-8)) !important;
}

@media (min-width: 1025px) {
  #services-page,
  #projects {
    padding-top: calc(var(--header-height) + var(--space-12)) !important;
  }
}

/* ============================================================
   Technology Showcase Marquee Section Styling (Standalone)
   ============================================================ */
.tech-showcase {
  clear: both;
  width: 100%;
  display: block;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 50%, var(--color-bg) 100%);
  padding-block: var(--space-12) var(--space-16);
  position: relative;
  overflow: hidden;
  z-index: 3;
}

.tech-showcase-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.tech-showcase-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-2);
}

.tech-showcase-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 500px;
  margin-inline: auto;
}

.marquee-showcase-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 4px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Background floating particles */
.marquee-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.marquee-particles::before,
.marquee-particles::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: marqueeDriftBg 15s ease-in-out infinite alternate;
}

.marquee-particles::before {
  top: -50px;
  left: 10%;
}

.marquee-particles::after {
  bottom: -50px;
  right: 15%;
  animation-delay: -7.5s;
}

@keyframes marqueeDriftBg {
  0% { transform: translate(0, 0) scale(0.85); }
  100% { transform: translate(40px, -20px) scale(1.1); }
}

/* Edge Fading Mask - Vercel / Stripe style */
.marquee-track {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow: hidden;
  z-index: 2;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* Technology Cards - Premium Glassmorphism Badges */
.marquee-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  padding: 10px 24px 10px 16px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.05rem;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatBadge 4s ease-in-out infinite;
  animation-delay: calc(var(--anim-delay, 0) * 1s);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-inline: 16px;
  width: max-content;
  flex-shrink: 0;
  animation: marqueeScroll 25s linear infinite;
  will-change: transform;
}

.marquee-track:hover .marquee-content {
  animation-play-state: paused;
}

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

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgb(var(--card-color-raw));
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(var(--card-color-raw), 0.6));
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.marquee-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgb(var(--card-color-raw));
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 10px 28px rgba(var(--card-color-raw), 0.3);
  color: #fff;
}

.marquee-card:hover .card-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(var(--card-color-raw), 0.9));
}


/* ============================================================
   DARK MODE — FULL COMPREHENSIVE OVERRIDES
   Covers every surface that uses hardcoded colors instead of
   CSS variables (checked via grep).
   ============================================================ */

/* Body & root */
[data-theme="dark"] body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.015) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.015) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.005'/%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Header — overrides hardcoded rgb(255 255 255 / 0.92) */
[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.92);
}
[data-theme="dark"] .header--scrolled {
  background: rgba(9, 15, 31, 0.98);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.05), var(--shadow-md);
}

/* Section backgrounds */
[data-theme="dark"] .section--bg,
[data-theme="dark"] .page-hero {
  background: var(--color-bg-light) !important;
}

/* Hero */
[data-theme="dark"] .hero {
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}
[data-theme="dark"] .hero__badge {
  background: rgb(37 99 235 / 0.15);
  border-color: rgb(37 99 235 / 0.3);
  color: var(--color-primary-light);
}

/* Navigation links */
[data-theme="dark"] .nav__link {
  color: var(--color-text-muted);
}
[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__link--active {
  color: var(--color-text);
}

/* Cards & surfaces */
[data-theme="dark"] .card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .tech-category,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .process-step,
[data-theme="dark"] .value-card,
[data-theme="dark"] .benefit-item,
[data-theme="dark"] .job-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-info-item {
  background-color: var(--color-bg-light);
  border-color: var(--color-border);
  color: var(--color-text);
}

/* Timeline */
[data-theme="dark"] .timeline__item {
  border-left-color: var(--color-border);
}
[data-theme="dark"] .timeline__year {
  background: transparent;
  color: var(--color-primary-light);
}

/* Mission cards */
[data-theme="dark"] .mission-card {
  background: var(--color-bg-light);
  border-color: var(--color-border);
}
[data-theme="dark"] .mission-card--primary {
  background: linear-gradient(135deg, rgb(37 99 235 / 0.15) 0%, rgb(37 99 235 / 0.05) 100%);
  border-color: rgb(37 99 235 / 0.3);
}



/* Form inputs */
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea,
[data-theme="dark"] .form-select {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text);
}
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder {
  color: var(--color-text-light);
}
[data-theme="dark"] .form-label {
  color: var(--color-text-muted);
}
[data-theme="dark"] .form-success {
  background: rgb(16 185 129 / 0.1);
  border-color: rgb(16 185 129 / 0.25);
  color: #34D399;
}

/* Stats counter */
[data-theme="dark"] .stat-number {
  color: var(--color-primary-light);
}

/* Mobile nav */
@media (max-width: 1024px) {
  [data-theme="dark"] .header {
    background: var(--color-bg-light);
  }
  [data-theme="dark"] .nav {
    background: linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.65) 0%,
      rgba(2, 6, 23, 0.65) calc(100% - 280px),
      var(--color-bg-light) calc(100% - 280px),
      var(--color-bg-light) 100%
    );
  }
}

/* ============================================================
   Smooth theme transition — applied to key surfaces only
   ============================================================ */
html,
body,
.header,
.nav,
.card,
.service-card,
.project-card,
.tech-category,
.contact-form-card,
.contact-info-card,
.job-card,
.stat-card,
.process-step,
.value-card,
.benefit-item,
.form-input,
.form-textarea,
.form-select,
.btn--secondary {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

/* ============================================================
   Dark Mode — Component-Specific Overrides
   (things that use hardcoded RGBA / non-variable colours)
   ============================================================ */

/* Header glassmorphism */
[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.88);
}
[data-theme="dark"] .header--scrolled {
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06), var(--shadow-md);
}

/* Mobile nav drawer */
@media (max-width: 1024px) {
  [data-theme="dark"] .header {
    background: #1E293B;
  }
  [data-theme="dark"] .nav {
    background: linear-gradient(
      90deg,
      rgba(2, 6, 23, 0.65) 0%,
      rgba(2, 6, 23, 0.65) calc(100% - 280px),
      #1E293B calc(100% - 280px),
      #1E293B 100%
    );
  }
}

/* Hero badge in dark mode */
[data-theme="dark"] .hero__badge {
  background: rgb(37 99 235 / 0.15);
  border-color: rgb(37 99 235 / 0.25);
}

/* Section bg override */
[data-theme="dark"] .section--bg {
  background: var(--color-bg-light);
}

/* Page hero darkened */
[data-theme="dark"] .page-hero {
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

/* ============================================================
   Theme Toggle Button
   ============================================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--color-bg-muted);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
  flex-shrink: 0;
}

/* Moon shown in light mode, sun shown in dark mode */
.theme-toggle__sun  { display: none;  }
.theme-toggle__moon { display: block; }

[data-theme="dark"] .theme-toggle__sun  { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none;  }

/* ============================================================
   Mobile Responsive Redesign Overrides
   ============================================================ */

/* Mobile and Tablet Navbar Fixes (below 1024px) */
.logo__name {
  white-space: nowrap !important;
  font-weight: 700 !important;
  transition: font-size 0.2s ease !important;
}

@media (max-width: 1023px) {
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important; /* Ensure it stays on top */
    overflow: visible !important; /* Prevent parent container overflow hiding the menu */
  }

  .header__inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-inline: var(--space-4) !important;
    overflow: visible !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 1 !important; /* Allow the logo to shrink so it doesn't push the menu off-screen */
    min-width: 0 !important;
  }

  .logo-img {
    width: 55px !important;
    height: auto !important;
    max-height: 48px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
  }

  .logo__text {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  .logo__name {
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex-shrink: 1 !important;
  }

  .logo__tagline {
    display: none !important; /* Hide tagline below 1024px to prevent wrapping/space issues */
  }

  /* Responsive Logo Image Sizing */
  @media (max-width: 767px) {
    .logo-img {
      width: 45px !important;
      max-height: 40px !important;
    }
  }

  /* Progressive Font Scaling for Logo text below 1024px to ensure fit on 320px+ */
  @media (max-width: 359px) {
    .logo__name {
      font-size: 13px !important;
    }
    .logo-img {
      width: 40px !important;
      max-height: 35px !important;
    }
  }

  @media (min-width: 360px) and (max-width: 389px) {
    .logo__name {
      font-size: 14px !important;
    }
    .logo-img {
      width: 42px !important;
      max-height: 36px !important;
    }
  }

  @media (min-width: 390px) and (max-width: 479px) {
    .logo__name {
      font-size: 15px !important;
    }
  }

  @media (min-width: 480px) and (max-width: 767px) {
    .logo__name {
      font-size: 16.5px !important;
    }
  }

  @media (min-width: 768px) {
    .logo__name {
      font-size: 18px !important;
    }
  }

  .header__actions {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }

  .nav-toggle {
    display: flex !important; /* Always display the hamburger menu on screens below 1024px */
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    z-index: 9999 !important; /* z-index: 9999 */
    cursor: pointer !important;
    pointer-events: auto !important; /* Ensure clickable */
  }

  .nav-toggle__bar {
    width: 20px !important;
    height: 2px !important;
    background: #CBD5E1 !important; /* Explicitly light gray bars so they are visible on dark header */
    border-radius: 2px !important;
    margin: 0 !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
  }

  /* Full Width stacked buttons for mobile */
  .btn-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: var(--space-3) !important;
    align-items: center !important;
  }

  .btn-group .btn {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
  }
}

/* Hero Section Typography & Spacing Scale (Mobile-First) */
.hero {
  /* Desktop styles (fallback / default) */
  min-height: calc(100vh - var(--header-height));
  height: auto;
  padding-top: calc(var(--header-height) + 40px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh !important;
    height: auto !important;
    padding: 100px 24px 60px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .hero__grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center !important;
    width: 100% !important;
  }

  .hero__left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .hero__badge {
    margin-bottom: var(--space-4) !important;
  }

  .hero__title {
    font-size: 28px !important; /* Small phones default */
    line-height: 1.25 !important;
    margin-bottom: var(--space-4) !important;
    text-wrap: balance !important; /* Prevent awkward wraps */
  }

  .hero__subtitle {
    font-size: 16px !important;
    line-height: 1.7 !important;
    margin-bottom: var(--space-6) !important;
    padding-inline: 10px !important;
  }

  /* Centered CTA Buttons layout for Hero on Mobile */
  .hero__actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: var(--space-3) !important;
    max-width: 280px !important;
    margin-top: 0.5rem !important;
  }

  .hero__actions .btn {
    width: 100% !important;
    padding: var(--space-3) var(--space-4) !important;
    font-size: 15px !important;
  }

  .hero__right {
    width: 100% !important;
    margin-top: 10px !important;
  }
}

/* Extra media queries for progressive scaling */
@media (min-width: 480px) and (max-width: 767px) {
  .hero__title {
    font-size: 32px !important; /* Normal mobile heading size */
  }
  
  .hero__actions {
    flex-direction: row !important;
    max-width: 100% !important;
    justify-content: center !important;
  }
  
  .hero__actions .btn {
    width: auto !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero__title {
    font-size: 48px !important; /* Tablet heading size */
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 64px !important; /* Desktop heading size */
  }
  
  .hero__subtitle {
    font-size: 22px !important;
    line-height: 1.8 !important;
  }
}

/* Footer mobile layout adjustments */
@media (max-width: 768px) {
  .footer {
    padding-top: var(--space-10) !important;
    padding-bottom: var(--space-8) !important;
  }

  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important; /* Reduce vertical gaps */
    text-align: left !important;
  }

  .footer__brand {
    margin-bottom: var(--space-4) !important;
  }

  .footer__brand p {
    max-width: 100% !important;
  }

  .footer__heading {
    margin-bottom: var(--space-3) !important;
  }

  .footer__links li {
    margin-bottom: var(--space-2) !important;
  }

  /* Ensure email and phone numbers wrap on very small screens */
  .footer__links a {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .footer__bottom {
    margin-top: var(--space-10) !important;
    padding-top: var(--space-6) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* ============================================================
   Global Reset to Eliminate Horizontal Overflow & Scrolling
   ============================================================ */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

img, picture, video, canvas, svg {
  max-width: 100% !important;
  height: auto !important;
}

/* Disable Sticky Header & Remove Padding Offsets on Mobile (< 768px) */
@media (max-width: 767px) {
  .header {
    position: relative !important;
  }

  .hero {
    padding-top: 40px !important;
    min-height: calc(100vh - var(--header-height)) !important;
  }

  .page-hero {
    padding-top: var(--space-8) !important;
  }
}
