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

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

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(184, 134, 11, 0.3);
  color: #f5c842;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0518;
}
::-webkit-scrollbar-thumb {
  background: #431a70;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b8860b;
}

/* === Animations === */
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.03); }
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

@keyframes bounce-slow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-delay 6s ease-in-out infinite;
  animation-delay: 1s;
}

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

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

/* === Scroll Reveal === */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(0);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    transition: none;
  }
  .animate-float,
  .animate-float-delay,
  .animate-scroll-dot,
  .animate-bounce-slow {
    animation: none;
  }
}

/* === Navbar === */
#navbar.scrolled {
  background: rgba(13, 5, 24, 0.92);
  backdrop-blur-xl;
  border-bottom: 1px solid rgba(184, 134, 11, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Mobile Menu === */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #f5c842, #b8860b);
  transition: width 0.3s ease;
}

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

/* === Gold shimmer on hover === */
.group:hover .group-hover\:scale-110 {
  transition: transform 0.3s ease;
}

/* === Menu card glow === */
.group:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(184, 134, 11, 0.05);
}

/* === Button hover glow === */
button[type="submit"]:hover {
  box-shadow: 0 20px 60px rgba(184, 134, 11, 0.2) !important;
}

/* === Image hover zoom === */
.group img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Focus styles === */
input:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* === Smooth anchor offset === */
section[id] {
  scroll-margin-top: 80px;
}

/* === Responsive adjustments === */
@media (max-width: 767px) {
  section[id] {
    scroll-margin-top: 70px;
  }

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

  #hero h1 br {
    display: none;
  }

  #hero h1 span:first-child {
    display: block;
  }
}

@media (min-width: 768px) {
  #hero h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  #hero h1 {
    font-size: 5rem;
  }
}
