/* Hero Section - Mobile First */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Dark base before parallax loads */
  background-color: var(--bg-dark);
}

.hero-bg-parallax {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  /* Blend the artistic Crispy Red with a high-quality food photo */
  background: linear-gradient(135deg, rgba(200, 35, 39, 0.85) 0%, rgba(13, 13, 13, 0.95) 100%), url('../menu items/وجبات/بروستد.jpg') center/cover no-repeat;
  z-index: 0;
  will-change: transform;
}

/* Subtle texture on the red background */
.hero-bg-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,13,0) 0%, rgba(13,13,13,0.4) 70%, var(--bg-dark) 100%);
  z-index: 1;
}

/* Floating Particles Container */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  background-color: var(--golden-fry);
  border-radius: 50%;
  filter: blur(1px);
  box-shadow: 0 0 10px var(--golden-fry), 0 0 20px var(--crispy-red);
  opacity: 0;
  will-change: transform, opacity;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  width: 100%;
}

.hero-logo-container {
  margin-bottom: 3rem;
  opacity: 0;
  transform: scale(0.8) translateY(30px);
}

.main-logo {
  width: 550px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  /* Removed drop-shadow as it can cause bounding-box artifacts on SVGs */
}

@media (min-width: 768px) {
  .main-logo {
    width: 850px;
  }
}

.hero-subtitle {
  font-family: 'Tajawal', sans-serif;
  font-size: 2rem;
  color: var(--golden-fry);
  margin-bottom: 4rem;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 3.5rem;
    gap: 12px;
    letter-spacing: 1px;
  }
}

.word-mask {
  overflow: hidden;
  display: inline-block;
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-cta {
  opacity: 0;
  transform: translateY(30px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--pure-white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  opacity: 0.5;
}

/* Mobile-First Navigation */
.main-nav {
  position: sticky;
  top: 0;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

/* Horizontal scrollable nav for mobile */
.nav-scroll-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.nav-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-links {
  display: flex;
  gap: 10px;
  padding: 5px 15px;
  width: max-content;
}

.nav-link {
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--pure-white);
  background: rgba(255,255,255,0.1);
}

.nav-link.active {
  color: var(--bg-dark);
  background: var(--golden-fry);
  box-shadow: 0 2px 10px rgba(243, 201, 63, 0.3);
}

.nav-ar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--bg-dark);
  background: linear-gradient(135deg, var(--crispy-red), var(--golden-fry));
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 15px var(--glow-red);
  margin-left: 10px;
}

.nav-ar-btn span {
  display: none;
}

/* Desktop overrides for navigation */
@media (min-width: 768px) {
  .main-nav {
    padding: 0;
    height: var(--nav-height);
  }
  
  .nav-scroll-wrapper {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  
  .nav-links {
    gap: 2rem;
    padding: 0;
  }
  
  .nav-link {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    background: transparent;
    padding: 5px 0;
    border-radius: 0;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--golden-fry);
    transition: var(--transition-normal);
  }

  .nav-link:hover {
    background: transparent;
  }
  
  .nav-link.active {
    color: var(--pure-white);
    background: transparent;
    box-shadow: none;
  }
  
  .nav-link.active::after {
    width: 100%;
  }
  
  .nav-ar-btn {
    width: auto;
    height: auto;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
  }
  
  .nav-ar-btn span {
    display: inline;
  }
}
