/* public/css/style.css - Nokta Bilişim Enterprise Design System */
/* Inspired by Emil Kowalski Craft, Linear & Vercel Typography & Micro-interactions */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Typography Stack */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Deep Zinc Monochrome Foundation */
  --bg-ground: #09090b;
  --bg-surface: #121215;
  --bg-elevated: #18181b;
  --bg-card: #121216;
  --bg-card-hover: #19191f;

  /* Nuanced Text Hierarchy */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-muted: #52525b;

  /* 1px Hairline Borders & Inner Highlights */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-active: rgba(56, 189, 248, 0.5);
  --inner-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  --inner-highlight-subtle: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);

  /* Restrained Single Accent (Sky/Cyan) */
  --color-accent: #0284c7;
  --color-accent-light: #38bdf8;
  --color-accent-glow: rgba(56, 189, 248, 0.15);
  --color-emerald: #10b981;
  --color-amber: #f59e0b;

  /* Emil Kowalski Spring Physics Curves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.2, 0, 0, 1);
  --ease-bounce-soft: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Timing */
  --duration-fast: 150ms;
  --duration-normal: 240ms;
  --duration-smooth: 350ms;
}

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

html {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ground);
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* Linear-Level Headings & Negative Tracking */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.03em; }
h3 { letter-spacing: -0.025em; }

p {
  color: #cbd5e1;
  line-height: 1.65;
}

/* Accessible Focus Ring with Spring Physics */
:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
  border-radius: 8px;
  transition: outline-offset var(--duration-fast) var(--ease-spring);
}

/* Minimalist Precision Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
  border: 2px solid #09090b;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Interactive HTML5 Hero Canvas */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

/* Craft Glass & Surface System (Linear/Vercel Aesthetic) */
.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--inner-highlight), 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  transition: all var(--duration-smooth) var(--ease-spring);
  position: relative;
}

.glass-panel-hover {
  transition: all var(--duration-normal) var(--ease-spring);
  will-change: transform, border-color, box-shadow;
}

.glass-panel-hover:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-3px) scale(1.004);
  box-shadow: var(--inner-highlight), 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.glass-panel-light {
  background: rgba(24, 24, 27, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--inner-highlight);
}

/* Mouse Spotlight Illumination Shader (Calculated in JS) */
.spotlight-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--inner-highlight), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color var(--duration-normal) var(--ease-spring), transform var(--duration-normal) var(--ease-spring);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(56, 189, 248, 0.18),
    transparent 70%
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-spring);
  pointer-events: none;
  z-index: 1;
}

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

.spotlight-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

/* 3D Perspective Card Tilt */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform var(--duration-fast) ease-out;
}

/* Subtle Mathematical Cyber Grids */
.cyber-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.cyber-grid-dense {
  background-size: 20px 20px;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
}

/* Refined Radial Gradients */
.glow-gradient-blue {
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.12) 0%, rgba(2, 132, 199, 0) 70%);
}
.glow-gradient-cyan {
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
}
.glow-gradient-emerald {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0) 70%);
}

/* Linear / Vercel Typography & Subtle Gradient Accents */
.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 35%, #38bdf8 70%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 40%, #f59e0b 80%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #ffffff 0%, #d1fae5 40%, #34d399 80%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-white {
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Seamless Brand Infinite Marquee */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 2.5rem;
  animation: scroll-marquee 32s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 2.5rem)); }
}

/* Laser Scanline Beam Effect */
.laser-beam {
  position: relative;
  overflow: hidden;
}

.laser-beam::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.12), transparent);
  animation: laser-scan 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes laser-scan {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* Spring Physics Buttons (Emil Kowalski Active Press) */
.craft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.875rem;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease-spring),
              background var(--duration-fast) var(--ease-spring),
              border-color var(--duration-fast) var(--ease-spring);
  position: relative;
  user-select: none;
  cursor: pointer;
}

.craft-button:hover {
  transform: translateY(-1.5px) scale(1.01);
}

.craft-button:active {
  transform: translateY(0.5px) scale(0.985);
  transition-duration: 80ms;
}

.craft-button-primary {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.25), 0 10px 25px -5px rgba(2, 132, 199, 0.4);
}

.craft-button-primary:hover {
  background: linear-gradient(180deg, #0369a1 0%, #0284c7 100%);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.35), 0 15px 30px -5px rgba(2, 132, 199, 0.6);
  border-color: rgba(56, 189, 248, 0.7);
}

.craft-button-secondary {
  background: #18181b;
  color: #e4e4e7;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--inner-highlight);
}

.craft-button-secondary:hover {
  background: #27272a;
  color: #ffffff;
  border-color: var(--border-hover);
}

/* 2007 Trust Badge */
.badge-30-years {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(245, 158, 11, 0.1);
}

/* High-End Form Inputs */
.custom-input {
  background: #121216;
  border: 1px solid var(--border-subtle);
  color: #f8fafc;
  box-shadow: var(--inner-highlight-subtle);
  transition: all var(--duration-normal) var(--ease-spring);
  border-radius: 0.75rem;
}

.custom-input:focus {
  background: #18181f;
  border-color: var(--color-accent-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* Quote Wizard Selection Cards */
.wizard-card {
  cursor: pointer;
  background: #121215;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--inner-highlight);
  transition: all var(--duration-fast) var(--ease-spring);
}

.wizard-card:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(56, 189, 248, 0.3);
  background: #18181d;
}

.wizard-card:active {
  transform: scale(0.99);
}

.wizard-card.selected {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px #38bdf8, inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(2, 132, 199, 0.3) !important;
}

/* Mega Dropdown Menu - 100% Solid Opaque Zinc-950 Surface */
.mega-dropdown-panel {
  background-color: #0c0c0e !important;
  opacity: 1 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 30px 90px -10px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(56, 189, 248, 0.25) !important;
  z-index: 9999 !important;
  border-radius: 1.5rem;
}

.mega-dropdown-item {
  background-color: #16161a !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  transition: all var(--duration-fast) var(--ease-spring);
}

.mega-dropdown-item:hover {
  background-color: #1f1f26 !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-2px) scale(1.01);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 10px 25px -5px rgba(2, 132, 199, 0.35) !important;
}

/* Interactive Blueprint Tabs with Smooth Spring Active State */
.blueprint-tab {
  transition: all var(--duration-fast) var(--ease-spring);
  position: relative;
  user-select: none;
}

.blueprint-tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.blueprint-tab:active {
  transform: scale(0.98);
}

.blueprint-tab.active {
  background: #18181b;
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 0 20px rgba(2, 132, 199, 0.25);
}

.blueprint-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #06b6d4);
  border-radius: 2px;
  box-shadow: 0 0 8px #38bdf8;
}

/* Animated SVG Topology Lines */
.animated-path {
  stroke-dasharray: 6 6;
  animation: dash 25s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* High-Fidelity Emil Kowalski Spring Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  animation: toast-spring-enter var(--duration-smooth) var(--ease-spring) forwards;
  will-change: transform, opacity;
}

@keyframes toast-spring-enter {
  0% {
    transform: translateY(30px) scale(0.92);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Floating WhatsApp Pulse Widget */
.whatsapp-pulse {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: whatsapp-pulse 2.4s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes whatsapp-pulse {
  to {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
}
