/* ============================================
   Las Pupusas & Antojitos — Custom Styles
   ============================================ */

/* ---- Base Reset & Typography ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ---- Selection Color ---- */
::selection {
  background: #C0593E;
  color: #FDF8F0;
}

/* ---- Navbar ---- */
#navbar {
  background: rgba(253, 248, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192, 89, 62, 0.08);
  transition: all duration-500;
}

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  box-shadow: 0 4px 30px rgba(46, 23, 15, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* ---- Burger Menu ---- */
#mobile-menu.open {
  transform: translateX(0);
}

#mobile-menu:not(.open) {
  transform: translateX(100%);
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* ---- Hero Circles ---- */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(237, 196, 148, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}

.circle-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(192, 89, 62, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: 5%;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.circle-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(213, 144, 74, 0.2) 0%, transparent 70%);
  top: 30%;
  left: 40%;
  animation: float-slow 6s ease-in-out infinite;
}

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

.geo-1 {
  width: 80px;
  height: 80px;
  background: #C0593E;
  border-radius: 16px;
  top: 20%;
  left: 45%;
  opacity: 0.08;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.geo-2 {
  width: 50px;
  height: 50px;
  background: #D9904A;
  border-radius: 12px;
  bottom: 25%;
  left: 10%;
  opacity: 0.12;
  transform: rotate(30deg);
  animation: spin-slow 15s linear infinite reverse;
}

.geo-3 {
  width: 100px;
  height: 100px;
  border: 3px solid #C0593E;
  border-radius: 20px;
  top: 15%;
  right: 5%;
  opacity: 0.06;
  transform: rotate(20deg);
  animation: spin-slow 25s linear infinite;
}

/* ---- Hero Lines ---- */
.hero-line {
  position: absolute;
  pointer-events: none;
}

.line-1 {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C0593E, transparent);
  top: 45%;
  right: 0;
  opacity: 0.1;
}

.line-2 {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D9904A, transparent);
  bottom: 35%;
  left: 0;
  opacity: 0.1;
}

/* ---- Floating Card ---- */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

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

.marquee-track:hover {
  animation-play-state: paused;
}

/* ---- Menu Cards ---- */
.menu-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(46, 23, 15, 0.12);
}

/* ---- About Section Circles ---- */
.about-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.circle-a {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 248, 240, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float-slow 12s ease-in-out infinite;
}

.circle-b {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(213, 144, 74, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  animation: float-slow 8s ease-in-out infinite reverse;
}

.about-geo {
  position: absolute;
  pointer-events: none;
}

.geo-a {
  width: 120px;
  height: 120px;
  border: 3px solid rgba(253, 248, 240, 0.1);
  border-radius: 24px;
  top: 20%;
  left: 5%;
  transform: rotate(45deg);
  animation: spin-slow 30s linear infinite;
}

/* ---- Gallery ---- */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46, 23, 15, 0);
  transition: background 0.3s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  background: rgba(46, 23, 15, 0.1);
}

.gallery-item img {
  transition: transform 0.7s ease;
}

/* ---- CTA Section Circles ---- */
.cta-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.circle-c {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253, 248, 240, 0.06) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: float-slow 14s ease-in-out infinite;
}

.circle-d {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(213, 144, 74, 0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.cta-geo {
  position: absolute;
  pointer-events: none;
}

.geo-b {
  width: 80px;
  height: 80px;
  background: rgba(253, 248, 240, 0.06);
  border-radius: 16px;
  top: 30%;
  right: 15%;
  transform: rotate(30deg);
  animation: spin-slow 20s linear infinite;
}

.geo-c {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(253, 248, 240, 0.08);
  border-radius: 12px;
  bottom: 25%;
  left: 10%;
  transform: rotate(45deg);
  animation: spin-slow 18s linear infinite reverse;
}

/* ---- Animations ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.02); }
  66% { transform: translate(-10px, 15px) scale(0.98); }
}

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

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-circle { display: none; }
  .hero-geo { display: none; }
  .hero-line { display: none; }
  .floating-card { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-circle.circle-3 { display: none; }
}
