/* ============================================
   DR. NIHAL AFFAN - SHARED STYLES & ANIMATIONS
   ============================================ */

/* REVEAL CLASSES - set by JS on scroll */
.reveal {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.reveal-up    { transform: translate3d(0, 30px, 0); }
.reveal.reveal-left  { transform: translate3d(-30px, 0, 0); }
.reveal.reveal-right { transform: translate3d(30px, 0, 0); }
.reveal.reveal-scale { transform: scale3d(0.95, 0.95, 1); }
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* STAGGER DELAYS */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* ============================================
   ACTIVE NAV LINK
   ============================================ */
.nav-links a.nav-active {
  background: linear-gradient(135deg, #40070D, #4D0C0C);
  color: #FDF7F8 !important;
  padding: 6px 10px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(64, 7, 13, 0.5);
}
.nav-links a.btn-location:not(.nav-active) {
  background: none;
  box-shadow: none;
  padding: 0;
}
.nav-links a.btn-location.nav-active {
  background: linear-gradient(135deg, #40070D, #4D0C0C);
  padding: 6px 10px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(64, 7, 13, 0.5);
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body {
  animation: fadeIn 0.25s ease forwards;
}

/* PERFORMANCE: offscreen cards */
.treatment-card,
.gallery-item,
.clinic-card {
  contain: layout style paint;
}

/* ============================================
   IMAGE HOVER ZOOM (lightweight - no will-change)
   ============================================ */
.gallery-item img,
.clinic-image img {
  transition: transform 0.15s ease-out;
}
.gallery-item:hover img,
.clinic-card:hover .clinic-image img {
  transform: scale(1.05);
}

/* ============================================
   CARD HOVER LIFT (simple, no will-change)
   ============================================ */
.treatment-card {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.07);
}

.clinic-card {
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.clinic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}

/* ============================================
   FLOATING BOOK BTN
   ============================================ */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 25px rgba(64, 7, 13, 0.45); }
  50%       { box-shadow: 0 12px 35px rgba(64, 7, 13, 0.7); }
}
.book-btn {
  animation: pulse-glow 3s ease-in-out infinite;
}
.book-btn:hover {
  animation: none;
}

/* ============================================
   STAT HOVER GRADIENT TEXT
   ============================================ */
.stat-card:hover h3,
.reach-stat-item:hover h3 {
  background: linear-gradient(135deg, #4D0C0C, #40070D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SOCIAL LINK HOVER
   ============================================ */
.social-item {
  transition: transform 0.25s ease;
}
.social-item:hover {
  transform: translateY(-3px);
}

/* ============================================
   BUTTON SHINE ON HOVER
   ============================================ */
.submit-btn, .book-this-btn {
  position: relative;
  overflow: hidden;
}
.submit-btn::after, .book-this-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.submit-btn:hover::after, .book-this-btn:hover::after {
  left: 150%;
}

/* ============================================
   BRAND / FOOTER / NAV HOVER
   ============================================ */
.brand-name {
  transition: opacity 0.3s ease;
}
.brand-name:hover {
  opacity: 0.7;
}

.footer-col ul li {
  transition: transform 0.2s ease;
  cursor: default;
}
.footer-col ul li:hover {
  transform: translateX(4px);
}

.nav-links a:not(.nav-active):not(.btn-location) {
  position: relative;
}
.nav-links a:not(.nav-active):not(.btn-location)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #40070D;
  transition: width 0.3s ease;
}
.nav-links a:not(.nav-active):not(.btn-location):hover::after {
  width: 100%;
}

/* ============================================
   GALLERY ITEM OVERLAY
   ============================================ */
.gallery-item {
  position: relative;
}
.gallery-item::after {
  content: 'VIEW';
  position: absolute;
  inset: 0;
  background: rgba(60, 30, 10, 0);
  color: rgba(255,255,255,0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  transition: background 0.3s ease, color 0.3s ease;
}
.gallery-item:hover::after {
  background: rgba(60, 30, 10, 0.22);
  color: rgba(255,255,255,0.9);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #40070D, #4D0C0C);
  border: none;
  border-radius: 50%;
  color: #FDF7F8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 999;
  font-size: 16px;
}
#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
}
#scrollTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

/* ============================================
   IMAGE FADE-IN ON LOAD (CSS only - no shimmer)
   ============================================ */
img.img-loading {
  opacity: 0;
  transition: opacity 0.1s ease-out;
}
img.img-loaded {
  opacity: 1;
}

.social-link,
.social-link:visited,
.social-link:hover,
.social-link:active,
.social-link:focus {
    color: inherit;
    text-decoration: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
