:root {
  --color-primary: #0f172a;
  --color-accent: #fbbf24;
  --color-accent-soft: #ffb703;
  --color-bg: #f3f4f6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  color: #0f172a;
}

/* Genel tipografi */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0f172a;
  font-family: "Bubblegum Sans", cursive;
  font-weight: 400;
  letter-spacing: 0.03em;
}


p,
.small,
li {
  color: #111827;
  line-height: 1.7;
}

.text-muted {
  color: #4b5563 !important;
}

/* NAVBAR */
.navbar {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.navbar-brand img {
  height: 42px;
}

.navbar-brand span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.navbar-nav .nav-link {
  font-size: 0.98rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  color: #4b5563;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-accent-soft);
}

@media (max-width: 576px) {
  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .navbar-brand img {
    height: 34px;
  }

  .navbar-brand span {
    font-size: 1rem;
  }

  .navbar-nav .nav-link {
    font-size: 0.95rem;
  }
}

/* HERO */
.hero-section {
  position: relative;
  min-height: 100vh;
  margin-top: 4.3rem;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
  height: calc(100vh - 4.3rem);
  min-height: 540px;
}

.hero-slide {
  position: relative;
  overflow: hidden;
}

.hero-slide-1,
.hero-slide-2,
.hero-slide-3 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Arka plan görselleri - uzantıyı senin dosyana göre düzelt (svg/jpg/png) */
.hero-slide-1 {
  background-image: url("../images/hero1.svg");
  background-position: center bottom;
}

.hero-slide-2 {
  background-image: url("../images/hero2.svg");
}

.hero-slide-3 {
  background-image: url("../images/hero3.jpg");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 183, 3, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 180, 216, 0.2), transparent 60%),
    linear-gradient(135deg, rgba(6, 16, 31, 0.45), rgba(20, 48, 92, 0.55));
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #f9fafb;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.hero-slide-content h1,
.hero-slide-content h2,
.hero-slide-content p,
.hero-slide-content .lead {
  color: #f9fafb;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.hero-slide-content h1 {
  font-size: clamp(2.5rem, 3vw + 1.6rem, 3.4rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-slide-content h2 {
  font-size: clamp(2.1rem, 2.4vw + 1.4rem, 2.8rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-slide-content .lead,
.hero-slide-content p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-cta {
  margin-top: 1.5rem;
}

.hero-card {
  border-radius: 1.5rem;
}

.glass-card {
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.04)
    );
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card,
.hero-card h3,
.hero-card h4,
.hero-card p,
.hero-card li,
.hero-card .small {
  color: #f9fafb !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.hero-card h3,
.hero-card h4 {
  font-weight: 600;
}

/* Hero indicators */
.hero-indicators {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-indicators button {
  width: 32px;
  height: 3px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
}

.hero-indicators button.active {
  background: #ffffff;
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.7));
}

/* Bölüm başlıkları */
section h2.h3 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

section h2.h3 + p.text-muted {
  font-size: 0.96rem;
}

section .mb-4.reveal h2.h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}

section .mb-4.reveal h2.h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* Info / service cards */
.info-card,
.service-card,
.testimonial-card,
.contact-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  padding: 1.25rem 1.3rem;
  background: #ffffff;
}

.service-card h3 {
  margin-bottom: 0.35rem;
}

/* Galerie – kartlı görünüm */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: linear-gradient(135deg, #ffffff, #e5f0ff);
  border-radius: 1.35rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.45), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.gallery-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.gallery-card p.small {
  color: #4b5563;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(251, 191, 36, 0.7);
}

/* Küçük renkli etiket üstte */
.gallery-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  margin-bottom: 0.4rem;
}

/* Preisrechner */
.calc-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.calc-result {
  min-height: 2.2em;
}

/* Einsatzgebiet */
.map-wrapper {
  background: #ffffff;
  border-radius: 1.35rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.map-wrapper iframe {
  width: 100%;
  min-height: 260px;
  display: block;
}

@media (min-width: 992px) {
  .map-wrapper iframe {
    min-height: 320px;
  }
}

/* Bottom CTA */
.bottom-cta {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  padding: 4rem 0;
}

/* Footer */
.site-footer {
  background: #020617;
  padding: 0.75rem 0;
  font-size: 0.8rem;
}

.site-footer span,
.site-footer small {
  color: #e5e7eb;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 1rem;
}

.site-footer a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Floating contact buttons */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
}

.fc-btn {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fc-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.45);
  opacity: 0.96;
}

.fc-whatsapp {
  background: #25d366;
}

.fc-phone {
  background: #0ea5e9;
}

.fc-instagram {
  background: radial-gradient(circle at 30% 30%, #f9a8d4, #ec4899, #ef4444);
}

.fc-facebook {
  background: #2563eb;
}

@media (max-width: 600px) {
  .floating-contact {
    right: 12px;
    bottom: 12px;
  }

  .fc-btn {
    width: 58px;
    height: 58px;
    font-size: 1.7rem;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Accordion tweak */
.accordion-button {
  font-size: 0.95rem;
}

.accordion-body {
  font-size: 0.9rem;
}

/* HERO sağdaki kutu yazıları daha parlak ve okunaklı */
.hero-card,
.hero-card * {
  color: #f9fafb !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
}

/* Cam efekti biraz daha opak olsun ki arkadaki resim yazıyı boğmasın */
.glass-card {
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.32),
      rgba(255, 255, 255, 0.12)
    );
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Alt koyu mavi bölümdeki yazıları tam beyaz yap */
.bottom-cta,
.bottom-cta p,
.bottom-cta li,
.bottom-cta span,
.bottom-cta strong {
  color: #f9fafb !important;
}

/* HERO sağdaki kutunun cam efekti ve yazı rengi */
.glass-card {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card,
.glass-card h5,
.glass-card p,
.glass-card li,
.glass-card .small {
  color: #ffffff !important;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* ==== MOBİL GÖRÜNÜM (≤ 576px) TAM OPTİMİZE ==== */
@media (max-width: 576px) {
  
  /* HERO OVERRIDE - ÇOK ÖNEMLİ! */
  .hero-section {
    min-height: auto !important;
    margin-top: 3.5rem !important;
  }
  
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item {
    height: 380px !important;
    min-height: 380px !important;
    max-height: 380px !important;
  }
  
  /* ROOT FONT SIZE */
  html {
    font-size: 18px;
  }
  
  /* Genel yazılar */
  body {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  p, li {
    font-size: 0.95rem;
  }
  
  /* Bölümler */
  section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  /* Hero içerik kutusu */
  .hero-slide-content {
    background: rgba(0, 0, 0, 0.55) !important;
    padding: 1.5rem !important;
    border-radius: 10px;
    max-width: 90% !important;
  }
  
  /* Hero başlıklar */
  .hero-slide-content h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    font-weight: 700;
  }
  
  .hero-slide-content h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  }
  
  /* Hero alt başlık (sarı yazı) */
  .hero-slide-content .text-warning,
  .hero-slide-content h2.text-warning {
    font-size: 0.95rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Hero paragraf */
  .hero-slide-content .lead,
  .hero-slide-content p {
    font-size: 1rem !important;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
  }
  
  /* Container padding */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Navbar */
  .navbar-brand span {
    font-size: 1.05rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  
  /* Butonlar */
  .btn {
    font-size: 1rem;
    padding: 0.65rem 1.25rem;
    min-height: 44px;
  }
  
  /* Footer */
  .site-footer {
    font-size: 0.9rem;
    padding: 1.5rem 0;
  }
  
  /* Küçük yazılar */
  .hero-slide-content small,
  .hero-slide-content .small {
    font-size: 0.85rem !important;
  }
}

/* ÇOK KÜÇÜK EKRANLAR (≤ 375px) */
@media (max-width: 375px) {
  html {
    font-size: 17px;
  }
  
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item {
    height: 340px !important;
    min-height: 340px !important;
  }
  
  .hero-slide-content h1 {
    font-size: 1.5rem !important;
  }
}

/* ==== SCROLL KAMYON ANİMASYONU - DİKEY ==== */

/* SOL TARAF - DİKEY YOL ÇİZGİSİ */
.vertical-road {
  position: fixed;
  left: 40px;
  top: 0;
  width: 6px;
  height: 100vh;
  background: repeating-linear-gradient(
    180deg,
    #fbbf24 0px,
    #fbbf24 20px,
    transparent 20px,
    transparent 40px
  );
  z-index: 15;
  opacity: 0.4;
  pointer-events: none;
}

/* Yol arka planı */
.vertical-road::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 26px;
  height: 100%;
  background: rgba(31, 41, 55, 0.3);
  z-index: -1;
  border-radius: 13px;
}

/* KAMYON - DİKEY HAREKET */
.truck-container {
  position: fixed;
  left: 10px;
  top: -100px;
  width: 60px;
  height: 90px;
  z-index: 20;
  transition: top 0.05s linear;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  pointer-events: none;
}

/* Kamyon SVG - AŞAĞI BAKIYOR */
.truck-svg {
  width: 100%;
  height: 100%;
  transform: rotate(180deg);
}

/* Tekerlekler dönme */
@keyframes wheel-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wheel {
  animation: wheel-spin 0.4s linear infinite;
  transform-origin: center;
}

/* Mobil için */
@media (max-width: 576px) {
  .truck-container {
    width: 50px;
    height: 75px;
    left: 5px;
  }

  .vertical-road {
    left: 25px;
    width: 5px;
  }

  .vertical-road::before {
    width: 20px;
    left: -7px;
  }
}

/* ==== SAYAÇ ANİMASYONU ==== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
}

.stat-card::before {
  content: attr(data-icon);
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 120px;
  opacity: 0.15;
  line-height: 1;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number .plus {
  font-size: 2.5rem;
  font-weight: 600;
}

.stat-label {
  font-size: 1.1rem;
  color: #374151;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Alternatif renkler */
.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.stat-card:nth-child(4) {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* Mobil */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-icon {
    font-size: 2.5rem;
  }
}

/* ==== KUTU PAKETLEME ANİMASYONU ==== */

/* Service kartları için animasyon hazırlığı */
.service-card.animated-box {
  opacity: 0;
  transform: translateY(-100px);
  transition: none;
}

/* Kutu düşme animasyonu */
@keyframes boxDrop {
  0% {
    opacity: 0;
    transform: translateY(-100px) rotate(-5deg);
  }
  60% {
    transform: translateY(10px) rotate(2deg);
  }
  80% {
    transform: translateY(-5px) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* Animasyon aktif olduğunda */
.service-card.animated-box.box-drop-active {
  animation: boxDrop 0.8s ease-out forwards;
}

/* Her kutu farklı zamanda gelsin */
.service-card.animated-box:nth-child(1) .info-card.box-drop-active,
.service-card.animated-box.box-drop-active:nth-child(1) { 
  animation-delay: 0.2s; 
}

.service-card.animated-box:nth-child(2) .info-card.box-drop-active,
.service-card.animated-box.box-drop-active:nth-child(2) { 
  animation-delay: 0.4s; 
}

.service-card.animated-box:nth-child(3) .info-card.box-drop-active,
.service-card.animated-box.box-drop-active:nth-child(3) { 
  animation-delay: 0.6s; 
}

/* Hover'da zıplama */
.service-card:hover .box-icon {
  animation: boxBounce 0.6s ease-in-out;
}

@keyframes boxBounce {
  0%, 100% { 
    transform: translateY(0) scale(1); 
  }
  25% { 
    transform: translateY(-15px) scale(1.1); 
  }
  50% { 
    transform: translateY(0) scale(1); 
  }
  75% { 
    transform: translateY(-7px) scale(1.05); 
  }
}

/* Parlama efekti */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 1;
  animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(0.8); 
    opacity: 0; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.2); 
    opacity: 0.3; 
  }
}

/* Paketleme bandı efekti */
.packing-tape {
  position: absolute;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #fbbf24,
    #fbbf24 10px,
    transparent 10px,
    transparent 20px
  );
  width: 0;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.service-card:hover .packing-tape {
  animation: tapeSeal 1s ease-out forwards;
}

@keyframes tapeSeal {
  0% { 
    width: 0; 
    opacity: 0; 
  }
  50% { 
    opacity: 1; 
  }
  100% { 
    width: 100%; 
    opacity: 0.3; 
  }
}

/* Box icon (emoji için) */
.box-icon {
  font-size: 4rem;  /* 3rem → 4rem */
  display: inline-block;
  margin-bottom: 20px;  /* 15px → 20px */
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

/* İçeriği öne çıkar */
.service-card h5,
.service-card p {
  position: relative;
  z-index: 2;
}

.service-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.service-card {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
}

