/* ============================================
   BALA MÜHENDİSLİK — Design System
   Industrial Premium / Dark Steel + Amber
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --steel-950: #0a0c0f;
  --steel-900: #111318;
  --steel-800: #1a1d24;
  --steel-700: #252830;
  --steel-600: #33373f;
  --steel-500: #4a4f5a;
  --steel-400: #6b7280;
  --steel-300: #9ca3af;
  --steel-200: #d1d5db;
  --steel-100: #f3f4f6;

  --amber-500: #d4870e;
  --amber-400: #e9a319;
  --amber-300: #f5c342;
  --amber-200: #fde68a;
  --amber-glow: rgba(212, 135, 14, 0.15);

  --asphalt: #2c2c2c;
  --road-line: #f5c342;
  --danger: #ef4444;
  --success: #22c55e;
  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-height: 80px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --border-subtle: 1px solid rgba(255,255,255,0.06);
  --border-amber: 1px solid var(--amber-500);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-amber: 0 4px 20px rgba(212,135,14,0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--steel-950);
  color: var(--steel-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-400); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--amber-300); }
ul, ol { list-style: none; }

/* --- Layout --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-xl); }
.container--wide { max-width: var(--container-wide); }
.section { padding: var(--space-5xl) 0; }
.section--dark { background: var(--steel-900); }
.section--darker { background: var(--steel-950); }

/* --- Typography --- */
.display { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); line-height: 0.95; letter-spacing: 2px; color: var(--white); text-transform: uppercase; }
h1, .h1 { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; color: var(--white); text-transform: uppercase; letter-spacing: 1px; }
h2, .h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.15; color: var(--white); text-transform: uppercase; }
h3, .h3 { font-family: var(--font-heading); font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 600; line-height: 1.2; color: var(--white); }
h4, .h4 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--steel-100); }
.overline { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--amber-400); margin-bottom: var(--space-sm); }
.lead { font-size: 1.15rem; font-weight: 300; color: var(--steel-300); line-height: 1.7; max-width: 640px; }
.text-amber { color: var(--amber-400); }
.text-center { text-align: center; }

/* --- Section Header --- */
.section-header { margin-bottom: var(--space-3xl); }
.section-header .overline { margin-bottom: var(--space-sm); }
.section-header h2 { margin-bottom: var(--space-md); }
.section-header.text-center .lead { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.85rem 2rem; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  position: relative; overflow: hidden;
}
.btn--primary {
  background: var(--amber-500); color: var(--steel-950);
}
.btn--primary:hover {
  background: var(--amber-400); color: var(--steel-950);
  transform: translateY(-2px); box-shadow: var(--shadow-amber);
}
.btn--outline {
  background: transparent; color: var(--amber-400);
  border: 2px solid var(--amber-500);
}
.btn--outline:hover {
  background: var(--amber-500); color: var(--steel-950);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,0.05); color: var(--steel-200);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  background: rgba(10,12,15,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-subtle);
  transition: background var(--duration-base) var(--ease-out);
}
.site-header.scrolled { background: rgba(10,12,15,0.97); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container-wide);
  margin: 0 auto; padding: 0 var(--space-xl);
}
.logo {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--white); letter-spacing: 2px; text-transform: uppercase;
}
.logo span { color: var(--amber-400); }
.nav-links { display: flex; gap: var(--space-xl); align-items: center; }
.nav-links a {
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--steel-300);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--amber-400);
  transition: width var(--duration-base) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--amber-400); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: var(--space-md); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: var(--space-sm);
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--steel-200);
  transition: all var(--duration-base) var(--ease-out);
}

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--header-height);
  background: var(--steel-950);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212,135,14,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,135,14,0.04) 0%, transparent 50%);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.hero-content { position: relative; z-index: 2; }
.hero .display { margin-bottom: var(--space-lg); }
.hero .lead { margin-bottom: var(--space-2xl); max-width: 560px; }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Diagonal road-line accent */
.hero-accent {
  position: absolute; right: -10%; bottom: -5%;
  width: 50%; height: 120%;
  background: linear-gradient(155deg, transparent 40%, rgba(212,135,14,0.03) 40%, rgba(212,135,14,0.03) 41%, transparent 41%);
  pointer-events: none;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--steel-800);
  border-top: 2px solid var(--amber-500);
  padding: var(--space-2xl) 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl);
  text-align: center;
}
.stat-number {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--amber-400); line-height: 1;
}
.stat-label {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--steel-400);
  margin-top: var(--space-xs);
}

/* --- Product Cards --- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}
.product-card {
  background: var(--steel-800);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--amber-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,135,14,0.2); }
.product-card:hover::before { transform: scaleX(1); }
.product-card-img {
  height: 200px; background: var(--steel-700);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-icon {
  width: 64px; height: 64px;
  background: rgba(212,135,14,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber-400); font-size: 1.5rem;
}
.product-card-body { padding: var(--space-lg); }
.product-card-body h3 { font-size: 1.15rem; margin-bottom: var(--space-sm); }
.product-card-body p { font-size: 0.9rem; color: var(--steel-400); line-height: 1.5; margin-bottom: var(--space-md); }
.product-card-link {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--amber-400);
  display: inline-flex; align-items: center; gap: var(--space-xs);
}
.product-card-link svg { transition: transform var(--duration-fast) var(--ease-out); }
.product-card-link:hover svg { transform: translateX(4px); }

/* --- Feature Cards --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.feature-card {
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--steel-800), var(--steel-900));
  border: var(--border-subtle); border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-out);
}
.feature-card:hover { border-color: rgba(212,135,14,0.2); transform: translateY(-4px); }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--amber-glow); border: 1px solid rgba(212,135,14,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-lg); color: var(--amber-400); font-size: 1.4rem;
}
.feature-card h3 { margin-bottom: var(--space-sm); font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; color: var(--steel-400); }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--steel-800) 0%, var(--steel-900) 100%);
  border-top: 2px solid var(--amber-500); border-bottom: 2px solid var(--amber-500);
  padding: var(--space-4xl) 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,135,14,0.06) 0%, transparent 60%);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { margin-bottom: var(--space-md); }
.cta-section .lead { margin: 0 auto var(--space-2xl); }

/* --- Footer --- */
.site-footer {
  background: var(--steel-900); border-top: var(--border-subtle);
  padding: var(--space-4xl) 0 var(--space-2xl);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-3xl); }
.footer-brand .logo { margin-bottom: var(--space-md); }
.footer-brand p { font-size: 0.9rem; color: var(--steel-400); max-width: 300px; }
.footer-heading {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--amber-400);
  margin-bottom: var(--space-lg);
}
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a { color: var(--steel-400); font-size: 0.9rem; }
.footer-links a:hover { color: var(--amber-400); }
.footer-contact li {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  margin-bottom: var(--space-md); font-size: 0.9rem; color: var(--steel-400);
}
.footer-contact svg { color: var(--amber-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  margin-top: var(--space-3xl); padding-top: var(--space-xl);
  border-top: var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--steel-500);
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }

/* Page Load */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeInUp 0.8s var(--ease-out) both; }
.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.35s; }
.hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-content > *:nth-child(4) { animation-delay: 0.65s; }

/* --- WhatsApp Fab --- */
.whatsapp-fab {
  position: fixed; bottom: var(--space-xl); right: var(--space-xl);
  width: 56px; height: 56px; border-radius: 50%; z-index: 999;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all var(--duration-base) var(--ease-out);
  font-size: 1.6rem;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); color: var(--white); }

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-height); left: 0; right: 0;
    background: rgba(10,12,15,0.97); backdrop-filter: blur(16px);
    padding: var(--space-xl); gap: var(--space-lg);
    border-bottom: var(--border-subtle);
  }
  .nav-cta { margin-left: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .hero { min-height: 90vh; }
  .section { padding: var(--space-3xl) 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
