/**
 * FIS Tech - Ultra-Modern Futuristic UX/UI Overhaul
 * Deep space obsidian theme, glassmorphism, glowing gradients & 3D canvas integration
 */

:root {
  --neon-cyan: #00f0ff;
  --neon-blue: #0077ff;
  --neon-glow: rgba(0, 240, 255, 0.35);
  --dark-bg: #030a12;
  --dark-surface: rgba(7, 24, 38, 0.65);
  --glass-border: rgba(56, 189, 248, 0.18);
  --glass-border-hover: rgba(0, 240, 255, 0.5);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.55);
}

/* Fixed 3D Canvas Background */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

/* Scroll Progress Bar at the top */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0077ff, #00f0ff);
  z-index: 99999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* High-tech body background with subtle grid illumination */
body {
  background-color: var(--dark-bg) !important;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(0, 119, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
    linear-gradient(to bottom, transparent, rgba(3, 10, 18, 0.85) 90%) !important;
  color: #e2e8f0;
  overflow-x: hidden;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

/* Floating Frosted Navigation Bar */
header.site .bar.glass {
  background: rgba(4, 15, 24, 0.75) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
}

header.site .main a {
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
}
header.site .main a:hover,
header.site .main a[aria-current="page"] {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* Glowing Eyebrow Pills */
.eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem !important;
  border-radius: 999px !important;
  background: rgba(0, 163, 255, 0.1) !important;
  border: 1px solid var(--glass-border) !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 24px rgba(0, 163, 255, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  margin-bottom: 1.25rem !important;
}

/* Futuristic Gradient Headings */
.hero-copy h1 {
  background: linear-gradient(135deg, #ffffff 15%, #bae6fd 65%, #38bdf8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.15 !important;
}

.head h2 {
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, #7dd3fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.025em !important;
}

/* Next-Gen Primary Buttons with Neon Glow */
.btn.primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0080ff 100%) !important;
  color: #030a12 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 190, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}
.btn.primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.65), inset 0 1px 1px #fff !important;
  color: #030a12 !important;
}

.btn.ghost {
  background: rgba(14, 38, 58, 0.5) !important;
  border: 1px solid var(--glass-border) !important;
  color: #f1f5f9 !important;
  backdrop-filter: blur(10px) !important;
  transition: all 0.3s ease !important;
}
.btn.ghost:hover {
  border-color: var(--neon-cyan) !important;
  background: rgba(14, 48, 75, 0.8) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25) !important;
}

/* Futuristic 3D Service Cards */
.service, article.service {
  background: rgba(7, 22, 35, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  padding: 2.25rem 2rem !important;
  box-shadow: var(--glass-shadow) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service:hover, article.service:hover {
  transform: translateY(-8px) !important;
  border-color: var(--glass-border-hover) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.25) !important;
}

.service .tag {
  display: inline-block !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: var(--neon-cyan) !important;
  background: rgba(0, 240, 255, 0.08) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  margin-bottom: 1rem !important;
  width: fit-content;
}

.service h3 {
  font-size: 1.4rem !important;
  color: #ffffff !important;
  margin-bottom: 0.75rem !important;
}

.service p {
  color: #94a3b8 !important;
  line-height: 1.65 !important;
  font-size: 0.96rem !important;
  flex-grow: 1;
}

.service .more {
  margin-top: 1.5rem !important;
  color: var(--neon-cyan) !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}
.service .more:hover {
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8) !important;
  gap: 0.65rem !important;
}

/* Monatsübersicht Simulation Panel */
.panel {
  background: rgba(6, 19, 31, 0.8) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 163, 255, 0.15) !important;
}

.panel-top {
  border-bottom: 1px solid var(--glass-border) !important;
}

.panel .dot {
  width: 9px !important;
  height: 9px !important;
  background: #10b981 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 12px #10b981 !important;
  animation: pulseDot 2s infinite ease-in-out !important;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 12px #10b981; }
  50% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 20px #10b981; }
}

/* Glassmorphism Tiles & Case Studies */
.tile, .case, .contact-form.glass {
  background: rgba(6, 20, 32, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--glass-shadow) !important;
  transition: all 0.3s ease !important;
}

.tile:hover {
  border-color: rgba(0, 240, 255, 0.4) !important;
  transform: translateY(-4px) !important;
}

.contact-form.glass {
  border: 1px solid rgba(0, 240, 255, 0.22) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 163, 255, 0.1) !important;
}

/* Form Inputs */
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(3, 10, 17, 0.8) !important;
  border: 1px solid var(--glass-border) !important;
  color: #fff !important;
  border-radius: 8px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2) !important;
  outline: none !important;
}

/* Chips / Industry Filter Buttons */
.chip {
  background: rgba(10, 29, 46, 0.55) !important;
  border: 1px solid var(--glass-border) !important;
  color: #94a3b8 !important;
  transition: all 0.25s ease !important;
}
.chip:hover, .chip[aria-pressed="true"] {
  background: rgba(0, 163, 255, 0.2) !important;
  border-color: var(--neon-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25) !important;
}

/* Steps & Advantages */
.steps li {
  background: rgba(6, 19, 31, 0.5) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  padding: 1.5rem !important;
  backdrop-filter: blur(10px) !important;
}

/* Footer Glassmorphism */
footer.site {
  background: rgba(2, 7, 13, 0.95) !important;
  border-top: 1px solid var(--glass-border) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  #webgl-canvas {
    opacity: 0.55;
  }
  .service {
    padding: 1.5rem 1.25rem !important;
  }
}

