/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== BODY ========== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #ffe0b2 0, #ff6a00 45%, #3b0d00 100%);
  color: #ffffff;
}

/* ========== HEADER ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.15)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo img {
  width: 140px;
  animation: logo-pop 0.8s ease-out;
}

@keyframes logo-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

header ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

header ul li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 3px;
  position: relative;
  transition: color 0.3s ease;
}

/* animated underline effect */
header ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #ffe082;
  transition: width 0.25s ease;
}

header ul li a:hover::after {
  width: 100%;
}

header ul li a:hover {
  color: #ffe0b2;
}

/* special buttons in nav */
header ul li.get a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

header ul li.Sign a {
  padding: 9px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #ff6a00;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* ========== MAIN ========== */
main {
  position: relative;
  padding: 50px 20px 80px;
  overflow: hidden;
}

/* subtle glowing overlay in the middle */
main::before {
  content: "";
  position: absolute;
  inset: 60px 10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}

/* hero content container */
.title,
.location,
.search,
.food,
.instamart,
.dineout,
footer {
  position: relative;
  z-index: 2; /* above bg images */
}

/* HERO TEXT */
.title {
  text-align: center;
  margin-bottom: 20px;
}

.title h1 {
  font-size: clamp(28px, 4vw, 40px);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(-15px);
  animation: fadeDown 0.8s ease-out forwards;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LOCATION INPUT */
.location {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.location input {
  width: min(500px, 90%);
  padding: 14px 16px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.location input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 12px 26px rgba(0, 0, 0, 0.55);
  transform: translateY(0) scale(1.02);
  background: #ffffff;
}

/* SEARCH BUTTON */
.search {
  text-align: center;
  margin-top: 18px;
}

.search input[type="button"] {
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #000000, #4e342e);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

/* button shine animation */
.search input[type="button"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.7),
      transparent
  );
  transform: skewX(-25deg);
  transition: transform 0.4s ease;
}

.search input[type="button"]:hover::before {
  transform: translateX(220%) skewX(-25deg);
}

.search input[type="button"]:active {
  transform: translateY(1px) scale(0.98);
}

/* fadeUp animation reusable */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== SIDE BACKGROUND IMAGES ========== */
.bgimgleft img,
.bgimgright img {
  position: absolute;
  top: 120px;
  width: 260px;
  opacity: 0.5;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.bgimgleft img {
  left: -20px;
  animation: floatY 6s ease-in-out infinite alternate;
}

.bgimgright img {
  right: -20px;
  animation: floatYReverse 6s ease-in-out infinite alternate;
}

@keyframes floatY {
  from {
    transform: translateY(0) rotate(-2deg);
  }
  to {
    transform: translateY(-18px) rotate(2deg);
  }
}

@keyframes floatYReverse {
  from {
    transform: translateY(-10px) rotate(2deg);
  }
  to {
    transform: translateY(10px) rotate(-2deg);
  }
}

/* ========== MAIN BANNERS (horizontal) ========== */
.food,
.instamart,
.dineout {
  display: inline-block;
  margin: 50px 14px 0;
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
}

/* stagger animations */
.food {
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.7s;
}
.instamart {
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.9s;
}
.dineout {
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 1.1s;
}

.food img,
.instamart img,
.dineout img {
  width: 260px;
  max-width: 85vw;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

/* hover parallax-like lift */
.food img:hover,
.instamart img:hover,
.dineout img:hover {
  transform: translateY(-10px) scale(1.03) rotate(-1deg);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.8);
  filter: saturate(1.1);
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  padding: 30px 20px 20px;
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.2)
  );
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.last.info img {
  width: min(640px, 90%);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
  animation: fadeUp 0.9s ease-out forwards;
}

.copyright {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ffe0b2;
}

.copyright .imgswiggy img {
  width: 150px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 900px) {
  .bgimgleft img,
  .bgimgright img {
    width: 190px;
    top: 160px;
    opacity: 0.35;
  }
}

@media (max-width: 720px) {
  header {
    padding: 14px 16px;
  }

  header ul {
    gap: 10px;
    font-size: 13px;
  }

  .bgimgleft img {
    left: -80px;
  }

  .bgimgright img {
    right: -80px;
  }

  .food,
  .instamart,
  .dineout {
    display: block;
    margin: 34px auto 0;
  }

  .food img,
  .instamart img,
  .dineout img {
    width: min(320px, 90vw);
  }
}

@media (max-width: 520px) {
  header ul {
    display: none; /* simple mobile: only logo */
  }

  .title h1 {
    font-size: 24px;
  }

  .location input {
    font-size: 14px;
  }
}
