*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Scroll reveal base — content always visible, animation applied via JS */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal:not(.revealed) {
  opacity: 1;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar styles */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 17, 25, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 164, 90, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c8a45a;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #c8a45a;
}

/* Mobile menu */
.mobile-link {
  position: relative;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c8a45a;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(200, 164, 90, 0.3);
  color: #f0f3f9;
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

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

::-webkit-scrollbar-track {
  background: #0a1119;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #c8a45a;
}
