/* Alpine Base Area — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefcfb;
}
::-webkit-scrollbar-thumb {
  background: #b03030;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #942828;
}

/* Selection color */
::selection {
  background: #b03030;
  color: #fefcfb;
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
  img {
    transition: none;
  }
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.4s ease, pointer-events 0.4s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Navbar transition */
#navbar.scrolled {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Form focus styles */
input:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* Print styles */
@media print {
  nav, #mobile-menu, .reveal { display: none; }
  body { background: white; color: black; }
  a { color: black; }
}
