/* BarkoMen Web Sitesi - Özel Stiller */

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Navbar Stilleri */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-brand img {
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffc107 !important;
}

/* Hero Section */
.hero-section {
  min-height: 600px !important;
  padding: 100px 0 !important;
}

/* Demo Counter Section */
.demo-counter-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.counter-display {
  margin: 20px 0;
}

.counter-number {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Full Width Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: -80px; /* Navbar'ın altından başlaması için */
}

.hero-slider .carousel {
  height: 100vh;
  min-height: 600px;
}

.hero-slider .carousel-item {
  height: 100vh;
  min-height: 600px;
}

.slider-content {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  background-attachment: fixed;
  padding-top: 80px; /* Navbar yüksekliği kadar padding */
}

.slider-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* SD Barkod Slide Background - 1412x713 Optimizasyonu */
.sd-barkod-slide {
  background-image: url('../images/products/market.png');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.sd-barkod-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.sd-barkod-slide .container {
  position: relative;
  z-index: 2;
}

/* Barkomen Adisyon Slide Background */
.adisyon-slide {
  background-image: url('../images/products/unlumamuller.jpg');
  background-size: 110%;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.adisyon-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.adisyon-slide .container {
  position: relative;
  z-index: 2;
}

/* Yazarkasa Entegrasyon Slide Background */
.yazarkasa-slide {
  background-image: url('../images/products/yazarkasapos.png');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.yazarkasa-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.yazarkasa-slide .container {
  position: relative;
  z-index: 2;
}

.slider-text {
  animation: slideInLeft 0.8s ease-out;
}

.slider-image {
  animation: slideInRight 0.8s ease-out;
}

.placeholder-image {
  transition: transform 0.3s ease;
  background-color: transparent !important;
  border: none;
}

.placeholder-image img {
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.placeholder-image img:hover {
  transform: scale(1.05);
}

/* Slider Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

/* Slider Indicators */
.carousel-indicators {
  bottom: 30px;
}

.carousel-indicators button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 8px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: #fff;
  transform: scale(1.2);
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Card Hover Efektleri */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Product Card Özel Stilleri */
.product-card {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: #007bff;
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,123,255,0.2) !important;
}

.product-card .btn {
  transition: all 0.3s ease;
}

.product-card:hover .btn {
  transform: scale(1.05);
}

/* Button Stilleri */
.btn {
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Icon Stilleri */
.fa-code, .fa-mobile-alt, .fa-rocket, .fa-users, .fa-laptop-code {
  transition: transform 0.3s ease;
}

.card:hover .fa-code,
.card:hover .fa-mobile-alt,
.card:hover .fa-rocket,
.card:hover .fa-users,
.card:hover .fa-laptop-code {
  transform: scale(1.1);
}

/* Form Stilleri */
.form-control, .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Form Stilleri */
.form-control:focus, .form-select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Social Media Buttons */
.social-links a {
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: #ffc107 !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #343a40 0%, #212529 100%);
}

/* Animasyonlar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
  .hero-slider {
    margin-top: -70px; /* Mobil navbar için */
  }
  
  .hero-slider .carousel {
    height: 100vh;
    min-height: 500px;
  }
  
  .hero-slider .carousel-item {
    height: 100vh;
    min-height: 500px;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
  }
  
  .carousel-control-prev {
    left: 15px;
  }
  
  .carousel-control-next {
    right: 15px;
  }
  
  .carousel-indicators {
    bottom: 20px;
  }
  
  .placeholder-image {
    height: 300px !important;
  }
  
  .slider-text {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .slider-content {
    padding-top: 70px; /* Mobil navbar yüksekliği */
  }
  
  .hero-section {
    min-height: 500px !important;
    padding: 80px 0 !important;
  }
  
  /* Mobilde arka plan resimlerini daha iyi optimize et */
  .sd-barkod-slide {
    background-size: 100% 100%;
    background-position: center center;
  }
  
  .adisyon-slide {
    background-size: 120%;
    background-position: center center;
  }
  
  .yazarkasa-slide {
    background-size: 100% 100%;
    background-position: center center;
  }
}

/* Tablet için özel ayarlar */
@media (min-width: 769px) and (max-width: 1024px) {
  .sd-barkod-slide {
    background-size: 100% 100%;
    background-position: center center;
  }
  
  .adisyon-slide {
    background-size: 115%;
    background-position: center center;
  }
  
  .yazarkasa-slide {
    background-size: 100% 100%;
    background-position: center center;
  }
}

/* Büyük ekranlar için optimize */
@media (min-width: 1200px) {
  .sd-barkod-slide {
    background-size: 100% 100%;
    background-position: center center;
  }
  
  .adisyon-slide {
    background-size: 105%;
    background-position: center center;
  }
  
  .yazarkasa-slide {
    background-size: 100% 100%;
    background-position: center center;
  }
}

/* Özel Renkler */
.text-primary {
  color: #4a90e2 !important;
}

.bg-primary {
  background-color: #4a90e2 !important;
}

.btn-primary {
  background-color: #4a90e2;
  border-color: #4a90e2;
}

.btn-primary:hover {
  background-color: #357abd;
  border-color: #357abd;
}

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

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* WhatsApp İletişim Butonu */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  border: none;
  outline: none;
}

.whatsapp-link:hover {
  background: linear-gradient(135deg, #2a5298 0%, #1e3c72 50%, #2a5298 100%);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.6);
}

.whatsapp-link i {
  font-size: 24px;
  margin-right: 10px;
  color: white;
}

.whatsapp-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  font-weight: 600;
}

/* WhatsApp Buton Animasyonu */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
  }
  50% {
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.7);
  }
  100% {
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
  }
}

/* Mobil cihazlar için WhatsApp butonu */
@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-link {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .whatsapp-link:hover {
    transform: translateY(-1px);
  }
  
  .whatsapp-link i {
    font-size: 20px;
    margin-right: 8px;
  }
  
  .whatsapp-text {
    display: none; /* Mobilde sadece ikon göster */
  }
}

/* Tablet için WhatsApp butonu */
@media (min-width: 769px) and (max-width: 1024px) {
  .whatsapp-button {
    bottom: 25px;
    right: 25px;
  }
  
  .whatsapp-link {
    padding: 14px 18px;
    font-size: 15px;
  }
  
  .whatsapp-link:hover {
    transform: translateY(-1px);
  }
}