/* Fonts loaded via <link> in HTML head for non-blocking performance */

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

:root {
  --primary: #0a1628;
  --primary-light: #111d33;
  --secondary: #1a2a4a;
  --accent: #00b4d8;
  --accent-dark: #0077b6;
  --accent-glow: rgba(0, 180, 216, 0.15);
  --text: #c8cdd5;
  --text-light: #e8eaf0;
  --text-muted: #8a95a7;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(26, 42, 74, 0.4);
  --nav-height: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

.js body { animation: pageIn 0.4s ease both; }
body.page-leaving { animation: pageOut 0.25s ease both; }

@keyframes pageOut {
  to { opacity: 0; }
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--white); }
a:active { transition: none; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: absolute; top: 0; left: 0; z-index: 2;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: none;
  pointer-events: none;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.nav-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-brand img { filter: brightness(0) invert(1); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; flex-wrap: nowrap;
}

.nav-links > li { position: relative; display: flex; align-items: center; }

.nav-links a {
  color: var(--text); font-size: 0.8rem; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white); background-color: var(--accent-glow);
}

.nav-links a:active { transition: none; }

.nav-links .btn-nav {
  background-color: var(--accent); color: var(--primary); font-weight: 600;
  padding: 8px 18px; border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-links .btn-nav:hover { background-color: var(--white); color: var(--primary); }
.nav-links .btn-nav:active { transition: none; }

/* ── NAV DROPDOWN ── */
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  background: none; border: none;
  color: var(--text); font-family: inherit; font-size: 0.8rem; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active {
  color: var(--white); background-color: var(--accent-glow);
}
.nav-dropdown-toggle:active { transition: none; }
.nav-dropdown-toggle svg {
  width: 12px; height: 12px;
  transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  min-width: 220px;
  background: rgba(17, 29, 51, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  opacity: 0; pointer-events: none; visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block; padding: 10px 16px; border-radius: 8px;
  font-size: 0.8rem; color: var(--text);
  transition: color 0.1s ease, background-color 0.1s ease;
}
.nav-dropdown-menu a:hover {
  background-color: var(--accent-glow); color: var(--white);
}
.nav-dropdown-menu a:active { transition: none; }

/* ── LANG TOGGLE ── */
.nav-links > li:has(.btn-nav),
.nav-links > li:has(.lang-toggle) {
  align-self: stretch;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-family: inherit; font-size: 0.75rem; font-weight: 600;
  padding: 0 14px; border-radius: 6px; text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  text-transform: uppercase; letter-spacing: 0.05em;
  height: 100%;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ── LANGUAGE VISIBILITY ── */
.lang-en .bg { display: none !important; }
.lang-bg .en { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--text-light);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-height);
  position: relative; overflow: hidden;
}

.hero-mesh {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.4;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 119, 182, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 180, 216, 0.08), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow); border: 1px solid rgba(0, 180, 216, 0.2);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 500; color: var(--accent);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; color: var(--white);
  line-height: 1.1; margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--accent); }

[data-typewrite]::after {
  content: '|';
  display: inline-block;
  width: 0;
  overflow: visible;
  animation: blink 0.7s step-end infinite;
  font-weight: 300;
}

[data-typewrite].done::after { display: none; }

@keyframes blink {
  50% { opacity: 0; }
}

.hero-sub {
  font-size: 1.125rem; color: var(--text);
  max-width: 520px; margin-bottom: 40px; line-height: 1.8;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

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

.hero-illustration {
  display: block;
  width: 100%; max-width: 520px; height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  animation: float 6s ease-in-out infinite;
}

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

/* ── PAGE HERO IMAGE ── */
.page-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}

.page-hero-visual {
  display: flex; justify-content: center;
}

.page-hero-visual img,
.page-hero-visual video {
  width: 100%; max-width: 440px; height: auto;
  opacity: 0.85;
}
.page-hero-video {
  display: block;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent); color: var(--primary);
}
.btn-primary:hover {
  background: var(--white); color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.3);
}

.btn-outline {
  background: transparent; color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}

.btn-arrow::after { content: '\2192'; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── SECTIONS ── */
.section {
  padding: 120px 0;
  position: relative;
}

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

.section-header {
  text-align: center; max-width: 700px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem; color: var(--text-muted);
}

/* ── SERVICE CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  perspective: 1000px;
}

.highlight-grid { perspective: 1000px; }

.tilt-glow {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(0, 180, 216, 0.1), transparent 40%);
}

.service-card:hover .tilt-glow,
.highlight-card:hover .tilt-glow { opacity: 1; }

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative; overflow: hidden;
  will-change: transform;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.35s;
}

.service-card:hover {
  border-color: rgba(0, 180, 216, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.service-icon {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.25rem;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.7;
}

.service-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 500; color: var(--accent);
  margin-top: 20px;
  transition: gap 0.2s;
}

.service-card:hover .card-link { gap: 10px; }

/* ── TRUST / PARTNERS ── */
.trust-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-content {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}

.trust-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  white-space: nowrap;
}

.trust-logos {
  display: flex; align-items: center; gap: 40px;
}

.trust-logo {
  display: flex; align-items: center;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.trust-logo img {
  display: block;
  filter: brightness(0) invert(1);
}

.trust-logo--original { opacity: 0.7; }
.trust-logo--original:hover { opacity: 1; }
.trust-logo--original img { filter: grayscale(1); }

.trust-logo:hover { opacity: 0.85; }

.trust-certs {
  display: flex; gap: 12px;
}

.cert-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.65rem; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cert-badge img {
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.cert-badge:hover {
  border-color: rgba(0, 180, 216, 0.3);
  color: var(--accent);
}

.cert-badge:hover img {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(162deg);
  opacity: 1;
}

/* ── ABOUT / INTRO ── */
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.intro-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 24px; line-height: 1.3;
}

.intro-content p {
  margin-bottom: 16px; color: var(--text);
}

.intro-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px;
}

.intro-stat {
  text-align: center; padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.intro-stat-number {
  font-size: 1.75rem; font-weight: 800; color: var(--accent);
}

.intro-stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 4px; text-transform: uppercase;
}

.intro-visual {
  background: var(--secondary);
  border-radius: 20px; padding: 32px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
}

.intro-visual .highlight-card {
  text-align: left; padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.intro-visual .highlight-card:hover {
  border-color: rgba(0, 180, 216, 0.2);
  transform: none; box-shadow: none;
}

.intro-visual .highlight-card strong {
  display: block; font-size: 0.9rem;
  color: var(--accent); margin-bottom: 4px;
}

.intro-visual .highlight-card p {
  font-size: 0.8rem; color: var(--text-muted);
  margin: 0;
}

/* stat boxes in intro */
.stat-box {
  text-align: center; padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-box strong {
  display: block; font-size: 1.75rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}

.stat-box span {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; margin-top: 4px;
  display: block;
}

/* ── SPECIALIZATIONS LIST ── */
.spec-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: 32px;
}

.spec-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem; color: var(--text-light);
  transition: all 0.2s;
}

.spec-item:hover {
  border-color: rgba(0, 180, 216, 0.2);
  background: var(--accent-glow);
}

.spec-item::before {
  content: '';
  width: 8px; height: 8px; flex-shrink: 0;
  background: var(--accent);
  border-radius: 2px;
}

/* ── CTA ── */
.cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
}

.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(0, 180, 216, 0.06), transparent);
}

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

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted); margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── EU PROJECT ── */
.eu-project {
  padding: 48px 0;
  background: #fff;
  color: #1a1a1a;
}

.eu-project-inner {
  display: flex; gap: 40px; align-items: flex-start;
}

.eu-logos {
  display: flex; gap: 24px; align-items: center; flex-shrink: 0;
}

.eu-logos img { height: 80px; width: auto; }

.eu-text p {
  font-size: 0.8rem; line-height: 1.6;
  color: #333; margin-bottom: 6px;
}

.eu-text p strong { color: #111; }

@media (max-width: 768px) {
  .eu-project-inner { flex-direction: column; gap: 24px; }
  .eu-logos { flex-wrap: wrap; }
  .eu-logos img { height: 60px; }
}

/* ── FOOTER ── */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.85rem; color: var(--text-muted);
  margin-top: 16px; max-width: 300px;
}

.footer-brand img { height: 36px; margin-bottom: 8px; }

.footer h4 {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-light); margin-bottom: 20px;
}

.footer ul { list-style: none; }

.footer ul li { margin-bottom: 10px; }

.footer ul a {
  font-size: 0.85rem; color: var(--text-muted);
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0, 119, 182, 0.1), transparent);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--white);
  margin-bottom: 16px; position: relative;
}

.page-hero p {
  font-size: 1.1rem; color: var(--text);
  max-width: 640px; position: relative;
}

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.8rem; margin-bottom: 24px;
  position: relative;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--accent); }

/* ── PROCESS STEPS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  transition: all 0.3s;
}

.process-step:hover {
  border-color: rgba(0, 180, 216, 0.2);
  transform: translateY(-2px);
}

.process-number {
  font-size: 2.5rem; font-weight: 800;
  color: rgba(0, 180, 216, 0.15);
  line-height: 1; margin-bottom: 16px;
}

.process-step h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--white); margin-bottom: 12px;
}

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

/* ── PROCESS STEP IMAGES ── */
.process-step-images {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
}

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

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

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

.process-step-images--3 img:last-child {
  grid-column: 1 / -1;
}

.process-step-images--many {
  grid-template-columns: repeat(4, 1fr);
}

.process-step-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--primary-light);
  transition: transform 0.3s ease;
}

.process-step-images--single img {
  aspect-ratio: 3 / 2;
  max-height: 320px;
}

.process-step-images--many img {
  aspect-ratio: 1;
}

.process-step-images img:hover {
  transform: scale(1.03);
  cursor: pointer;
}

@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-step-images--many {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .process-step-images--many {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process-step-images--3 img:last-child {
    grid-column: auto;
  }
}

/* ── DETAIL LIST (service detail pages) ── */
.detail-list {
  display: grid; gap: 16px;
}

.detail-item {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}

.detail-item:hover {
  border-color: rgba(0, 180, 216, 0.2);
}

.detail-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem;
  flex-shrink: 0;
}

.detail-item h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--white); margin-bottom: 8px;
}

.detail-item p {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.7;
}

/* ── TECH GRID (firmware/software page) ── */
.tech-section { margin-bottom: 48px; }

.tech-section h3 {
  font-size: 1.1rem; font-weight: 600;
  color: var(--white); margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.tech-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
}

.tech-tag {
  padding: 8px 16px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
}

.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.tech-filter {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 40px;
}

.tech-filter-btn {
  padding: 8px 18px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted); font-family: inherit;
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease;
}

.tech-filter-btn:hover {
  border-color: rgba(0, 180, 216, 0.3); color: var(--text-light);
}

.tech-filter-btn.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-glow);
}

.tech-section.tech-hidden {
  display: none;
}

.tech-section.tech-show {
  animation: techFadeIn 0.3s ease both;
}

@keyframes techFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-tag strong { color: var(--accent); font-weight: 600; }

/* ── CONTACT ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--text-light); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-light);
  font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.form-group select option {
  background: var(--primary); color: var(--text-light);
}



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

.form-steps-indicator {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 32px;
}

.form-step-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.form-step-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
}

.form-step-dot.done { background: var(--accent-dark); }

.form-step {
  display: none;
  animation: formSlideIn 0.3s ease both;
}

.form-step.active { display: flex; flex-direction: column; gap: 20px; }

.form-step-title {
  font-size: 1.1rem; font-weight: 600;
  color: var(--white); margin-bottom: 4px;
}

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

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.page-hero-grid:has(.contact-map) { align-items: start; }

.contact-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
  height: 100%;
  min-height: 360px;
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; }

.contact-info-card {
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact-info-card h3 {
  font-size: 0.95rem; font-weight: 600;
  color: var(--white); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.contact-info-card h3 svg { color: var(--accent); flex-shrink: 0; }

.contact-info-card p {
  font-size: 0.9rem; color: var(--text-muted);
}

.contact-partners {
  display: flex; align-items: center; gap: 20px;
  margin-top: 4px;
}
.contact-partners img { filter: grayscale(1); opacity: 0.7; transition: all 0.2s; }
.contact-partners a:hover img { filter: grayscale(0); opacity: 1; }

/* ── GALLERY CAROUSEL ── */
.gallery-carousel { position: relative; overflow: hidden; border-radius: 14px; }

.gallery-track {
  display: flex;
  transition: transform 0.6s ease;
}

.gallery-slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 6px;
  box-sizing: border-box;
}

.gallery-slide img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.gallery-slide img:hover { border-color: var(--accent); }

.gallery-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 20px;
}

.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none; padding: 0; cursor: pointer;
  transition: all 0.3s;
}

.gallery-dot.active {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0, 180, 216, 0.4);
}

@media (max-width: 1024px) {
  .gallery-slide { flex: 0 0 50%; }
}

@media (max-width: 480px) {
  .gallery-slide { flex: 0 0 100%; }
}

/* ── CODE WINDOW ── */
.code-window {
  width: 100%; max-width: 440px;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
  position: relative;
}

.code-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.code-dot--red { background: #ff5f57; }
.code-dot--yellow { background: #febc2e; }
.code-dot--green { background: #28c840; }

.code-lang {
  margin-left: auto;
  font-size: 0.7rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.code-blocks {
  position: relative;
  height: 280px;
}

.code-block {
  margin: 0; padding: 20px;
  font-size: 0.78rem; line-height: 1.7;
  color: #c9d1d9;
  overflow-x: auto;
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.6s ease;
  pointer-events: none;
}

.code-block.active { opacity: 1; pointer-events: auto; }

.code-block code {
  font-family: inherit;
}

.hl-kw { color: #ff7b72; }
.hl-type { color: #79c0ff; }
.hl-fn { color: #d2a8ff; }
.hl-str { color: #a5d6ff; }
.hl-comment { color: #8b949e; font-style: italic; }

/* ── HERO CAROUSEL ── */
.hero-carousel {
  position: relative; width: 100%; max-width: 440px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
}

.hero-carousel-slides {
  position: relative; width: 100%; aspect-ratio: 1/1;
}

.hero-carousel .hero-carousel-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.6s ease;
  max-width: none;
  pointer-events: none; cursor: pointer;
}

.hero-carousel .hero-carousel-slide.active { opacity: 1; pointer-events: auto; }

.hero-carousel .gallery-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  margin-top: 0;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 16px;
  border-radius: 20px;
  width: fit-content;
  margin-left: auto; margin-right: auto;
}

.hero-carousel .gallery-dot {
  width: 10px; height: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-carousel .gallery-dot.active {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0, 180, 216, 0.4);
}

.hero-carousel .gallery-slide img { cursor: pointer; }

/* ── NEW TECH HIGHLIGHT ── */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative; overflow: hidden;
  will-change: transform;
}

.highlight-card:hover {
  border-color: rgba(0, 180, 216, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.highlight-icon {
  width: 64px; height: 64px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem; color: var(--accent);
}

.highlight-card h3 {
  font-size: 1.1rem; font-weight: 600;
  color: var(--white); margin-bottom: 12px;
}

.highlight-card p {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.7;
}

.highlight-card--img { padding: 0; overflow: hidden; }
.highlight-card--img h3,
.highlight-card--img p { padding: 0 36px; }
.highlight-card--img h3 { padding-top: 24px; }
.highlight-card--img p { padding-bottom: 36px; }

.highlight-img {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
}
.highlight-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.highlight-card--img:hover .highlight-img img {
  transform: scale(1.05);
}

/* ── MANUFACTURING STEPS ── */
.mfg-steps {
  display: grid; gap: 20px;
  counter-reset: mfg;
}

.mfg-step {
  counter-increment: mfg;
  display: grid; grid-template-columns: auto 1fr;
  gap: 24px; align-items: start;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}

.mfg-step:hover {
  border-color: rgba(0, 180, 216, 0.2);
}

.mfg-step-num {
  width: 48px; height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
}

.mfg-step h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--white); margin-bottom: 8px;
}

.mfg-step p, .mfg-step ul {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7;
}

.mfg-step ul {
  list-style: none; margin-top: 8px;
}

.mfg-step ul li {
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.mfg-step ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.content-block h2 {
  font-size: 1.75rem; font-weight: 700;
  color: var(--white); margin-bottom: 20px;
}

.content-block h3 {
  font-size: 1.25rem; font-weight: 600;
  color: var(--white); margin-bottom: 12px; margin-top: 32px;
}

.content-block p {
  margin-bottom: 16px; color: var(--text);
}

/* ── ANIMATIONS ── */
.js .fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ── MOBILE NAV ── */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(10, 22, 40, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-overlay.open { opacity: 1; pointer-events: auto; visibility: visible; }

.mobile-overlay a {
  font-size: 1.25rem; font-weight: 500;
  color: var(--text-light); padding: 12px 24px;
  transition: color 0.15s ease;
}

.mobile-overlay a:hover { color: var(--accent); }
.mobile-overlay a:active { transition: none; }

.mobile-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: var(--text-light); font-size: 2rem;
  cursor: pointer;
}

.mobile-overlay .mobile-lang {
  margin-top: 24px;
  padding: 10px 24px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-light); font-family: inherit;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
}

.mobile-overlay .mobile-section-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-top: 16px; margin-bottom: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-illustration { max-width: 360px; }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .highlight-grid { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-visual { order: -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 80px 0; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero h1 { font-size: 2rem; }
  .hero-illustration { max-width: 280px; }
  .page-hero-visual { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .trust-content { flex-direction: column; gap: 24px; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .contact-map { min-height: 260px; }
  .contact-map iframe { min-height: 260px; }
  .code-blocks { height: 220px; }
  .code-block { font-size: 0.7rem; padding: 14px; }
  .hero-carousel { max-width: 100%; }
  .code-window { max-width: 100%; }
  .highlight-card--img h3,
  .highlight-card--img p { padding: 0 20px; }
  .highlight-card--img h3 { padding-top: 16px; }
  .highlight-card--img p { padding-bottom: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .code-blocks { height: 180px; }
  .code-block { font-size: 0.65rem; line-height: 1.6; }
  .contact-map { min-height: 220px; }
  .contact-map iframe { min-height: 220px; }
}

.timeline-nav {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 48px; flex-wrap: wrap;
}

.timeline-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted); font-family: inherit;
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.timeline-btn:hover {
  border-color: rgba(0, 180, 216, 0.3); color: var(--text-light);
  background: var(--accent-glow);
}

.timeline-btn.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-glow);
}

.timeline-btn-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem; font-weight: 700;
  transition: background 0.25s, color 0.25s;
}

.timeline-btn.active .timeline-btn-num {
  background: var(--accent); color: var(--primary);
}

.timeline-scroll {
  position: relative;
}

.timeline-sticky {
  position: sticky;
  top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex; flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-height) + 24px) 0 48px;
}

.timeline-progress-track {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
  transition: width 0.15s ease;
}

.timeline-panels { position: relative; min-height: 280px; }

.timeline-panel {
  display: none;
  animation: timelineFadeIn 0.3s ease;
}

.timeline-panel.active { display: block; }

@keyframes timelineFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .timeline-btn span:not(.timeline-btn-num) { display: none; }
  .timeline-btn { padding: 8px 12px; }
  .timeline-scroll { height: auto !important; }
  .timeline-sticky { position: static; min-height: auto; padding: 32px 0; }
  .timeline-panels { min-height: auto; }
}

.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 44px; height: 44px;
  background: var(--accent); color: var(--primary);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.15s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.3);
}

.back-to-top svg { width: 20px; height: 20px; }

@media (max-width: 480px) {
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1002;
  background: var(--primary-light);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-size: 0.85rem; color: var(--text);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner p { margin: 0; max-width: 600px; }

.cookie-accept {
  padding: 8px 24px; border-radius: 6px;
  background: var(--accent); color: var(--primary);
  border: none; font-family: inherit; font-size: 0.85rem;
  font-weight: 600; cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.cookie-accept:hover { background: var(--white); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1003;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.lightbox-img {
  width: min(90vw, 1100px);
  height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.2s ease;
}

.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, opacity 0.2s ease;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  background: rgba(10, 22, 40, 0.6);
  padding: 4px 14px;
  border-radius: 20px;
}

.lightbox-counter[hidden] { display: none; }

@media (max-width: 768px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .fade-up { opacity: 1; transform: none; }
}
