/* YERSEL OTOMOTİV Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;600;700;800;900&display=swap');

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

:root {
  --color-primary: #121212;
  --color-primary-light: #1E1E24;
  --color-accent: #FFCC00;
  --color-accent-hover: #E6B800;
  --color-bg-light: #F8F9FA;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #1E1E24;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', sans-serif;
}

/* Custom Automotive Gradient Overlays */
.bg-hero-pattern {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(30, 30, 36, 0.88) 100%), 
              url('https://images.unsplash.com/photo-1617814076367-b759c7d7e738?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.bg-accent-gradient {
  background: linear-gradient(135deg, #FFCC00 0%, #E6B800 100%);
}

.bg-dark-card {
  background: linear-gradient(145deg, #1E1E24 0%, #121212 100%);
}

/* Before / After Slider Styling */
.ba-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 480px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media (max-width: 640px) {
  .ba-container {
    height: 320px;
  }
}

.ba-image-before,
.ba-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-image-after {
  width: 50%;
  border-right: 3px solid #FFCC00;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #FFCC00;
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 20;
}

.ba-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  margin-left: -22px;
  background-color: #FFCC00;
  color: #121212;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  font-size: 14px;
  font-weight: 900;
}

.ba-badge-before,
.ba-badge-after {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ba-badge-before {
  right: 16px;
  background-color: rgba(18, 18, 18, 0.85);
  color: #FFFFFF;
}

.ba-badge-after {
  left: 16px;
  background-color: #FFCC00;
  color: #121212;
}

/* Glassmorphism & Hover Animations */
.card-hover-effect {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar - Sleek Charcoal with subtle accent hover */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #121212;
}
::-webkit-scrollbar-thumb {
  background: #2E2E38;
  border-radius: 5px;
  border: 2px solid #121212;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFCC00;
}

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

.animate-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}

.animate-marquee-track:hover {
  animation-play-state: paused;
}

/* Subtle Breathing (Nefes Efekti) Animation for Floating WhatsApp Button */
@keyframes wpPulseBreathing {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(220, 38, 38, 0);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    transform: scale(1);
  }
}

.animate-wp-pulse {
  animation: wpPulseBreathing 3.2s ease-in-out infinite;
}
