/* ===== FONT FACES (from own server) ===== */
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/opensans-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/opensans-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --navy:       #050A14;
  --navy-mid:   #090F1E;
  --navy-light: #0E1829;
  --accent:     #3B82F6;
  --accent-dark:#2563EB;
  --accent-glow:#60A5FA;
  --accent-cyan:#06B6D4;
  --warm:       #F59E0B;
  --text:       #E2E8F8;
  --text-muted: #7E95BC;
  --text-dim:   #3D5275;
  --border:     rgba(59,130,246,0.12);
  --border-med: rgba(59,130,246,0.22);
  --glass-bg:   rgba(9,15,30,0.7);
  --glass-border: rgba(59,130,246,0.18);
  --font-head:  'Nunito', Georgia, serif;
  --font-body:  'Open Sans', Arial, sans-serif;
  --max:        1200px;
  --radius:     12px;
  --radius-lg:  20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,0.08) 0%, transparent 60%);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

/* ===== UTILITY ===== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.accent { color: var(--accent); }
.warm { color: var(--warm); }

/* ===== NAV ===== */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 0;
  background: rgba(5,10,20,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s;
}
#main-nav .inner,
#main-nav .nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 0.5rem 1.2rem; border-radius: 6px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; color: #fff !important; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(59,130,246,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(6,182,212,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 10%, rgba(59,130,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}
/* Subtle grid texture */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 2rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  box-shadow: 0 0 12px rgba(59,130,246,0.1);
  padding: 0.35rem 0.9rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero h1 .line-accent {
  display: inline;
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-body); font-weight: 600;
  padding: 0.8rem 1.8rem; border-radius: 8px;
  font-size: 0.9rem; transition: all 0.2s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,0.35), 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-glow), var(--accent));
  box-shadow: 0 0 36px rgba(59,130,246,0.55), 0 4px 20px rgba(37,99,235,0.4);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-med);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700;
  color: #fff; line-height: 1;
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label {
  font-size: 0.78rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Hero image side */
.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
}
.hero-photo-wrap {
  position: relative;
  width: 380px; max-width: 100%;
}
.hero-photo-wrap::before {
  content: '';
  position: absolute; inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(6,182,212,0.3), transparent 60%);
  z-index: 0;
  filter: blur(1px);
}
.hero-photo {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}
.hero-photo-caption {
  position: absolute; bottom: -1px; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,27,42,0.9));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  z-index: 2;
}
.hero-photo-caption-name {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700; color: #fff;
}
.hero-photo-caption-role {
  font-size: 0.8rem; color: var(--text-muted);
}

/* ===== SECTION BASE ===== */
section { padding: 6rem 0; }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: #fff;
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 600px; line-height: 1.75;
}

.about-heading-full {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.about-typed-wrap {
  display: inline;
  white-space: nowrap;
}
.line-accent-dark {
  color: var(--accent);
  font-style: normal;
}
.about-cursor {
  display: inline-block;
  width: 3px; height: 0.75em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.about-strip::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  column-gap: 5rem;
  row-gap: 1.5rem;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}
.about-img-caption {
  position: absolute; bottom: -1px; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,27,42,0.9));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
}
.about-img-caption-name {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700; color: #fff;
}
.about-img-caption-role {
  font-size: 0.8rem; color: var(--text-muted);
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.about-text p strong { color: var(--text); font-weight: 600; }


/* ===== WHY ME ===== */
.why-section { background: var(--navy); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.why-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.why-card:hover {
  border-color: rgba(59,130,246,0.45);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(59,130,246,0.12), 0 8px 32px rgba(0,0,0,0.4);
}
.why-icon {
  width: 48px; height: 48px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.28);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  box-shadow: 0 0 16px rgba(59,130,246,0.12);
}
.why-card h3 {
  font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: 0.6rem;
  font-family: var(--font-head);
}
.why-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ===== SERVICES ===== */
.services-section {
  background: linear-gradient(135deg, var(--navy-mid) 0%, #070D1C 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.services-intro { margin-bottom: 3.5rem; }
.services-intro .section-sub { max-width: 640px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-item {
  display: flex; gap: 1.25rem;
  padding: 1.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.service-item:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 24px rgba(59,130,246,0.1), inset 0 0 24px rgba(59,130,246,0.04);
  transform: translateY(-2px);
}
.service-icon {
  font-size: 1.8rem;
  line-height: 1; flex-shrink: 0;
  width: 2.5rem;
  transition: transform 0.25s;
}
.service-item:hover .service-icon {
  transform: scale(1.15);
}
.service-body h3 {
  font-size: 1.15rem; font-weight: 700; color: #fff;
  font-family: var(--font-head); margin-bottom: 0.5rem;
}
.service-body p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--navy); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-3px);
  box-shadow: 0 0 24px rgba(59,130,246,0.1), 0 8px 24px rgba(0,0,0,0.3);
}
.testimonial-quote {
  font-size: 2.5rem; color: var(--accent-cyan);
  line-height: 1; margin-bottom: 1rem;
  font-family: Georgia, serif;
}
.testimonial-text {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.7; flex: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 0.75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; color: #fff; }
.testimonial-role { font-size: 0.75rem; color: var(--text-dim); }

/* ===== LOGOS ===== */
.logos-section {
  background: var(--navy-mid);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 4rem 0;
}
.logos-label {
  text-align: center;
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 2.5rem;
}
.logos-slider-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logos-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: max-content;
  animation: logos-scroll 32s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
@keyframes logos-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-slide {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: 240px;
  padding: 0 2.5rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.logo-slide:hover { opacity: 1; }
.logo-slide img {
  height: 200px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.75);
}

/* ===== CONTACT ===== */
.contact-section { background: var(--navy); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-info { }
.contact-info p {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 2rem;
}
.contact-fact {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-fact-icon {
  width: 36px; height: 36px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  box-shadow: 0 0 10px rgba(59,130,246,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem;
}
.contact-fact-text { font-size: 0.875rem; color: var(--text-muted); }
.contact-fact-text strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* Form */
.contact-form-wrap {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 40px rgba(59,130,246,0.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(59,130,246,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(59,130,246,0.07);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--navy-mid); }
.form-submit { width: 100%; margin-top: 0.5rem; font-size: 1rem; padding: 1rem; }
.form-note { font-size: 0.75rem; color: var(--text-dim); text-align: center; margin-top: 1rem; }
.form-success {
  display: none; text-align: center; padding: 2rem;
  color: #4ade80;
  font-family: var(--font-head);
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy {
  font-size: 0.8rem; color: var(--text-dim);
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.8rem; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); }

/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  padding: 2rem 1rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
  background: var(--navy-mid);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 760px;
  padding: 2.5rem;
  position: relative;
  margin: auto;
}
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-med);
  border-radius: 6px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  font-size: 1.1rem; line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.modal-title {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 700;
  color: #fff; margin-bottom: 2rem;
  padding-right: 2rem;
}
.modal-content { color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; }
.modal-content h2 {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: #fff; margin: 2rem 0 0.75rem;
}
.modal-content h2:first-child { margin-top: 0; }
.modal-content h3 {
  font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin: 1.25rem 0 0.5rem;
}
.modal-content p { margin-bottom: 0.9rem; }
.modal-content ul { padding-left: 1.5rem; margin-bottom: 0.9rem; }
.modal-content ul li { margin-bottom: 0.3rem; }
.modal-content a { color: var(--accent); text-decoration: none; }
.modal-content a:hover { text-decoration: underline; }
.modal-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ===== DIVIDER LINE ===== */
.divider-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), transparent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 8px rgba(59,130,246,0.4);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ===== ENHANCED ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

/* ===== TYPED CURSOR ===== */
.typed-cursor {
  display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== ENHANCED WHY CARDS ===== */
.why-card {
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(6,182,212,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: var(--radius-lg);
}
.why-card:hover::before { opacity: 1; }
.why-card:hover {
  border-color: rgba(59,130,246,0.45);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(59,130,246,0.15), 0 12px 40px rgba(0,0,0,0.4);
}

/* ===== ENHANCED SERVICE CARDS ===== */
.service-item {
  position: relative; overflow: hidden;
}
.service-item::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent), var(--accent-glow));
  transition: width 0.4s ease;
  box-shadow: 0 0 8px rgba(59,130,246,0.5);
}
.service-item:hover::after { width: 100%; }

/* ===== TESTIMONIAL CARD GLOW ===== */
.testimonial-card {
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover {
  border-color: rgba(14,165,233,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ===== ACTIVE NAV LINK ===== */
.nav-links a.active:not(.nav-cta) {
  color: var(--text) !important;
}
.nav-links a.active:not(.nav-cta)::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  margin-top: -2px;
  border-radius: 1px;
}
/* Kontakt-Button bekommt nie die active-Klasse visuell */
.nav-links a.nav-cta.active {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ===== STAT NUMBER GLOW ON COUNT ===== */
.hero-stat-num.counting { color: var(--accent-glow); }

/* ===== LOGO SLIDE SHIMMER ===== */
@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
.logos-track:not(:hover) .logo-slide:nth-child(3n) { animation: shimmer 3s ease-in-out infinite; }
.logos-track:not(:hover) .logo-slide:nth-child(3n+1) { animation: shimmer 3s ease-in-out infinite 1s; }
.logos-track:not(:hover) .logo-slide:nth-child(3n+2) { animation: shimmer 3s ease-in-out infinite 2s; }

/* ===== HERO VISUAL FLOAT ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== SECTION TITLE UNDERLINE ANIMATE ===== */
.section-title {
  position: relative;
  display: inline-block;
}

/* ===== CONTACT FORM FIELD FOCUS EFFECT ===== */
.form-group {
  position: relative;
}
.form-group input, .form-group textarea, .form-group select {
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

/* ===== BUTTON RIPPLE ===== */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn:active::after {
  width: 300px; height: 300px; opacity: 1;
  transition: 0s;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-content: center; margin-top: 2rem; order: 1; }
  .hero-photo-wrap { max-width: 300px; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-heading-full { order: 0; }
  .about-img-wrap { order: 1; }
  .about-text { order: 2; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }
  .nav-toggle { display: block; }
  section { padding: 4rem 0; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
/* ===== SERVICE GROUPS ===== */
.services-group {
  margin-bottom: 3rem;
}
.services-group:last-child { margin-bottom: 0; }
.services-group-label {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-bright, var(--accent));
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(59,130,246,0.25);
}
.service-link {
  color: inherit; text-decoration: none;
  transition: color 0.2s;
}
.service-link:hover { color: var(--accent-glow, var(--accent)); }

/* ===== SUBPAGE: BREADCRUMB ===== */
.breadcrumb {
  padding: 0.6rem 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 0.4rem; color: var(--text-dim); }
.breadcrumb-current { color: var(--text-muted); }

/* ===== SUBPAGE HERO ===== */
.subpage-hero {
  padding: 140px 0 5rem;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.subpage-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(59,130,246,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.subpage-hero-inner { position: relative; z-index: 1; }
.subpage-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 0.35rem 0.9rem; border-radius: 100px;
  margin-bottom: 1.25rem;
}
.subpage-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; color: #fff;
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.subpage-lead {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.75; max-width: 640px;
}
.subpage-content { padding: 5rem 0; }
.subpage-content h2 {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 700; color: #fff;
  margin: 2.5rem 0 0.75rem; letter-spacing: -0.02em;
}
.subpage-content h2:first-child { margin-top: 0; }
.subpage-content h3 {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--accent-glow, var(--accent));
  margin: 1.75rem 0 0.5rem;
}
.subpage-content p {
  color: var(--text-muted); line-height: 1.8;
  margin-bottom: 1rem; font-size: 1rem;
}
.subpage-content ul {
  list-style: none; padding: 0;
  margin-bottom: 1.25rem;
}
.subpage-content ul li {
  color: var(--text-muted);
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative; font-size: 1rem; line-height: 1.7;
}
.subpage-content ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
}
.subpage-cta-box {
  background: var(--glass-bg, var(--navy-mid));
  border: 1px solid var(--glass-border, var(--border-med));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 3rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.subpage-cta-box h3 {
  color: #fff !important;
  font-size: 1.3rem !important;
  margin-bottom: 0.75rem !important;
  margin-top: 0 !important;
}
.subpage-cta-box p { margin-bottom: 1.5rem; }

/* ===== ON DEMAND SECTION ===== */
.on-demand-section {
  background: var(--navy);
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.on-demand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.on-demand-card {
  display: flex; flex-direction: column;
  background: var(--glass-bg, var(--navy-mid));
  border: 1px solid var(--glass-border, var(--border-med));
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.on-demand-card:hover {
  border-color: rgba(59,130,246,0.45);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(59,130,246,0.12), 0 8px 32px rgba(0,0,0,0.4);
  color: inherit;
}
.on-demand-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700;
  color: #fff; margin-bottom: 0.6rem;
}
.on-demand-card p {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.7; flex: 1;
  margin-bottom: 1.25rem;
}
.on-demand-stat {
  font-size: 0.8rem; color: var(--text-dim);
  margin-bottom: 1rem;
}
.on-demand-stat span {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700;
  color: var(--accent-glow, var(--accent));
  margin-right: 0.25rem;
}
.on-demand-link {
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.on-demand-card:hover .on-demand-link {
  color: var(--accent-glow, var(--accent));
}

@media (max-width: 960px) {
  .on-demand-grid { grid-template-columns: 1fr; }
}

/* ===== ABOUT ANSPRUCH ===== */
.about-anspruch {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--accent);
  background: rgba(59,130,246,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-anspruch p {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.about-anspruch em {
  font-style: normal;
  color: var(--accent-bright, var(--accent));
}

/* ===== SERVICE MORE LINK ===== */
.service-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.service-more:hover { color: var(--accent-bright, var(--accent)); }

/* ===== X LETTER ===== */
.x-letter {
  color: #FACC15;
  font-weight: 700;
}

/* ===== LOGOS LABEL BIG ===== */
.logos-label-big {
  font-size: 1.1rem !important;
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6,11,24,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  list-style: none;
  min-width: 280px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  /* Bridge gap so menu stays open */
  margin-top: 0;
  padding-top: 12px;
}
/* Invisible bridge between nav link and menu */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 9998;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none !important;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover {
  background: rgba(59,130,246,0.12);
  color: #fff !important;
}
.nav-dropdown-group { display: none; }
.nav-dropdown-overview {
  font-weight: 700 !important;
  color: var(--accent) !important;
  border-bottom: 1px solid rgba(59,130,246,0.15) !important;
  margin-bottom: 0.25rem;
  padding-bottom: 0.6rem !important;
}
.nav-dropdown-overview:hover {
  color: var(--accent-glow) !important;
}

/* ===== SUBPAGE: FIX HEADER ===== */
.subpage-nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}


/* ===== NAV DROPDOWN OVERVIEW + DIVIDER ===== */
.nav-dropdown-overview {
  font-weight: 700 !important;
  color: var(--accent) !important;
  border-bottom: 1px solid var(--border) !important;
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.25rem !important;
}
.nav-dropdown-divider {
  display: none;
}

/* ===== SUBPAGE HERO GRID ===== */
.subpage-hero-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}
.subpage-hero-text { min-width: 0; }
.subpage-portrait { text-align: center; flex-shrink: 0; }
.subpage-portrait img {
  width: 240px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(59,130,246,0.3);
  box-shadow: 0 0 32px rgba(59,130,246,0.18);
  display: block;
  margin: 0 auto;
}
.subpage-portrait-caption { margin-top: 0.75rem; }
.subpage-portrait-name {
  font-family: var(--font-head);
  font-size: 0.9rem; font-weight: 700; color: var(--text);
}
.subpage-portrait-role { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }

@media (max-width: 700px) {
  .subpage-hero-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
  margin-top: 1.5rem;
}
  .subpage-portrait { display: none; }
}


/* ===== XPRESS LOGOS: gleiche optische Größe (X-Symbol) ===== */
.on-demand-logo {
  height: 60px;
  display: flex; align-items: center;
  margin-bottom: 1.25rem;
}
.on-demand-logo img.xp-logo { display: block; width: auto; max-width: none; }
.on-demand-logo img.xp-logo-geo,
.on-demand-logo img.xp-logo-seo { height: 40px; }
.on-demand-logo img.xp-logo-lead { height: 52px; } /* leadXpress-SVG hat mehr Innenabstand (Faktor ~1,3) */

/* ===== ersetzt frühere Inline-Styles (CSP ohne 'unsafe-inline') ===== */
.why-card.why-card-accent {
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(14,165,233,0.05));
  border-color: rgba(14,165,233,0.25);
}
.why-icon.why-icon-accent {
  background: rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.3);
}
.section-title.services-title {
  white-space: nowrap;
  font-size: clamp(1.4rem, 2.5vw, 2.8rem);
}
.section-sub.on-demand-sub { max-width: 720px; }
html body h3.contact-lead {
  font-size: 1rem; font-weight: 400;
  font-family: var(--font-body);
  color: var(--text-muted);
  line-height: 1.75; margin-bottom: 2rem;
}
a.link-accent { color: var(--accent); text-decoration: none; }
input.hp-field { display: none !important; }
div.form-success-icon { font-size: 2.5rem; margin-bottom: 1rem; }
div.form-success-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
div.form-success-text { color: var(--text-muted); font-size: .9rem; }
.subpage-prose { max-width: 760px; }

/* ===== Ganze Service-Kachel klickbar (Stretched Link, ohne JavaScript) ===== */
.service-item { cursor: pointer; }
.service-item .service-link::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
}
.service-item .service-more { position: relative; z-index: 2; }

/* ===== SERVICE-UNTERSEITEN: Text + Sidebar ===== */
.subpage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 4rem;
  align-items: start;
}
.subpage-sidebar {
  position: sticky;
  top: 110px;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.sidebar-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sidebar-title {
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-bright, var(--accent));
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(59,130,246,0.2);
}
.subpage-content .sidebar-links { list-style: none; margin: 0; padding: 0; }
.subpage-content .sidebar-links li { margin: 0; padding: 0; }
.subpage-content .sidebar-links li::before { content: none; }
.subpage-content .sidebar-links a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem; margin: 0 -0.75rem;
  border-radius: var(--radius);
  color: var(--text-muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 600; line-height: 1.35;
  transition: background 0.2s, color 0.2s;
}
.subpage-content .sidebar-links a:hover { background: rgba(59,130,246,0.12); color: #fff; }
.sidebar-icon { font-size: 1.25rem; line-height: 1; flex-shrink: 0; width: 1.6rem; text-align: center; }
.subpage-content .sidebar-cta p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin: 0 0 1.25rem; }
.sidebar-cta .btn { display: block; text-align: center; }

@media (max-width: 960px) {
  .subpage-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .subpage-sidebar { position: static; }
}

/* ===== Links im Fließtext: Textfarbe beibehalten, unterstrichen (auch besucht) ===== */
.subpage-prose :is(p, li) a:not(.btn),
.subpage-prose :is(p, li) a:not(.btn):link,
.subpage-prose :is(p, li) a:not(.btn):visited {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}
.subpage-prose :is(p, li) a:not(.btn):hover,
.subpage-prose :is(p, li) a:not(.btn):focus-visible {
  color: inherit;
  text-decoration-color: var(--accent-bright, var(--accent));
  text-decoration-thickness: 2px;
}
