/* ============================================================
   Florian Spachtholz — Dennis der Designer Edition
   Corporate Design: #1e3a4f → #21b8d4
   Fonts: Syne (Headlines) + DM Sans (Body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:          #1e3a4f;
  --navy-deep:     #111f2b;
  --navy-mid:      #1a6085;
  --cyan:          #21b8d4;
  --cyan-light:    #5dd0e8;
  --cyan-pale:     rgba(33,184,212,0.08);
  --cyan-glow:     rgba(33,184,212,0.25);

  --bg:            #080f14;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(33,184,212,0.07);
  --bg-nav:        rgba(8,15,20,0.85);

  --text:          #f0f6fa;
  --text-muted:    #7a9aaa;
  --text-faint:    rgba(240,246,250,0.35);

  --grad-brand:    linear-gradient(135deg, #1e3a4f 0%, #1a6085 50%, #21b8d4 100%);
  --grad-cyan:     linear-gradient(90deg, #21b8d4 0%, #5dd0e8 100%);
  --grad-text:     linear-gradient(90deg, #ffffff 0%, #21b8d4 100%);

  --font-display:  'Plus Jakarta Sans', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  --radius:     14px;
  --radius-sm:  8px;
  --container:  1200px;
  --nav-h:      80px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(26,96,133,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Logo watermark */
body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vh;
  background: url('../assets/logo.png') center/contain no-repeat;
  opacity: 0.025;
  z-index: 0;
  pointer-events: none;
}

a { text-decoration: none; color: inherit; transition: color 0.25s ease; }
img { display: block; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.01em; font-weight: 600; }
h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: 0; font-weight: 600; }
p  { color: var(--text-muted); max-width: 60ch; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-sm);
  position: relative;
  z-index: 1;
}
.section { padding: var(--space-xl) 0; }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--grad-cyan);
  border-radius: 2px;
}

.grid { display: grid; }

/* ============================================================
   BUTTONS — mit Spotlight-Effekt (Mouse-Tracking)
   ============================================================ */

/* Shared base for spotlight */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

/* Spotlight pseudo-element — folgt der Maus via --btn-mx / --btn-my */
.btn-primary::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  left: var(--btn-mx, 50%);
  top:  var(--btn-my, 50%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* Primary: weißer Glow auf Cyan-Hintergrund */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--grad-cyan);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  box-shadow: 0 4px 24px var(--cyan-glow);
}
.btn-primary::after {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255,255,255,0.28) 0%, transparent 70%);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(33,184,212,0.45);
  color: #fff;
}
.btn-primary:hover::after { opacity: 1; }

/* Secondary: Cyan-Glow auf dunklem Hintergrund */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.btn-secondary::after {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(33,184,212,0.18) 0%, transparent 68%);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  background: var(--cyan-pale);
  transform: translateY(-2px);
  color: var(--text);
}
.btn-secondary:hover::after { opacity: 1; }

/* Gradient border button (LinkedIn etc.) */
.btn-gradient {
  border: 2px solid transparent !important;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad-brand) border-box !important;
  margin-left: 0 !important;
  gap: 0.6rem !important;
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--cyan-glow);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(8,15,20,0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-container {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.logo img {
  height: 56px;
  width: auto;
  transition: opacity 0.25s ease;
}
.logo:hover img { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  order: 2;
}
.nav-links a:not(.btn-primary) {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.25s ease;
}
.nav-links a:not(.btn-primary):hover,
.nav-links a.active { color: var(--text); }
.nav-links a:not(.btn-primary):hover::after,
.nav-links a.active::after { width: 100%; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  order: 1;
  margin-right: var(--space-md);
}

.lang-switch {
  display: inline-block;
  position: relative;
  cursor: pointer;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(17,31,43,0.97);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  z-index: 1001;
  min-width: 56px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}
.lang-switch:hover .lang-dropdown { display: block; }
.lang-dropdown a {
  display: block;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 2px;
}
.lang-dropdown a:hover { background: rgba(255,255,255,0.08); }
.lang-dropdown a.active {
  background: rgba(33,184,212,0.1);
  border: 1px solid rgba(33,184,212,0.2);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ============================================================
   HERO — Integriertes Layout (Text über Scene, atmosphärisch)
   ============================================================ */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
}

/* Subtle grid overlay auf linker Seite */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33,184,212,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,184,212,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to right, black 0%, black 40%, transparent 70%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 40%, transparent 70%);
}

/* Atmosphärischer Glow — sehr subtil, kein Panel-Effekt */
.hero-spotlight {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse at 40% 50%, rgba(26,96,133,0.13) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: spotlightPulse 8s ease-in-out infinite;
}

/* Text-Wrapper: im Container, über der Scene */
.hero-inner {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  z-index: 3;
  pointer-events: none; /* Maus-Events durch zum Spline-Viewer */
}

/* Text schwebt links, max halbe Breite */
.hero-text {
  width: 50%;
  max-width: 580px;
  padding: var(--space-xl) 0 var(--space-xl) 0;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: auto; /* Buttons & Links bleiben klickbar */
}
.hero-text .label { animation: fadeUp 0.6s ease 0.1s both; }
.hero-text h1      { animation: fadeUp 0.7s ease 0.25s both; margin-bottom: 1.25rem; }
.hero-text > p     {
  animation: fadeUp 0.7s ease 0.4s both;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: var(--space-md);
  max-width: 44ch;
}
.cta-group { animation: fadeUp 0.7s ease 0.55s both; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Scene: absolut zur .hero Section → volle Viewport-Breite, kein Container-Clip */
.hero-scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
  z-index: 1;
  /* Mask statt Farboverlay: Scene faded links transparent aus */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,0.2) 12%,
    rgba(0,0,0,0.6) 22%,
    black 38%,
    black 100%
  );
  mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,0.2) 12%,
    rgba(0,0,0,0.6) 22%,
    black 38%,
    black 100%
  );
}

/* Kein Farboverlay mehr — pseudo-element entfernt */
.hero-scene::before { display: none; }

/* Gradient unten */
.hero-scene::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32%;
  background: linear-gradient(to top, #080f14 0%, rgba(8,15,20,0.7) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

spline-viewer {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 600px;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.5s forwards;
}

/* "Built with Spline" Badge: unsichtbar über den Unten-Gradient eingebettet */
.spline-badge-cover {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 260px;
  height: 80px;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(8,15,20,0.7) 40%,
    #080f14 75%,
    #080f14 100%
  );
  z-index: 10;
  pointer-events: none;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 4;
  animation: fadeUp 1s ease 1.2s both;
}
.scroll-dot {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: rgba(26,96,133,0.1);
  border-top: 1px solid rgba(33,184,212,0.1);
  border-bottom: 1px solid rgba(33,184,212,0.1);
  padding: var(--space-md) 0;
  position: relative;
  z-index: 1;
}
.stats-inner {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-bottom: var(--space-lg); max-width: 600px; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { font-size: 1.05rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: var(--space-md);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, background 0.3s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(24px);
}
.card.visible { opacity: 1; transform: translateY(0); }
.card:hover {
  border-color: rgba(33,184,212,0.3);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(33,184,212,0.1);
}
.card h3 { color: var(--text); margin-bottom: 0.6rem; }
.card p   { font-size: 0.95rem; line-height: 1.7; margin-bottom: var(--space-sm); }
.card .icon { margin-bottom: var(--space-sm); display: flex; align-items: center; }

.service-icon-img {
  height: 3rem;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(33,184,212,0.5));
}
.card .icon img[src*="icon-bpm.png"] { margin-left: -6px; }

/* Services Grid */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* References */
.references-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.ref-card {
  border-left: 3px solid var(--cyan) !important;
  background: linear-gradient(135deg, rgba(33,184,212,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
}
.ref-card h3 { color: var(--text); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 0.7rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.about-text {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.about-text.visible { opacity: 1; transform: translateX(0); }
.about-text h2 { margin-bottom: var(--space-sm); }
.about-text p  { margin-bottom: var(--space-sm); font-size: 1.05rem; }
.about-text h3 {
  margin-top: var(--space-md);
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-family: var(--font-body);
}
.feature-list { margin-top: 0.5rem; }
.feature-list li {
  padding: 0.65rem 0 0.65rem 1.4rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-cyan);
}
.feature-list strong { color: var(--text); }

.about-image {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
  position: relative;
}
.about-image.visible { opacity: 1; transform: translateX(0); }
.portrait-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}
.about-image::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(33,184,212,0.3), transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   TECH STACK
   ============================================================ */
.techstack {
  background: linear-gradient(to bottom, transparent, rgba(26,96,133,0.08), transparent);
  padding: var(--space-xl) 0;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.tech-category h4 {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(33,184,212,0.2);
}
.tech-category p { color: var(--text-muted); font-size: 0.95rem; max-width: none; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(26,96,133,0.2) 0%, transparent 70%);
}
.contact-info {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  max-width: 600px;
}
.contact-info.visible { opacity: 1; transform: translateY(0); }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { font-size: 1.05rem; margin-bottom: var(--space-md); }

.email-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  position: relative;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}
.email-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--grad-cyan);
}
.email-link:hover { color: var(--cyan); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-content p { color: var(--text-faint); font-size: 0.85rem; max-width: none; }
.footer-links { display: flex; gap: var(--space-md); }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--cyan); }

/* ============================================================
   DETAIL PAGES
   ============================================================ */
.hero-small {
  padding: 10rem 0 5rem 0;
  text-align: center;
  background: radial-gradient(ellipse at top center, rgba(33,184,212,0.08), transparent 70%);
}
.center-text { text-align: center; }
.service-detail-block {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: flex-start;
}
.service-icon-large {
  flex-shrink: 0;
  background: var(--bg-card);
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
}
.service-icon-large .service-icon-img { height: 52px; width: auto; }
.detail-list { list-style: none; margin-top: var(--space-md); }
.detail-list li {
  margin-bottom: var(--space-xs);
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}
.detail-list li::before {
  content: "▸";
  color: var(--cyan);
  position: absolute;
  left: 0;
  font-size: 0.8rem;
  top: 3px;
}
.detail-list strong { color: var(--text); }
.separator {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: var(--space-xl) 0;
}

/* LinkedIn Button Wrapper */
.btn-linkedin-wrap { margin-top: var(--space-md); }

/* Navigation active */
.nav-links a.active { color: var(--text); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}
@keyframes spotlightPulse {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  50%       { transform: translate(4%, 3%) scale(1.05); opacity: 0.75; }
}

/* ============================================================
   MOBILE
   ============================================================ */
.mobile-only { display: none !important; }
.desktop-only { display: block; }

@media (max-width: 1024px) {
  .hero-scene { width: 80%; }
  .hero-text  { width: 55%; }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
  }
  .hero-scene {
    position: relative;
    top: auto; right: auto; bottom: auto;
    width: 100%;
    height: 55vh;
    min-height: 340px;
    flex-shrink: 0;
  }
  .hero-inner {
    height: auto;
    padding: var(--space-md) 0 var(--space-lg);
  }
  .hero-text { width: 100%; max-width: none; }
  .hero-scene::before { width: 15%; }
  spline-viewer { min-height: 340px; }
}

@media (max-width: 900px) {
  .about-container { grid-template-columns: 1fr; }
  .about-image { order: -1; transform: none; }
  .about-image.visible { transform: none; }
}

@media (max-width: 768px) {
  :root { --space-xl: 5rem; --space-lg: 3rem; }

  .menu-toggle { display: block; }
  .nav-controls { margin-right: 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8,15,20,0.98);
    backdrop-filter: blur(16px);
    padding: var(--space-sm);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  }
  .nav-links.active { display: flex; animation: slideDown 0.25s ease forwards; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn-primary) {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 1rem;
  }
  .nav-links .btn-primary { display: block; text-align: center; margin-top: 0.75rem; }

  .cta-group { flex-direction: column; }
  .cta-group .btn-primary, .cta-group .btn-secondary { width: 100%; justify-content: center; }
  .btn-secondary { margin-left: 0; }

  .stats-inner { gap: var(--space-md); }
  .service-detail-block { flex-direction: column; }

  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
