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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f7f7f8;
}
::-webkit-scrollbar-thumb {
  background: #d8d9de;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b4b7c0;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 245, 240, 0.97) !important;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu open state */
#mobileMenu.open {
  max-height: 400px;
}

/* Mobile menu button active state */
#menuBtn.active .menu-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .menu-bar:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-bar:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal base - always visible by default for progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal animation - only when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Floating animation for hero accent card */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Active nav link highlighting */
.nav-link.active {
  color: #f06030 !important;
}

/* Selection color */
::selection {
  background: #ffd0b2;
  color: #2a2c34;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f06030;
  outline-offset: 2px;
}
