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

/* =====================================================
   TOKENS
   ===================================================== */
:root, [data-theme="dark"] {
  --accent:      #00C2D4;
  --accent2:     #0075FF;
  --accent-glow: rgba(0,194,212,0.3);
  --bg-color:    #04080e;
  --card:        rgba(10,20,38,0.82);
  --card-border: rgba(0,194,212,0.15);
  --text:        #C8DCF0;
  --text-muted:  #5A7282;
  --text-strong: #D4E9F7;
  --header-bg:   rgba(4,8,14,0.93);
}
[data-theme="light"] {
  --accent:      #00A899;
  --accent2:     #0075CC;
  --accent-glow: rgba(0,168,153,0.2);
  --bg-color:    #F5F6FA;
  --card:        rgba(255,255,255,0.92);
  --card-border: rgba(0,0,0,0.09);
  --text:        #3A4155;
  --text-muted:  #5A6273;
  --text-strong: #0C0D12;
  --header-bg:   rgba(245,246,250,0.92);
}

/* =====================================================
   BASE
   ===================================================== */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  font-family: 'Unbounded', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg-color);
  transition: color 0.4s;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =====================================================
   BACKGROUND LAYERS
   ===================================================== */

/* Слой 1 — основная картинка */
.page-bg {
  position: fixed; inset: 0; z-index: -3;
  background: url('../images/bg-hero.png') center/cover no-repeat;
  background-color: var(--bg-color);
  transition: background-color 0.4s;
}
/* Слой 2 — canvas с частицами (js рисует сверху) */
#particles-canvas {
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
}

/* Слой 3 — анимированные блобы (скрыты в обеих темах) */
.bg-blobs {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.bg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0;
  animation: blobFloat 20s ease-in-out infinite;
}
.bg-blob:nth-child(1) { width: 600px; height: 600px; background: transparent; top: -10%; left: -5%; animation-duration: 22s; }
.bg-blob:nth-child(2) { width: 500px; height: 500px; background: transparent; top: 30%; right: -8%; animation-duration: 28s; animation-delay: -8s; }
.bg-blob:nth-child(3) { width: 700px; height: 400px; background: transparent; bottom: 10%; left: 20%; animation-duration: 25s; animation-delay: -14s; }
.bg-blob:nth-child(4) { width: 400px; height: 400px; background: transparent; top: 60%; left: 5%; animation-duration: 18s; animation-delay: -5s; }
.bg-blob:nth-child(5) { width: 350px; height: 350px; background: transparent; top: 15%; right: 25%; animation-duration: 30s; animation-delay: -18s; }

@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(30px, -40px) scale(1.08); }
  50%  { transform: translate(-20px, 30px) scale(0.94); }
  75%  { transform: translate(40px, 20px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Слой 4 — тёмный оверлей для читаемости текста */
.bg-tint {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; transition: background 0.4s;
}
[data-theme="dark"]  .bg-tint { background: rgba(4,8,14,0.97); }
[data-theme="light"] .bg-tint { background: rgba(245,246,250,0.92); }

[data-theme="dark"]  .bg-blobs { display: none; }
[data-theme="light"] .bg-blobs { display: none; }
[data-theme="dark"]  #particles-canvas { opacity: 0.08; }
[data-theme="light"] #particles-canvas { opacity: 0.15; }

/* =====================================================
   SECTIONS
   ===================================================== */
section { padding: 100px 0; position: relative; z-index: 1; }
section > * { position: relative; z-index: 1; }

.glow-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(90px);
  background: transparent;
}

/* blend helper */
[data-theme="dark"] .blend-screen { mix-blend-mode: screen; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.grad {
  color: var(--accent);
}
.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(20px, 2.4vw, 34px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.22;
  color: var(--text-strong); margin-bottom: 16px;
}
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 560px; line-height: 1.72; }

/* =====================================================
   HEADER
   ===================================================== */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 18px 0;
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(22px) saturate(1.4);
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo-vector { height: 60px; width: auto; mix-blend-mode: screen; filter: brightness(1.1); transition: transform 0.3s ease; }
.logo:hover .logo-vector { transform: scale(1.05); }
[data-theme="light"] .logo-vector { mix-blend-mode: multiply; filter: brightness(0.6) saturate(1.3); }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
nav a:hover { color: var(--text-strong); background: rgba(0,194,212,0.07); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: transparent;
  border: 1.5px solid var(--card-border);
  color: var(--text);
  cursor: pointer; flex-shrink: 0;
  transition: all 0.25s;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(0,194,212,0.15);
}
[data-theme="light"] .theme-toggle { border-color: rgba(0,127,160,0.25); }
.t-icon { display: flex; align-items: center; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.25s; border: none; font-family: inherit; white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #D4E9F7;
  box-shadow: 0 4px 20px rgba(0,194,212,0.22);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(0,194,212,0.42); transform: translateY(-2px); }
.btn-primary:hover::after { opacity: 1; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.15);
}
[data-theme="light"] .btn-ghost { border-color: rgba(0,0,0,0.12); color: #3A4155; }
[data-theme="light"] nav a { color: #3A4155; }
[data-theme="light"] nav a:hover { color: #0C0D12; background: rgba(0,0,0,0.05); }
[data-theme="light"] .mobile-menu { background: rgba(245,246,250,0.97); }
[data-theme="light"] .mobile-menu a { color: #0C0D12; }
[data-theme="light"] .mobile-close,
[data-theme="light"] .mobile-theme-toggle { border-color: rgba(0,0,0,0.12); color: #3A4155; }
[data-theme="light"] .glass-card { background: rgba(255,255,255,0.92); box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px rgba(0,194,212,0.12); }
.btn-arrow {
  background: transparent; border: none; color: var(--text);
  padding: 11px 0; font-size: 14px; font-weight: 600; gap: 10px;
}
.btn-arrow svg { transition: transform 0.3s; }
.btn-arrow:hover { color: var(--accent); }
.btn-arrow:hover svg { transform: translateX(6px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(4,8,14,0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 600; color: #D4E9F7; padding: 12px 32px; border-radius: 10px; transition: color 0.25s; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: 16px; font-size: 16px; padding: 14px 36px; }

.mobile-menu-top {
  position: absolute; top: 20px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
.mobile-close {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--card-border);
  color: var(--text); cursor: pointer;
  transition: all 0.25s;
}
.mobile-close:hover { border-color: var(--accent); color: var(--accent); }
.mobile-theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--card-border);
  color: var(--text); cursor: pointer;
  transition: all 0.25s;
}
.mobile-theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* =====================================================
   GLASS CARD
   ===================================================== */
.glass-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

/* =====================================================
   HERO
   ===================================================== */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 60px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--accent); margin-bottom: 22px;
  animation: fadeSlideUp 0.8s ease both;
}
.hero-label::before {
  content: ''; display: block; width: 28px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
h1.hero-title {
  font-size: clamp(24px, 3vw, 42px); font-weight: 600; line-height: 1.18;
  letter-spacing: -0.025em; color: var(--text-strong); margin-bottom: 24px;
  animation: fadeSlideUp 0.9s 0.1s ease both;
}
.hero-sub {
  font-size: 16px; color: var(--text-muted); max-width: 460px; margin-bottom: 38px; line-height: 1.75;
  animation: fadeSlideUp 0.9s 0.2s ease both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  animation: fadeSlideUp 0.9s 0.3s ease both;
}
.hero-visual { display: flex; align-items: center; justify-content: center; animation: fadeIn 1.2s 0.2s ease both; }
.hero-visual img {
  width: 100%; max-width: 520px;
  filter: drop-shadow(0 0 80px rgba(0,194,212,0.6)) drop-shadow(0 0 30px rgba(0,117,255,0.3));
  animation: float 7s ease-in-out infinite;
}
[data-theme="dark"] .hero-visual img { mix-blend-mode: screen; }

/* Декоративная кольцевая линия под hero-visual */
.hero-ring {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(0,194,212,0.12);
  right: calc(50% - 520px);
  top: 50%; transform: translateY(-50%);
  animation: rotateSlow 30s linear infinite;
  pointer-events: none;
}
.hero-ring::before {
  content: '';
  position: absolute; inset: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(0,194,212,0.08);
  animation: rotateSlow 20s linear infinite reverse;
}
.hero-ring::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  top: -4px; left: 50%;
  transform: translateX(-50%);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33%  { transform: translateY(-14px) rotate(1deg); }
  66%  { transform: translateY(-6px) rotate(-1deg); }
}
@keyframes rotateSlow {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%     { box-shadow: 0 0 0 8px transparent; }
}
@keyframes shimmer {
  from { transform: translateX(-100%) skewX(-20deg); }
  to   { transform: translateX(200%) skewX(-20deg); }
}
@keyframes countUp { from { opacity: 0; transform: translateY(20px) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes borderPulse {
  0%,100% { border-color: var(--card-border); }
  50%     { border-color: rgba(0,194,212,0.4); }
}
@keyframes accentPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.5; }
}
@keyframes slideWidth {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left  { opacity: 0; transform: translateX(-32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible  { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(32px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* =====================================================
   SERVICES
   ===================================================== */
#services .orb1 { width: 500px; height: 500px; top: -100px; right: -80px; }
#services .orb2 { width: 360px; height: 360px; bottom: -60px; left: -60px; }
.services-head { text-align: left; margin-bottom: 60px; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.service-card {
  padding: 36px 28px; transition: all 0.35s cubic-bezier(.2,.8,.4,1); position: relative; overflow: hidden;
}
/* линия сверху на hover */
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  opacity: 0; transition: opacity 0.3s;
}
/* shimmer на hover */
.service-card::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: rgba(255,255,255,0.05);
  opacity: 0; transition: opacity 0.2s;
  transform: translateX(-100%) skewX(-20deg);
}
.service-card:hover {
  border-color: rgba(0,194,212,0.4); transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 60px rgba(0,194,212,0.07);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; animation: shimmer 0.6s ease; }

.service-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: rgba(0,194,212,0.1);
  border: 1px solid rgba(0,194,212,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--accent);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px rgba(0,194,212,0.3);
}
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--text-strong); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.service-link {
  font-size: 13px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; transition: gap 0.25s;
}
.service-link:hover { gap: 10px; }

/* =====================================================
   WHY US
   ===================================================== */
#why .orb1 { width: 600px; height: 600px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.why-stats { margin-top: 260px; }
.why-desc { font-size: 16px; color: var(--text-muted); line-height: 1.72; margin-bottom: 36px; }
.why-list { display: flex; flex-direction: column; gap: 10px; }
.why-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.25s cubic-bezier(.2,.8,.4,1);
}
.why-item:hover {
  background: var(--card);
  border-color: var(--card-border);
  transform: translateX(6px);
}
.why-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: rgba(0,194,212,0.15);
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.why-item h4 { font-size: 15px; font-weight: 700; color: var(--text-strong); margin-bottom: 4px; }
.why-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  padding: 36px 24px; text-align: center;
  position: relative; overflow: hidden;
  transition: all 0.3s;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  opacity: 0.45;
  transition: opacity 0.3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  border-color: rgba(0,194,212,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,194,212,0.08);
}
.stat-number {
  font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 8px; letter-spacing: -0.04em;
  color: var(--accent);
}
.stat-card.visible .stat-number { animation: countUp 0.6s ease both; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* =====================================================
   PORTFOLIO
   ===================================================== */
#portfolio .orb1 { width: 480px; height: 480px; top: -60px; right: -120px; }
.portfolio-head { text-align: left; margin-bottom: 44px; }
.portfolio-tabs { display: flex; justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }
.tab-btn {
  padding: 9px 22px; border-radius: 100px; font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1.5px solid var(--card-border); background: transparent; color: var(--text-muted);
  font-family: inherit; transition: all 0.25s;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active {
  background: var(--accent);
  border-color: transparent; color: #D4E9F7; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,194,212,0.28);
}
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 48px; }
.port-card { overflow: hidden; transition: all 0.35s cubic-bezier(.2,.8,.4,1); cursor: pointer; }
.port-card:hover {
  transform: translateY(-7px) scale(1.01); border-color: rgba(0,194,212,0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 40px rgba(0,194,212,0.09);
}
.port-thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.port-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,194,212,0.10);
  opacity: 0; transition: opacity 0.3s;
}
.port-card:hover .port-thumb::after { opacity: 1; }
.port-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.port-card:hover .port-thumb img { transform: scale(1.08); }
.port-info { padding: 18px 22px; }
.port-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 6px; }
.port-info h3 { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.portfolio-more { text-align: left; margin-top: 32px; }
.port-hidden { display: none !important; }

/* =====================================================
   ABOUT
   ===================================================== */
#about .orb1 { width: 650px; height: 650px; top: -100px; right: -180px; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-left p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.about-advantages { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
.adv-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; transition: all 0.3s cubic-bezier(.2,.8,.4,1);
}
.adv-item:hover { border-color: rgba(0,194,212,0.3); transform: translateX(6px); box-shadow: 0 0 20px rgba(0,194,212,0.06); }
.adv-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(0,194,212,0.1);
  border: 1px solid rgba(0,194,212,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  transition: transform 0.3s, box-shadow 0.3s;
}
.adv-item:hover .adv-icon { transform: rotate(-8deg) scale(1.1); box-shadow: 0 0 16px rgba(0,194,212,0.25); }
.adv-item h4 { font-size: 15px; font-weight: 700; color: var(--text-strong); margin-bottom: 3px; }
.adv-item p { font-size: 13px; color: var(--text-muted); }
.about-visual { display: flex; align-items: center; justify-content: center; }
.about-visual img {
  width: 100%; max-width: 500px;
  filter: drop-shadow(0 0 70px rgba(0,194,212,0.45)) drop-shadow(0 0 30px rgba(0,117,255,0.28));
  animation: float 9s ease-in-out infinite; animation-delay: -4s;
}
[data-theme="dark"] .about-visual img { mix-blend-mode: screen; }

/* =====================================================
   PROCESS
   ===================================================== */
#process .orb1 { width: 600px; height: 250px; bottom: -30px; left: 50%; transform: translateX(-50%); }
.process-head { text-align: left; margin-bottom: 72px; }
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px;
  background: rgba(0,194,212,0.25); z-index: 0;
}
.process-step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-circle {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 28px;
  background: var(--card); border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(0,194,212,0.07), 0 0 30px rgba(0,194,212,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulseGlow 4s ease infinite;
}
.process-step:nth-child(2) .step-circle { animation-delay: -1s; }
.process-step:nth-child(3) .step-circle { animation-delay: -2s; }
.process-step:nth-child(4) .step-circle { animation-delay: -3s; }
.process-step:hover .step-circle { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(0,194,212,0.1), 0 0 40px rgba(0,194,212,0.3); }
.step-num {
  font-size: 20px; font-weight: 900;
  color: var(--accent);
}
.process-step h3 { font-size: 18px; font-weight: 700; color: var(--text-strong); margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* =====================================================
   CONTACT
   ===================================================== */
#contact .orb1 { width: 480px; height: 480px; top: -80px; left: -130px; }
#contact .orb2 { width: 400px; height: 400px; bottom: -80px; right: -100px; }
.contact-head { text-align: center; margin-bottom: 56px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact-items { display: flex; flex-direction: column; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  transition: all 0.3s cubic-bezier(.2,.8,.4,1);
}
.contact-item:hover { border-color: rgba(0,194,212,0.32); transform: translateX(6px); box-shadow: 0 0 20px rgba(0,194,212,0.07); }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(0,194,212,0.1);
  border: 1px solid rgba(0,194,212,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-item:hover .contact-icon { transform: scale(1.1); box-shadow: 0 0 14px rgba(0,194,212,0.25); }
.contact-item-text p:first-child { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1px; }
.contact-item-text p:last-child,
.contact-item-text a { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.contact-item-text a:hover { color: var(--accent); }

.contact-cta {
  padding: 40px 36px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; justify-content: center;
}
.contact-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  animation: accentPulse 3s ease-in-out infinite;
}

.contact-cta-logo { height: 100px; width: auto; margin: 0 auto 24px; }
.contact-cta h3 { font-size: 22px; font-weight: 800; color: var(--text-strong); line-height: 1.3; margin-bottom: 12px; }
.contact-cta p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.contact-cta .btn { font-size: 15px; padding: 13px 30px; }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  padding: 60px 0 32px; position: relative; z-index: 1;
  border-top: 1px solid var(--card-border);
  background: rgba(4,8,14,0.4);
  backdrop-filter: blur(8px);
}
[data-theme="light"] footer { background: rgba(255,255,255,0.85); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 48px; margin-bottom: 16px; }
.footer-logo { mix-blend-mode: screen; filter: brightness(1.05); }
[data-theme="light"] .footer-logo { mix-blend-mode: multiply; filter: brightness(0.75); }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.65; max-width: 240px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-strong); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.25s, transform 0.25s; display: inline-block; }
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid var(--card-border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 14px; color: var(--text-muted); }

/* =====================================================
   SERVICE PAGES
   ===================================================== */
.svc-page-hero {
  padding: 160px 0 80px;
  position: relative; z-index: 1;
}
.svc-page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--card-border);
}
.svc-breadcrumb { display: none; }
.svc-page-title {
  font-size: clamp(36px, 5.5vw, 68px); font-weight: 700;
  color: var(--text-strong); letter-spacing: -0.04em; line-height: 1.05;
  margin-bottom: 24px;
}
.svc-page-sub {
  font-size: 18px; color: var(--text-muted); max-width: 580px; line-height: 1.75;
}

.svc-page-intro {
  padding: 60px 0 0; position: relative; z-index: 1;
}
.svc-page-desc {
  font-size: 16px; color: var(--text); line-height: 1.85;
  margin-bottom: 0;
  padding: 24px 28px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
}
.svc-page-body {
  padding: 32px 0 100px;
  display: grid; grid-template-columns: 55fr 45fr;
  gap: 80px; align-items: start;
  position: relative; z-index: 1;
}
.svc-page-includes-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 20px;
}
.svc-page-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 44px; }
.svc-page-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 15px; color: var(--text); line-height: 1.4;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.svc-page-item:hover {
  background: var(--card);
  border-color: var(--card-border);
  transform: translateX(6px);
}
.svc-page-item .svc-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,194,212,0.15);
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.svc-page-item .svc-dot::before { content: '✓'; font-size: 11px; font-weight: 900; color: var(--accent); }

.svc-page-visual {
  position: sticky; top: 120px;
  display: flex; flex-direction: column; gap: 14px;
}
.svc-stat-card {
  padding: 28px 28px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.svc-stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.svc-stat-card:hover {
  border-color: rgba(0,194,212,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,194,212,0.08);
}
.svc-stat-card:hover::before { opacity: 1; }
.svc-stat-num {
  font-size: 48px; font-weight: 800; color: var(--accent);
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px;
}
.svc-stat-label { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.svc-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-stat-grid .svc-stat-num { font-size: 36px; }

.svc-page-cta {
  padding: 96px 0; position: relative; z-index: 1;
  text-align: center;
  background: var(--card); border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.svc-page-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(0,194,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.svc-page-cta h2 {
  font-size: clamp(26px, 3.5vw, 44px); font-weight: 700;
  color: var(--text-strong); margin-bottom: 16px; letter-spacing: -0.03em;
}
.svc-page-cta p { font-size: 17px; color: var(--text-muted); margin-bottom: 40px; }
.svc-page-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .svc-page-body { grid-template-columns: 1fr; gap: 48px; }
  .svc-page-visual { position: static; }
  .svc-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .svc-stat-grid { grid-template-columns: 1fr; }
  .svc-stat-grid .svc-stat-num { font-size: 32px; }
}

/* =====================================================
   SERVICE MODALS
   ===================================================== */
.svc-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(4,8,14,0.72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.3s ease;
}
.svc-overlay.active { display: block; }
.svc-overlay.visible { opacity: 1; }

.svc-modal {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: 520px; max-width: 100vw;
  background: var(--bg-color);
  border-left: 1px solid var(--card-border);
  padding: 48px 40px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(.2,.8,.4,1);
  pointer-events: none;
}
[data-theme="light"] .svc-modal { box-shadow: -8px 0 40px rgba(0,0,0,0.12); }
.svc-modal.active { pointer-events: all; }
.svc-modal.visible { transform: translateX(0); }

.svc-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--card-border);
  color: var(--text-muted); font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.svc-modal-close:hover { border-color: var(--accent); color: var(--accent); }

.svc-modal-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; color: var(--accent); margin-bottom: 14px;
}
.svc-modal-title {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 700;
  color: var(--text-strong); line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.svc-modal-desc {
  font-size: 15px; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 32px;
}
.svc-modal-includes { margin-bottom: 32px; }
.svc-modal-includes-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-muted); margin-bottom: 14px;
}
.svc-inc-list { display: flex; flex-direction: column; gap: 10px; }
.svc-inc-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text); line-height: 1.55;
}
.svc-dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: rgba(0,194,212,0.12);
  border: 1px solid rgba(0,194,212,0.3);
  display: flex; align-items: center; justify-content: center;
}
.svc-dot::before { content: '✓'; font-size: 9px; font-weight: 800; color: var(--accent); }
.svc-modal-btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 560px) {
  .svc-modal { width: 100vw; padding: 48px 24px 36px; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 340px; }
  .hero-ring { display: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .why-inner, .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-stats { grid-template-columns: repeat(2,1fr); }
  .about-visual { order: -1; }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: repeat(2,1fr); gap: 44px; }
  .process-steps::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 72px 0; }
  .services-grid, .portfolio-grid, .process-steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-cta { padding: 32px 20px; }
  .why-stats { grid-template-columns: 1fr 1fr; }

}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1.hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .why-stats { grid-template-columns: 1fr; }
}
