* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Prompt;
    text-decoration: none;
}

html,body{
    scroll-behavior: smooth;
    overflow-x: hidden;
}


.navbar {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    align-items: center;
    background-color: rgba(0, 0, 0); /* โปร่งใสเล็กน้อย */
    border-radius: 6rem;

    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 9999;
    backdrop-filter: blur(6px); /* เพิ่ม blur แบบ glass effect */
}


.logo {
    color: rgb(255, 255, 255);
    font-size: 32px;
    font-weight: 500;
    line-height: 35.18px;
    flex: 0 0 auto;
    margin-left: 16px;

}

.navlink {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    display: flex;
    gap: 20px;
    color: white;
    font-size: 18px;
    font-family: Prompt;
    font-weight: 500;
    line-height: 19.79px;
    word-wrap: break-word;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    transition: 0.4s;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background: #222;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .sidebar.active {
    right: 0;
  }

  .sidebar a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
  }

.navlink a{
    
    margin: 1rem;
    color: white;
    transition: color 0.3s ease
}

.navlink a:hover{
    
    /* margin: 1rem; */
    color: rgb(88, 138, 101);
}
.container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero {
    scroll-margin-top: 80px; 
    height: 100vh;
    background: url(imgs/heroBanner.webp);
    display: flex;
    flex-direction: column;
    user-select: none;
}

.row-1{
    display: flex;
    flex-direction: column;
    padding-top: 8rem;

}

.hero-text {
    padding-left: 300px;
    padding-top: 100px;
    color: #2A2A2A;
}

.hero-text h1 {
    font-size: 110px;
    color: #6F9765;
    text-shadow: 0px 2px 9px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-text h2 {
    font-size: 80px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 32px;
    font-weight: 300;
    width: 500px;
    color: #4D4D4D;
}


.row-2 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 60px 40px;
    margin-top: -3rem;
    flex-wrap: wrap; /* ทำให้ responsive */
}

.card {
    width: 320px;  /* ปรับให้เท่ากัน */
    height: auto;
    border-radius: 24px;
    /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
}

/* section2 */
.recommended{
    scroll-margin-top: 80px; 
    position: relative;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    background: transparent;
    text-align: left;
}

.title{
    position: relative;
    top: 8%;
    left: 10%;
    font-size: 64px;
    font-weight: 500;
}

.meal-img{
    position: absolute;
    top: 130%;
    left: 50%;
    width: 1000px;
    transform: translateX(-50%);
    pointer-events: none;    
}

/* section 3 */

.section-3{
    scroll-margin-top: 80px; 
    margin-top: 85vh;
    height: 100vh;
}

.section-3 .text{
    text-align: center;
    color: #2A2A2A;
    font-size: 76px;
    font-weight: 500;
}

.row-3-img {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.s3-img{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.s3-img:hover {
    transform: translateY(-10px);
}

/* footer */

.footer{
    scroll-margin-top: 80px; 
    position: relative;
    display: flex;
    height: 860vh;
    width: 100%;
    background: #D9D9D9;
    justify-content: space-between;
    padding: 6rem 24rem;
    border-radius: 2rem;
}

.footer-logo{
    font-size: 78px;
    text-underline-offset: 1rem;
    display: inline-block;
    border-bottom: 3px solid #000;
    padding-bottom: 2px;
    margin-bottom: 1rem;

}

.botnavlink{
    border-left: 1px solid #000;
    padding-left: 40px;
    display: block;
    list-style: none;
}

.botnavlink a{
    color: black;
    transition: color 0.3s ease;
    font-size: 1.2rem
}

.botnavlink a:hover{
    
    color: white;
}


/* responsive */

@media (max-width: 1024px) {
    body{
        background: linear-gradient(to bottom, #ffffff, #fefefe, #d9d9d9);


    }

    .navbar{
        display: none;
    }
    .navlink {
      display: none;
    }

    .hamburger {
      display: flex;
    }

    .content {
        margin-top: 80px;
        padding: 2rem;
      }
    
      .hero {
        box-sizing: border-box;
        margin-top: 54rem;
        background: transparent;
        margin-left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
      }
    
      .hero-text {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }
    
      .hero-text h1{
        font-size: 38px;
      }

      .hero-text h2{
        font-size: 24px;
      }

      .hero-text p{
        font-size: 12px;
        max-width: 90%;
        word-wrap: break-word;
        overflow-wrap: break-word;
      }
      .hero-text h1,
      .hero-text h2,
      .hero-text p {
        padding-left: 0;
        text-align: center;
      }
    
      .hero-text p {
        max-width: 90%;
      }

      .meal-img{
        width: 360px;
      }

      .title{
        font-size: 24px;
      }

      .section-3 .text{

        font-size: 24px;
      }

      .section-3{
        margin-top: 50vh;
      }

      .row-3-img{
        display: flex;
        flex-direction: column;
        justify-self: center;
      }

      .s3-img{
        width: 200px;
        height: 240px;
      }

      .footer{
        height: 860vh;
        width: 410px;
        padding: 1rem 2rem;
      }

      .footer-logo{
        font-size: 32px;
      }
    
      .row-1{
        padding-top: 1rem;
      }
  }

  