/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #0a0f1e;
  color: #e5e7eb;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0f1e;
}
::-webkit-scrollbar-thumb {
  background: #162040;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c9a84c;
}

/* Scroll Indicator Animation */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.8s ease-in-out infinite;
}

/* Reveal Animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* Mobile menu transitions */
#mobile-menu {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  transform: translateX(0);
}

/* Mobile menu link hover */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a84c;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* Navbar glass effect */
#navbar.scrolled {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

/* Form focus styles */
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* Image aspect ratios */
img {
  max-width: 100%;
  height: auto;
}

/* Link reset */
a {
  text-decoration: none;
}
</style>
