/* ========== BASE ========== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* ========== NAV LINKS ========== */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
}

/* ========== FORM ========== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: white;
  color: #1f2937;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ========== HEADER SCROLLED ========== */
#header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
  background-color: rgba(255, 255, 255, 0.98);
}

/* ========== BACK TO TOP ========== */
#back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ========== IMAGES ========== */
img {
  max-width: 100%;
  height: auto;
}
