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

/* ── Nav scroll state ── */
nav.scrolled {
  background: rgba(254, 253, 248, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(15, 43, 76, 0.06), 0 4px 20px rgba(15, 43, 76, 0.06);
}

/* ── Nav links hover underline ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2d6a7a, #a8e6cf);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ── Mobile link ── */
.mobile-link {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(15, 43, 76, 0.06);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* ── Animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-delay {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delay { animation: float-delay 5s ease-in-out infinite 1s; }
.animate-float-slow { animation: float-slow 6s ease-in-out infinite 2s; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }

/* ── Selection highlight ── */
::selection {
  background: rgba(168, 230, 207, 0.4);
  color: #0f2b4c;
}

/* ── Form styles ── */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(15, 43, 76, 0.1);
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #0f2b4c;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2d6a7a;
  box-shadow: 0 0 0 4px rgba(45, 106, 122, 0.1);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(15, 43, 76, 0.35);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Success message ── */
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}
.form-success.show {
  display: block;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .font-serif { line-height: 1.15; }
}
