/* ============================================================
   GLOBAL STYLES — Dr. Vaibhav Shah Clinic
   ============================================================ */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.35s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 1200px;
  opacity: 1;
}

/* Navbar scroll shadow */
#topbar.scrolled {
  box-shadow: 0 4px 24px rgba(8,41,28,0.12);
}

/* Underline hover animation for nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1b8453;
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Social icon hover */
.social-icon {
  transition: transform 0.2s ease, background 0.2s ease;
}
.social-icon:hover {
  transform: translateY(-3px);
}

/* Results gallery */
.section-heading h2 {
  letter-spacing: -0.02em;
}

.gallery-card img {
  aspect-ratio: 4 / 3;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox figure {
  pointer-events: none;
}

.gallery-lightbox .gallery-lightbox-close {
  pointer-events: auto;
}

@media (max-width: 640px) {
  .gallery-card img {
    height: 14rem;
  }
}
