/* Custom styles — minimal, only where Tailwind isn't enough */

html {
  scroll-behavior: smooth;
}

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

/* Subtle line decorations */
h1, h2, h3 {
  letter-spacing: -0.01em;
}

/* Nav link hover underline animation */
nav a {
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Form input focus ring */
input:focus, textarea:focus {
  outline: none;
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

/* Selection color */
::selection {
  background: rgba(16, 185, 129, 0.2);
  color: #064E3B;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #065F46;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* Mobile menu transition */
#mobile-menu {
  animation: fadeIn 0.3s ease forwards;
}

#mobile-menu.hidden {
  animation: fadeOut 0.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Mobile links */
.mobile-link {
  position: relative;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #059669;
}

/* Button ripple effect on hover */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* Ensure all anchor tags don't have underline by default */
a.no-underline {
  text-decoration: none;
}

/* Floating stat cards subtle animation */
.bg-white\/10, .bg-white\/5 {
  animation: float 6s ease-in-out infinite;
}

.bg-white\/5 {
  animation-delay: 1s;
}

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