/* Custom overrides */
body {
  font-family: 'Poppins', sans-serif;
}

/* Modern navbar styling */
.navbar {
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}
.navbar .nav-link {
  position: relative;
  color: #333333 !important;
  font-weight: 500;
  margin: 0 0.5rem;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #c8102e;
  transition: width 0.3s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
}


/* Modern Aesthetic Enhancements */

/* Hero Carousel Overlay */
.carousel-item {
  position: relative;
}
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.carousel-item img {
  filter: brightness(0.7);
}
.carousel-caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

/* Section Title Underline */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Card Hover Lift */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Buttons Shadow */
.btn, .btn-primary {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover, .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Contact Form Inputs */
.form-control {
  border-radius: 6px;
  border: 1px solid #ddd;
  transition: border-color 0.3s ease;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: none;
}

/* Footer */
footer {
  background: #f8f9fa;
  padding: 2rem 0;
}

/* Smooth Scroll for navbar links */
html {
  scroll-behavior: smooth;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  background: var(--primary);
  color: #ff0000;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.3s ease;
}
#back-to-top:hover {
  background: darken(var(--primary), 10%);
}


/* Responsive Bootstrap Carousel Overrides */
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item,
#heroCarousel .ratio {
  width: 100%;
  height: auto;
}
#heroCarousel .ratio > .carousel-inner {
  height: 100%;
}
#heroCarousel .carousel-item img {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}


/* Bold & Modern Nav Link Styling */
.navbar-nav .nav-link {
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  padding: 0.75rem 1rem !important;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  border-bottom: 3px solid var(--primary) !important;
}
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}


/* Galeri cards styling */
#galeri .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
#galeri .card:hover .card-img-top {
  transform: scale(1.05);
}


/* Center Galeri title */
#galeri .section-title {
  text-align: center !important;
}






/* Fully Responsive Carousel Image Sizing */
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item,
#heroCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Step 9: Advanced Logo Sweeper (Infinite Loop) */


    .slider {
      margin-top: 70px;
      background-color: whitesmoke;
      padding: 4em 2em;
      overflow: hidden;
    }

    .slide-track {
      display: flex;
      gap: 3em;
      width: calc(200%); /* İçerik iki kat */
      animation: scroll 60s linear infinite;
    }

    .slide-track img {
      width: 100px;
      height: 100px;
      object-fit: contain;
    }

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

    @media(max-width:768px){
      .slide-track img {
        width: 60px;
        height: 60px;
      }
    }


/* Override slider height for first slider */
#heroCarousel .ratio {
  height: 350px !important;
}


/* Hero Carousel Caption Styling */
#hero .carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
}


/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px;
  z-index: 1000;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}


/* Step 4: Navbar scroll background change and ripple effect */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background-color: var(--secondary) !important;
  backdrop-filter: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}


/* Step 5: Buton & Kart Stilleri */
/* Genel buton stili - pill-shaped */
.btn {
  border-radius: 50px !important;
  transition: background 0.4s ease, transform 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
}

/* CTA Gradient */
.btn-cta {
  background: linear-gradient(45deg, var(--primary), var(--accent)) !important;
  color: #ff0000 !important;
}


.filter-btn.active, .filter-btn:hover {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: #fc0000 !important;
  transform: scale(1.05);
}

/* Card buton detay - serve detailed */ 
.card .btn-detail {
  margin-top: auto;
  border-radius: 50px;
  
}


/* Make navbar sticky/fixed */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
}

/* Add top padding to body to avoid content hidden under navbar */
body {
  padding-top: 70px; /* Adjust based on navbar height */
}


/* Step 7: Typography Scale and Line-Height */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  margin-bottom: 1rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.3;
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
}
h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.5;
}
p {
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto 1rem auto;
}


/*whattasp*/
.whatsapp-chatbox {
  position: fixed;
  bottom: 50px;
  right: 50px;
  background-color: #009425;
  border-radius: 30px;
  padding: 10px 15px;
  display: flex;
  align-items: center;  
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s ease;
}

.whatsapp-chatbox img {
  width: 28px;
  height: 28px;
}

.whatsapp-chatbox span {
  color: white;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

/* Mobil için optimize */
@media (max-width: 600px) {
  .whatsapp-chatbox span {
    display: none;
  }

  .whatsapp-chatbox {
    padding: 10px;
    border-radius: 50%;
  }
}


/* Step 8: Lottie Animation Container */
.lottie-container {
  width: 150px;
  height: 150px;
  margin: 1rem auto;
}


/* Step: Swiper Popular Products Styles */
.popular-products-slider {
  padding-bottom: 3rem;
}
.popular-products-slider .swiper-slide {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .modal-content img {
    max-height: 40vh;
  }
}

.modal-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  max-height: 60vh; /* Görselin ekranın %60’ını geçmemesi için */
  object-fit: contain;
  border-radius: 6px;
}