/* ============================================
   Projeler Sayfa Stilleri
   ============================================ */

.projeler-intro {
  padding: 24px 0 40px;
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  text-align: center;
}

.proje-section {
  padding: 48px 0;
  border-top: 1px solid #e8e8e8;
}

.proje-section:first-of-type {
  border-top: none;
}

.proje-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.proje-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 600;
  color: #1a1a1a;
}

.proje-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(50, 128, 48, 0.1);
  color: #328030;
  font-size: 13px;
  font-weight: 600;
}

.proje-badge i {
  font-size: 13px;
}

.proje-section > p {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

/* Proje Galeri Grid */
.proje-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.proje-gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.proje-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proje-gallery-item:hover::after {
  opacity: 1;
}

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

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

.proje-gallery-item--featured {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 900px) {
  .proje-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .proje-gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
  }
}

@media (max-width: 500px) {
  .proje-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .proje-gallery-item--featured {
    grid-column: span 1;
    grid-row: span 2;
    height: auto;
  }
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

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

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}

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

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}
