/* ─────────────────────────────────────────────
   GALLERY PAGE STYLES
   ───────────────────────────────────────────── */

:root {
  --dark: #1a1a1a;
  --light: #f5f5f5;
  --gold: #d4af37;
  --gold-dim: #b8960f;
}

.gallery-hero {
  background: linear-gradient(135deg, var(--dark) 0%, rgba(0, 0, 0, 0.8) 100%);
  background-size: cover;
  background-position: center;
  min-height: 350px;
  display: flex;
  align-items: center;
  color: white;
  padding: 4rem 0;
}

.hero-content {
  text-align: center;
  width: 100%;
}

.section-tag {
  display: inline-block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.gallery-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: white;
}

.gallery-hero p {
  font-size: 1.1rem;
  color: #ddd;
  max-width: 700px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   STATS SECTION
   ───────────────────────────────────────────── */

.gallery-stats {
  padding: 4rem 0;
  background: var(--dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: #2a2a2a;
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #ccc;
  font-size: 0.95rem;
  margin: 0;
}

/* ─────────────────────────────────────────────
   FILTER SECTION
   ───────────────────────────────────────────── */

.gallery-filter-section {
  padding: 3rem 0;
  background: var(--dark);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.filter-group {
  margin-bottom: 2.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: white;
  text-decoration: none;
  background: transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}

.filter-btn:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* ─────────────────────────────────────────────
   GALLERY GRID
   ───────────────────────────────────────────── */

.gallery-content-section {
  padding: 4rem 0;
  background: var(--dark);
  min-height: 60vh;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #2a2a2a;
  border: 1px solid rgba(212, 175, 55, 0.15);
  height: 350px;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.08);
}

.gallery-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-overlay-content {
  opacity: 1;
}

.overlay-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.division-name {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-title {
  color: white;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

.image-caption {
  color: #ccc;
  font-size: 0.9rem;
  margin: 0.5rem 0 0 0;
  line-height: 1.4;
}

.view-icon {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 3;
}

.gallery-item:hover .view-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.view-icon svg {
  display: block;
}

/* ─────────────────────────────────────────────
   NO RESULTS
   ───────────────────────────────────────────── */

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}

.no-results p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   CTA SECTION
   ───────────────────────────────────────────── */

.cta-section {
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-section p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

/* ─────────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────────── */

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .gallery-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-hero h1 {
    font-size: 2rem;
  }

  .gallery-hero p {
    font-size: 1rem;
  }

  .filter-buttons {
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .gallery-hero {
    padding: 2rem 0;
    min-height: auto;
  }

  .gallery-hero h1 {
    font-size: 1.5rem;
  }

  .gallery-hero p {
    font-size: 0.95rem;
  }

  .section-tag {
    font-size: 0.75rem;
  }

  .filter-group h3 {
    font-size: 1rem;
  }

  .gallery-content-section {
    padding: 2rem 0;
  }

  .gallery-stats {
    padding: 2rem 0;
  }

  .gallery-filter-section {
    padding: 1.5rem 0;
  }
}
