/* ===== Base & Typography ===== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #c9a84c;
  color: #1a2744;
}

/* ===== Reveal Animations ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  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-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navbar ===== */
#navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.06);
}

#navbar.scrolled {
  box-shadow: 0 1px 30px rgba(26, 39, 68, 0.06);
}

.nav-logo-text {
  transition: color 0.3s ease;
}

.nav-link {
  position: relative;
}

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

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

/* ===== Mobile Menu ===== */
.mobile-menu-line {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu.open .mobile-menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

#mobile-menu.open .mobile-menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu.open .mobile-menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(3px, -3px);
}

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

.mobile-menu-link {
  position: relative;
}

.mobile-menu-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #c9a84c;
  transition: width 0.3s ease;
}

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

/* ===== Image Hover Effects ===== */
img {
  will-change: transform;
}

/* ===== Form Styles ===== */
input:focus,
textarea:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* ===== Subtle Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 3px;
}

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

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }

  #hero h1 {
    font-size: 2.75rem;
  }

  #hero h1 br {
    display: none;
  }

  .absolute.-bottom-6.-left-6 {
    display: none;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.25rem;
  }
}

/* ===== Focus Visible ===== */
*:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
  #navbar,
  #mobile-menu-btn,
  .animate-pulse {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
