@import url(./variable.css);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  scroll-behavior: smooth;
}

.logo{
    height: 64px;
    object-fit: cover;
}

.section-hero {
  background-color: #ff5200 !important;
  width: 100%;
  min-height: 480px;
}

.side-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.veggies{
    width: 250px !important;
    height: 450px !important;
    position: absolute;
    top: 120px;
    left: 0;
}

.veggie{
    width: 250px !important;
    height: 450px !important;
    position: absolute;
    top: 120px;
    right: 0;

}

.input-section{
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 0 16px;
    flex-wrap: wrap;
}

.left-input{
    background-color: white !important;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    width: min(420px, 100%);
}

.right-input{
    background-color: white !important;
    padding: 16px 48px;
    border-radius: 16px;
    display: flex;
    align-self: center;
    width: min(520px, 100%);
}

.text-right{
    width: 100%;
    position: relative;
    right: 32px;
    outline: none;
    border: none;
    background: transparent;
}

.text-left{
    width: 100%;
    position: relative;
    right: 16px;
    outline: none;
    border: none;
    background: transparent;
}

.hero-card{
    display: flex;
    justify-content: space-around;
    padding-inline: 16px;

  }

.card-contant {
  width: 100%;
  max-width: 1200px;
  gap: 20px;
  justify-content: center;
}

.hero-cards{
    height: 320px;
    width:100%;
    overflow: hidden;
    object-fit: cover;
    display: flex;
    justify-content: space-between;
}

.left-arrow{
    height: 32px;
}


.card-img{
    flex-wrap: wrap;
    justify-content: center !important;
}

.card-img .img-card-cotainer{
    animation: appear 0.8s  ease-out forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
    max-width: 180px;
    object-fit: cover;
    gap: 20px;
    display: flex;
    margin: 10px;
}
/* INSTAMART */
.instamart-row {
      display: flex;
    width: 100%;
    justify-content: space-between;
    align-content: center;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.insta-card {
  min-width: 160px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.insta-card img {
  width: 160px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.insta-card p {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.card , .city-name{
    cursor: pointer;
  opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.w-100{
        opacity: 0;
  animation: fade-up 0.8s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.wrapper {
  width: 90%;
  max-width: 1400px;
  margin-inline: auto;
  overflow: hidden;
}

.track {
  display: flex;
  gap: 20px;
  animation: scroll 20s linear infinite;
  animation-direction: reverse;
  will-change: transform;
  transition: transform 0.3s ease;
}
.track-1 {
  display: flex;
  gap: 20px;
  animation: scroll 20s linear infinite;
  will-change: transform;
  transition: transform 0.3s ease;
}

.item {
  min-width: 220px;
  height: 80px;
  border-radius: 6px;
}

.city-btn {
  border: 1px solid rgba(2, 6, 12, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  white-space: normal;
}

.wrapper:hover .track,
.wrapper:hover .track-1 {
  animation-play-state: paused;
}

footer{
    background-color: #F0F0F5;
    min-height: 480px;
}

/* SCROLL ANIMATION */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes appear{
    from{
        opacity: 0;
        scale: 0.5;
    }

    to{
        opacity: 1;
        scale: 1;
    }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.overlay{
  height: 50px;
  position: absolute;
  bottom: 0px;
  z-index: 99;
  width: 100%;
  background: linear-gradient(0deg, #000, #00000000);
}
.card-name{
  bottom: 10px;
  color: #fff;
  z-index: 999;
}


/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1199.98px) {
  .logo {
    height: 56px;
  }

  .veggies,
  .veggie {
    width: 180px !important;
    height: 320px !important;
    top: 140px;
  }

  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .card-contant {
    gap: 12px;
  }

  .hero-cards {
    height: 260px;
  }
}

@media (max-width: 991.98px) {
  .navbar-nav {
    align-items: flex-start !important;
    gap: 14px !important;
    padding-top: 18px;
  }

  .btns {
    flex-direction: column;
    align-items: flex-start !important;
    width: 100%;
    gap: 10px !important;
  }

  .primary-btn,
  .secondary-btn {
    width: fit-content;
  }

  .veggies,
  .veggie {
    display: none;
  }

  .hero-section h1 {
    font-size: 1.7rem;
  }

  .input-section {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .left-input,
  .right-input {
    width: min(680px, 100%);
  }

  .card-contant {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .hero-cards {
    min-width: 280px;
    height: 220px;
  }

  .instamart-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .insta-card {
    min-width: 140px;
    flex: 0 0 auto;
  }

  .insta-card img {
    width: 140px;
  }
}

@media (max-width: 767.98px) {
  .section-hero {
    min-height: auto;
    padding-bottom: 18px;
  }

  .logo {
    height: 48px;
  }

  .hero-section h1 {
    font-size: 1.4rem;
  }

  .left-input,
  .right-input {
    border-radius: 12px;
    padding: 13px 16px;
    gap: 8px !important;
  }

  .text-right,
  .text-left {
    right: 0;
    font-size: 14px;
  }

  .hero-card {
    padding-inline: 10px;
  }

  .hero-cards {
    min-width: 240px;
    height: 180px;
  }

  .food-heading h3,
  .instamart-section h3,
  .city-name h3 {
    font-size: 1.2rem;
  }

  .left-arrow {
    height: 28px;
  }

  .card-img .img-card-cotainer {
    max-width: 120px;
    margin: 8px;
  }

  .item {
    min-width: 180px;
    height: auto;
    min-height: 64px;
    font-size: 13px;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding-top: 14px !important;
  }

  .hero-section h1 {
    font-size: 1.2rem;
  }

  .left-input img {
    width: 18px;
  }

  .left-input,
  .right-input {
    padding: 12px;
  }

  .insta-card {
    min-width: 130px;
  }

  .insta-card img {
    width: 130px;
  }

  .card-img .img-card-cotainer {
    max-width: 102px;
  }

  .city-btn {
    font-size: 12px;
    padding: 8px;
  }
}
