/* Main Styles for Dairy Farm Website - Bootstrap Compatible */

/* Bootstrap ile çakışan reset ve box-sizing kuralları kaldırıldı */
/* Custom styles that work with Bootstrap */

/* Container stilleri kaldırıldı, Bootstrap container kullanılacak */

/* Grid sistem stilleri kaldırıldı, Bootstrap grid kullanılacak */

/* Navigation - Bootstrap navbar ile uyumlu özel stiller */
.navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d5016 !important;
}


.navbar-brand i {
  font-size: 2rem;
  color: #7cb342;
}

.nav-link {
  font-weight: 500;
  color: #333 !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #7cb342 !important;
}

/* Hero Section - Bootstrap uyumlu */
.hero {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(
    135deg,
    #f8f9fa 0%,
    #e8f5e8 30%,
    #dcedc8 70%,
    #c8e6c8 100%
  );
  max-width: 100vw;
  display: flex;
  align-items: center;   /* dikey ortalama */
  justify-content: center; /* yatay ortalama (isteğe bağlı) */
  padding: 0 15px; /* kenarlardan biraz boşluk bırak */
}


/* Dekoratif floating elementler eklendi */
.hero-decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.element-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #7cb342, transparent);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.element-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #2d5016, transparent);
  bottom: 20%;
  left: 5%;
  animation-delay: 2s;
}

.element-3 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #689f38, transparent);
  top: 60%;
  right: 30%;
  animation-delay: 4s;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(124, 179, 66, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(45, 80, 22, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.hero-text {
  max-width: 800px; /* içerik çok yayılmasın */
  margin: 0 auto; /* ortala */
  text-align: center; /* ortalı yazı */
  padding: 2rem 1rem; /* nefes aldır */
}

.hero-text h1 {
  font-family: "Playfair Display", serif;
  color: #2d5016;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* Hero badge stilleri eklendi */
.hero-badge .badge {
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideInDown 1s ease-out 0.5s both;
}

.bg-success-soft {
  background-color: rgba(124, 179, 66, 0.1) !important;
}

/* Gelişmiş hero başlık stilleri */
.hero-title {
  font-family: "Playfair Display", serif;
  color: #2d5016;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  line-height: 1.1;
  animation: fadeInUp 1s ease-out 0.7s both;
}

.text-gradient {
  background: linear-gradient(135deg, #7cb342 0%, #2d5016 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.9s both;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* İstatistik kartları stilleri eklendi */
.hero-stats {
  animation: fadeInUp 1s ease-out 1.1s both;
  justify-content: center;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d5016;
  font-family: "Playfair Display", serif;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

/* Hero butonları geliştirildi */
.hero-buttons {
  animation: fadeInUp 1s ease-out 1.3s both;
  justify-content: center;
}

.hero-buttons .btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.hero-buttons .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.hero-buttons .btn:hover::before {
  left: 100%;
}

/* Güven göstergeleri stilleri eklendi */
.hero-trust-indicators {
  animation: fadeInUp 1s ease-out 1.5s both;
  justify-content: center; /* güven göstergelerini ortala */
  gap: 2rem; /* aralarına nefes ver */
}

.trust-item {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.trust-item:hover {
  opacity: 1;
}

/* Hero görsel container stilleri geliştirildi */
.hero-image-container {
  animation: fadeInRight 1s ease-out 0.8s both;
}

.hero-image-frame {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 8px;
}

.hero-main-image {
  border-radius: 24px;
  transition: transform 0.5s ease;
  width: 100%;
  height: auto;
}

.hero-image-frame:hover .hero-main-image {
  transform: scale(1.05);
}

/* Floating info kartları stilleri eklendi */
.floating-info-card {
  top: 10%;
  right: 2%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  animation: floatCard 3s ease-in-out infinite;
  z-index: 3;
  max-width: 200px;
}

.floating-info-card-2 {
  bottom: 15%;
  left: 2%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  animation: floatCard 3s ease-in-out infinite 1.5s;
  z-index: 3;
  max-width: 180px;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: rgba(124, 179, 66, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Bootstrap button sınıflarını override eden özel stiller */
.btn-primary {
  background: linear-gradient(135deg, #7cb342 0%, #689f38 100%) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #689f38 0%, #558b2f 100%) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 179, 66, 0.4);
}

.btn-outline-success {
  color: #7cb342 !important;
  border-color: #7cb342 !important;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background: #7cb342 !important;
  border-color: #7cb342 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 179, 66, 0.3);
}

/* Section Headers */
.display-4,
.display-5 {
  font-family: "Playfair Display", serif;
  color: #2d5016;
}

/* Bootstrap card sınıflarını geliştiren özel stiller */
.product-card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center; /* Yatay ortalama */
  justify-content: center; /* Dikey ortalama */
  text-align: center;
  height: 100%;
  padding: 1rem;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.product-card .card-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: #2d5016;
  margin-bottom: 0.5rem;
}

.product-card .card-text {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center; /* Yatay ortalama */
  justify-content: center; /* Dikey ortalama */
  text-align: center;
  flex: 1;
  padding: 0 1rem;
}

.products {
  background: #f8f9fa;
  padding: 5rem 1rem;
}

.product-card .product-image img {
  border-radius: 15px;
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.products .display-4 {
  font-family: "Playfair Display", serif;
  color: #2d5016;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.products .lead {
  color: #555;
  text-align: center;
  margin-bottom: 3rem;
}

.card-title {
  font-family: "Playfair Display", serif;
  color: #2d5016;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #7cb342;
  margin-bottom: 1rem;
}


.product-card .btn-primary:hover {
  background: linear-gradient(135deg, #689f38, #558b2f);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 179, 66, 0.3);
}

.product-card .btn-primary {
  border-radius: 50px;
  background: linear-gradient(135deg, #7cb342, #689f38);
  transition: all 0.3s ease;
  padding: 0.5rem 1.5rem;
  text-align: center;
}

/* Quality Cards */
.quality-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.quality-card h4 {
  font-family: "Playfair Display", serif;
  color: #2d5016;
}

/* Bootstrap form kontrollerini geliştiren stiller */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #7cb342;
  box-shadow: 0 0 0 0.2rem rgba(124, 179, 66, 0.25);
}

/* Contact Items */
.contact-item i {
  color: #7cb342;
}

.contact-item h5 {
  color: #2d5016;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #2d5016 !important;
}

.footer h5 {
  font-family: "Playfair Display", serif;
  color: #7cb342;
}

.footer .text-light {
  color: #ccc !important;
}

.footer .text-light:hover {
  color: #7cb342 !important;
}

/* Social Links */
.footer .d-flex a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #7cb342;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.footer .d-flex a:hover {
  transform: translateY(-2px);
  background: #689f38;
}

/* Responsive ayarları Bootstrap breakpoint'leri ile uyumlu hale getirildi */
@media (max-width: 991.98px) {
  .product-card .product-image img {
    height: 220px;
  }
  .hero {
    padding-top: 120px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .floating-info-card,
  .floating-info-card-2 {
    display: none;
  }

  .element-1,
  .element-2,
  .element-3 {
    width: 100px;
    height: 100px;
  }

  .hero::before {
    width: 200px;
    height: 200px;
  }

  .hero::after {
    width: 150px;
    height: 150px;
  }

  .hero-stats .col-4 {
    flex: 0 0 auto;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 575.98px) {
   .product-card .product-image img {
    height: 200px;
  }

  .product-card .card-title {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .product-card .btn-primary {
    width: 100%;
  }
  .hero-title {
    font-size: 2.2rem !important;
  }

  .floating-element {
    display: none;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-stats .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  .stat-card {
    padding: 0.8rem;
  }

  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .trust-item {
    flex-basis: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid #7cb342;
  outline-offset: 2px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}