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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== NAVBAR SCROLL SHADOW ========== */
#navbar.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ========== NAV LINK ACTIVE INDICATOR ========== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #7EC8E3;
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

/* ========== MOBILE MENU ANIMATION ========== */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.open {
  display: block;
  max-height: 400px;
}

/* ========== FORM FOCUS STYLES ========== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(168, 216, 234, 0.3);
}

/* ========== BUTTON PRESS EFFECT ========== */
button[type="submit"]:active {
  transform: translateY(0) !important;
}

/* ========== LOADING SPINNER FOR FORM ========== */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid rgba(26, 26, 26, 0.2);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== PLACEHOLDER IMAGE HOVER ========== */
[class*="border-dashed"]:hover {
  border-color: #7EC8E3;
  background-color: rgba(168, 216, 234, 0.1);
}

/* ========== SECTION FADE-IN (optional enhancement) ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
