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

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(92, 236, 208, 0.3);
  color: #0a1628;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f0fdf9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #5cecd0, #0d9680);
  border-radius: 3px;
}

/* Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="100ms"] {
  transition-delay: 100ms;
}

.reveal[data-reveal-delay="200ms"] {
  transition-delay: 200ms;
}

.reveal[data-reveal-delay="300ms"] {
  transition-delay: 300ms;
}

/* Hero Decorations Animation */
.hero-decoration {
  animation: float 6s ease-in-out infinite;
}

.hero-decoration:nth-child(2) {
  animation-delay: -1s;
  animation-duration: 8s;
}

.hero-decoration:nth-child(3) {
  animation-delay: -2s;
  animation-duration: 5s;
}

.hero-decoration:nth-child(4) {
  animation-delay: -3s;
  animation-duration: 7s;
}

.hero-decoration:nth-child(5) {
  animation-delay: -1.5s;
  animation-duration: 6s;
}

.hero-decoration:nth-child(6) {
  animation-delay: -4s;
  animation-duration: 9s;
}

.hero-decoration:nth-child(7) {
  animation-delay: -0.5s;
  animation-duration: 10s;
}

.hero-decoration:nth-child(8) {
  animation-delay: -2.5s;
  animation-duration: 8s;
}

.hero-decoration:nth-child(9) {
  animation-delay: -3.5s;
  animation-duration: 7s;
}

.hero-decoration:nth-child(10) {
  animation-delay: -1.5s;
  animation-duration: 9s;
}

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

/* Nav active state */
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.navbar-scrolled .nav-text-color {
  color: #0a1628;
}

.navbar-scrolled .nav-text-muted {
  color: #1a3a5c;
}

.navbar-scrolled .nav-border-color {
  border-color: rgba(10, 22, 40, 0.15);
}

.navbar-scrolled .nav-icon-color {
  color: #0a1628;
}

/* Mobile nav links */
.mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

/* Service card hover effects */
.group:hover .group-hover\:bg-mint-100 {
  background-color: #ccfbef;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
