/* === Base & Utilities === */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #0a1628;
}

/* === Scroll Animations === */
.reveal-up,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  transform: translateX(-30px);
}

.reveal-up.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* === Navbar === */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* === Mobile Menu === */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

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

#menu-btn.active .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: translateX(0.25rem);
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* === Marquee === */
.marquee-track {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Scroll Indicator === */
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

.animate-scroll-line {
  animation: scroll-line 1.5s ease-in-out infinite;
}

/* === Menu Cards === */
.menu-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card:hover {
  transform: translateY(-4px);
}

/* === Button Hover Effects === */
a {
  transition: all 0.3s ease;
}

/* === Form Styles === */
input::placeholder,
textarea::placeholder {
  color: rgba(141, 164, 207, 0.6);
}

input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.05);
}

/* === Responsive tweaks === */
@media (max-width: 768px) {
  .reveal-up,
  .reveal-right {
    transform: translateY(20px);
  }
}

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

/* === Smooth image loading === */
img {
  loading: lazy;
}
