:root {
  --gold: #d4af37;
  --dark-bg: #121212;
  --light-text: #f8f9fa;
}

::-webkit-scrollbar{
background: var(--dark-bg);
width: 10px;
}
::-webkit-scrollbar-thumb{
border-radius: 10px;
background: var(--gold);
}

html, body {
  width: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal overflow on mobile */
}

/* Navbar */
.navbar {
  transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9) !important;
  padding: 8px 0;
}

.navbar-brand {
  font-weight: bold;
  color: var(--gold) !important;
}

.navbar-nav .nav-link {
  color: var(--light-text);
  transition: color 0.3s;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--gold) !important;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
              url('../img/sesame13.jpeg') center/cover no-repeat;
  color: var(--light-text);
  min-height: 100svh; /* mobile viewport height fix */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; /* contain rotating image to prevent overflow */
}

/* Enable parallax only on larger screens for performance */
@media (min-width: 992px) {
  .hero {
    background-attachment: fixed;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s ease-out;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  color: var(--gold);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.lead {
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.25rem);
  opacity: 0.9;
}

.hero-logo {
  width: min(75%, 380px);
  max-width: 100%;
}
/* Hero image */

.hero-img {
  width: min(85%, 500px);
  max-width: 100%;
  animation: rotate 15s linear infinite;
  will-change: transform;
}

/* Rotation keyframes */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section headings */
section h2 {
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ===== Menu Tabs: Updated with single-line scroll & fade edges ===== */
.menu-section {
  position: relative;
  --menu-tabs-bg: var(--dark-bg);
}

.menu-section .nav-tabs {
  display: flex;
  flex-wrap: nowrap !important;             /* Force single line */
  /* gap: 0.2rem; */
  border-color: var(--gold);
  overflow-x: auto;              /* Horizontal scroll on small screens */
  overflow-y: hidden;
  white-space: nowrap;
  justify-content: flex-start;   /* Left align for scroll */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;         /* Hide scrollbar in Firefox */
  background: var(--menu-tabs-bg);
}

.menu-section .nav-tabs::-webkit-scrollbar {
  display: none; /* Hide scrollbar in WebKit */
}

.menu-section .nav-tabs .nav-item {
  flex: 0 0 auto; /* Prevent shrinking */
}

.menu-section .nav-tabs .nav-link {
  color: var(--gold);
  border: 1px solid var(--gold);
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.menu-section .nav-tabs .nav-link.active {
  background-color: var(--gold);
  color: #000;
  font-weight: bold;
}

.menu-image {
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  max-width: 600px; /* keeps it elegant on large screens */
  width: 100%;
  height: auto;

}

/* Menu Frames */
.menu-frame {
  width: 100%;
  min-height: 600px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: #fff;
}


/* Fade overlays */
.menu-section::before,
.menu-section::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 30px;
  pointer-events: none;
  z-index: 2;
}

.menu-section::before {
  left: 0;
  background: linear-gradient(to right, var(--menu-tabs-bg), transparent);
}

.menu-section::after {
  right: 0;
  background: linear-gradient(to left, var(--menu-tabs-bg), transparent);
}

/* Menu items */
.menu-item { gap: 1rem; }
.menu-item .w-100 { min-width: 0; } /* allow text to wrap inside flex to avoid overflow */

.menu-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

@media (min-width: 768px) {
  .menu-img {
    width: 50%;
    height: auto;
  }
}

/* Gallery */
.gallery-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Contact links */
#contact h5 {
  color: var(--gold);
}
#contact a {
  color: var(--gold);
  text-decoration: none;
}
#contact a:hover {
  color: var(--dark-bg);
}

/* Contact hours styling */
.hours-list li + li {
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
}
.hours-list li span:last-child {
  color: var(--gold);
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #000;
  color: var(--light-text);
  padding: 20px 0;
  border-top: 1px solid var(--gold);
}

/* Small tweaks for ultra-small screens */
@media (max-width: 360px) {
  .navbar-brand { font-size: 1rem; }
}