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

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

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #C8A45C;
  color: #0F1A2E;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(15, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 164, 92, 0.1);
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

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

#mobile-menu.open #bar1 {
  transform: translateY(5px) rotate(45deg);
}

#mobile-menu.open #bar2 {
  opacity: 0;
}

#mobile-menu.open #bar3 {
  transform: translateY(-5px) rotate(-45deg);
  width: 1.5rem;
}

/* Smooth focus outlines */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* Custom select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C8A45C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

/* Subtle image hover */
img {
  display: block;
  max-width: 100%;
}

/* Thin line accents */
.line-accent {
  width: 48px;
  height: 1px;
  background: #C8A45C;
}
