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

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

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

.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .reveal.visible[data-reveal] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll effect */
.navbar-scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Custom selection color */
::selection {
  background-color: #df4f1f;
  color: white;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
  padding: 1rem 0;
}

/* Subtle hover underline for links */
a:not(.bg-terracotta-500):not(.bg-white\\/10) {
  position: relative;
}

/* Form styles for potential future use */
input, textarea {
  font-family: inherit;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #df4f1f;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print styles */
@media print {
  #navbar, #mobile-menu-btn, .reveal[data-reveal] {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
