/* ============================================
   Awesome Cafe — Custom Styles
   ============================================ */

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

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

body {
  margin: 0;
  background-color: #0a1128;
}

/* ---- Geometric Hero Shapes ---- */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.shape-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, #d4a017 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, #f0c040 0%, transparent 70%);
  bottom: -5%;
  left: -5%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
  width: 200px;
  height: 200px;
  background: #d4a017;
  top: 20%;
  left: 8%;
  transform: rotate(45deg);
  animation: spin-slow 30s linear infinite;
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid #f0c040;
  top: 60%;
  right: 10%;
  opacity: 0.05;
  animation: float-slow 18s ease-in-out infinite;
}

.shape-ring-1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 3px solid #d4a017;
  top: 15%;
  left: 15%;
  opacity: 0.06;
  animation: spin-slow 25s linear infinite reverse;
}

.shape-dots {
  background-image: radial-gradient(circle, #d4a017 1px, transparent 1px);
  background-size: 30px 30px;
  width: 300px;
  height: 300px;
  bottom: 20%;
  right: 20%;
  opacity: 0.1;
}

/* ---- Animations ---- */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: always visible if JS is disabled or prefers-reduced-motion */
@media not all and (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

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

.mobile-link {
  transition: opacity 0.2s ease;
}

/* ---- Nav Scroll State ---- */
nav.scrolled {
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1128;
}
::-webkit-scrollbar-thumb {
  background: #2e4478;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4a017;
}

/* ---- Selection ---- */
::selection {
  background: #d4a017;
  color: #0a1128;
}

/* ---- Image hover container ---- */
.rounded-2xl.overflow-hidden,
.rounded-3xl.overflow-hidden {
  will-change: transform;
}
