*, *::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;
}

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

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(17, 12, 10, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 149, 108, 0.1);
}

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

#line1.open {
  transform: translateY(4px) rotate(45deg);
}

#line2.open {
  opacity: 0;
}

#line3.open {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.5rem;
}

/* Custom selection */
::selection {
  background: rgba(200, 149, 108, 0.3);
  color: #f0e0cc;
}

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

::-webkit-scrollbar-track {
  background: #110c0a;
}

::-webkit-scrollbar-thumb {
  background: rgba(200, 149, 108, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 149, 108, 0.5);
}

/* Input autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1a1210 inset !important;
  -webkit-text-fill-color: #f0e0cc !important;
  caret-color: #f0e0cc;
}
