:root {
  --primary-color: #1f93ff;
  --secondary-color: #00d4ff;
  --accent-color: #667eea;
  --success-color: #2ecc71;
  --error-color: #e74c3c;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --border-color: #e0e0e0;
  --text-color: #333;
  --text-light: #666;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 40px 20px;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery Header */
.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gallery-header .subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  font-weight: 300;
}

/* Filter Section */
.filter-section {
  text-align: center;
  margin-bottom: 3rem;
  animation: slideUp 0.6s ease-out 0.1s backwards;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(31, 147, 255, 0.4);
}

/* Gallery Section */
.gallery-section {
  animation: slideUp 0.6s ease-out 0.2s backwards;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Gallery Item */
.gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out;
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item.hidden {
  display: none;
}

/* Gallery Image Wrapper */
.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--light-color);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* View Button */
.view-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 25px rgba(31, 147, 255, 0.4);
}

/* Gallery Info */
.gallery-info {
  padding: 1.5rem;
}

.gallery-info h3 {
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.gallery-item:hover .gallery-info h3 {
  color: var(--primary-color);
}

.category-tag {
  font-size: 0.85rem;
  color: var(--text-light);
  display: inline-block;
  background: var(--light-color);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

/* No Items Message */
.no-items {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.no-items i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.no-items h3 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.no-items p {
  color: var(--text-light);
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-bottom: 3rem;
  animation: slideUp 0.6s ease-out 0.3s backwards;
}

.btn-load-more {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-load-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(31, 147, 255, 0.3);
}

.btn-load-more:active {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.lightbox-info {
  background: white;
  padding: 1.5rem;
  border-radius: 0 0 10px 10px;
  text-align: center;
}

.lightbox-info h3 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.lightbox-info p {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Lightbox Navigation */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  top: 50%;
  left: -70px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: -70px;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-header h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .gallery-image-wrapper {
    height: 200px;
  }

  .filter-buttons {
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    left: auto;
    right: auto;
    bottom: -60px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 10px;
  }

  .gallery-header h1 {
    font-size: 1.5rem;
  }

  .gallery-header .subtitle {
    font-size: 0.95rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-image-wrapper {
    height: 200px;
  }

  .filter-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
  }

  .view-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .lightbox-container {
    width: 95%;
  }

  .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-info {
    padding: 1rem;
  }

  .btn-load-more {
    width: 100%;
  }
}

