/* Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
  }
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

nav.scrolled .navbar-logo {
  color: #2f5026;
}

/* Smooth image loading */
img {
  background-color: #e3eddd;
  transition: opacity 0.3s ease;
}

img.loaded {
  opacity: 1;
}

img:not(.loaded) {
  opacity: 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #73a05e;
}

/* Selection color */
::selection {
  background: #c6dbb8;
  color: #1f341a;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #73a05e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Animation keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

.floating-delay {
  animation: float 4s ease-in-out 2s infinite;
}

/* Print styles */
@media print {
  nav, .scroll-indicator, #experience {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .bg-forest-900, .bg-forest-700 {
    background: #2f5026 !important;
    color: #fff !important;
  }
}
