/* ============================================================
   ITMem — Main Stylesheet
   Modern, professional IT company website
   ============================================================ */

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

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --color-bg: #0a0f1e;
  --color-bg-alt: #0d1526;
  --color-surface: #111827;
  --color-surface-2: #1a2436;
  --color-border: #1e2d45;
  --color-border-light: rgba(59, 130, 246, 0.15);

  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-primary-light: #60a5fa;
  --color-accent: #06b6d4;
  --color-accent-2: #8b5cf6;

  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;
  --color-heading: #ffffff;

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0a0f1e 0%, #0d1a2e 40%, #0a1628 100%);
  --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(26, 36, 54, 0.9));
  --gradient-blue: linear-gradient(135deg, #3b82f6, #2563eb);
  --gradient-accent: linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #3b82f6);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

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

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5), 0 10px 10px rgba(0, 0, 0, 0.3);
  --shadow-blue: 0 8px 30px rgba(59, 130, 246, 0.25);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

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

  /* Nav height */
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

p {
  color: var(--color-text-muted);
  line-height: 1.75;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
}

input,
textarea,
select {
  font-family: var(--font-sans);
}

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

.container--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

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

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

/* ---- Typography Utilities ---- */
.label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

.section-heading {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.section-heading span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.75;
}

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

.text-center .section-intro {
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-lg);
  border: none;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
  color: #fff;
}

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

.btn--outline:hover {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

.btn--large {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

/* ---- Card ---- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

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

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(10, 15, 30, 0.95);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.nav__logo-tag {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  font-weight: 500;
  letter-spacing: 0.05em;
}

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

.nav__link {
  padding: 0.5rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.nav__cta {
  margin-left: var(--space-4);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.form__msg--success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: var(--text-sm);
}

.form__msg--error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: var(--text-sm);
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6);
  z-index: 999;
  flex-direction: column;
  gap: var(--space-2);
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile .nav__link {
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  display: block;
  border-radius: var(--radius-lg);
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
}

.hero__glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  z-index: -1;
}

.hero__glow-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  z-index: -1;
}

.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-20) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

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

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--color-heading);
}

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

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-10);
  max-width: 540px;
}

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

.hero__stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.hero__stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-heading);
  letter-spacing: -0.03em;
  display: block;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  margin-top: var(--space-1);
}

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

.hero__code-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero__code-header {
  background: var(--color-surface-2);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.hero__code-dots {
  display: flex;
  gap: 6px;
}

.hero__code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.hero__code-dot:nth-child(1) {
  background: #ef4444;
}

.hero__code-dot:nth-child(2) {
  background: #f59e0b;
}

.hero__code-dot:nth-child(3) {
  background: #10b981;
}

.hero__code-tab {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-left: var(--space-3);
}

.hero__code-body {
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.hero__code-body pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.code-ln {
  color: var(--color-text-subtle);
  margin-right: var(--space-4);
  user-select: none;
}

.code-kw {
  color: #c792ea;
}

.code-fn {
  color: #82aaff;
}

.code-str {
  color: #c3e88d;
}

.code-cmt {
  color: var(--color-text-subtle);
  font-style: italic;
}

.code-var {
  color: #f78c6c;
}

.code-num {
  color: #f78c6c;
}

.code-prop {
  color: #80cbc4;
}

/* ---- Services Section ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

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

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}

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

.service-card__link:hover {
  gap: var(--space-3);
  color: var(--color-primary-light);
}

/* ---- Stats / Trust Section ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.stat-item {
  text-align: center;
  padding: var(--space-8);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.stat-item__value {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---- Technologies Section ---- */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.field-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: 0.35rem;
  min-height: 1em;
}

.form__input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.tech-badge:hover {
  border-color: var(--color-border-light);
  color: var(--color-text);
  background: rgba(59, 130, 246, 0.05);
}

.tech-badge span {
  font-size: 1.1rem;
}

/* ---- Process / How We Work ---- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-12);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent), transparent);
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-10);
  position: relative;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
  flex-shrink: 0;
  z-index: 1;
  transition: all var(--transition-base);
}

.process-step:hover .process-step__num {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.process-step__content {
  padding-top: var(--space-3);
}

.process-step__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.process-step__desc {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- Projects / Portfolio ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.project-card__header {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card__body {
  padding: var(--space-6);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.project-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
}

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

.project-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- Industries ---- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.industry-item {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.industry-item:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: var(--color-border-light);
}

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

.industry-item__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* ---- About Page ---- */
.about-hero {
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.value-card {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.value-card:hover {
  border-color: var(--color-border-light);
  background: rgba(59, 130, 246, 0.04);
}

.value-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-3);
}

.value-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.value-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

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

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.contact-item__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-1);
}

.contact-item__value {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
}

/* ---- Form ---- */
.form {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.form__group {
  margin-bottom: var(--space-5);
}

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

.form__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
  transition: all var(--transition-fast);
}

.form__input::placeholder {
  color: var(--color-text-subtle);
}

.form__input:focus {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form__input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

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

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}


/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--color-border);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.page-hero__desc {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}

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

.breadcrumb a {
  color: var(--color-text-subtle);
  transition: color var(--transition-fast);
}

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

.breadcrumb__sep {
  color: var(--color-border);
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.cta-banner__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.cta-banner__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  line-height: 1.75;
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.footer__link:hover {
  color: var(--color-text);
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  margin-top: var(--space-3);
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.testimonial-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  font-style: italic;
}

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

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-heading);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

/* ---- FAQ ---- */
.faq-list {
  margin-top: var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-border-light);
}

.faq-item.open {
  border-color: var(--color-border-light);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  gap: var(--space-4);
}

.faq-question__text {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.4;
}

.faq-question__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-text-subtle);
  transition: transform var(--transition-base);
}

.faq-item.open .faq-question__icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

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

.faq-answer__inner {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
}

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

/* ---- Services Detail ---- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse>* {
  direction: ltr;
}

.service-detail__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.service-feature__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-feature__icon svg {
  width: 12px;
  height: 12px;
  color: var(--color-primary);
}

.service-feature__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-visual {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

/* ---- Animations ---- */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

/* ---- Scroll Reveal (JS-driven) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 0;
}

/* ---- Tag / Pill ---- */
.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pill--blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.pill--teal {
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.pill--purple {
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ---- Icon colors ---- */
.icon-blue {
  color: #60a5fa;
}

.icon-teal {
  color: #34d399;
}

.icon-purple {
  color: #c4b5fd;
}

.icon-yellow {
  color: #fbbf24;
}

.icon-red {
  color: #f87171;
}

.icon-orange {
  color: #fb923c;
}

/* ---- Stars ---- */
.star {
  color: #fbbf24;
  font-size: 0.875rem;
}

/* ---- Utility classes ---- */
.flex {
  display: flex;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

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

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

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

.mb-2 {
  margin-bottom: var(--space-2);
}

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

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

.mb-6 {
  margin-bottom: var(--space-6);
}

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

.mb-10 {
  margin-bottom: var(--space-10);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-12 {
  margin-top: var(--space-12);
}

.font-mono {
  font-family: var(--font-mono);
}

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

.text-muted {
  color: var(--color-text-muted);
}

.text-subtle {
  color: var(--color-text-subtle);
}

.text-primary {
  color: var(--color-primary);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero__visual {
    order: -1;
  }

  .hero__visual {
    order: 2;
  }

  .hero__code-block {
    max-width: 100%;
  }

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

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

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

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

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

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

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

  .service-detail.reverse {
    direction: ltr;
  }

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

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

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

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

  .hero__stats {
    gap: var(--space-5);
  }

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

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

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

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

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

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

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

  .process-steps::before {
    display: none;
  }

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

  .cta-banner__actions {
    flex-direction: column;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

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

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

  .hero__badge {
    font-size: 0.65rem;
  }

  .form {
    padding: var(--space-6);
  }
}

/* ============================================================
   Phase 2 Refinements — Additional Styles
   ============================================================ */

/* ---- Skip Navigation ---- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-nav:focus {
  top: var(--space-4);
  color: #fff;
}

/* ---- Focus Visible (Accessibility) ---- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Card refinements ---- */
.card__accent-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.card:hover .card__accent-icon {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ---- Tech categories layout ---- */
.tech-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.tech-category {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
}

.tech-category__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  min-width: 120px;
  padding-top: 0.5rem;
  flex-shrink: 0;
}

/* ---- Service quick nav ---- */
.service-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-quicknav__item {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.service-quicknav__item:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: rgba(59, 130, 246, 0.06);
}

/* ---- Footer refinements ---- */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  transition: color var(--transition-fast);
}

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

.footer__cta-text {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.footer__cta-btn {
  display: inline-flex;
}

.footer__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.footer__trust-item svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ---- Industry item refined ---- */
.industry-item__desc {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  line-height: 1.55;
  margin-top: var(--space-1);
}

/* ---- Prose (legal pages) ---- */
.prose h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  margin: 2rem 0 0.875rem;
}

.prose p {
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.prose a {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ---- Form submit button full-width ---- */
.btn--submit-full {
  width: 100%;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn--submit-full:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- Back to top button ---- */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
}

.back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---- Select element styling ---- */
select.form__input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.form__input option {
  background: var(--color-surface);
  color: var(--color-text);
}

/* ---- Nav mobile uses hidden attr ---- */
.nav__mobile[hidden] {
  display: none !important;
}

.nav__mobile:not([hidden]) {
  display: flex;
}

/* ---- Improved industries grid (4 → 2 on mobile) ---- */
@media (max-width: 640px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---- Tech categories responsive ---- */
@media (max-width: 640px) {
  .tech-category {
    flex-direction: column;
    gap: var(--space-3);
  }

  .tech-category__label {
    min-width: auto;
    padding-top: 0;
  }
}

/* ---- Projects grid responsive ---- */
@media (max-width: 768px) {
  .card[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ---- Sector grid responsive ---- */
@media (max-width: 768px) {
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---- Service detail responsive ---- */
@media (max-width: 900px) {
  .service-detail {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
  }

  .service-detail>* {
    direction: ltr !important;
  }

  .service-visual {
    display: none;
  }
}

/* ---- Three-col card grid responsive ---- */
@media (max-width: 860px) {

  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 540px) {

  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Process grid responsive ---- */
@media (max-width: 860px) {

  section[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Contact grid responsive ---- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Print styles ---- */
@media print {

  .nav,
  .nav__mobile,
  .back-to-top,
  .hero__visual {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}