/* =========================================
   digivyb — Tech Startup Stylesheet
   Dark Mode · Space Grotesk · Glassmorphism
   ========================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Dark Palette */
  --color-bg: #0A0D17;
  --color-surface: #10142B;
  --color-surface-2: #191F32;
  --color-surface-3: #262E4A;
  --color-text-primary: #FAFAFA;
  --color-text-secondary: #A1A1AA;
  --color-text-muted: #71717A;

  /* Accent — digivyb Teal */
  --color-accent: #69C8C7;
  --color-accent-2: #3D8F97;
  --color-accent-hover: #4FB0AE;
  --color-accent-light: rgba(105,200,199, 0.08);
  --color-accent-mid: rgba(105,200,199, 0.18);
  --color-accent-glow: rgba(105,200,199, 0.25);
  --color-accent-2-glow: rgba(61,143,151, 0.25);

  /* Borders */
  --color-border: rgba(255,255,255,0.07);
  --color-border-hover: rgba(255,255,255,0.15);

  /* Semantic (legacy compat) */
  --color-dark: #0A0D17;
  --color-dark-80: rgba(10,13,23,0.8);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-lg: 0 10px 48px rgba(0,0,0,0.7);
  --shadow-accent: 0 8px 32px rgba(105,200,199,0.3);
  --shadow-accent-2: 0 8px 32px rgba(61,143,151,0.3);
  --glow-accent: 0 0 60px rgba(105,200,199,0.12);
  --glow-accent-2: 0 0 60px rgba(61,143,151,0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Layout */
  --container-width: 1200px;
  --container-padding: 0 24px;
  --section-padding: 100px 0;
}

/* =========================================
   LIGHT THEME OVERRIDES
   Applied when data-theme="light" on <html>
   ========================================= */
[data-theme="light"] {
  --color-bg: #F4F6FB;
  --color-surface: #FFFFFF;
  --color-surface-2: #EDF0F7;
  --color-surface-3: #E2E6F0;
  --color-text-primary: #191F32;
  --color-text-secondary: #4A4A6A;
  --color-text-muted: #8080A0;

  /* Slightly richer accent for light bg contrast */
  --color-accent: #158F8D;
  --color-accent-2: #145F65;
  --color-accent-hover: #0E6F6D;
  --color-accent-light: rgba(21,143,141, 0.09);
  --color-accent-mid: rgba(21,143,141, 0.18);
  --color-accent-glow: rgba(21,143,141, 0.2);
  --color-accent-2-glow: rgba(20,95,101, 0.2);

  --color-border: rgba(0,0,0,0.08);
  --color-border-hover: rgba(0,0,0,0.18);

  --color-dark: #191F32;
  --color-dark-80: rgba(25,31,50,0.8);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 10px 48px rgba(0,0,0,0.13);
  --shadow-accent: 0 8px 32px rgba(21,143,141,0.22);
  --shadow-accent-2: 0 8px 32px rgba(20,95,101,0.22);
  --glow-accent: 0 0 60px rgba(21,143,141,0.08);
  --glow-accent-2: 0 0 60px rgba(20,95,101,0.08);
}

/* Light theme — specific element overrides */
[data-theme="light"] #hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(21,143,141,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(20,95,101,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 0% 60%, rgba(21,143,141,0.05) 0%, transparent 60%);
}

[data-theme="light"] #hero::after {
  background-image: radial-gradient(rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 0%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 0%, transparent 90%);
}

[data-theme="light"] #hero {
  background: var(--color-bg);
}

[data-theme="light"] #header.scrolled {
  background: rgba(244,246,251,0.92);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

[data-theme="light"] .client-logo {
  color: rgba(0,0,0,0.38);
}

[data-theme="light"] .client-logo:hover {
  color: rgba(0,0,0,0.7);
}

[data-theme="light"] .marquee-section {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="light"] .process-strip {
  background: var(--color-surface);
}

[data-theme="light"] .process-strip::before {
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(21,143,141,0.04) 0%, transparent 70%);
}

[data-theme="light"] #team {
  background: var(--color-surface);
}

[data-theme="light"] #menu-overlay {
  background: rgba(244,246,251,0.97);
}

[data-theme="light"] #preloader {
  background: #0A0D17;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.3s ease;
}

body.menu-open,
body.preloader-active {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: var(--font-body);
}

/* =========================================
   PARTICLE CANVAS & BACKGROUND TEXTURE
   ========================================= */

/* Particle canvas — fixed, pointer-events:none so it never blocks interactions */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Full-site dot-grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

[data-theme="light"] body::before {
  background-image: radial-gradient(circle, rgba(0,0,0,0.055) 1px, transparent 1px);
}

/* In-flow page sections sit above the particle canvas (z-index:1).
   Only targets normal-flow elements — does NOT touch position:fixed elements
   like #header, #preloader, #cursor etc. which have their own z-index. */
#hero,
#about,
#services,
#portfolio,
#team,
#testimonials,
#contact,
#footer,
.marquee-section,
.clients-section,
.process-strip {
  position: relative;
  z-index: 2;
}


/* =========================================
   UTILITY CLASSES
   ========================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-accent);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 540px;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(105,200,199,0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-accent) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary i,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(105,200,199,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-hover);
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
  box-shadow: 0 0 20px rgba(105,200,199,0.15);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =========================================
   CUSTOM CURSOR
   ========================================= */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  box-shadow: 0 0 12px rgba(105,200,199,0.8);
}

#cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(105,200,199,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}

#cursor.cursor-hover {
  transform: translate(-50%, -50%) scale(2.5);
  opacity: 0.5;
}

#cursor-follower.cursor-hover {
  transform: translate(-50%, -50%) scale(1.8);
  border-color: rgba(61,143,151,0.5);
  opacity: 0.5;
}

/* =========================================
   PRELOADER
   ========================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(105,200,199,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(61,143,151,0.06) 0%, transparent 70%);
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 48px;
  position: relative;
}

.preloader-letters {
  display: flex;
  gap: 2px;
  position: relative;
}

.preloader-letter {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(60px);
  animation: letterReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  letter-spacing: -0.04em;
}

@keyframes letterReveal {
  to { opacity: 1; transform: translateY(0); }
}

.preloader-bar-wrap {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
}

.preloader-bar {
  height: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  border-radius: 1px;
  width: 0%;
  animation: barFill 1.8s ease forwards;
  box-shadow: 0 0 12px rgba(105,200,199,0.6);
}

@keyframes barFill {
  to { width: 100%; }
}

.preloader-percent {
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(10,13,23,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo .logo-image {
  display: block;
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
}

#header.scrolled .header-logo .logo-image {
  height: 40px;
}

@media (max-width: 768px) {
  .header-logo .logo-image,
  #header.scrolled .header-logo .logo-image {
    height: 36px;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(105,200,199,0.5);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-text-primary);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

#header.hero-state .header-nav a {
  color: var(--color-text-secondary);
}

#header.hero-state .header-nav a:hover {
  color: var(--color-text-primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: var(--transition);
}

.hamburger-btn:hover {
  border-color: var(--color-accent);
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

/* =========================================
   THEME TOGGLE BUTTON
   ========================================= */
.theme-toggle-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-hover);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
}

.theme-toggle-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent-light);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 16px var(--color-accent-glow);
}

.theme-toggle-btn:hover::before {
  transform: scale(1);
}

.theme-toggle-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.theme-toggle-btn:active i {
  transform: rotate(30deg) scale(0.85);
}

/* Light theme toggle adjustments */
[data-theme="light"] .theme-toggle-btn {
  background: var(--color-surface-2);
}

/* Temporarily hidden — delete this rule to bring back the light/dark switch */
.theme-toggle-btn {
  display: none;
}


/* =========================================
   MOBILE MENU OVERLAY
   ========================================= */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,13,23,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-overlay.open {
  transform: translateX(0);
}

.menu-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.menu-overlay-logo {
  display: flex;
  align-items: center;
}

.menu-overlay-logo .logo-image {
  display: block;
  height: 40px;
  width: auto;
}

.menu-close-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: var(--color-surface);
}

.menu-close-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.menu-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.menu-overlay-nav a {
  font-family: var(--font-heading);
  font-size: clamp(24px, 6vw, 40px);
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.menu-overlay-nav a i {
  font-size: 16px;
  opacity: 0;
  transform: translateX(-8px);
  transition: var(--transition);
}

.menu-overlay-nav a:hover {
  color: var(--color-accent);
  padding-left: 8px;
}

.menu-overlay-nav a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay-footer {
  margin-top: 32px;
}

.menu-overlay-social {
  display: flex;
  gap: 24px;
}

.menu-overlay-social a {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-overlay-social a:hover {
  color: var(--color-accent);
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}

/* Animated gradient mesh background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(105,200,199,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(61,143,151,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 0% 60%, rgba(105,200,199,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Dot grid overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
  mix-blend-mode: luminosity;
}

/* Background video — sits behind everything else in .hero-bg. Kept
   fairly dim so the glow tint and scrim (below) can do the work of
   keeping the headline and description readable regardless of what
   the footage looks like. */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

[data-theme="light"] .hero-bg-video {
  opacity: 0.3;
}

/* Readability scrim — nearly opaque where the headline/body copy
   sits (left side), fading out toward the right so the video shows. */
.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    var(--color-bg) 0%,
    var(--color-bg) 28%,
    rgba(10,13,23,0.55) 50%,
    rgba(10,13,23,0.15) 72%,
    transparent 90%
  );
}

[data-theme="light"] .hero-bg-scrim {
  background: linear-gradient(
    115deg,
    var(--color-bg) 0%,
    var(--color-bg) 28%,
    rgba(244,246,251,0.82) 50%,
    rgba(244,246,251,0.3) 72%,
    transparent 90%
  );
}

/* Video is heavy for mobile data/battery, so fall back to the
   CSS-only glow background under this breakpoint. */
@media (max-width: 768px) {
  .hero-bg-video {
    display: none;
  }
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: transparent;
}

/* Glowing gradient orbs — soft, drifting color pools that give the
   hero its depth and motion without touching the copy (which sits in
   a higher stacking layer). */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  animation: heroFloat 16s ease-in-out infinite;
}

.hero-glow-1 {
  top: -12%;
  left: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(105,200,199,0.5) 0%, rgba(105,200,199,0) 70%);
  animation-duration: 18s;
}

.hero-glow-2 {
  bottom: -18%;
  right: -6%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(61,143,151,0.45) 0%, rgba(61,143,151,0) 70%);
  animation-duration: 22s;
  animation-delay: -6s;
}

.hero-glow-3 {
  top: 28%;
  left: 38%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(105,200,199,0.35) 0%, rgba(105,200,199,0) 70%);
  animation-duration: 14s;
  animation-delay: -3s;
}

[data-theme="light"] .hero-glow-1 {
  background: radial-gradient(circle, rgba(21,143,141,0.28) 0%, rgba(21,143,141,0) 70%);
}

[data-theme="light"] .hero-glow-2 {
  background: radial-gradient(circle, rgba(20,95,101,0.24) 0%, rgba(20,95,101,0) 70%);
}

[data-theme="light"] .hero-glow-3 {
  background: radial-gradient(circle, rgba(21,143,141,0.18) 0%, rgba(21,143,141,0) 70%);
}

@keyframes heroFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(4%, 6%) scale(1.08); }
  66%  { transform: translate(-5%, -3%) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Blueprint grid — faint technical linework that fades out toward the
   edges so it reads as texture, not a hard-edged overlay. */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(105,200,199,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105,200,199,0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(21,143,141,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,143,141,0.1) 1px, transparent 1px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow {
    animation: none;
  }

  .hero-bg-video {
    display: none;
  }
}

/* The site-wide .container is centered with a 1200px cap, which is
   fine for single-column sections, but in the hero it left a large
   unused gutter on wide screens. Letting the hero's container stretch
   full width (with its own responsive side padding) lets the copy use
   that space. */
#hero .container {
  max-width: none;
  margin: 0;
  padding: 0 clamp(24px, 6vw, 96px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(105,200,199,0.08);
  border: 1px solid rgba(105,200,199,0.25);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  width: fit-content;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 8px rgba(105,200,199,0.8);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  margin-bottom: 28px;
}

.hero-title .accent-line {
  display: block;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-accent-2) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 34px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(105,200,199,0.25);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(105,200,199,0.4);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}

.hero-btn-secondary:hover {
  color: var(--color-text-primary);
  border-color: rgba(255,255,255,0.35);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  animation: scrollBounce 2.5s ease infinite;
  z-index: 2;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(105,200,199,0.4), transparent);
}

/* =========================================
   MARQUEE TICKER
   ========================================= */
.marquee-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.marquee-item:hover {
  color: var(--color-accent);
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
}

/* =========================================
   CLIENTS STRIP
   ========================================= */
.clients-section {
  background: var(--color-bg);
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.clients-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.client-logo {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: -0.02em;
  transition: var(--transition);
  user-select: none;
}

.client-logo:hover {
  color: rgba(255,255,255,0.65);
}

/* =========================================
   ABOUT / MISSION SECTION
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-main {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--glow-accent-2);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.about-badge-icon {
  font-size: 28px;
}

.about-badge-text {
  display: flex;
  flex-direction: column;
}

.about-badge-text strong {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.about-badge-text span {
  font-size: 12px;
  color: var(--color-text-muted);
}

.about-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin: 24px 0 36px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.about-stat {
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.about-stat:hover {
  border-color: rgba(105,200,199,0.2);
  box-shadow: 0 0 20px rgba(105,200,199,0.05);
}

.about-stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.about-stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-value {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.about-value::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent-light);
  border: 1px solid rgba(105,200,199,0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%2369C8C7' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* =========================================
   FEATURES / SERVICES SECTION
   ========================================= */
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  border-color: rgba(105,200,199,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(105,200,199,0.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border: 1px solid rgba(105,200,199,0.15);
  border-radius: var(--radius-md);
}

.service-number {
  position: absolute;
  top: 32px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.service-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

/* =========================================
   PROCESS / HOW IT WORKS STRIP
   ========================================= */
.process-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.process-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(105,200,199,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.process-header {
  text-align: center;
  margin-bottom: 56px;
}

.process-header .section-title {
  color: var(--color-text-primary);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
}

.process-step {
  text-align: center;
  position: relative;
  padding-top: 8px;
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(105,200,199,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--color-surface-2);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(105,200,199,0.1);
}

.process-step-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.process-step-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* =========================================
   PORTFOLIO / PRODUCT SHOWCASE
   ========================================= */
#portfolio {
  padding: 100px 0;
  background: var(--color-bg);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
}

.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 7px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text-secondary);
}

.filter-btn.active {
  background: var(--color-accent-light);
  border-color: rgba(105,200,199,0.3);
  color: var(--color-accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item:hover {
  border-color: rgba(105,200,199,0.2);
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portfolio-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.portfolio-link {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(105,200,199,0.15);
  border: 1px solid rgba(105,200,199,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 13px;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.portfolio-item:hover .portfolio-link {
  opacity: 1;
  transform: scale(1);
}

/* =========================================
   TEAM SECTION
   ========================================= */
#team {
  padding: 100px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.team-header {
  text-align: center;
  margin-bottom: 56px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
  gap: 40px;
}

.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-card-image {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-image img {
  transform: scale(1.04);
}

.team-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.team-role {
  font-size: 13px;
  color: var(--color-accent);
  margin-top: 2px;
}

.team-card-social {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}

.team-card:hover .team-card-social {
  opacity: 1;
  transform: translateX(0);
}

.team-social-btn {
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 12px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.team-social-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #000;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
#testimonials {
  background: var(--color-bg);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: 20px;
  animation: testimonialsScroll 40s linear infinite;
  width: max-content;
}

@keyframes testimonialsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-card {
  width: 360px;
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(105,200,199,0.2);
  box-shadow: 0 0 30px rgba(105,200,199,0.05);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-author-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.testimonial-author-title {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 1px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
#contact {
  background: var(--color-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  font-size: 18px;
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}

.contact-social-btn {
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.contact-social-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 16px rgba(105,200,199,0.15);
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(105,200,199,0.4);
  box-shadow: 0 0 0 3px rgba(105,200,199,0.08);
  background: var(--color-surface-3);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%2371717A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-select option {
  background: var(--color-surface-2);
  color: var(--color-text-primary);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-note {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 72px 0 40px;
  position: relative;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), var(--color-accent-2), transparent);
  opacity: 0.4;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer-brand-logo .logo-image {
  display: block;
  height: 48px;
  width: auto;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 28px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
  transition: var(--transition);
}

.footer-social-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 12px rgba(105,200,199,0.15);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-text-muted);
}

.footer-copyright span {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--color-text-secondary);
}

/* =========================================
   BACK TO TOP
   ========================================= */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 20px rgba(105,200,199,0.2);
}

/* =========================================
   RESPONSIVE — TABLETS
   ========================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */
@media (max-width: 768px) {
  :root { --section-padding: 72px 0; }
  .header-nav { display: none; }
  .hamburger-btn { display: flex; }
  .hero-content { padding-top: 80px; }
  .hero-stats { gap: 20px; }
  .hero-stat-number { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-header, .portfolio-header { flex-direction: column; align-items: flex-start; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 24px; }
  #back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .clients-logos { gap: 24px; }
}
