/* Custom styles for Wilson-Reese, Anjanette L */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base typography */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations — progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(20, 83, 45, 0.08);
}

.navbar-scrolled #navbar a:not(.px-6) {
  color: rgb(22, 101, 52) !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Selection color */
::selection {
  background-color: rgba(22, 101, 52, 0.2);
  color: #052e16;
}

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

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

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

/* Hero gradient animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Button hover lift */
button:hover,
a:hover {
  transition: all 0.3s ease;
}

/* Card hover effects */
.group:hover .group-hover\:bg-emerald-800 {
  transition: background-color 0.5s ease;
}

/* Print styles */
@media print {
  #navbar,
  #mobile-menu,
  .scroll-reveal {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
