html {
  scroll-behavior: smooth;
}

/* Loader */
/* Loader full-screen overlay */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Hide loader with smooth transition */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Spinner container */
.spinner {
  text-align: center;
}

/* Logo inside spinner */
.spinner img {
  width: 120px;
  animation: pulseLogo 1.5s infinite ease-in-out;
}

/* Animated bouncing dot */
.spinner .bounce {
  width: 20px;
  height: 20px;
  background-color: #000;
  border-radius: 50%;
  margin: 20px auto 0;
  animation: bounce 0.6s infinite alternate;
}

/* Pulse logo */
@keyframes pulseLogo {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Bounce effect */
@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 100px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #0b090a;
  color: white;
}

/* HEADER */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  height: 50px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-right: 20px;
  font-size: 1em;
  text-shadow: 1px 1px 4px black;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #ffcc00;
}

.header-right a {
  color: white;
  font-size: 1.2em;
  margin-left: 15px;
  transition: color 0.3s;
}

.header-right a:hover {
  color: #ffcc00;
}

.scrolled .main-header {
  background-color: rgb(20, 15, 11);
}

/* Hero */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-text-block {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: black;
  color: #d1b46f;
  padding: 40px;
  max-width: 550px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  z-index: 2;
}

.hero-cta-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 28px;
  background-color: #d1b46f;
  color: black;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-cta-button:hover {
  background-color: white;
  color: black;
}

.hero-text-block h1 {
  font-size: 3.5em;
  line-height: 1.1;
}

.hero-text-block h1 span {
  display: block;
  font-weight: bold;
  color: #d1b46f;
}

.hero-text-block p {
  margin-top: 20px;
  font-size: 1.1em;
  color: white;
}

/* GENERAL SECTIONS */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
}

/* MENU SECTION */
.menu-item {
  cursor: pointer;
}

#menu {
  background-color: black;
  color: white;
  padding: 80px 60px;
  position: relative; /* Needed for .menu-hover-bg */
}

.menu-container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-categories ul {
  list-style: none;
}

.menu-categories li {
  font-size: 1.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.menu-categories li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #d1b46f;
  transition: width 0.3s ease;
}

.menu-categories li:hover::after,
.menu-categories li.active::after {
  width: 100%;
}

.menu-categories li.active {
  color: #d1b46f;
}

.menu-items {
  flex-grow: 1;
  position: relative;
  z-index: 2;
}
.menu-title-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  margin-bottom: 0.5rem;
}

.menu-title-line h3 {
  margin: 0;
  font-size: 1.3em;
  position: relative;
  color: white;
  transition: color 0.3s ease;
}

.menu-title-line .menu-price {
  font-weight: 600;
  color: #d1b46f;
  white-space: nowrap;
  font-size: 1.2em;
  position: relative;
  transition: color 0.3s ease;
}

/* Dotted line appears below both title and price */
.menu-title-line::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    transparent 20%,
    #999 20%,
    #999 40%,
    transparent 40%
  );
  background-size: 10px 1px;
  background-repeat: repeat-x;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.menu-item:hover .menu-title-line::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Hover effect: white title and price */
.menu-item:hover h3,
.menu-item:hover .menu-price {
  color: white;
}

.menu-category-content {
  display: none;
}

.menu-category-content.active {
  display: block;
}

.menu-category-content h3 {
  font-size: 1.5em;
  margin-top: 20px;
  color: #d1b46f;
}

.menu-category-content p {
  margin-bottom: 20px;
}

.menu-item {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  transition: color 0.3s ease;
}

.menu-item:hover {
  color: white;
}

/* Hover Background */
.menu-hover-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 0;
  pointer-events: none;
}

/* Gallery */
#gallery {
  padding: 40px 0;
  text-align: center;
}

.gallery-wrapper {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}

.gallery-track-container {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-track img {
  width: calc(100% / 3);
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
}

.gallery-track:hover img {
  transform: scale(0.9);
  filter: brightness(0.7);
}

.gallery-track img:hover {
  transform: scale(1.1);
  filter: brightness(1);
  z-index: 1;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 2;
}

.gallery-btn.prev {
  left: 0;
}

.gallery-btn.next {
  right: 0;
}

/* EVENTS SECTION */
#events {
  background-color: #111;
  color: white;
  padding: 80px 60px;
  text-align: center;
}

.events-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 10px;
  color: #d1b46f;
}

.section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #ccc;
}

.event-cards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.event-card {
  background-color: #1b1b1b;
  border: 1px solid #333;
  padding: 25px 20px;
  width: 300px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.event-card h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
}

.event-date {
  font-weight: bold;
  color: #d1b46f;
  margin-bottom: 8px;
}

.event-description {
  font-size: 1rem;
  color: #ccc;
}

/* CONTACT */
#contact p {
  text-align: center;
  margin-bottom: 10px;
}

.map iframe {
  border: 0;
  width: 100%;
  height: 300px;
}

/* FOOTER */
footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Image Modal */
.img-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.img-modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border: 4px solid white;
}

.img-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.fancy-heading,
#about h2,
#gallery h2,
#contact h2,
#menu h2,
#events h2,
.section-heading h2 {
  font-family: "Fleur De Leah", cursive;
  font-size: 3em;
  color: #d1b46f;
  text-align: center;
  margin-bottom: 30px;
}

/* Override global section styles for hero */
#hero {
  padding: 0;
  max-width: 100%;
  margin: 0;
}

/* Popup card */
.popup-card {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1b1b1b;
  border-radius: 15px;
  padding: 30px 25px;
  width: 90%;
  max-width: 500px;
  z-index: 3000;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  text-align: left;
}

/* Button style */
.btn-gold {
  background-color: #d1b46f;
  color: black;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-gold:hover {
  background-color: #e1c97f;
}

/* Close button */
.close-btn {
  margin-top: 20px;
  background-color: transparent;
  color: #d1b46f;
  border: 1px solid #d1b46f;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

.close-btn:hover {
  background-color: #d1b46f;
  color: black;
}
