/* ══════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
══════════════════════════════════════════════ */
:root {
  --bg: #080c1a;
  --surface: #101628;
  --surface-2: #161e30;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #0284c7;
  --accent-2: #0ea5e9;
  --glow: rgba(14, 165, 233, 0.35);
  --text: #f0f4ff;
  --text-muted: #7a8aaa;
  --white: #ffffff;
  --font: "Inter", sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

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

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

input,
textarea,
button {
  outline: none;
}

/* ══════════════════════════════════════════════
   UTILITY
══════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 72px 0 120px;
  position: relative;
}

.section-eyebrow {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

.gradient-text {
  background: linear-gradient(120deg, #0ea5e9, #2bc4db, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════ */
.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.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: var(--white);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(14, 165, 233, 0.6);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: rgba(30, 111, 255, 0.06);
}

.btn--full {
  width: 100%;
}

/* Shimmer sweep effect */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  60% {
    left: 140%;
  }

  100% {
    left: 140%;
  }
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    background var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition),
    color var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 7, 15, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}

.navbar.scrolled.navbar--light {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.navbar--light .nav-links a {
  color: rgba(15, 23, 42, 0.75);
}

.navbar--light .nav-links a:hover {
  color: #0f172a;
}

.nav-logo {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-logo-img--light {
  position: absolute;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-logo-img--dark {
  opacity: 1;
  transition: opacity var(--transition);
}

.navbar--light .nav-logo-img--dark {
  opacity: 0;
}

.navbar--light .nav-logo-img--light {
  opacity: 1;
}

.navbar--light .nav-toggle span {
  background: #0f172a;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* ── Active-section diamond indicators ─── */
.nav-links li {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-links li::before,
.nav-links li::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent-2);
  background-color: var(--accent-2);
  border-radius: 1px;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.nav-links li::before {
  top: -10px;
}

.nav-links li::after {
  bottom: -10px;
}

.nav-links li.active::before,
.nav-links li.active::after {
  opacity: 1;
}

.nav-links li.active > a {
  color: var(--white);
}

.navbar--light .nav-links li.active > a {
  color: #0f172a;
}

/* ─────────────────────────────────────── */

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(240, 244, 255, 0.82);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ══════════════════════════════════════════════
   LANGUAGE SELECTOR
══════════════════════════════════════════════ */
.lang-selector {
  position: relative;
  margin-left: 8px;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition);
  white-space: nowrap;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-current svg {
  opacity: 0.85;
  transition: transform var(--transition);
}

.lang-current[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: rgba(10, 14, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  flex-direction: column;
  list-style: none;
  padding: 5px;
  z-index: 200;
}

.lang-dropdown.open {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition:
    background var(--transition),
    color var(--transition);
}

.lang-option span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.lang-option:hover span {
  color: rgba(255, 255, 255, 0.7);
}

.lang-option.active {
  color: var(--accent-2);
  font-weight: 600;
}

.lang-option.active span {
  color: rgba(43, 196, 219, 0.6);
}

/* Light navbar context */
.navbar--light .lang-current {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar--light .lang-current:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.navbar--light .lang-current svg {
  color: #0f172a;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  transform-origin: center 45%;
  will-change: transform;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
        /* dark arch overlay at top — fades out around 45% down */
    radial-gradient(
      ellipse 120% 55% at 50% -10%,
      #05070f 0%,
      #05070f 40%,
      transparent 70%
    ),
    /* colorful blobs — all anchored to lower half */
    radial-gradient(
        ellipse 90% 60% at 15% 80%,
        rgba(14, 165, 233, 0.45) 0%,
        transparent 60%
      ),
    radial-gradient(
      ellipse 70% 55% at 85% 70%,
      rgba(6, 167, 212, 0.38) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 75% 50% at 50% 95%,
      rgba(20, 173, 184, 0.32) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 55% 60% at 75% 90%,
      rgba(56, 189, 248, 0.28) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 60% 40% at 30% 100%,
      rgba(34, 197, 238, 0.25) 0%,
      transparent 62%
    );
  filter: blur(52px);
  animation: meshDrift 22s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0% {
    transform: translate(0%, 0%) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(2.5%, 1.5%) rotate(1.5deg) scale(1.04);
  }

  50% {
    transform: translate(-1.5%, 3%) rotate(-1deg) scale(0.97);
  }

  75% {
    transform: translate(1%, -2%) rotate(2deg) scale(1.02);
  }

  100% {
    transform: translate(-2%, 1%) rotate(-0.5deg) scale(1.05);
  }
}

.hero-grid {
  position: absolute;
  bottom: -5%;
  left: -40%;
  right: -40%;
  height: 60%;
  z-index: 1;
  transform: perspective(320px) rotateX(72deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(to right, rgba(34, 211, 238, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.3) 1px, transparent 1px);
  background-size: 70px 70px;
  animation: gridScroll 5s linear infinite;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 50% 100%,
    black 5%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 90% 80% at 50% 100%,
    black 5%,
    transparent 75%
  );
  pointer-events: none;
}

@keyframes gridScroll {
  from {
    background-position:
      0 0,
      0 0;
  }

  to {
    background-position:
      0 70px,
      0 70px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  will-change: transform;
}

.hero-left {
  flex: 0 0 auto;
  max-width: 560px;
  text-align: left;
}

.hero-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dots-canvas {
  width: 100%;
  max-width: 480px;
  height: 420px;
  display: block;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(91, 143, 255, 0.3);
  background: rgba(30, 111, 255, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeSlideDown 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-title-line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-title-line:nth-child(3) {
  animation-delay: 0.3s;
}

:lang(de) .hero-title-line {
  font-size: clamp(2.4rem, 4.5vw, 3.9rem);
  line-height: 1.2;
}

.hero-title-gradient {
  background: linear-gradient(120deg, #38bdf8, #22d3ee, #0ea5e9, #38bdf8);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    fadeSlideUp 0.8s ease both,
    gradientShift 6s ease infinite;
  animation-delay: 0.2s, 1s;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeSlideUp 0.8s 0.4s ease both;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.55s ease both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1.2s 1s ease both;
}

.scroll-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ══════════════════════════════════════════════
   REFERENCES
══════════════════════════════════════════════ */
.references {
  padding: 80px 0;
  background: #f4f9ff;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

.references .section-title {
  color: #0f172a;
}

.references-track {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.ref-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border: none;
  border-radius: 0;
  background: none;
  transition: var(--transition);
  cursor: default;
  min-width: 140px;
}

.ref-logo--img {
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.ref-logo--img img {
  display: block;
  height: 40px;
  width: auto;
  filter: grayscale(1) brightness(0.5);
  transition:
    filter var(--transition),
    transform var(--transition);
}

.ref-logo--img:hover img {
  filter: grayscale(0) brightness(1);
  transform: translateY(-2px);
}

.ref-logo:hover {
  border-color: transparent;
  background: none;
  box-shadow: none;
  transform: none;
}

/* ══════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════ */
.services {
  background: #ffffff;
}

.services .section-title {
  color: #0f172a;
}

.services .section-desc {
  color: #475569;
}

.services-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 32px;
}

.services-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 56px 0;
  margin: -56px 0;
}

.services-grid {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.services-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
  z-index: 2;
}

.services-arrow:hover {
  background: #e0f2fe;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.22);
}

.services-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.services-arrow--prev {
  margin-right: 16px;
}

.services-arrow--next {
  margin-left: 16px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 280px;
  width: 280px;
  padding: 0;
  border-radius: var(--radius);
  border: none;
  background: #ffffff;
  box-shadow: 0 16px 56px rgba(14, 165, 233, 0.18);
  overflow: hidden;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card-img {
  position: relative;
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.service-card-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #ffffffcc 50%,
    #ffffff 100%
  );
  pointer-events: none;
}

.service-card-img h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 28px 18px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  z-index: 1;
  margin: 0;
}

.service-card-body {
  padding: 20px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.05) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

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

.service-card:hover {
  box-shadow:
    0 16px 56px rgba(14, 165, 233, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.service-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0284c7;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.22);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ══════════════════════════════════════════════
   TEAM
══════════════════════════════════════════════ */
.team {
  background: #f4f9ff;
  padding-top: 100px;
}

.team .section-title {
  color: #0f172a;
}

.team-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.team-bubbles {
  position: relative;
  width: 100%;
  height: 470px;
}

.tech-bubble {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 8px 32px rgba(14, 165, 233, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.tech-bubble:nth-child(1) {
  width: 190px;
  height: 190px;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.tech-bubble:nth-child(2) {
  width: 170px;
  height: 170px;
  top: 0px;
  left: 155px;
  z-index: 3;
}

.tech-bubble:nth-child(3) {
  width: 180px;
  height: 180px;
  top: 180px;
  left: 40px;
  z-index: 1;
}

.tech-bubble:nth-child(4) {
  width: 165px;
  height: 165px;
  top: 155px;
  left: 195px;
  z-index: 2;
}

.tech-bubble:nth-child(5) {
  width: 155px;
  height: 155px;
  top: 300px;
  left: 100px;
  z-index: 3;
}

.tech-bubble:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow:
    0 16px 40px rgba(14, 165, 233, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.tech-bubble img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  display: block;
}

.team-left {
  text-align: left;
}

.team-desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 16px;
}

.team-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-list li {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
  text-align: left;
}

.team-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact {
  background: var(--bg);
  padding-bottom: 72px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-booking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

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

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info-item svg {
  color: var(--accent-2);
  flex-shrink: 0;
}

.company-data {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-data div {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
}

.company-data dt {
  color: var(--text-muted);
  opacity: 0.6;
  min-width: 60px;
  flex-shrink: 0;
}

.company-data dd {
  color: var(--text-muted);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  box-shadow: 0 0 16px var(--glow);
  transform: translateY(-2px);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--white);
  font-family: var(--font);
  resize: vertical;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(122, 138, 170, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 111, 255, 0.12);
  background: rgba(30, 111, 255, 0.03);
}

.form-group.error input,
.form-group.error textarea {
  border-color: #f87171;
}

.form-error {
  font-size: 0.78rem;
  color: #f87171;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4ade80;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-success.visible {
  display: flex;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-inner .social-links {
  justify-self: end;
}

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

.footer-logo-img {
  height: 124px;
  width: auto;
  display: block;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

/* ══════════════════════════════════════════════
   SECTION DIVIDER
══════════════════════════════════════════════ */
.section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ══════════════════════════════════════════════
   SZÉCHENYI BADGE
══════════════════════════════════════════════ */
#szechenyi-badge {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9999;
}

#szechenyi-badge img {
  width: 280px;
  height: auto;
  display: block;
}

#szechenyi-close {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(84, 70, 70, 0.45);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  #szechenyi-badge {
    position: static;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin-top: 16px;
    margin-bottom: -28px;
    margin-right: 0;
  }

  #szechenyi-badge img {
    width: 260px;
    display: block;
    margin: 0;
  }

  #szechenyi-close {
    display: none;
  }

  :root {
    --nav-h: 64px;
  }

  .section {
    padding: 52px 0 80px;
  }

  .container {
    padding: 0 20px;
  }

  /* Hero fills full viewport including behind navbar — padding pushes content down,
       negative margin on content re-centers it in the visible area below the navbar */
  .hero {
    height: 100dvh;
    min-height: 0;
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    box-sizing: border-box;
  }

  /* Disable heavy animations on mobile */
  .hero-mesh {
    animation: none;
  }

  .hero-grid {
    animation: none;
  }

  /* Hide canvas on mobile */
  .hero-right {
    display: none;
  }

  /* Fix lang selector — push it to the right next to hamburger */
  .nav-inner {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .lang-selector {
    margin-left: auto;
    margin-right: 8px;
  }

  .hero-content {
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
    gap: 32px;
  }

  .hero-left {
    max-width: 100%;
    text-align: center;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-dots-canvas {
    height: 240px;
    max-width: 100%;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition:
      background var(--transition),
      border-color var(--transition);
  }

  .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-toggle.open {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .navbar--light .nav-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .navbar--light .nav-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
  }

  .nav-toggle span {
    width: 16px;
  }

  /* Match lang-current height to hamburger */
  .lang-current {
    height: 36px;
    padding: 0 13px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }

  .nav-links li::before,
  .nav-links li::after {
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    color: var(--text);
  }

  .nav-links li a:hover {
    color: var(--white);
  }

  /* Mobile menu matches navbar light state */
  .navbar--light .nav-links {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }

  .navbar--light .nav-links li a {
    color: rgba(15, 23, 42, 0.8);
  }

  .navbar--light .nav-links li a:hover {
    color: #0f172a;
  }

  .nav-logo-img {
    height: 36px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .ref-logo {
    min-width: 110px;
    padding: 14px 20px;
  }

  /* Services — vertical stack on mobile */
  .services-carousel {
    flex-direction: column;
    padding: 0 16px;
  }

  .services-arrow {
    display: none;
  }

  .services-track {
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .services-grid {
    flex-direction: column;
    transform: none !important;
    gap: 20px;
  }

  .service-card {
    flex: none;
    width: 100%;
    padding: 0;
  }

  /* Team bubbles — flex grid instead of absolute positioning */
  .team-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .team-bubbles {
    position: static;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
  }

  .tech-bubble {
    position: static !important;
    width: 110px !important;
    height: 110px !important;
    top: auto !important;
    left: auto !important;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-inner .social-links {
    justify-self: unset;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }
}
