/* Genel Alan Stilleri */
.content-section {
  padding: 5% 5% 0 5%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.hero {
  /* min-height: calc(100vh - 80px); */
  aspect-ratio: 20 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 20px;
  overflow: hidden;
}


.transition-blur {
  position: relative;
  width: 100%;
  height: 40px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 5;
  margin-top: -20px; 
}


#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  filter: blur(4px);
  z-index: 1; /* hero-content (z-index: 2) elementinin arkasında kalması için */
  object-fit: cover; /* Videonun en-boy oranını koruyarak alanı kaplamasını sağlar */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.6), 0 0 30px rgba(255,255,255,0.4);
}

.hero p {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 40px;
  line-height: 1.7;
  text-shadow: 0 0 5px rgba(255,255,255,0.7), 0 0 10px rgba(255,255,255,0.5);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons .offer-btn {
  margin: 10px;
}

.secondary-btn {
  background: transparent;
  border: 2px solid #B87333;
  color: #B87333;
  padding: 10px 24px;
}

.secondary-btn:hover {
  background-color: #B87333;
  color: #fff;
}

/* Özellikler Alanı */
.features {
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 30px auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.feature-item .icon {
  font-size: 3rem;
  margin-bottom: 20px;
  background: var(--dynamic-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-dim);
  line-height: 1.6;
}

/* Teknoloji Tanıtım Alanı */

.tech-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.tech-image img {
  width: 100%;
  height: auto;
}

.tech-content .eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B87333;
  margin-bottom: 10px;
}

.tech-content h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.tech-content p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 30px;
}

.tech-list {
  list-style: none;
  padding: 0;
}

.tech-list li {
  color: var(--text-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.tech-list .fa-check-circle {
  color: #DA8E50;
  margin-right: 15px;
  font-size: 1.2rem;
}

/* NSF Section */
.nsf-section {
  display: flex;
  justify-content: space-between; /* Pushes content and logo to opposite ends */
  align-items: center; /* Vertically aligns items */
  gap: 40px; /* Space between logo and text */
}

.nsf-section .nsf-content .section-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.nsf-logo {
  max-width: 300px;
  height: auto;
  flex-shrink: 0; /* Prevent logo from shrinking */
}

@media (max-width: 768px) {
  .nsf-section {
    flex-direction: column; /* Stack logo and text vertically on small screens */
    text-align: center;
  }
  .nsf-section .nsf-content {
    text-align: center; /* Center text when stacked vertically */
  }
  .nsf-section .nsf-content .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Center subtitle when stacked vertically */
  }
  .nsf-logo {
    margin-bottom: 20px; /* Add space below logo when stacked */
  }
}

/* Gallery Section - Cover Flow Carousel */
.gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Give more space to the carousel */
    align-items: center;
    gap: 40px;
}

.gallery-info {
    text-align: left;
}

.gallery-info .section-title {
    margin-bottom: 20px;
}

.carousel-navigation {
    margin-top: 30px;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
    background-color: #B87333;
    transform: scale(1.1);
}

.carousel-btn.prev-btn {
    margin-right: 15px;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.05);
}

.gallery-carousel {
    position: relative;
    width: 100%;
    height: 400px; /* Give the carousel a fixed height */
    perspective: 1000px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    align-items: center;
    height: 100%;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide {
    flex: 0 0 33.33%; /* Each slide takes up a third of the container */
    padding: 0;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
    transform: scale(0.7);
    opacity: 0.4;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px; /* Apply border-radius here */
}

.carousel-slide.is-active {
    transform: scale(1);
    opacity: 1;
}

.carousel-slide.is-prev {
    transform: scale(0.8) translateX(-20%);
    opacity: 0.6;
}

.carousel-slide.is-next {
    transform: scale(0.8) translateX(20%);
    opacity: 0.6;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px; /* Keep radius on img as well */
}


/* Animasyonlar (Sayfa Kaydırdıkça) */
.reveal {
  position: relative;
  transform: translateY(100px);
  opacity: 0;
  transition: 1s all ease;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Tasarım */
@media (max-width: 1160px) {
  .hero {
    aspect-ratio: unset; /* Geniş ekranlar için olan en-boy oranını kaldırır */
    min-height: 80vh;   /* Yüksekliği, ekranın %80'i kadar olacak şekilde ayarlar */
    padding: 40px 20px; /* İçeriğin kenarlara yapışmasını engeller */
  }

  .hero h1 { 
    font-size: 2.8rem; /* Başlık fontunu mobil için küçültür */
  }

  .hero p {
    font-size: 1rem; /* Açıklama metninin fontunu küçültür */
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column; /* Butonları alt alta dizer */
    align-items: center;    /* Butonları dikeyde ortalar */
    gap: 15px;              /* Butonlar arasına boşluk ekler */
    width: 100%;
    max-width: 320px;       /* Butonların çok geniş olmasını engeller */
    margin: 0 auto;
  }

  .hero-buttons .offer-btn {
    width: 100%; /* Butonların kapsayıcı genişliğine yayılmasını sağlar */
    margin: 0;   /* Eski margin değerini sıfırlar */
  }
  .tech-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .section-title, .tech-content h2 { font-size: 2.2rem; }
  .gallery-container {
      grid-template-columns: 1fr; /* Stack vertically */
      text-align: center;
  }
  .gallery-info {
      text-align: center;
  }
  .gallery-carousel {
      height: 350px; /* Adjust height for mobile */
  }
  .carousel-slide {
      flex-basis: 50%; /* Make slides a bit wider on mobile */
  }}

/* References Section */
.references-section {
  text-align: center;
}

.reference-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  margin-bottom: 30px;
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.reference-carousel-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.reference-carousel-container:hover .reference-carousel-track {
  animation-play-state: paused;
}

.reference-carousel-slide {
  width: 350px; /* Genişliği daha da artırıldı */
  height: 200px; /* Yüksekliği daha da artırıldı */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.reference-carousel-slide:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.reference-carousel-slide img {
  max-width: 280px; /* Maksimum genişlik daha da artırıldı */
  max-height: 160px; /* Maksimum yükseklik daha da artırıldı */
  filter: grayscale(100%) invert(1) opacity(0.7);
  transition: all 0.3s ease;
}

.reference-carousel-slide:hover img {
  filter: grayscale(0%) invert(0) opacity(1);
  transform: scale(1.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-350px * 8)); /* Genişlik 350px olarak güncellendi */
  }
}

/* --- FİLTRE KARTLARI BÖLÜMÜ (SADE VE ORTALI) --- */
.filters-section {
  margin-top: 60px;
    padding: 60px 20px; /* Üst ve alt boşluk */
    background: transparent; /* Sitenin ana arka planı görünsün */
    position: relative;
}

/* Flexbox ile ortalanmış ızgara yapısı */
.filters-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Kartları her zaman ortalar (7. kart da ortada durur) */
    gap: 30px; /* Kartlar arası boşluk */
    max-width: 1400px; /* İsteğin üzerine genişlik 1400px */
    margin: 0 auto;
}

.filter-card {
    /* Kart Boyutlandırması */
    flex: 1 1 280px; /* Esnek: En az 280px olsun */
    max-width: 320px; /* Çok genişlemesin, kibar dursun */
    
    /* Kart Tasarımı (Premium Koyu Cam Efekti) */
    background: rgba(20, 20, 20, 0.6); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover Efekti: Parlama ve Yükselme */
.filter-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(184, 115, 51, 0.5); /* Gold Rengi */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Filtre Görsel Alanı */
.filter-icon-box {
    height: 200px; /* Görsel yüksekliği */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-icon-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); /* Gölge */
    transition: transform 0.4s ease;
}

/* Hover'da Görsel Hareketi */
.filter-card:hover .filter-icon-box img {
    transform: scale(1.1) rotate(2deg);
}

/* Kart Metinleri */
.filter-card h3 {
    font-size: 1.1rem;
    color: #fff; /* Beyaz Başlık */
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-card p {
    font-size: 0.9rem;
    color: #aaa; /* Gri Açıklama */
    line-height: 1.5;
    margin: 0;
}

/* Numaralandırma Rozeti */
.filter-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.filter-card:hover .filter-badge {
    color: #DA8E50; /* Hover'da Gold */
    border-color: #DA8E50;
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .filters-section {
        padding: 40px 15px;
    }

    .filters-grid {
        gap: 15px;
    }
    
    .filter-card {
        flex: 1 1 45%; /* Mobilde yan yana 2 tane sığsın */
        max-width: none;
        padding: 20px 10px;
    }
    
    .filter-icon-box {
        height: 130px; /* Mobilde görseli küçült */
    }
    
    .filter-card h3 {
        font-size: 0.85rem;
    }

    .filter-card p {
        display: none; /* Mobilde yer kaplamasın diye açıklamayı gizle */
    }
}