/* ─── Base & Utilities ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

::selection {
  background: #0d9488;
  color: white;
}

/* ─── Header scroll state ─── */
header.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ─── Mobile menu link hover ─── */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.2s ease;
}

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

/* ─── Scroll animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s 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; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.delay-6 { transition-delay: 0.6s; }

/* ─── Staggered card animations ─── */
.service-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Image hover zoom ─── */
.group img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover img {
  transform: scale(1.05);
}

/* ─── Input focus ring animation ─── */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* ─── Hero floating card animation ─── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* ─── Responsive tweaks ─── */
@media (max-width: 767px) {
  .float-anim {
    display: none;
  }
}
