* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #191917;
  color: white;
}

/* HERO SECTION WITH BACKGROUND */
.hero-section {
  /* background-image: url('images/bg1.png'); */
  /* background-size: cover; */
  /* background-position: center; */
  /* background: url("images/bg1.png") no-repeat right top; */
  background-size: 80% auto;
  height: auto;
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding-top: 0;
  margin-top: 0;
}

.hero-content {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 20px;
  padding-left: 50px;
  margin-top: 0;
}

/* Navbar */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar.transparent {
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(19, 19, 18, 0.7);
}

/* Logo */
.nav-logo img {
  height: 70px;
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background-color: #ff5e18;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #ffffff;
}

/* Right Side Button */
.nav-buttons {
  display: flex;
  align-items: center;
}

.profile-container {
  background-color: white;
  padding: 10px 20px;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* HERO CONTENT */
.hero-content {
  position: absolute;
  top: 60px;
  left: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 20px;
  padding-left: 50px;
}

#heroLogo {
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-origin: top center;
}

.hero-text {
  max-width: 800px;
  width: 100%;
  padding-left: 50px;
}

.hero-logo img {
  width: 800px;
  max-width: 100%;
  height: auto;
  margin-bottom: -20px;
}

#heroLogo {
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-origin: top center;
  z-index: 50;
  transition: transform 1s ease, opacity 1s ease;
}

.hero-logo.shrink {
  position: fixed;
  top: 1px;
  left: 20px;
  width: 200px; /* Final smaller width */
  z-index: 1000;
}

.hero-logo.shrink #heroLogo {
  transform: scale(1);
  opacity: 1;
}

.hero-logo-placeholder {
  height: 0;
  transition: height 0.5s ease;
}

.hero-logo.shrink + .hero-logo-placeholder {
  height: 500px; /* Adjust based on how much space the logo moves up */
}

.headline {
  font-family: "Fredoka", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.subtext {
  font-family: "Fredoka", sans-serif;
  font-size: 1 8px;
  font-weight: 400;
  color: #dcdcdc;
  line-height: 1.6;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.order-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-right: 130px;
  flex-wrap: wrap;
}

.doodle {
  width: 150px;
  height: auto;
  margin-top: 20px;
}

.order-btn {
  background-color: #ff6b00;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 30px;
  font-size: 22px;
  transition: background 0.3s ease;
}

.order-btn:hover {
  background-color: #e65c00;
}
/*=====CATEGORIESS====*/
.category-section {
  padding: 40px 20px;
  text-align: center;
}

.category-title {
  font-size: 30px;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  font-family: Arial, Helvetica, sans-serif;
}

.category-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
  margin-top: 30px;
}

.categorybox-item-section {
  background-color: #000;
  border: 2px solid #ff5b0f;
  border-radius: 12px;
  padding: 20px;
  width: 170px;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  flex-shrink: 0;
}
.categorybox-item-section:hover {
  cursor: pointer;
}

.categorybox-item-section img {
  height: 80px !important;
  margin-bottom: 15px;
  filter: brightness(0) saturate(100%) invert(51%) sepia(86%) saturate(743%)
    hue-rotate(358deg) brightness(103%) contrast(105%);
}
.categorybox-item-section img[alt="Burger"] {
  padding-top: 20px;
  padding-bottom: 10px;
}
.categorybox-item-section a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.arrow {
  background-color: orange;
  color: black;
  width: 40px;
  height: 30px;
  border-radius: 30%;
  line-height: 30px;
  margin: 0 auto;
  font-weight: bold;
}

/* DESKTOP: Hide popup elements */
.info-icon,
.mobile-info-btn,
#categoryPopup,
.popup-overlay-i {
  display: none !important;
}

/* Flip card styles */
.flip-card {
  background-color: transparent;
  width: 150px;
  height: 200px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.flip-card-front {
  z-index: 2;
}

.flip-card-back {
  transform: rotateY(180deg);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  padding: 20px;
  text-align: center;
  pointer-events: none;
}
.flip-card:hover {
  cursor: pointer;
}
/* MOBILE STYLES */
@media (max-width: 768px) {
  .category-section {
    padding: 10px 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: -45vh 0 0 0 !important; /* Negative margin pulls it up */
    position: relative;
    z-index: 2; /* Ensures it appears above any hero section overflow */
  }

  .hero-section + .category-section {
    margin-top: 0 !important;
  }

  .category-title {
    font-size: 1.2rem !important; /* Adjust this value as needed */
    margin: 0 0 10px 20px !important; /* Optional: Better mobile spacing */
    padding-top: 15px !important;
    text-align: center !important;
    font-weight: bold !important;
  }

  .category-box {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    gap: 0px !important;
    margin-top: 30px !important;
    scroll-behavior: smooth !important;
    padding: 0 20px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  .flip-card {
    background-color: transparent !important;
    width: 140px !important; /* Fixed width for mobile */
    height: 180px !important; /* Fixed height for mobile */
    perspective: 1000px !important; /* Enable perspective for mobile */
    flex-shrink: 0 !important;
  }

  .flip-inner {
    position: relative !important; /* Keep relative positioning */
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.4s !important; /* Enable transition */
    transform-style: preserve-3d !important; /* Enable 3D transforms */
    will-change: transform !important;
  }

  /* Mobile flip trigger - when flipped class is added via JavaScript */
  .flip-inner.flipped {
    transform: rotateY(180deg) !important;
  }

  .flip-card-front {
    position: absolute !important; /* Restore absolute positioning */
    width: 100% !important;
    height: 100% !important;
    backface-visibility: hidden !important; /* Hide when flipped */
    z-index: 2 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
  }

  .flip-card-back {
    position: absolute !important; /* Restore absolute positioning */
    width: 100% !important;
    height: 100% !important;
    backface-visibility: hidden !important;
    transform: rotateY(180deg) !important; /* Keep rotated */
    display: flex !important; /* Show on mobile */
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px !important; /* Smaller font for mobile */
    padding: 15px !important;
    text-align: center;
    overflow-y: auto;
  }

  .categorybox-item-section {
    background-color: #000;
    border: 2px solid #ff5b0f;
    border-radius: 12px;
    padding: 15px;
    width: 100% !important; /* Use full flip card width */
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important; /* Use full flip card height */
    text-align: center;
    position: relative;
    scroll-snap-align: center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .categorybox-item-section a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 900;
    margin-bottom: 10px;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  .categorybox-item-section img {
    height: 50px !important;
    width: 50px !important;
    margin-bottom: 10px;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(51%) sepia(86%) saturate(743%)
      hue-rotate(358deg) brightness(103%) contrast(105%);
  }

  .arrow {
    background-color: orange;
    color: black;
    width: 35px;
    height: 25px;
    border-radius: 30%;
    line-height: 25px;
    margin: 0 auto;
    font-weight: bold;
    font-size: 12px;
  }

  /* Show info icon only on mobile */
  .info-icon,
  .mobile-info-btn {
    display: flex !important;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: #fc540c;
    border-radius: 50%;
    color: black;
    font-size: 12px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    border: none;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
  }

  .info-icon:hover,
  .mobile-info-btn:hover {
    background-color: #ffffff;
  }

  /* Style for the back content */
  .flip-card-back p {
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
  }
} /* DESKTOP: Ensure popup is always hidden */
@media (min-width: 769px) {
  .info-icon,
  .mobile-info-btn {
    display: none !important;
    visibility: hidden !important;
  }
}
/* === MENU SECTION === */
.menu-section {
  margin-top: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  text-align: left;
}

.menu-title {
  font-family: "Fredoka", sans-serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  margin-bottom: 0;
  padding-left: 220px;
  padding-right: 220px;
}

.menu-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #dcdcdc;
  letter-spacing: 5px;
  margin-top: 0;
  margin-bottom: 40px;
  padding-left: 140px;
  padding-right: 140px;
}

.menu-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.menu-card {
  position: relative;
  overflow: visible;
  margin-top: 100px;
  margin-left: 80px;
  margin-bottom: 30px;
  border-radius: 20px;
  width: 260px;
  height: 250px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  text-align: center;
}

.menu-card:hover {
  transform: translateY(-10px);
}

.menu-card img {
  width: 170px;
  height: auto;
  margin-bottom: 0;
  margin-top: -80px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

.menu-desc {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: #f0f0f0;
  padding-top: 50px;
  margin-bottom: 8px;
}

.menu-card h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 3px;
  color: white;
  padding-top: 8px;
  margin: 0;
}
/* card inner  card front and back*/
.menu-card {
  perspective: 1000px;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.menu-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  background: linear-gradient(to top, #ff6600, #1a1a1a);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.card-back {
  transform: rotateY(180deg);
  font-size: 12px;
  background-color: white;
}
.card-back h3 {
  margin-bottom: 22px;
}
.card-back p {
  margin-bottom: 25px;
}

/* View More Button Section */
.view-more-container {
  text-align: center;
}

.view-more-btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: black;
  background-color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.view-more-btn:hover {
  background-color: #ff6b00;
  color: white;
}

/* About Section */
.about-section {
  text-align: center;
  margin-top: 80px;
  color: white;
}

.about-title {
  font-family: "Fredoka", sans-serif;
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 10px;
}

.about-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  letter-spacing: 5px;
  color: #dcdcdc;
}

/* About Detail Section */
.about-detail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 50px;
  color: white;
  flex-wrap: wrap; /* make responsive */
}

.about-img img {
  width: 350px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-right: 70px;
}

.about-text {
  max-width: 400px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #f1f1f1;
  text-align: left;
}

.about-text .view-more-btn {
  margin-top: 30px;
  display: inline-block;
  padding: 10px 30px;
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: black;
  background-color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.about-text .view-more-btn:hover {
  background-color: #ff6b00;
  color: white;
}

.vadapav {
  position: relative;
  margin-top: 50px;
  width: 350px;
  height: 350px;
  margin-top: 100px;
}

.ingredient {
  position: absolute;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-size: contain;
  margin-top: 60px;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
}

.bun-bottom {
  width: 80%;
  height: 110%;
  background-image: url("images/but_bottom.png");
  z-index: 1;
}

.potato_vada {
  width: 60%;
  height: 60%;
  left: 10%;
  background-image: url("images/potato_vada.png");
  z-index: 2;
}

.mirchi {
  width: 50%;
  height: 40%;
  left: 15%;
  background-image: url("images/mirchi.png");
  z-index: 2;
}

.chutney {
  width: 60%;
  height: 60%;
  left: 40px;
  background-image: url("images/chutney.png");
  z-index: 2;
}

.bun-top {
  width: 70%;
  height: 50%;
  left: 35px;
  background-image: url("images/bun_top.png");
  z-index: 4;
}

/* Animation movement */
.expanded .potato_vada {
  transform: translateY(-45px) rotate(-4deg);
}
.expanded .mirchi {
  transform: translateY(-80px) scale(1.05) rotate(2deg);
}
.expanded .chutney {
  transform: translateY(-120px) rotate(4deg);
}
.expanded .bun-top {
  transform: translateY(-160px) rotate(-2deg);
}

.footer {
  background: linear-gradient(to top, #ff6b00, #ff6a0072, #191917);
  color: white;
  padding: 60px 40px 20px;
  margin-top: 2000px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 70px;
  align-items: center;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: #0a0a0a;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: #fff;
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #0a0909;
}

.footer-bottom h3 {
  font-size: 14px;
  margin-top: 50px;
}
@media (max-width: 600px) {
  .footer-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .footer-menu a {
    font-size: 16px;
  }

  .footer-socials {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}
