/* GECHA Industrietechnik v4.0 - Industrial Futurism Design */
/* Using Tailwind CSS via CDN - This file for overrides & custom components only */

:root {
  --brand-950: #020617;
  --brand-900: #0f172a;
  --brand-800: #1e293b;
  --brand-700: #334155;
  --brand-600: #475569;
  --brand-500: #06b6d4;
  --brand-400: #22d3ee;
  --brand-300: #67e8f9;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-accent: #22d3ee;
  --glow: 0 0 30px rgba(6, 182, 212, 0.4);
}

/* Light Theme Override */
[data-theme="light"] {
  --brand-950: #f8fafc;
  --brand-900: #f1f5f9;
  --brand-800: #e2e8f0;
  --brand-700: #cbd5e1;
  --brand-600: #94a3b8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
}

/* Smooth Scroll with Lenis */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--brand-900);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* Custom button styles */
.btn-cyber {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-cyber-primary {
  background: var(--brand-500);
  color: var(--brand-950);
}

.btn-cyber-primary:hover {
  background: var(--brand-400);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-cyber-outline {
  background: transparent;
  border: 2px solid var(--brand-500);
  color: var(--brand-400);
}

.btn-cyber-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: var(--glow);
}

/* Hero specific */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.6) 0%,
    rgba(15, 23, 42, 0.4) 50%,
    rgba(15, 23, 42, 0.95) 100%
  );
}

/* Card hover effects */
.card-industrial {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(51, 65, 85, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card-industrial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(6, 182, 212, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card-industrial:hover {
  border-color: var(--brand-500);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--glow);
}

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

/* Glow line accent */
.glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Section accent line */
.accent-line {
  width: 80px;
  height: 4px;
  background: var(--brand-500);
  margin-bottom: 1.5rem;
}

/* Icon wrapper */
.icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--brand-400);
  transition: all 0.3s;
}

.card-industrial:hover .icon-wrapper {
  background: var(--brand-500);
  color: var(--brand-950);
  box-shadow: var(--glow);
}

/* Stats counter */
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--brand-400);
  line-height: 1;
}

/* Form styling */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--brand-950);
  border: 1px solid var(--brand-700);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-input::placeholder {
  color: var(--brand-600);
}

/* Footer grid lines */
.footer-grid-bg {
  background-image: 
    linear-gradient(rgba(51, 65, 85, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--brand-800);
  transition: color 0.3s;
}

.mobile-nav-link:hover {
  color: var(--brand-400);
}

/* Hamburger animation */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* Download banner */
.download-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  position: relative;
  overflow: hidden;
}

.download-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(6, 182, 212, 0.1), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Theme toggle */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-800);
  border: 1px solid var(--brand-700);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-400);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Alert styles */
.alert {
  padding: 1rem 1.5rem;
  border-left: 4px solid;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #34d399;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #f87171;
}

/* Booking slot cards */
.slot-card {
  padding: 1rem;
  background: var(--brand-800);
  border: 1px solid var(--brand-700);
  cursor: pointer;
  transition: all 0.3s;
}

.slot-card:hover,
.slot-card.is-selected {
  border-color: var(--brand-500);
  background: rgba(6, 182, 212, 0.1);
}

.slot-card.is-selected {
  box-shadow: var(--glow);
}

/* Responsive fixes */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
  
  .btn-cyber {
    padding: 0.875rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* Selection color */
::selection {
  background: var(--brand-500);
  color: var(--brand-950);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-900);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-600);
}

/* Light mode adjustments */
[data-theme="light"] body {
  background-color: var(--brand-900);
}

[data-theme="light"] .card-industrial {
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.9), rgba(226, 232, 240, 0.6));
  border-color: rgba(203, 213, 225, 0.8);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(241, 245, 249, 0.3) 0%,
    rgba(241, 245, 249, 0.2) 50%,
    rgba(241, 245, 249, 0.95) 100%
  );
}

[data-theme="light"] .form-input {
  background: #ffffff;
  border-color: var(--brand-700);
}

[data-theme="light"] .download-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(241, 245, 249, 0.95) 100%);
}
