:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --text: #e0e0e0;
  --muted: #9ba0aa;
  --primary: #ff2b2b;
  --cyan: #00ffff;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.07);
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 43, 43, 0.05), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(0, 255, 255, 0.05), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(255, 43, 43, 0.05), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text);
}

a {
  color: var(--text);
  text-decoration: none;
}

.page {
  position: relative;
  min-height: 100vh;
  z-index: 1;
  padding: 0 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.gradient.glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 43, 43, 0.08), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(0, 255, 255, 0.07), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(255, 43, 43, 0.05), transparent 45%);
  filter: blur(80px);
  animation: slowMove 22s linear infinite alternate;
}

@keyframes slowMove {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(2%, -2%, 0) scale(1.05); }
}

.nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.4));
  border-bottom: 1px solid var(--border);
  padding: 18px 32px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  z-index: 10;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.logo-mark {
  display: inline-block;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 10px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-mark.small {
  width: 60px;
  height: 60px;
  padding: 0;
}

.studio {
  color: var(--muted);
  font-size: 14px;
}

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

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav .pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(120deg, rgba(255, 43, 43, 0.3), rgba(0, 255, 255, 0.18));
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 255, 255, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding: 100px 0 80px;
  gap: 32px;
  min-height: 90vh;
}

.hero-content h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 10px 0 16px;
}

.lead {
  color: var(--muted);
  max-width: 540px;
  font-size: 18px;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: linear-gradient(120deg, rgba(255, 43, 43, 0.9), rgba(0, 255, 255, 0.6));
  color: #050505;
  border: none;
  box-shadow: 0 10px 40px rgba(255, 43, 43, 0.35);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.button.wide {
  width: 100%;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.4;
  animation: float 10s ease-in-out infinite alternate;
}

.orb-red {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 43, 43, 0.35), transparent 60%);
  top: 10%;
  left: 10%;
}

.orb-cyan {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent 60%);
  bottom: 5%;
  right: 12%;
  animation-duration: 14s;
}

@keyframes float {
  from { transform: translate3d(-8px, 10px, 0); }
  to { transform: translate3d(8px, -6px, 0); }
}

.card {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card:before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 43, 43, 0.12), rgba(0, 255, 255, 0.08));
  opacity: 0.6;
  z-index: 0;
}

.card-header, .card-body {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 600;
}

.status {
  color: #0f0;
  font-size: 13px;
}

.card-body p {
  color: var(--text);
}

.chips {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.chips span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  opacity: 0.6;
}

.scroll-hint .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  animation: pulse 2s ease-in-out infinite;
}

.scroll-hint .dot:nth-child(2) { animation-delay: 0.2s; }
.scroll-hint .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.5; }
}

.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section:last-of-type { padding-bottom: 0; }

.hero-content, .hero-visual, .value-card, .service-card, .project-card, .stack-card, .glass {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.muted {
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.value-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 43, 43, 0.12), rgba(0, 255, 255, 0.06));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 255, 0.2);
}

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

.value-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--cyan);
  margin-bottom: 12px;
  font-weight: 700;
}

.services .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.service-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: visible;
  isolation: isolate;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:before {
  content: "";
  position: absolute;
  inset: -50% -50% -40%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.18), transparent 65%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.2);
}

.project-media {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(255, 43, 43, 0.1), rgba(0, 255, 255, 0.08));
}

.mockup {
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.mockup .screen {
  position: absolute;
  width: 140px;
  height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mockup .primary {
  transform: rotateY(-10deg) translateX(-20px);
}

.mockup .secondary {
  width: 120px;
  height: 200px;
  transform: rotateY(12deg) translateX(40px) translateY(10px);
  opacity: 0.85;
}

.mockup .tertiary {
  width: 200px;
  height: 140px;
  border-radius: 16px;
  transform: rotateX(10deg) translateY(30px);
  opacity: 0.9;
}

.mockup.web .primary {
  width: 230px;
  height: 140px;
  border-radius: 16px;
}

.mockup.web .secondary, .mockup.web .tertiary {
  display: none;
}

.project-card:nth-of-type(2):hover .mockup.web .primary {
  transform: translateZ(0) rotateY(0deg) rotateX(0deg) scale(1.03);
}

.project-card[data-project="pawplan"] .mockup .secondary {
  background:
    url("MockUps/PawPlan%20Home%20Screen.jpeg") center / cover no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.project-card[data-project="pawplan"]:hover .mockup .primary {
  transform: translateX(-90px) translateY(0px) rotateY(0deg) scale(1.04);
}

.project-card[data-project="pawplan"]:hover .mockup .secondary {
  transform: translateX(100px) translateY(0px) rotateY(0deg) scale(1.03);
  opacity: 1;
}

.project-card[data-project="pawplan"] .mockup {
  height: 420px;
}

.project-card[data-project="pawplan"] .mockup .primary {
  width: 182px;
  height: 348px;
  border-radius: 42px;
  border: none;
  background: url("MockUps/PawPlan%20Home%20Screen.jpeg") center / cover no-repeat;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
}

.project-card[data-project="pawplan"] .mockup .secondary,
.project-card[data-project="pawplan"] .mockup .tertiary {
  display: none;
}

.project-card[data-project="pawplan"]:hover .mockup .primary {
  transform: translateZ(0) translateY(-8px) scale(1.02);
}

.project-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-info .tag {
  color: var(--cyan);
  font-weight: 600;
  font-size: 13px;
}

.text-button {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stack-card {
  --pointer-x: 50%;
  --pointer-y: 20%;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.stack-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 20%), rgba(0, 255, 255, 0.22), transparent 46%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stack-card:hover:after { opacity: 1; }

.stack-groups {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stack-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}

.stack-title {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.contact {
  position: relative;
}

.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.send-button {
  gap: 10px;
  letter-spacing: 0.04em;
}

.send-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.send-button:hover .send-icon {
  transform: translateX(3px);
}

.send-button.is-error { box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.3), 0 12px 38px rgba(255, 43, 43, 0.4); }

.send-button.is-sent {
  background: linear-gradient(120deg, #16d672, #0fbf70);
  color: #042a16;
  box-shadow: 0 12px 38px rgba(22, 214, 114, 0.32);
  border: 1px solid rgba(22, 214, 114, 0.4);
}

.send-button.is-error {
  background: linear-gradient(120deg, #ff4d4d, #ff2b2b);
  color: #330a0a;
  box-shadow: 0 12px 38px rgba(255, 43, 43, 0.4);
  border: 1px solid rgba(255, 77, 77, 0.8);
}

.send-icon .icon-plane,
.send-icon .icon-check,
.send-icon .icon-x { display: none; }

.send-button .icon-plane { display: inline-flex; }
.send-button.is-sent .icon-plane,
.send-button.is-error .icon-plane { display: none; }
.send-button.is-sent .icon-check { display: inline-flex; }
.send-button.is-error .icon-x { display: inline-flex; }

@keyframes error-shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
  100% { transform: translateX(0); }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

.footer {
  margin-top: 32px;
  position: relative;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 43, 43, 0.5), rgba(0, 255, 255, 0.5));
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.footer-content {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  background: #0c0c0f;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 20px;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
}

.modal-copy .meta {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  color: var(--muted);
}

.modal-mockup {
  position: relative;
  height: 320px;
  display: grid;
  place-items: center;
}

.impressum {
  padding: 80px 24px 120px;
}

.impressum-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.text-button, .footer a {
  transition: color 0.2s ease;
}

.text-button:hover, .footer a:hover {
  color: #fff;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 36px;
  }
  .stack-groups {
    grid-template-columns: 1fr;
  }
  .nav nav {
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .nav {
    position: sticky;
  }
  .nav nav {
    display: none;
  }
  .hero {
    padding: 60px 0 40px;
  }
  .page {
    padding: 0 16px 80px;
  }
  .section {
    padding: 60px 0;
  }
  .cta-row {
    flex-direction: column;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
}
