/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

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

/* ===== MOBILE MENU ===== */
.mobile-nav-link { display: block; }

/* ===== REVEAL ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== FORM FOCUS ===== */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f2faf5; }
::-webkit-scrollbar-thumb { background: #a8e6cf; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6fd1ab; }

/* ===== SELECTION ===== */
::selection { background: #a8e6cf; color: #0A2342; }

/* ===== BACK TO TOP ===== */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== CARDS HOVER ===== */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* ===== PRINT ===== */
@media print {
  #navbar, #back-to-top { display: none !important; }
  body { color: #000; background: #fff; }
  section { page-break-inside: avoid; }
}
