/* ==========================================================================
   2MGARAGE - Premium Automotive Care, Detailing & Acoustic Systems
   Luxury Styling Inspired by X-Clusive (DM Sans, Metallic Gold, Deep Black)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Root Variables & Luxury Automotive Palette */
:root {
  --color-primary: #f97316;
  --color-primary-hover: #ea580c;
  --color-primary-glow: rgba(249, 115, 22, 0.45);
  
  /* X-Clusive Luxury Gold & Deep Dark Tokens */
  --color-gold: #C9A84C;
  --color-gold-light: #F2DB9A;
  --color-gold-dark: #b98638;
  --color-gold-muted: rgba(201, 168, 76, 0.2);
  --color-bg-darkest: #050505;
  --color-bg-dark: #090a0d;
  --color-bg-surface: #0f131a;
  --color-bg-card: #141a24;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-gold: rgba(201, 168, 76, 0.3);
  --color-border-glow: rgba(249, 115, 22, 0.3);
  
  /* Modern Luxury Automotive Typography: DM Sans */
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-tap-highlight-color: transparent;
}

/* Base Body with DM Sans Antialiased Rendering & Tabular Figures */
body {
  font-family: var(--font-main);
  background-color: var(--color-bg-darkest);
  color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "rlig" 1, "calt" 1;
  font-variant-numeric: tabular-nums;
}

/* Prestigious, Sculpted Automotive Headings */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-feature-settings: "rlig" 1, "calt" 1, "pnum" 1, "lnum" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1 {
  letter-spacing: -0.035em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

h2 {
  letter-spacing: -0.03em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
}

h3, h4 {
  letter-spacing: -0.02em;
}

/* High Contrast & Extreme Legibility for Dark Mode (Net ve Belirgin Yazılar) */
.text-slate-400 {
  color: #cbd5e1 !important; /* Promoted from dim #94a3b8 to crisp, readable slate-300 */
}

.text-slate-500 {
  color: #94a3b8 !important; /* Promoted from low-contrast #64748b to clearly visible slate-400 */
}

p {
  line-height: 1.7;
  letter-spacing: -0.011em;
}

/* Navbar Links & Pill Badges */
.nav-link {
  font-weight: 600;
  letter-spacing: -0.01em;
}

::selection {
  background-color: #f97316;
  color: #ffffff;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #090d14;
}
::-webkit-scrollbar-thumb {
  background: #1f293d;
  border-radius: 9999px;
  border: 2px solid #090d14;
}
::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* Carbon & Tech Grid Backgrounds */
.bg-carbon-mesh {
  background-color: var(--color-bg-darkest);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.06) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

.carbon-subtle {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.015) 0,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 8px 8px;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(18, 24, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-nav {
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: linear-gradient(135deg, rgba(22, 31, 48, 0.7) 0%, rgba(15, 21, 33, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px -3px rgba(249, 115, 22, 0.2);
}

/* Text Gradients */
.text-gradient-orange {
  background: linear-gradient(135deg, #ffffff 20%, #f97316 80%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-fire {
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing Elements */
.glow-primary {
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
}

.glow-primary-sm {
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

.glow-pill {
  box-shadow: inset 0 0 12px rgba(249, 115, 22, 0.2), 0 0 15px rgba(249, 115, 22, 0.2);
}

/* Button Pulse Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* X-Clusive Signature Metallic Gold Action Button */
.premium-gold-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 218, 154, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 42%),
              linear-gradient(135deg, #f5d88f, #ddb65e 45%, #b98638);
  color: #090805 !important;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.58),
              inset 0 -1px rgba(93, 62, 18, 0.28),
              0 16px 36px rgba(201, 167, 106, 0.24),
              0 0 0 1px rgba(201, 167, 106, 0.16);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.premium-gold-action::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.45), transparent 28%),
              linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.32) 46%, transparent 58%);
  opacity: 0.48;
  transform: translateX(-42%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.premium-gold-action:hover::before {
  opacity: 0.85;
  transform: translateX(42%);
}

.premium-gold-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72),
              inset 0 -1px rgba(93, 62, 18, 0.2),
              0 22px 50px rgba(201, 167, 106, 0.36),
              0 0 0 1px rgba(242, 218, 154, 0.45);
}

/* Luxury Dividers & Glow Lines */
.luxury-gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A84C 30%, #F2DB9A 50%, #C9A84C 70%, transparent);
}

.luxury-gold-subtle {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 167, 106, 0.34), rgba(242, 219, 154, 0.48), transparent);
}

.gold-badge {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(242, 218, 154, 0.3);
  color: #f2db9a;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gold-glow-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gold-glow-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px -4px rgba(201, 168, 76, 0.22);
  transform: translateY(-4px);
}

.pulse-wa {
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #111827;
  border: 1px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(249, 115, 22, 0.2);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Quick Bar Spacing */
@media (max-width: 768px) {
  body {
    padding-bottom: 74px;
  }
}

/* Form input focus state */
.form-input-luxury {
  background-color: rgba(18, 24, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.25s ease;
}

.form-input-luxury:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
  background-color: rgba(22, 31, 48, 0.95);
}

/* Accordion transition helper */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.accordion-content.open {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
}

/* Infinite Brand Logo Marquee */
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.animate-marquee-left {
  display: flex;
  width: max-content;
  animation: marquee-left 40s linear infinite;
  will-change: transform;
}

.animate-marquee-right {
  display: flex;
  width: max-content;
  animation: marquee-right 40s linear infinite;
  will-change: transform;
}

.marquee-pause:hover .animate-marquee-left,
.marquee-pause:hover .animate-marquee-right {
  animation-play-state: paused;
}

/* ==========================================================================
   Cinematic Intro & Logo Awakening Preloader
   ========================================================================== */
body.intro-active {
  overflow: hidden !important;
}

#site-intro-overlay {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
  will-change: opacity, transform;
}

#site-intro-overlay.intro-fade-out {
  opacity: 0 !important;
  transform: scale(1.04) !important;
  pointer-events: none !important;
  visibility: hidden;
}

/* 1. Logo Karanlıktan Giriş ve Belirginleşme Animasyonu (5 Saniye Ayarlı) */
.intro-logo-wrapper {
  animation: logoAwaken 3.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity, filter;
}

@keyframes logoAwaken {
  0% {
    opacity: 0;
    transform: scale(0.74);
    filter: brightness(0.03) contrast(2.0) grayscale(1) blur(10px);
  }
  22% {
    opacity: 0.6;
    transform: scale(0.86);
    filter: brightness(0.16) contrast(1.6) grayscale(0.75) blur(5px);
  }
  48% {
    opacity: 0.88;
    transform: scale(0.95);
    filter: brightness(0.38) contrast(1.35) grayscale(0.35) blur(1.5px);
  }
  68% {
    opacity: 1;
    transform: scale(1.04);
    filter: brightness(1.35) contrast(1.15) grayscale(0) blur(0);
  }
  84%, 100% {
    opacity: 1;
    transform: scale(1.0);
    filter: brightness(1.0) contrast(1.0) grayscale(0) blur(0);
  }
}

/* 2. Logo Arkası Neon & Altın Enerji Halesi */
.intro-logo-glow {
  animation: auraPulse 4.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes auraPulse {
  0%, 30% {
    opacity: 0;
    transform: scale(0.78);
  }
  65% {
    opacity: 0.95;
    transform: scale(1.18);
  }
  85%, 100% {
    opacity: 0.65;
    transform: scale(1.0);
  }
}

/* 3. Logo Üzerinden Geçen Metalik Işık Hüzmesi (Shimmer) */
.intro-shimmer-sweep {
  position: absolute;
  top: -80%;
  left: -160%;
  width: 220%;
  height: 260%;
  background: linear-gradient(
    65deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(242, 219, 154, 0.45) 52%,
    transparent 65%
  );
  transform: rotate(20deg);
  pointer-events: none;
  animation: shimmerPass 4.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmerPass {
  0%, 50% {
    left: -160%;
    opacity: 0;
  }
  54% {
    opacity: 1;
  }
  78% {
    left: 140%;
    opacity: 1;
  }
  85%, 100% {
    left: 140%;
    opacity: 0;
  }
}

/* 4. Marka Tipografi Belirişi */
.intro-text-group {
  animation: textReveal 3.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes textReveal {
  0%, 42% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  70%, 100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* 5. Minimal Lazer İlerleme Çizgisi (5 Saniye Akıcı İlerleme) */
.intro-laser-progress {
  animation: laserLoad 4.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes laserLoad {
  0% {
    width: 0%;
  }
  25% {
    width: 22%;
  }
  55% {
    width: 58%;
  }
  80% {
    width: 86%;
  }
  100% {
    width: 100%;
  }
}

/* Atla Butonu Gecikmeli Belirme */
.animate-fade-in-delayed {
  animation: fadeInDelayed 1.0s ease-out 0.4s forwards;
}

@keyframes fadeInDelayed {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


