/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(91, 181, 136, 0.3);
  color: #0D1B2A;
}

/* ── Nav ── */
#site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-blur-xl;
  border-bottom: 1px solid rgba(168, 230, 207, 0.3);
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(13, 27, 42, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5BB588;
  border-radius: 9999px;
  transition: width 0.25s ease;
}

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

.mobile-link {
  border-radius: 0.75rem;
}

/* ── Floating Cards ── */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── Service Cards ── */
.service-card {
  border: 1px solid rgba(168, 230, 207, 0.3);
}

.service-card:hover {
  border-color: rgba(91, 181, 136, 0.4);
  transform: translateY(-4px);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Back to Top ── */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Form Focus States ── */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* ── Mobile Menu Transition ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
