* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #ffcc00;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #ffcc00;
  margin: 15px auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #ffcc00;
  color: #000;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 1rem 2rem;
  background: rgb(0, 0, 0);
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.7rem 2rem;
  background: rgba(0, 0, 0, 0.95);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
}

.logo i {
  color: #ffcc00;
  margin-right: 8px;
}

.logo img {
  height: 58px;
  width: 165px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  transform: translateY(10px);
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links li a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffcc00;
  transition: width 0.3s ease;
}

.nav-links li a:hover:after {
  width: 100%;
}

.nav-links li a:hover {
  color: #ffcc00;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

/* Search Box */
.search-box {
  width: 29rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px;
  padding: 3px 8px;
  background: #ffffff;
  transform: translateX(-8rem);
}

.search-box input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #333;
  width: 800px;
  text-align: left;
}

.search-box input::placeholder {
  color: #777;
}

.search-box button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

.search-box button:hover {
  background: #ffffff;
   box-shadow: 0 0 8px rgba(14, 14, 14, 0.7),
              0 0 16px rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

#myVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  top: 7px;
  width: 100%;
  min-height: 100%;
  z-index: -999;
}
/* Dropdown container */
.dropdown {
  position: relative;
}

/* Main dropdown link */
.dropdown > a {
  padding: 10px 14px;
  color: #fff;
  display: block;
  cursor: pointer;
  transform: translateY(-10px);
}

/* Submenu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  min-width: 160px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 2000; /* higher than navbar */
}

/* Submenu list items */
.dropdown-content li {
  list-style: none;
}

.dropdown-content li a {
  display: block;
  padding: 10px 14px;
  color: #fff;
  transition: background 0.3s;
  white-space: nowrap;
}

.dropdown-content li a:hover {
  background: #ffcc00;
  color: #000;
}

/* Show submenu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero */
.hero {
  padding-top: 0px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #0e0d0d;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  transform: translateY(-5rem);
}

.hero-content h1 {
  font-size: 3rem;
  animation: slideInUp 1s ease;
  color: #ffcc00;
  text-shadow: 0 0 5px #0a0800, 0 0 10px #000000, 0 0 20px #000000;
}

.hero-content p {
  padding: 5px;
  background-color: #0c08088a;
  margin-top: 1rem;
  font-size: 1.2rem;
  border-radius: 9px;
  opacity: 0.9;
  color: #ffffff;
  text-shadow: 0 0 5px #0a0800, 0 0 10px #000000, 0 0 20px #000000;
}

/* Buttons */
.button-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-19rem);
}

.icon-button {
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  margin: 15px;
  font-size: 15px;
  background-color: #020202;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.icon-button:hover {
  background-color: #ffcc00;
  color: #000;
  transform: scale(1.05);
}

/* Cards */
.delivery,
.takeaway {
  display: flex;
  flex-direction: column;
  height: 180px;
  width: 320px;
  gap: 14px;
  background: #ffcc00;
  color: #000;
  border: 2px solid #757575;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: popIn 0.7s ease;
  transform: translateY(-20rem);
}

.delivery:hover,
.takeaway:hover {
  transform: translateY(-20rem) scale(1.04);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.25), 0 2px 12px #7e7d7e;
  border-color: #080808;
}

.center-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 2rem;
}

.sentence {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-17rem);
  font-size: 30px;
  font-weight: bold;
  color: #000000;
  text-shadow: 0 0 5px #ffdf5e, 0 0 10px #ffde24, 0 0 20px #000000;
  font-family: "MyCustomFont";
}

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-15rem);
}

.poster img {
  height: 300px;
  width: 500px;
  border-radius: 19px;
  box-shadow: #ffcc00;
}

.poster img:hover {
  box-shadow: 0 8px 16px rgba(39, 39, 39, 0.6);
  transform: translateY(-2px);
}

.viewAll-deal {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  transform: translateY(-13rem);
  font-family: "MyCustomFont";
}

.viewAll-deal h1 {
  background: black;
  background-clip: text;
  color: black;
  text-shadow: 0 0 5px #ffdf5e, 0 0 10px #ffde24, 0 0 20px #000000;
}

.viewAll-deal a {
  text-decoration: none;
}

.new {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000000;
  text-shadow: 0 0 5px #ffdf5e, 0 0 10px #ffde24, 0 0 20px #000000;
  font-family: "MyCustomFont";
  transform: translateY(-12rem);
}

@font-face {
  font-family: "MyCustomFont";
  src: url("./Static/EduNSWACTCursive-VariableFont_wght.ttf");
}

@font-face {
  font-family: "MyCustomFonts";
  src: url("./Static/PlaywriteAUQLD-VariableFont_wght.ttf");
}

.Deals {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 10px;
  width: 200px;
  font-size: x-large;
  color: #000000;
  text-shadow: 0 0 5px #ffdf5e, 0 0 10px #ffde24, 0 0 20px #000000;
  transform: translateY(-5rem) translateX(36rem);
  font-family: "MyCustomFont";
}

.offers {
  justify-content: center;
  align-items: center;
  display: grid;
  height: 2300px;
  gap: 60px;
  background: rgba(0, 0, 0, 0.7);
  grid-template-rows: repeat(4, 1fr);
  grid-template-columns: repeat(2, auto);
  transition: all 0.5s ease;
}
.pic img:hover {
  box-shadow: 0 0 20px #ffdf5e;
  border-radius: 50px 15px 50px 15px;
}

.pic img {
  height: 450px;
  width: 450px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.pic:hover img {
  background-color: #ffcc00;
}

footer {
  background: #000;
  color: #fff;
  padding: 4rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #ffcc00;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: #ffcc00;
}

.footer-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-icons a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-icons a:hover {
  background: #ffcc00;
  transform: translateY(-3px);
}

.social-icons a:hover img {
  filter: brightness(0) invert(0);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* Floating Order Button */
.floating-order-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffcc00;
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.floating-order-btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-20rem) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(-20rem) scale(1);
  }
}

/* Media Queries */
@media (max-width: 1024px) {
  .navbar {
    justify-content: center;
  }
  .search-box {
    width: 24rem;
  }
  .center-screen {
    transform: translateY(2rem);
  }
  .Deals {
    transform: translateX(25rem) translateY(-5rem);
  }
  .button-wrap {
    transform: translateY(-17rem);
  }
  .banner .poster img {
    width: 400px;
  }
}

@media (max-width: 425px) {
  body {
    overflow-x: hidden;
  }

  /* Navbar */
  .navbar {
    padding: 0.6rem 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  /* Logo */
  .logo img {
    width: 85px;
    height: auto;
  }

  /* Search box */
  .search-box {
    flex: 1;
    max-width: 180px;
    padding: 2px 6px;
  }

  .search-box input {
    width: 100%;
    font-size: 0.7rem;
  }

  .search-box button {
    font-size: 0.75rem;
  }

  /* Nav Links (Dropdown) */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 55px;
    right: 10px;
    background: rgba(0, 0, 0, 0.95);
    width: 85%;
    max-width: 220px;
    padding: 12px;
    border-radius: 8px;
    gap: 12px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li a {
    font-size: 0.85rem;
    padding: 6px;
  }

  /* Hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    margin-left: 10px;
  }

  .hamburger span {
    width: 22px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
  }

  .dropdown-content {
    display: none;
    position: static; /* not absolute in mobile */
    background: transparent;
    box-shadow: none;
    padding-left: 10px;
  }

  .dropdown-content li a {
    font-size: 0.8rem;
    color: #fff;
  }

  .dropdown.open .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  /* Background Video */
  #myVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -999;
  }

  /* Hero - REDUCED GAP */
  .hero {
    height: 800px;
    min-height: 100vh;
    padding: 60px 0 20px;
  }

  .hero-content {
    transform: translateY(-19rem) !important; /* Reduced from -5rem */
    margin-bottom: 1rem;
  }

  .hero-content h1 {
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
    margin: 10px auto;
  }

  .hero-content p {
    font-size: 12px;
    padding: 6px 8px;
    text-align: center;
    margin: 5px auto;
  }

  /* Buttons - MOVED CLOSER */
  .button-wrap {
    margin-top: 0;
    transform: translateY(-39rem) !important; /* Reduced from -19rem */
    gap: 8px;
    justify-content: center;
  }

  .icon-button {
    font-size: 12px;
    padding: 8px 12px;
    margin: 5px;
  }

  /* Delivery & Takeaway cards */
  .center-screen {
    flex-direction: column;
    gap: 12px;
    margin-top: -8rem; /* Adjusted to reduce gap */
    transform: none;
    align-items: center;
  }

  .delivery,
  .takeaway {
    width: 70%;
    padding: 10px;
    min-height: 100px;
    font-size: 13px;
    transform: translateY(-31rem) !important; /* Adjusted positioning */
  }

  .delivery:hover,
  .takeaway:hover {
    transform: translateY(-12rem) scale(1.04) !important;
  }

  /* Sentence */
  .sentence {
    font-size: 14px;
    margin: -10rem auto 1rem; /* Adjusted positioning */
    text-align: center;
    transform: translateY(-18rem);
  }

  /* Banner */
  .banner {
    flex-direction: row;
    gap: 10px;
    margin-top: -8rem; /* Reduced gap */
    transform: none;
    align-items: center;
  }

  .banner .poster img {
    width: 90%;
    max-width: 200px;
    height: 100px;
    transform: translateY(-9rem) translateX(1rem);
  }

  /* View All Deals */
  .viewAll-deal {
    transform: translateY(-7rem) !important; /* Reduced gap */
    margin: 1rem auto;
    font-size: 13px;
  }

  /* Offers Section - FIXED OVERFLOW */
  .Deals {
    transform: translateY(-1rem) !important;
    margin: -4rem auto 1rem; /* Adjusted positioning */
    width: 150px;
    font-size: 15px;
  }

  .offers {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px;
    height: auto !important;
    margin-top: -2rem;
    overflow: hidden;
    transform: translateY(2.5rem);
  }

  .pic {
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
  }

  .pic img {
    width: 100%;
    height: auto;
    max-width: 250px;
    max-height: 200px;
    object-fit: cover;
  }

  /* Footer */
  footer {
    padding: 20px 10px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
  }

  .footer-section h3,
  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section p {
    font-size: 13px;
  }

  .footer-bottom {
    font-size: 11px;
    padding-top: 1rem;
  }

  /* Floating Order Button */
  .floating-order-btn {
    bottom: 12px;
    right: 12px;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 20px;
  }

  /* Ensure no horizontal overflow */
  .container {
    padding: 0 15px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Animation for dropdown */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
