:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --border: #262626;
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --accent: #5cc8ff;
  --accent-2: #7c5cff;
  --radius: 14px;
  --max-width: 1160px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; }

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

/* ---------- Background timeline image ---------- */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("images/timeline-bg.avif");
  background-size: cover;
  background-position: center;
  filter: grayscale(0.6) brightness(0.5) contrast(1.05) blur(1.5px);
  opacity: 0.14;
  pointer-events: none;
}

.bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 85%);
}

/* ---------- Ambient background glow ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.glow-1 {
  width: 480px;
  height: 480px;
  top: -140px;
  left: -120px;
  background: var(--accent);
  opacity: 0.28;
  animation: drift1 26s ease-in-out infinite alternate;
}

.glow-2 {
  width: 420px;
  height: 420px;
  top: 15%;
  right: -160px;
  background: var(--accent-2);
  opacity: 0.24;
  animation: drift2 32s ease-in-out infinite alternate;
}

.glow-3 {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: 25%;
  background: #5cffe1;
  opacity: 0.16;
  animation: drift3 30s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 90px) scale(1.15); }
}

@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-80px, 50px) scale(0.9); }
}

@keyframes drift3 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -70px) scale(1.1); }
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px;
}

.section-head { margin-bottom: 56px; }

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
}

.nav-avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #5cffe1, var(--accent));
  animation: avatar-spin 5s linear infinite;
  transition: animation-duration 0.3s ease;
}

.nav-avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  transition: transform 0.35s var(--ease-smooth);
}

.nav-logo:hover .nav-avatar::before { animation-duration: 1.2s; }
.nav-logo:hover .nav-avatar img { transform: scale(1.08); }

@keyframes avatar-spin {
  to { transform: rotate(360deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: color 0.25s ease, background-color 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(92, 200, 255, 0.12);
  box-shadow: 0 0 16px rgba(92, 200, 255, 0.18);
  transform: translateY(-1px) scale(1.06);
}

.nav-links a:active { transform: translateY(0) scale(0.97); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.35s var(--ease-smooth), opacity 0.2s ease, box-shadow 0.35s var(--ease-smooth);
}

.btn:hover { transform: translateY(-2px) scale(1.05); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: 200% 200%;
  color: #06090c;
  animation: btn-gradient 6s ease infinite, btn-glow 2.6s ease-in-out infinite;
}

.btn-primary:hover { transform: translateY(-2px) scale(1.06); }

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::before { left: 130%; }

@keyframes btn-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 14px 0 rgba(92, 200, 255, 0.35); }
  50% { box-shadow: 0 0 30px 6px rgba(124, 92, 255, 0.45); }
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(92, 200, 255, 0.25);
}

.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-large { padding: 17px 32px; font-size: 16px; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(92, 200, 255, 0.18);
}

.hero-headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 900px;
}

.hero-headline .line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.7s ease forwards;
}

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

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--text-muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions .btn {
  padding: 19px 38px;
  font-size: 17px;
}

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.work-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 16px 40px -16px rgba(92, 200, 255, 0.35);
}

/* ---------- Work filters ---------- */
.work-filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  width: fit-content;
}

.filter-btn {
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.35s var(--ease-smooth);
}

.filter-btn.active { color: #06090c; }
.filter-btn:not(.active):hover { color: var(--text); transform: scale(1.08); }
.filter-btn:active { transform: scale(0.96); }

.filter-pill {
  position: absolute;
  top: 6px;
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(92, 200, 255, 0.4);
  transition: left 0.3s ease, width 0.3s ease;
  z-index: 0;
}

.work-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a1a, #262626);
}

.work-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: transparent;
  border: 1px dashed var(--border);
}

.work-thumb--empty span {
  color: var(--text-muted);
  font-size: 14px;
}

.work-video {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.work-video img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth), filter 0.4s var(--ease-smooth);
}

.work-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.work-video:hover img {
  transform: scale(1.05);
  filter: brightness(0.65);
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(92, 200, 255, 0.5);
  cursor: pointer;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.play-btn svg {
  width: 20px;
  height: 20px;
  fill: #06090c;
  margin-left: 3px;
}

.work-video:hover .play-btn {
  transform: scale(1.15);
  box-shadow: 0 0 32px rgba(124, 92, 255, 0.6);
}

.work-meta {
  padding: 20px;
}

.work-meta h3 { font-size: 17px; font-weight: 600; }

.video-fallback {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.video-fallback:hover { color: var(--accent); }

.work-note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px -18px rgba(92, 200, 255, 0.35);
}

.service-num {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}

.service-card h3 { font-size: 19px; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.process-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px -18px rgba(92, 200, 255, 0.35);
}
.process-card h3 { font-size: 17px; margin-bottom: 10px; }
.process-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px -18px rgba(92, 200, 255, 0.35);
}

.stat-value {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.stat-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  will-change: transform;
  transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 40px -18px rgba(92, 200, 255, 0.35);
}

.testimonial-card.testimonial-card--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  border-style: dashed;
}

.testimonial-card--empty span {
  color: var(--text-muted);
  font-size: 14px;
}

.testimonial-card p { font-size: 15px; color: #e0e0e0; margin-bottom: 24px; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 0 10px rgba(92, 200, 255, 0.5);
  animation: badge-pulse 2.4s ease-in-out infinite;
  transition: transform 0.35s var(--ease-smooth);
}

.verified-badge svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: #06090c;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(92, 200, 255, 0.45); }
  50% { box-shadow: 0 0 18px rgba(124, 92, 255, 0.6); }
}

.testimonial-card:hover .verified-badge {
  transform: scale(1.25) rotate(-10deg);
}

.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.cta-head { margin-bottom: 48px; }

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.form-field textarea { resize: vertical; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: #6a6a6a; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%239a9a9a' d='M4 6l4 4 4-4' stroke='%239a9a9a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.contact-form .btn { align-self: flex-start; margin-top: 4px; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 40px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p { margin-top: 12px; max-width: 260px; }

.footer-col h4 {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a { display: block; padding: 5px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom a { transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--accent); }

.impressum {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.7;
}

.impressum h4 {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.impressum p { margin-bottom: 10px; }
.impressum a { color: var(--accent); }
.impressum a:hover { text-decoration: underline; }

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 260px; }

  .nav-links a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-links a:hover {
    background: rgba(92, 200, 255, 0.08);
    box-shadow: none;
    transform: none;
  }

  .work-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 20px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) and (min-width: 801px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
