/* Custom styles for Noda Treehouse */

html {
  scroll-behavior: smooth;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Mobile menu transitions */
.mobile-menu-open #mobileMenu {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-menu-open #menuIcon {
  d: path("M6 18L18 6M6 6l12 12");
}

/* Scroll reveal animations — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Image hover effects */
img {
  -webkit-user-drag: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection color */
::selection {
  background: #ccfbf1;
  color: #134e4a;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Print styles */
@media print {
  nav, #contact, footer {
    display: none;
  }

  body {
    color: #0f172a;
  }
}
