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

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

/* Floating stat cards */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

.stat-card {
  animation: float-slow 4s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation: float-medium 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
  animation: float-slow 4.5s ease-in-out infinite;
  animation-delay: 1s;
}

/* Service cards */
.service-card {
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: rgba(13, 148, 136, 0.15);
  transform: translateY(-4px);
}

/* Area cards */
.area-card {
  border: 1px solid rgba(255,255,255,0.08);
}

/* Testimonial cards */
.testimonial-card {
  border: 1px solid rgba(255,255,255,0.1);
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header scroll state */
header.scrolled {
  background: rgba(4, 47, 46, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Nav link hover underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255,255,255,0.6);
  transition: width 0.2s ease;
  border-radius: 1px;
}

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

/* Focus visible */
*:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: #134e4a;
}
