/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Color Variables (Modern Light Theme) */
:root {
  --bg-color: #f7f9fc; /* Light off-white */
  --bg-card: #ffffff; /* Pure white cards */
  --bg-nav: rgba(255, 255, 255, 0.95); /* Solid white navbar */
  
  --primary: #ff6a00; /* Neon Orange */
  --primary-hover: #e55f00;
  --secondary: #e60026; /* Crimson Red */
  --secondary-hover: #c90020;
  
  --text-main: #334155; /* Slate-700 body text */
  --text-muted: #64748b; /* Slate-500 helper text */
  --text-light: #0f172a; /* Slate-900 heading text */
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-hover-border: rgba(255, 106, 0, 0.45);
  
  --whatsapp-green: #25d366;
  --whatsapp-hover: #20ba5a;
  
  --glow-orange: 0 4px 15px rgba(255, 106, 0, 0.25);
  --glow-red: 0 4px 15px rgba(230, 0, 38, 0.2);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Core Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden; /* Yatay kaydırmayı engelle */
  max-width: 100vw;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 106, 0, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Utility Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

/* Light Card Style */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--glass-hover-border);
  box-shadow: 0 15px 35px rgba(255, 106, 0, 0.08);
  transform: translateY(-5px);
}

/* Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

/* Scrolled Header State */
header.scrolled {
  background: #0f172a !important; /* Turns dark slate/black when scrolled */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ── Sayfa En Üstteyken Logoların Durumu ── */
.logo-default {
  display: block !important;
}
.logo-scrolled {
  display: none !important;
}

/* ── Sayfa Aşağı Kaydırıldığında Logoların Durumu ── */
header.scrolled .logo-default {
  display: none !important;
}
header.scrolled .logo-scrolled {
  display: block !important;
}
header.scrolled .nav-link {
  color: #f1f5f9;
}

/* header scrolled SVG logo renk değişimi */
header.scrolled .site-logo-svg {
  color: #ffffff;
}

/* eski img logo filtresi - artık SVG kullanılıyor */
/* header.scrolled .logo img { filter: ... } -- kaldırıldı */


header.scrolled .menu-toggle span {
  background: #ffffff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* ── Site Logo SVG ──────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo-svg {
  height: 44px;
  width: auto;
  display: block;
  color: var(--text-light); /* header açık tema */
  transition: color 0.3s ease;
  overflow: visible;
}

header.scrolled .site-logo-svg {
  color: #ffffff; /* scroll sonrası beyaz */
}

/* Eski img tabanlı logo kuralı artık SVG için geçersiz, silindi */


.nav-menu {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow-orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 106, 0, 0.45);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1010;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Hamburger menu to X animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Kapsayıcıyı tam yatay ortalamak için eklendi */
  padding-top: 100px;
  background: linear-gradient(rgba(247, 249, 252, 0.85), rgba(247, 249, 252, 0.96)), url('assets/hero-bg.png') no-repeat center center/cover;
  overflow: hidden;
  width: 100%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(transparent, var(--bg-color));
}

.hero .container {
  width: 100%; /* İçeriğin container sınırlarına tam oturmasını sağlar */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 40px; /* Yazıları ekranın sol sınırından kurtarıp şıkça sağa öteliyoruz */
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--text-main);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-btn-secondary {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.hero-btn-secondary:hover {
  background: #f1f5f9;
  border-color: var(--text-muted);
}

/* Büyük Ekranlar İçin Ekstra Düzen (Yazıların çok daha estetik durması için) */
@media (min-width: 1200px) {
  .hero-content {
    padding-left: 60px; /* Geniş masaüstü ekranlarda biraz daha sağdan başlatır */
  }
}

/* Mobil Cihazlar İçin Sıfırlama (Telefon görünümünün bozulmaması için) */
@media (max-width: 768px) {
  .hero-content {
    padding-left: 0 !important; /* Mobilde yazılar tekrar ekranı ortalayacak */
  }
}
.glow-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.15) 0%, rgba(230, 0, 38, 0.02) 70%);
  filter: blur(40px);
  animation: pulse-orb 8s infinite alternate ease-in-out;
}

.tech-showcase-box {
  z-index: 2;
  width: 85%;
  height: 350px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.tech-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.tech-header span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tech-body h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  line-height: 1.2;
}

.tech-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tech-footer {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tech-footer .spec-item {
  display: flex;
  flex-direction: column;
}

.tech-footer .spec-item .value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}

.tech-footer .spec-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes pulse-orb {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(10px, -10px); }
}

/* Services Section */
/* Services Section (Premium Parallax ink-eye background with dark overlay and solid fallback) */
#services {
  position: relative;
  background-color: #0b0f19 !important; /* solid fallback */
  background: #0b0f19 linear-gradient(rgba(11, 15, 25, 0.82), rgba(11, 15, 25, 0.93)), url('assets/services-bg.png') no-repeat center center/cover !important;
  background-attachment: fixed !important; /* parallax scrolling */
  padding: 100px 0;
  overflow: hidden;
}

/* Fallback for iOS devices since fixed attachment causes layout breaks */
@supports (-webkit-touch-callout: none) {
  #services {
    background-attachment: scroll !important;
  }
}

.services-subtitle-small {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  display: block;
}

#services .section-title {
  color: #ffffff !important;
}

#services .section-subtitle {
  color: #cbd5e1 !important;
}

/* Services Slider wrapper */
.services-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  z-index: 2;
}

.services-slider-container {
  overflow: hidden;
  width: 100%;
}

.services-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Services slider track cards styling (Sleek dark minimalist cards) */
.services-slider-track .service-card {
  flex: 0 0 calc(16.666% - 20px); /* 6 cards per row on desktop */
  max-width: calc(16.666% - 20px);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border-radius: 16px;
  padding: 25px 15px;
  height: 260px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.services-slider-track .service-card:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(255, 106, 0, 0.3);
  transform: translateY(-8px);
}

/* Service SVG Icon Box Styling */
#services .service-icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

#services .service-icon-box svg {
  width: 54px;
  height: 54px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.65;
  transition: var(--transition-smooth);
}

/* Hover effects for icons */
.services-slider-track .service-card:hover .service-icon-box svg {
  transform: scale(1.15) rotate(5deg);
  stroke: var(--primary);
  filter: drop-shadow(0 0 8px rgba(255, 106, 0, 0.6));
}

#services .service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  font-family: var(--font-heading);
}

/* Slider Navigation Arrows */
.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.4);
  transform: scale(1.05);
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.slider-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  transform: none;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  z-index: 2;
  position: relative;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 5px;
}

@media (max-width: 1200px) {
  .services-slider-track .service-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}

@media (max-width: 992px) {
  .services-slider-track .service-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 576px) {
  .services-slider-track .service-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .services-slider-wrapper {
    gap: 10px;
  }
  .slider-arrow {
    display: none !important; /* Hide arrows on mobile touch layouts */
  }
}

/* Machinery Park Section */
.machinery-section {
  background: #ffffff;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* ── Machine Carousel (same infinite marquee as references) ───────── */
.machine-carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 30px 0;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  cursor: grab;
  user-select: none;
  contain: layout style;
}
.machine-carousel-wrapper:active {
  cursor: grabbing;
}
.machine-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: machineMarquee 60s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.machine-carousel-track.paused,
.machine-carousel-wrapper:hover .machine-carousel-track {
  animation-play-state: paused;
}
@keyframes machineMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.machine-card {
  flex-shrink: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.machine-card:hover {
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 12px 36px rgba(255, 106, 0, 0.12);
  transform: translateY(-5px) scale(1.02);
}
.machine-img-box {
  width: 100%;
  height: 175px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.machine-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  pointer-events: none;
}
.machine-img-box img.scale-up-img {
  transform: scale(1.3);
}
.machine-card:hover .machine-img-box img {
  transform: scale(1.06);
}
.machine-card:hover .machine-img-box img.scale-up-img {
  transform: scale(1.38);
}

/* Carousel Nav Arrows */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  opacity: 0.8; /* Visible by default on desktop, scales on hover */
}
.carousel-nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}
.carousel-nav-btn.prev-btn {
  left: 24px;
}
.carousel-nav-btn.next-btn {
  right: 24px;
}
.carousel-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}
.machine-info {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.machine-info h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.machine-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* About Us and Stats Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;

}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-main);
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}


.stat-box {
  padding: 30px 20px;
  text-align: center;
  background: #ffffff;
  border-top: 4px solid var(--primary);
  border-radius: 16px;
}

.stat-box:nth-child(even) {
  border-top-color: var(--secondary);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* References Section – Infinite Marquee Carousel */
.ref-carousel-wrapper {
  overflow: hidden;
  position: relative;
  padding: 36px 0;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  cursor: grab;
  user-select: none;
  contain: layout style;
}

.ref-carousel-wrapper:active {
  cursor: grabbing;
}

.ref-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: refMarquee 50s linear infinite;
  will-change: transform;
}

.ref-carousel-track.paused,
.ref-carousel-wrapper:hover .ref-carousel-track {
  animation-play-state: paused;
}

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

.ref-logo-card {
  flex-shrink: 0;
  width: 220px;
  height: 110px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.ref-logo-card:hover {
  border-color: rgba(255, 106, 0, 0.35);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.1);
  transform: translateY(-3px) scale(1.03);
}

.ref-logo-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.8);
  transition: filter 0.3s ease;
  pointer-events: none;
}

.ref-logo-card:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Override scale & size for specific logos that look too small */
.ref-logo-card img[src*="ref-renk.png"] {
  max-height: 95px;
  transform: scale(1.15);
}

.ref-logo-card img[src*="ref-okanbaran.png"] {
  max-height: 95px;
  transform: scale(1.2);
}

.ref-logo-card img[src*="ref-baymecnun.png"] {
  max-height: 95px;
  transform: scale(1.2);
}


/* STSO logo has white text — invert to make it readable on white card */
.ref-logo-card img[alt="Sivas Ticaret ve Sanayi Odası"] {
  filter: grayscale(100%) invert(1) opacity(0.8);
}
.ref-logo-card:hover img[alt="Sivas Ticaret ve Sanayi Odası"] {
  filter: invert(1) opacity(1);
}

/* ── Logo Lightbox Modal ───────────────────────────────────────────── */
#logo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.25s ease;
}
#logo-lightbox.active {
  display: flex;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#logo-lightbox-inner {
  background: #fff;
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 520px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  cursor: default;
  animation: lbScaleIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
@keyframes lbScaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
#logo-lightbox-inner img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}
#logo-lightbox-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
}
#logo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#logo-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}


/* Interactive WhatsApp Simulator */
.calculator-section {
  background: #ffffff;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hızlı WhatsApp Teklifi — sol metin sütunu hero ile hizalı */
.calc-text {
  padding-left: 40px;
}

.calc-visual {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.03);
}

.calc-visual h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-visual h3 svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 106, 0, 0.15);
}

.calc-btn {
  width: 100%;
  background: var(--whatsapp-green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
  transition: var(--transition-smooth);
}

.calc-btn:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

/* Contact Section & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.contact-info p {
  color: var(--text-main);
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}

.info-details h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.info-details p, .info-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.info-details a:hover {
  color: var(--primary);
}

.map-container {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 220px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-box {
  padding: 40px;
  background: #ffffff;
}

.contact-form-box h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

/* Footer (Dark Anchor Style for visual premium contrast) */
footer {
  background: #0f172a; /* Dark slate */
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px 0;
}

footer h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--primary);
}

footer a {
  color: #94a3b8;
}

footer a:hover {
  color: var(--primary) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Footer SVG Logo */
.footer-about .footer-logo {
  margin-bottom: 20px;
}

.footer-about .footer-logo .site-logo-svg {
  height: 44px;
  width: auto;
}

/* Eski img tabanlı footer logo kuralı kaldırıldı */



.footer-about p {
  font-size: 0.9rem;
  max-width: 320px;
  color: #94a3b8;
}

.footer-links ul li {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-links ul li a:hover {
  padding-left: 5px;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  padding-bottom: 20px;
  padding-right: 110px; /* WhatsApp yüzen ikonu (60px) + sağ offset (30px) + pay */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* E-Commerce Shop Page Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  margin-top: 40px;
}

.shop-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: #ffffff;
}

/* Slim scrollbar for sidebar */
.shop-sidebar::-webkit-scrollbar {
  width: 4px;
}
.shop-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.shop-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 106, 0, 0.15);
  border-radius: 2px;
}
.shop-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.category-list li {
  margin-bottom: 4px;
}

/* Accordion group button */
.category-group-item {
  margin-bottom: 4px;
}

.category-group-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.02em;
}

.category-group-btn span:first-child {
  flex: 1;
}

.category-group-btn .group-count {
  background: rgba(15, 23, 42, 0.07);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 500;
}

.category-group-btn .chevron {
  transition: transform 0.25s ease;
  opacity: 0.5;
  flex-shrink: 0;
}

.category-group-btn.open .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.category-group-btn:hover {
  background: rgba(255, 106, 0, 0.06);
  color: var(--primary);
}

.category-group-btn.open {
  color: var(--primary);
}

.subcategory-list {
  list-style: none;
  padding: 0 0 0 14px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.subcategory-list.open {
  max-height: 600px;
}

.subcategory-list li {
  margin-bottom: 2px;
}

.category-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-btn:hover,
.category-btn.active {
  background: rgba(255, 106, 0, 0.08);
  color: var(--primary);
}

.category-btn span.count {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
}

.category-btn.active span.count {
  background: var(--primary);
  color: #ffffff;
}

.filter-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.shop-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.shop-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: #ffffff;
}

.search-box-wrapper {
  flex-grow: 1;
  position: relative;
  max-width: 450px;
}

.search-box-wrapper .form-control {
  padding-right: 48px;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-wrapper label {
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
}

.sort-select {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 450px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.015);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.05);
}

.product-img-box {
  width: 100%;
  height: 200px;
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-box img {
  transform: scale(1.04);
}

.product-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.product-category-name {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 600;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-light);
}

.order-btn {
  background: var(--whatsapp-green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 100%;
  padding: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  transition: var(--transition-smooth);
}

.order-btn:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

/* Fiyat Alınız ürünlerde fiyat badge */
.product-price.price-on-request {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Fiyat Al (WhatsApp) butonu - turuncu tonlu */
.order-btn.price-request-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}

.order-btn.price-request-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
}

/* Product Color Variations Selectors */
.product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 8px;
  min-height: 18px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.color-dot:hover {
  transform: scale(1.25);
}

.color-dot.active {
  transform: scale(1.25);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.3);
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}

/* Floating WhatsApp Chat Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  animation: pulse-widget 2s infinite;
}

.whatsapp-button:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.05);
}

.whatsapp-button svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.whatsapp-chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  max-height: 480px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform-origin: bottom right;
  transition: var(--transition-smooth);
}

.whatsapp-chat-box.active {
  display: flex;
}

.chat-header {
  background: var(--whatsapp-green);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--whatsapp-green);
  font-size: 1.2rem;
}

.chat-agent-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.chat-agent-info p {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chat-body {
  padding: 20px;
  background: #f1f5f9;
  min-height: 100px;
  flex: 1;
  overflow-y: auto;
}

.chat-bubble {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 0 12px 12px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  max-width: 85%;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.chat-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border);
  background: #ffffff;
}

@keyframes pulse-widget {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.chat-minimize-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.chat-minimize-btn:hover {
  background: rgba(255,255,255,0.35);
}

.chat-bubble-design {
  margin-top: 12px;
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-radius: 0 12px 12px 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 95%;
}

.chat-design-btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--whatsapp-green);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.chat-design-btn:hover {
  background: var(--whatsapp-hover);
}

.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.quick-reply-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.quick-reply-btn:hover {
  background: var(--whatsapp-green);
  color: #ffffff !important;
  border-color: var(--whatsapp-green);
  transform: translateY(-1px);
}


/* Service Detail Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  animation: modal-fade 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
}

.modal-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.modal-body {
  padding: 24px 32px 32px;
}

.modal-body img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}

.modal-body h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.modal-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.modal-features {
  margin-bottom: 30px;
}

.modal-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.modal-features li svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

@keyframes modal-fade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════════════════════════════
   MOBİL UYUMLULUK  (Mobile Responsiveness)
   ══════════════════════════════════════════════════════════════════ */

/* Tüm section'ların taşmasını önle */
section, footer, .hero,
.machinery-section, #references, #services {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ── 992px ve altı ────────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-grid, .calc-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 0 !important; /* Mobilde sol boşluk gereksiz */
  }

  /* Mobilde hero ve teklif metin bölümü sol padding sıfır */
  .calc-text,
  .hero-content {
    padding-left: 0;
  }

  .hero-visual {
    height: auto;
    min-height: 260px;
  }

  .tech-showcase-box {
    height: auto;
    padding: 28px 24px;
  }

  /* Mağaza sayfası: sidebar üstte dar bir bant */
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .machinery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer grid 2 sütun */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-about {
    grid-column: 1 / -1; /* Logo-açıklama tam genişlik */
  }
}

/* ── 768px ve altı ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  /* Mobil navigasyon menüsü */
  .nav-menu {
    position: absolute !important;
    top: 100% !important;
    left: -100% !important;
    width: 100% !important;
    height: 100vh !important; /* Ekran boyu sorunlarını çözmek için */
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 30px 24px !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    transition: left 0.3s ease-in-out !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    z-index: 99999 !important; /* Her şeyin üstünde olmasını sağla */
  }

  .nav-menu.active {
    left: 0 !important;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1010;
  }

  /* Sayfa en üstteyken (Header beyaz arka plan) çizgiler koyu gri olsun */
  .menu-toggle span {
    background: #1e293b !important;
  }

  /* Sayfa aşağı kaydırıldığında (Header koyu slate arka plan) çizgiler beyaz olsun */
  header.scrolled .menu-toggle span {
    background: #ffffff !important;
  }

  /* Mobil menü açıldığında arka plan beyaz olacağından linkler her zaman görünür olsun */
  .nav-menu .nav-link {
    color: #1e293b !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    display: block !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
  }
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--primary) !important;
  }

  /* Logonun mobil butonları sıkıştırmasını veya taşırmasını önle */
  .logo img {
    max-width: 130px;
    height: auto;
  }

  /* Buton metnini gizle, sadece ikon göster */
  .cta-btn-text {
    display: none;
  }

  /* Sadece Header'daki Mağaza butonu mobil ekranda kompakt yuvarlak ikon olsun */
  .nav-actions {
    margin-left: auto;
    margin-right: 20px; /* Hamburger menü ile arasına boşluk */
  }

  .nav-actions .cta-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Carousel ok düğmelerini gizle — kullanıcı kaydırabilir */
  .carousel-nav-btn {
    display: none !important;
  }

  .machinery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .references-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer tam tek sütun */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Mağaza yan panel yatay scroll yerine dikey listeleme */
  .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .category-list li {
    margin-bottom: 0;
  }

  .category-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: auto;
  }

  /* Ürün grid küçük ekran */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    height: auto;
  }

  /* İletişim formu */
  .contact-form-box {
    padding: 24px 20px;
  }
}

/* ── 576px ve altı ────────────────────────────────────────────── */
@media (max-width: 576px) {
  /* Servis kartlarına peek efekti — bir sonraki kart görünür */
  .services-slider-track .service-card {
    flex: 0 0 82%;
    max-width: 82%;
  }
  .services-slider-wrapper {
    gap: 10px;
  }
  .slider-arrow {
    display: none !important;
  }

  /* Ürün tek sütun */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Mağaza arama ve sıralama üst üste */
  .shop-header-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box-wrapper {
    max-width: 100%;
  }

  .sort-wrapper {
    justify-content: space-between;
  }

  /* WhatsApp chat kutusu taşmasın */
  .whatsapp-chat-box {
    position: fixed;
    bottom: 100px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 120px);
  }
}

/* ── 480px ve altı ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-box {
    padding: 20px 10px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .machinery-grid {
    grid-template-columns: 1fr;
  }
  
  .references-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium Colorful Background Blobs */
#about, #references, #contact {
  position: relative;
  overflow: hidden;
}

.color-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.12; /* subtle glow */
  transition: var(--transition-smooth);
}

.blob-orange {
  background: radial-gradient(circle, var(--primary) 0%, rgba(255, 106, 0, 0) 70%);
}

.blob-red {
  background: radial-gradient(circle, var(--secondary) 0%, rgba(230, 0, 38, 0) 70%);
}

/* Make sure container is above the blobs */
#about .container, #references .container, #contact .container {
  position: relative;
  z-index: 1;
}

/* ── Service Detail Popup Modal ────────────────────────────────────── */
.service-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: svcFadeIn 0.25s ease;
}
.service-popup-overlay.active {
  display: flex;
}
@keyframes svcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.service-popup-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: svcSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes svcSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.service-popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}
.service-popup-close:hover {
  background: var(--primary);
  color: #fff;
}
.service-popup-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-popup-icon svg {
  width: 30px;
  height: 30px;
  color: #fff;
  stroke: #fff;
}
#service-popup-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}
#service-popup-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
#service-popup-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
#service-popup-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-main);
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}
#service-popup-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}


/* ── Service Detail Popup Modal ────────────────────────────────────── */
.service-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: svcFadeIn 0.25s ease;
}
.service-popup-overlay.active {
  display: flex;
}
@keyframes svcFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.service-popup-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: svcSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes svcSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.service-popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}
.service-popup-close:hover {
  background: var(--primary);
  color: #fff;
}
.service-popup-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-popup-icon svg {
  width: 30px;
  height: 30px;
  color: #fff;
  stroke: #fff;
}
#service-popup-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
}
#service-popup-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
#service-popup-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
#service-popup-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-main);
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}
#service-popup-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Services Slider Drag Cursor ────────────────────────────────────── */
.services-slider-container {
  cursor: grab;
  user-select: none;
}
.services-slider-container.dragging {
  cursor: grabbing;
}

/* ══════════════════════════════════════════════════
   Google Reviews Carousel Section
══════════════════════════════════════════════════ */

/* Section */
.reviews-section {
  overflow: hidden;
  position: relative;
}

/* ── Dark Theme for Reviews Section ─────────────────── */
.reviews-section.dark-theme {
  background-color: #0f172a; /* Navy dark blue */
  color: #fff;
}
.reviews-section.dark-theme .section-title,
.reviews-section.dark-theme .reviews-avg-number {
  color: #fff;
}
.reviews-section.dark-theme .reviews-badge-label {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}
.reviews-section.dark-theme .section-subtitle,
.reviews-section.dark-theme .reviews-avg-label {
  color: #94a3b8; /* slate-400 */
}

/* ── Animated Background Elements ─────────────────── */
.reviews-animated-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.floating-el {
  position: absolute;
  color: rgba(255, 255, 255, 0.4); /* Brighter white */
  font-size: 2rem;
  animation: floatAnim 15s ease-in-out infinite alternate;
}
@keyframes floatAnim {
  0% { transform: translateY(0px) rotate(0deg) scale(0.8); }
  50% { transform: translateY(-40px) rotate(10deg) scale(1.1); }
  100% { transform: translateY(20px) rotate(-10deg) scale(0.9); }
}
.relative-z {
  position: relative;
  z-index: 2;
}

/* Google badge pill */
.reviews-badge-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin: 0 auto 16px auto;
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.2);
  color: #4285F4;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ── Carousel Wrapper & Navigation ─────────────────── */
.reviews-carousel-wrapper {
  position: relative;
  display: block; /* Removed flex so outer takes full width */
  margin-top: 50px;
  padding: 20px 0 30px;
}

.reviews-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.reviews-nav-btn.prev-btn {
  left: 3%;
}

.reviews-nav-btn.next-btn {
  right: 3%;
}

.reviews-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

/* ── Outer scrolling container ─────────────────── */
.reviews-carousel-outer {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
}
.reviews-carousel-outer::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/* Pause animation when user hovers */
.reviews-carousel-wrapper:hover .reviews-carousel-track {
  animation-play-state: paused;
}

/* ── Scrolling track ─────────────────────────── */
.reviews-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  /* animation removed to allow normal scroll */
}

/* ── Single review card ──────────────────────── */
.review-card {
  flex-shrink: 0;
  width: 320px;
  background: rgba(255, 255, 255, 0.04); /* Glassmorphism on dark bg */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  cursor: pointer;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  right: 20px;
  font-size: 100px;
  line-height: 1;
  color: #ffffff;
  opacity: 0.25; /* Whiter quote mark */
  font-family: Georgia, serif;
  pointer-events: none;
}

.reviews-carousel-wrapper:hover .review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(255, 106, 0, 0.15);
  border-color: rgba(255, 106, 0, 0.4);
}

/* Author row */
.review-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* Avatar circle */
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-author-info {
  flex: 1;
  min-width: 0;
}

.review-author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Star rating row */
.review-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 12px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
}

.star-filled { color: #f59e0b; }
.star-empty  { color: rgba(255, 255, 255, 0.2); }

/* Review text */
.review-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

/* ── CTA Row (average rating + write button) ─── */
.reviews-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Average rating summary box */
.reviews-summary-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviews-avg-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1;
}

.reviews-avg-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews-avg-stars {
  display: flex;
  gap: 3px;
}

.reviews-avg-stars svg {
  width: 18px;
  height: 18px;
}

.reviews-avg-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Write review button */
.reviews-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 26px;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.reviews-write-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(66, 133, 244, 0.45);
  color: #fff;
}

/* ── Review Popup Modal ──────────────────────── */
.review-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: svcFadeIn 0.25s ease;
}
.review-popup-overlay.active {
  display: flex;
}
.review-popup-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: svcSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}
.review-popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}
.review-popup-close:hover {
  background: var(--primary);
  color: #fff;
}
.review-popup-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .review-card {
    width: 270px;
    padding: 20px 18px 18px;
  }

  .reviews-cta-row {
    flex-direction: column;
    text-align: center;
  }

  .reviews-summary-box {
    justify-content: center;
  }

  .reviews-write-btn {
    width: 100%;
    justify-content: center;
  }

  .reviews-nav-btn {
    display: none; /* Hide buttons on mobile, allow natural swipe */
  }
}
/* Google Yorumları Görünürlük Düzeltmesi */
#google-reviews {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  clear: both !important;
}

#google-reviews .container {
  display: block !important;
  margin: 0 auto !important;
}
/* ── MAĞAZA GERI DÖN BUTONU KESIN ÇÖZÜMÜ ── */

/* Sayfa en üstteyken (Varsayılan Durum) */
#header-home-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #1e293b !important; /* Yazı ve ikon rengi koyu gri/siyah */
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

/* Sayfa en üstteyken butonun üzerine gelindiğinde */
#header-home-btn:hover {
  background: var(--primary, #ff6a00) !important;
  color: #ffffff !important;
}

/* Sayfa aşağı kaydırıldığında (Header .scrolled sınıfı aldığında) */
#main-header.scrolled #header-home-btn,
.navbar.scrolled #header-home-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important; /* Yazı ve ikon rengi beyaza döner */
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Sayfa aşağı kaydırılmışken butonun üzerine gelindiğinde */
#main-header.scrolled #header-home-btn:hover,
.navbar.scrolled #header-home-btn:hover {
  background: #ffffff !important;
  color: var(--primary, #ff6a00) !important;
}

/* ── ORTALAMAYI KESİN OLARAK KASIP SOLA SABİTLEME DÜZENİ ── */

@media (min-width: 992px) {
  /* Biz Kimiz ve İletişim alanlarının dış kutularını sola yasla ve sağa kaydır (Hero hizası) */
  .about-grid,
  .contact-grid {
    display: grid !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 110px !important;    /* Sağa kaydırmayı artırdık */
    width: 100% !important;
    max-width: 1200px !important;
  }

  /* İçerideki yazıların sola dayalı olduğundan emin olalım */
  .about-text, .contact-form, .contact-info {
    text-align: left !important;
    margin-left: 0 !important;
  }

  /* Hızlı WhatsApp Teklifi sol sütununu da sağa kaydır (Hero ile aynı hizada) */
  .calc-text {
    padding-left: 110px !important;
  }
}
