/* Home Page Specifics */
.hero-slider {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Sabit değil scroll ile responsive iyileştirme */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  color: var(--color-bg-white);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide .hero-content {
  max-width: 900px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease-in-out 0.3s;
  padding: 0 20px;
}

.slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-content h1 span {
  color: var(--color-accent);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #e9ecef;
  font-weight: 400;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }


/* Categories Section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.category-card {
  background: var(--color-bg-white);
  padding: 3rem 1.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  text-align: center;
  border-bottom: 4px solid transparent;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-bottom-color: var(--color-accent);
}

.category-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--color-bg-light);
  width: 90px;
  height: 90px;
  line-height: 90px;
  border-radius: 50%;
}

.category-card h3 {
  color: var(--color-primary-dark);
  font-size: 1.2rem;
}

/* Testimonials Carousel Section */
.testimonials {
  background-color: #eaf4f4;
  overflow: hidden;
}

.testimonial-track-container {
  overflow: hidden;
  position: relative;
  padding: 1rem 0; /* Gölgeler taşmasın diye boşluk */
}

.testimonial-track {
  display: flex;
  gap: 2.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 2rem;
  scrollbar-width: none; /* Firefox için kaydırma çubuğunu gizle */
}

.testimonial-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari için */
}

.testimonial-card {
  background: var(--color-bg-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--box-shadow);
  position: relative;
  flex: 0 0 calc(33.333% - 1.666rem); /* 3 kart görünümü */
  scroll-snap-align: start;
}

.testimonial-card::before {
  content: '"';
  font-size: 8rem;
  font-family: serif;
  position: absolute;
  top: -20px;
  left: 20px;
  color: rgba(64, 145, 108, 0.1);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  line-height: 1.7;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  color: var(--color-primary-dark);
  margin-bottom: 0.2rem;
}
.author-info span {
  color: var(--color-accent);
  font-size: 0.9rem;
}

/* Page Headers (About, Gallery, Contact, Blog) */
.page-header {
  background: linear-gradient(rgba(27, 67, 50, 0.8), rgba(27, 67, 50, 0.8)),
              url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10000;
  transition: transform 0.3s;
}

.lightbox-close:hover {
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 1.25rem); /* 2 kart görünümü */
  }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.1rem; }
  .section-title { font-size: 2.2rem; }
  .page-header h1 { font-size: 2.5rem; }
  .slider-btn { display: none; } /* Mobilde kaydırmak için slider ikonları gizle */
  
  .testimonial-card {
    flex: 0 0 100%; /* 1 kart görünümü */
  }
}
