/* ===== CUSTOM STYLES ===== */

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

/* Selection color */
::selection {
  background-color: rgba(36, 165, 104, 0.3);
  color: #0f2d57;
}

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

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal[data-revealed="true"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* ===== IMAGE PLACEHOLDER FALLBACK ===== */
img {
  background: linear-gradient(135deg, #e8f5ee 0%, #d4e9dc 100%);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
  .font-display {
    word-break: keep-all;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  #navbar,
  #mobileMenu,
  .reveal {
    display: none !important;
  }
}
