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

/* Gallery Hero Section */
.gallery-hero {
  background: linear-gradient(135deg, rgba(15, 168, 158, 0.5) 0%, rgba(26, 111, 191, 0.5) 100%),
              url('/images/hero3.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6),
              radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.gallery-hero .center {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s ease-out;
}

.gallery-hero .sec-label {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-hero .sec-title {
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  animation: slideInLeft 1.4s ease-out;
}

.gallery-hero .sec-sub {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: slideInLeft 1.6s ease-out;
}

.gallery-hero .divider {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 3s infinite;
}

/* Gallery Section */
.gallery-section {
  background: white;
  padding: 80px 0;
}

/* Gallery Categories */
.gallery-categories {
  text-align: center;
  margin-bottom: 60px;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease-out;
}

.category-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.gallery-item {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.gallery-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.gallery-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-image-container img {
  transform: scale(1.08);
}

.gallery-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #0fa89e, #1a6fbf);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  animation: slideInRight 0.6s ease-out;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 168, 158, 0.95) 0%, rgba(26, 111, 191, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-content h4 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.gallery-card:hover .gallery-content h4 {
  transform: translateY(0);
}

.gallery-content p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 15px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
}

.gallery-card:hover .gallery-content p {
  transform: translateY(0);
}

.gallery-features {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.3s;
}

.gallery-card:hover .gallery-features {
  transform: translateY(0);
}

.gallery-features span {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-features span i {
  margin-right: 5px;
  color: #ffd700;
}

/* Gallery Stats */
.gallery-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 80px;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(15, 168, 158, 0.05) 0%, rgba(26, 111, 191, 0.05) 100%);
  border-radius: 20px;
  text-align: center;
}

.stat-item {
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0fa89e, #1a6fbf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-hero {
    padding: 100px 0 60px;
  }
  
  .gallery-section {
    padding: 60px 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
