@import url("main.css");
/* Hero Section */
.hero-section {
  position: relative;
  height: 400px;
  background: url("https://images.unsplash.com/photo-1507643179773-3e975d7ac515?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

/* add an overlay to the bg image */

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  animation: float 20s linear infinite;
  z-index: 1;
}


@keyframes float {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* overlay */
  z-index: 1;
}


.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.gallery-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Section */
.filter-section {
  padding: 50px 0 30px;
  background: var(--gray-light);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--white);
  border: 2px solid #e9ecef;
  color: var(--gray-medium);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-section {
  padding: 50px 0 80px;
  background: var(--gray-light);
}

.gallery-grid {
  columns: 4;
  column-gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 0.6s ease-out both;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}
.gallery-item:nth-child(7) {
  animation-delay: 0.7s;
}
.gallery-item:nth-child(8) {
  animation-delay: 0.8s;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--white);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.gallery-info p {
  font-size: 0.75rem;
  opacity: 0.9;
}

.zoom-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.gallery-item:hover .zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Modal/Popup */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease-out;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease-out;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: #ccc;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.modal-prev {
  left: -70px;
}

.modal-next {
  right: -70px;
}

/* Load More Button */
.load-more-section {
  text-align: center;
  padding: 40px 0;
  background: var(--gray-light);
}

.load-more-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.load-more-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* CSS Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-grid {
    columns: 3;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 350px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .gallery-stats {
    gap: 30px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .gallery-grid {
    columns: 2;
    column-gap: 15px;
  }

  .gallery-item {
    margin-bottom: 15px;
  }

  .modal-nav {
    display: none;
  }

  .modal-close {
    top: -40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .filter-controls {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .gallery-grid {
    columns: 1;
  }

  .gallery-stats {
    flex-direction: column;
    gap: 20px;
  }
}

/* Hidden class for filtering */
.gallery-item.hidden {
  display: none;
}
