/* Gallery Hero */
.gallery-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--secondary-color);
  padding: 8rem 0 5rem;
  margin-top: 76px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(255, 255, 255, 0.05) 50px,
    rgba(255, 255, 255, 0.05) 100px
  );
}

.gallery-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.gallery-hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

/* Gallery Filters */
.gallery-filters {
  padding: 2rem 0;
}

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

.filter-btn {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
  padding: 3rem 0;
}

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

.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item.hidden {
  display: none;
}

.gallery-card {
  background: var(--secondary-color);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.gallery-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 500;
}

.image-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-image:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  padding: 2rem;
}

.overlay-content h5 {
  margin-bottom: 1rem;
  font-weight: 600;
}

.overlay-content p {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.gallery-info {
  padding: 1.5rem;
}

.gallery-info h6 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-category {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Gallery Statistics */
.gallery-stats {
  padding: 4rem 0;
}

.stat-card {
  background: var(--secondary-color);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.stat-card .stat-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-card .stat-label {
  color: var(--text-light);
  font-weight: 500;
}

/* Modal Styles */
.modal-image-container {
  text-align: center;
}

.modal-image-placeholder {
  width: 100%;
  height: 400px;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 500;
}

.modal-image-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.modal-image-info h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.modal-image-info p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-image-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-hero-title {
    font-size: 2.5rem;
  }

  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 200px;
    text-align: center;
  }

  .gallery-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-image {
    height: 200px;
  }

  .overlay-content {
    padding: 1rem;
  }

  .overlay-content h5 {
    font-size: 1rem;
  }

  .overlay-content p {
    font-size: 0.8rem;
  }

  .stat-card {
    margin-bottom: 2rem;
  }

  .modal-image-placeholder {
    height: 250px;
    font-size: 1.2rem;
  }

  .modal-image-placeholder i {
    font-size: 3rem;
  }
}

/* Animation for filtering */
.gallery-item {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

