/* ================= GALLERY PAGE SPECIFIC STYLES ================= */

.gallery-hero {
  padding: calc(var(--header-height) + 60px) 5% 40px;
  background: radial-gradient(circle at 10% 20%, rgba(91, 141, 239, 0.05) 0%, transparent 40%);
  text-align: center;
}

.gallery-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.gallery-hero h1 {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gallery-hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- GALLERY GRID --- */
.gallery-section {
  padding: 40px 5% 100px;
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-card {
  position: relative;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zoom Hover State */
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 141, 239, 0.15);
}

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

/* Hover Info Overlay */
.gallery-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 60%, rgba(15, 23, 42, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}

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

/* Dynamic text slide up on hover */
.gallery-info h4 {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-info p {
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.5;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.05s;
}

/* Plus Zoom Icon Badge */
.zoom-icon-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
  z-index: 12;
}

.gallery-card:hover .zoom-icon-badge {
  opacity: 1;
  transform: scale(1);
}

.zoom-icon-badge i,
.zoom-icon-badge svg {
  width: 18px;
  height: 18px;
}

.gallery-card:hover .gallery-info h4,
.gallery-card:hover .gallery-info p {
  transform: translateY(0);
}

/* --- RESPONSIVE GALLERY STYLES --- */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }
}
