/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(13, 148, 136, 0.2);
  color: #0f766e;
}

/* ── Floating Stat Card Animations ── */
.stat-card {
  animation: floatIn 0.8s ease-out both;
  transform: translateY(20px);
}

.stat-card:nth-child(1) {
  animation-delay: 0.6s;
}

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

.stat-card:nth-child(3) {
  animation-delay: 1.0s;
}

@keyframes floatIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.stat-card:nth-child(1) {
  animation-delay: 0s;
}

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

.stat-card:nth-child(3) {
  animation-delay: 1s;
}

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

/* ── Navbar Scroll State ── */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.nav-scrolled #navbar .font-serif {
  color: #0f172a !important;
}

.nav-scrolled #navbar a.text-slate-600 {
  color: #475569 !important;
}

.nav-scrolled #navbar a.text-slate-600:hover {
  color: #0d9488 !important;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  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; }

/* ── Image Hover ── */
.group:hover .group-hover\:scale-110 {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ── Button Focus ── */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

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

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

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

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

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