.gallery-main {
  margin-top: 80px; /* Navbar yüksekliği */
  padding: 2rem 0;
  background: #f8f9fa;
}

.gallery-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-btn {
  padding: 1rem 2rem;
  border: none;
  background: white;
  color: var(--primary-color);
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
  background: var(--primary-color);
  color: white;
}

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

.gallery-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-grid.active {
  display: grid;
  opacity: 1;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1.5rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Öncesi/Sonrası stil */
.before-after {
  position: relative;
  cursor: pointer;
}

.before,
.after {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

.after {
  opacity: 0;
}

.before-after:hover .after {
  opacity: 1;
}

.label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Banner Styles */
.page-banner {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('images/tuzla_gemi_sogutma.jpeg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.6s ease-out;
  filter: brightness(0.9);
}


.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
   background-color: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.8)
  );
  z-index: 1;
  width: 90%;
  max-width: 1200px;
  padding: 0 20px;
}

.banner-content h1 {
  font-size: 4rem;
  margin-bottom: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-bottom: 20px;
}

.banner-content h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.banner-content p {
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.8;
  font-weight: 400;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Lightbox Arka Plan */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

/* Büyük Görsel */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* Kapatma Butonu */
.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

/* Ileri-Geri Butonları */
.prev-lightbox, .next-lightbox {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  user-select: none;
  transition: 0.3s;
}

.prev-lightbox:hover, .next-lightbox:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Sol ve Sağ Buton Pozisyonları */
.prev-lightbox { left: 20px; }
.next-lightbox { right: 20px; }


/* Responsive Banner Styles */
@media (max-width: 1200px) {
  .banner-content h1 {
    font-size: 3.5rem;
  }

  .banner-content p {
    font-size: 1.4rem;
  }
}

@media (max-width: 992px) {
  .page-banner {
    height: 400px;
  }

  .banner-content h1 {
    font-size: 3rem;
    padding-bottom: 15px;
  }

  .banner-content p {
    font-size: 1.3rem;
  }

  .banner-content h1::after {
    width: 60px;
    height: 3px;
  }
}

@media (max-width: 768px) {
  .page-banner {
    height: 350px;
    margin-bottom: 3rem;
  }

  .banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
  }

  .banner-content p {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .page-banner {
    height: 300px;
    margin-bottom: 2rem;
  }

  .banner-content h1 {
    font-size: 2rem;
    padding-bottom: 12px;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .banner-content h1::after {
    width: 50px;
    height: 3px;
  }
}

/* Adjust existing gallery section spacing */
.gallery-section {
  padding-top: 0; /* Remove top padding since we have banner margin */
  background-color: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.8)
  );
}

/* Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 8px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: auto;
  transition: transform 0.3s;
}

.logo:hover img {
  transform: scale(1.05);
}

.lang-btn {
  padding: 8px 16px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background-color: rgb(2, 9, 22);
  color: white;
}

.lang-btn.active {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

@media (max-width: 480px) {
  .logo img {
    height: 40px;
  }

  .lang-btn {
    font-size: 13px;
  }
}
