/* FBI GmbH - Design System */

:root {
  --bg-color: #0c0c0e;
  --bg-surface: #121214;
  --surface: rgba(25, 25, 28, 0.6);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: rgba(255, 255, 255, 0.18);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-blue: #2563eb;
  --accent-blue-light: #60a5fa;
  --accent-silver: #e2e8f0;
  --accent-silver-light: #f1f5f9;
  --accent-slate: #475569;

  --glass-bg: rgba(20, 20, 22, 0.5);
  --glass-blur: blur(24px);
  --glass-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 100px;

  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: clip;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* Ambient Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #0f1420 0%, var(--bg-color) 70%);
}

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

.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent-blue);
  top: -5%; left: -5%;
}

.orb-2 {
  width: 500px; height: 500px;
  background: var(--accent-silver);
  bottom: -8%; right: -5%;
  animation-delay: -7s;
  opacity: 0.25;
}

.orb-3 {
  width: 400px; height: 400px;
  background: var(--accent-slate);
  top: 50%; left: 40%;
  animation-delay: -12s;
  opacity: 0.2;
}

@keyframes floatOrb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1100px;
  background: rgba(12, 12, 14, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 28px; height: 28px;
  color: var(--accent-blue);
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition);
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

/* Buttons */
.btn-primary {
  background: white;
  color: #0c0c0e;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}

.btn-large {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-ghost {
  color: var(--text-muted);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--surface-border);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost:hover {
  color: white;
  border-color: var(--surface-border-hover);
  background: rgba(255,255,255,0.04);
}

.btn-icon {
  width: 18px; height: 18px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

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

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100vh;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 999;
  padding: 100px 1.5rem 2.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  justify-content: center;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 480px) {
  .mobile-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Hero */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 30px;
  max-width: 900px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: clamp(20px, 5vw, 60px);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}



.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-blue-light);
  width: fit-content;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-blue);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-silver) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Globe */
.globe-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-container {
  position: relative;
  width: clamp(300px, 30vw, 480px);
  height: clamp(300px, 30vw, 480px);
}

/* Globe Section */
.globe-section {
  padding: 8rem 0 6rem;
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--surface-border);
}

.globe-section .container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.globe-section .globe-wrapper {
  margin-top: 3.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.globe-section .globe-container {
  position: relative;
  width: clamp(280px, 65vw, 700px);
  height: clamp(280px, 65vw, 700px);
}

#globeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

#globeCanvas:active {
  cursor: grabbing;
}

.globe-atmosphere {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 40%, rgba(37, 99, 235, 0.03) 55%, transparent 70%);
  pointer-events: none;
  animation: atmospherePulse 4s ease-in-out infinite alternate;
}

@keyframes atmospherePulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}

/* Globe Tooltip */
.globe-tooltip {
  position: absolute;
  transform: translate(-50%, -100%) translateY(-20px);
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  width: 320px;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.globe-tooltip.active {
  opacity: 1;
  pointer-events: auto;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.tooltip-label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tooltip-badge {
  background: var(--accent-blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.tooltip-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.tooltip-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}

.tooltip-products-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tooltip-product-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.tooltip-product-img-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tooltip-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tooltip-product-item:hover .tooltip-product-img {
  transform: scale(1.1);
}

.tooltip-product-info {
  display: flex;
  flex-direction: column;
}

.tooltip-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
}

.tooltip-product-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Logos Marquee */
.logos-section {
  padding: 3.5rem 0;
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-weight: 600;
}

.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  width: fit-content;
}

.marquee-content {
  display: flex;
  gap: 4rem;
  padding-right: 4rem;
  flex-shrink: 0;
}

.logo-item {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.5s;
}

.logo-item:hover {
  color: var(--accent-silver);
}

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  color: var(--accent-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 300;
}

/* Glass Cards */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Glow Effect */
.hover-glow {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hover-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(37, 99, 235, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.hover-glow:hover::before { opacity: 1; }

.hover-glow:hover {
  transform: translateY(-8px);
  border-color: var(--surface-border-hover);
}

/* 3 Pillars */
.pillars-section {
  padding: 8rem 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pillar-number {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  letter-spacing: -0.04em;
}

.card-icon-wrapper {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.pillar-icon-blue {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--accent-blue-light);
}

.pillar-icon-silver {
  background: rgba(226, 232, 240, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.15);
  color: var(--accent-silver);
}

.pillar-icon-slate {
  background: rgba(71, 85, 105, 0.15);
  border: 1px solid rgba(71, 85, 105, 0.25);
  color: var(--accent-silver);
}

.card-icon {
  width: 28px; height: 28px;
}

.pillar-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.tag {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.pillar-link:hover { color: white; gap: 0.8rem; }

.link-arrow {
  width: 16px; height: 16px;
  transition: transform var(--transition);
}

.pillar-link:hover .link-arrow { transform: translateX(4px); }

/* Zehnkampf Slider */
.zehnkampf-section {
  padding: 0;
  position: relative;
}

.pin-container {
  position: relative;
  height: 450vh; /* Determines the vertical scroll speed/duration for the 10 slides */
}

/* Sticky wrapper pins content to viewport */
.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 0;
}

.sticky-wrapper .section-header {
  margin-bottom: 2rem;
}

.slider-wrapper {
  overflow: hidden; /* Hide scrollbars and disable manual overflow scrolling */
  padding: 1.5rem 0 2.5rem;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  padding-left: calc(50vw - 160px);
  padding-right: calc(50vw - 160px);
  width: fit-content;
  will-change: transform;
}

.step-card {
  width: 320px;
  padding: 2.2rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-snap-align: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.55;
  transform: scale(0.92);
}

.step-card.active-card {
  opacity: 1;
  transform: scale(1.02);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.18), var(--glass-shadow);
}

.step-card:hover {
  opacity: 1;
  transform: translateY(-6px) scale(1.02);
  border-color: var(--surface-border-hover);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.2);
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-icon {
  width: 28px; height: 28px;
  color: var(--accent-blue-light);
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Slider Controls */
.slider-controls-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0 1rem;
}

.slider-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-nav-btn:hover {
  background: white;
  color: var(--bg-color);
  border-color: white;
  transform: scale(1.05);
}

.slider-nav-btn:active {
  transform: scale(0.95);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dots .dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-dots .dot.active {
  background: var(--accent-blue-light);
  width: 24px;
  border-radius: 4px;
}

/* Stats */
.stats-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.03) 50%, transparent 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  display: inline;
}

.stat-suffix {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-blue-light);
  display: inline;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Featured Referenzen */
.featured-refs-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
  position: relative;
}

.refs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.ref-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.ref-image-wrapper {
  height: 240px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--surface-border);
}

.ref-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-card:hover .ref-image {
  transform: scale(1.05);
}

.ref-card-content {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ref-category {
  color: var(--accent-blue-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.ref-card-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: white;
}

.ref-card-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
}

.refs-action {
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .refs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .refs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Certifications */
.certs-section {
  padding: 6rem 0;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cert-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cert-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-lucide {
  width: 26px; height: 26px;
  color: var(--accent-blue-light);
}

.cert-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Team */
.team-section {
  padding: 6rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(226, 232, 240, 0.08));
  border: 2px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-icon {
  width: 36px; height: 36px;
  color: var(--text-dim);
}

.team-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.team-role {
  color: var(--accent-blue-light);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Faq */
.faq-section {
  padding: 6rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.active {
  border-color: rgba(37, 99, 235, 0.3);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent-blue-light); }

.faq-chevron {
  width: 20px; height: 20px;
  color: var(--text-dim);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-blue-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

/* Cta */
.cta-section {
  padding: 8rem 0;
}

.cta-content {
  text-align: center;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* Footer */
.glass-footer {
  border-top: 1px solid var(--surface-border);
  padding: 5rem 0 2rem;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
  font-weight: 300;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.hover-link {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.hover-link:hover { color: white; }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--accent-blue-light);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

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

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    text-align: center;
    padding-top: 140px;
  }

  .hero-content { align-items: center; }
  .hero-cta-group { justify-content: center; }

  .globe-section { padding: 4rem 0; margin-top: 6rem; }
  .pin-container { height: 400vh; }

  .slider-track {
    padding-left: calc(50vw - 145px);
    padding-right: calc(50vw - 145px);
  }

  .step-card {
    width: 290px;
  }

  .pillars-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-container .btn-primary { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .certs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .legal-links { justify-content: center; }

  .cta-content { padding: 3rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .btn-ghost, .btn-primary { justify-content: center; }
}

/* ═════════════════════════════════ */
/* SUBPAGES COMMON STYLING */
/* ═════════════════════════════════ */

.subpage-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
}

.subpage-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.subpage-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* Grids */
.subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

/* Country Cards */
.country-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.country-flag-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.country-flag {
  font-size: 2.5rem;
}

.country-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.country-advantage {
  color: var(--accent-blue-light);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Spec Badges */
.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.spec-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Veredelungstechniken Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 3rem 0 6rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 700px;
}

.comparison-table th, 
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.comparison-table td strong {
  color: var(--text-light);
}

/* Blog Article Styles & Modal Dialog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 6rem;
}

.blog-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  height: 100%;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-tag {
  color: var(--accent-blue-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card h3 {
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--text-light);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  transition: color 0.3s;
}

.blog-read-more:hover {
  color: var(--accent-blue-light);
}

/* HTML5 Dialog Modal */
.dialog-modal {
  border: 1px solid var(--surface-border);
  background: #0f0f12;
  border-radius: var(--radius-lg);
  color: var(--text-light);
  padding: 3rem;
  max-width: 800px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  outline: none;
}

.dialog-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.dialog-header h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-close-dialog {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-close-dialog:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.dialog-content {
  line-height: 1.7;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.dialog-content p {
  margin-bottom: 1.5rem;
}

.dialog-content h3, 
.dialog-content h4 {
  color: var(--text-light);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.dialog-content ul, 
.dialog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.dialog-content li {
  margin-bottom: 0.5rem;
}

/* Contact Page Form & Fields */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.contact-info-card {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-block h4 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-block p {
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form-card {
  padding: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-light);
  padding: 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(148, 163, 184, 0.8)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Timeline Sektion (Über uns) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 6rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 6px);
  top: 0.35rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent-blue-light);
  box-shadow: 0 0 10px var(--accent-blue);
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.timeline-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive Overrides for Subpages */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .dialog-modal {
    padding: 1.5rem;
  }
}

/* Form Validation & Success Styles */
.form-group.has-error .form-control {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}
.form-error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 500;
}
.form-success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  gap: 1.5rem;
  animation: fadeIn 0.5s ease forwards;
}
.success-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success-card h3 {
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.form-success-card p {
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}

/* Navigation Dropdowns */
.nav-links li {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 15, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  text-align: left;
  border-radius: 6px;
  margin: 0 0.5rem;
  width: calc(100% - 1rem);
}

.dropdown-menu a:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
  padding-left: 1.5rem;
}

/* Mobile Submenu Styling */
.mobile-menu-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue-light);
  padding: 0.5rem 0 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
}

.mobile-sublink {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none;
}

.mobile-sublink::after {
  content: '→';
  opacity: 0.4;
  transform: translateX(-5px);
  transition: all 0.3s;
}

.mobile-sublink:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  padding-left: 1.25rem !important;
}

.mobile-sublink:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   MULTI-STEP FORM WIZARD STYLES
   ========================================== */

/* Step Indicator Layout */
.form-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  cursor: default;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-indicator.active .step-num {
  background: rgba(96, 165, 250, 0.1);
  border-color: var(--accent-blue-light);
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.step-indicator.active .step-label {
  color: var(--text-light);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.step-indicator.completed .step-num {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.step-indicator.completed .step-label {
  color: #10b981;
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 1rem;
  margin-top: -1.5rem; /* align horizontally with circles */
  position: relative;
  z-index: 1;
  border-radius: 2px;
  overflow: hidden;
}

.step-line::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue-light), #10b981);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-line.active::after {
  width: 100%;
}

/* Step content visibility & transitions */
.form-steps-container {
  position: relative;
}

.form-step {
  display: none;
  width: 100%;
}

.form-step.active {
  display: block;
  animation: slideStepIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideStepIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Actions Button Layouts */
.form-actions-split {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.form-actions-split .btn-ghost {
  flex: 0.4;
  justify-content: center;
}

.form-actions-split .btn-primary {
  flex: 0.6;
  justify-content: center;
}

/* Icon Inside Fields (Input Wrappers) */
.input-wrapper {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  opacity: 0.7;
  pointer-events: none;
  transition: color 0.3s, opacity 0.3s;
}

.input-wrapper.textarea-wrapper {
  display: flex;
}

.textarea-icon {
  top: 1.25rem;
  transform: none;
}

/* Apply padding to input fields when wrapped with icons */
.input-wrapper .form-control {
  width: 100%;
  padding-left: 2.75rem;
}

.input-wrapper:focus-within .input-icon {
  color: var(--accent-blue-light);
  opacity: 1;
}

/* Custom premium glassmorphic checkbox */
.checkbox-container {
  display: flex;
  margin-top: 0.5rem;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkbox-container label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
}

.custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  margin-top: 2px;
}

.form-group.has-error .custom-checkbox {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.checkbox-container label:hover .custom-checkbox {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.checkbox-container input[type="checkbox"]:checked + label .custom-checkbox {
  background: rgba(96, 165, 250, 0.15);
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.checkbox-container input[type="checkbox"]:checked + label .custom-checkbox::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--accent-blue-light);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: checkmarkPop 0.2s ease forwards;
}

@keyframes checkmarkPop {
  from {
    transform: rotate(45deg) scale(0);
    opacity: 0;
  }
  to {
    transform: rotate(45deg) scale(1);
    opacity: 1;
  }
}

/* Submission Loading Spinner Overlay */
.form-submit-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.form-submit-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.spinner-ring {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(96, 165, 250, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-blue-light);
  animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.2);
}

.form-submit-loader p {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .form-steps-indicator {
    margin-bottom: 2rem;
  }
  .step-label {
    display: none; /* Hide step names on very small phones to avoid layout breakage */
  }
  .step-line {
    margin-top: -1.1rem;
  }
  .step-num {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .form-actions-split {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .form-actions-split .btn-ghost,
  .form-actions-split .btn-primary {
    width: 100%;
    flex: 1;
  }
}


