/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Nunito', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* ===== NAVBAR ===== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E0504B;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ===== MOBILE MENU ===== */
.menu-line { transition: all 0.3s ease; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { width: 5px; margin-left: 0; }
#mobileMenu.open { opacity: 1; pointer-events: all; }
.mobile-link { transition: all 0.2s ease; }

/* ===== SERVICE CARDS ===== */
.service-card { transform: translateY(0); }
.service-card:hover { transform: translateY(-4px); }

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .service-card:hover { transform: none; }
  .group:hover img { transform: none; }
}

/* ===== BACK TO TOP ===== */
#backToTop.visible { opacity: 1; pointer-events: all; }

/* ===== GALLERY HOVER ===== */
.group:hover img { transform: scale(1.05); }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f6f6f7; }
::-webkit-scrollbar-thumb { background: #c4c4cc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9595a2; }
