body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    
}

/* html::-webkit-scrollbar, 
body::-webkit-scrollbar {
  display: none;
} */

/* .scroll-container {
    display: flex;
    height: 100vh;
  } */

  .navbar-bg {
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    top: 0;
    width: 100vw;
    height: 140px;
    background-image: url("../assets/images/texture.png");
    background-size: 100%, 100%;
    background-position: center, center;
    mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0));
    z-index: 8;
}

.panel {
    display: flex;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    padding: 4rem 0rem;
}

.sec-1 {
    justify-content: center;
    align-items: end;
    padding-top: 8rem;
}

    .hero-sec {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: end;
        width: 90vw;
        height: 80vh;
        z-index: 0;
        border-radius: 30px;
        margin-bottom: 2rem;
        overflow: hidden;
    }
    .hero-sec video {
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        height: auto;
        z-index: -1;
        object-fit: cover;
        filter: brightness(0.8);
    }

.hero-text {
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    h1 {
        font-weight: bold;
        font-size: 80px;
        filter: drop-shadow(0px 0px 4px black);
    }
    h2 {
        margin: 0;
        font-size: 60px;
        font-weight: 300;
        filter: drop-shadow(0px 0px 4px black);
    }
}
    
.vid-overlay {
    box-shadow: 0px 0px 50px 20px black inset;
    position: absolute;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.sec-2    { 
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.before-after {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    img {
        width: clamp(250px, 100%, 388px);
        transition: opacity 0.3s ease-in-out;
        border-radius: 20px;
    }
}

.before-after img.fade-out {opacity: 0;}
.btn-container {
    position: absolute;
    bottom: 20px;
    display: flex;
    background-color: white;
    border-radius: 50px;
    padding: 0.4rem;
  }

  .btn-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 0.2rem);
    background-color: var(--blue);
    border-radius: 50px;
    transition: all 0.4s ease;
    z-index: 0;
  }

  .btn-container button {
    position: relative;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    color: var(--blue);
    font-weight: 400;
    z-index: 1;
    transition: color 0.3s ease-in-out;
  }
  
  .btn-container button.active{
    pointer-events: none;
    color: white;
    font: 500;
  }

.benefit-sec {
    display: inherit;
    flex-direction: column;
    gap: 1rem;
    h3{
        font-size: 30px;
        margin-bottom: 2rem;
    }
}

.benefits {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: start;
    width: 730px;
    height: 90px;
    background-color: white;
    padding: 1rem;
    border-radius: 30px;
    color: var(--blue);
    position: relative;
    img {
        height: 64px;
        width: 64px;
            padding: 0 1rem;
        }
    }

    .benefits-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: transform 0.3s ease;
        p {
            font-size: 25px;
            font-weight: 400;
            color: var(--blue);
            transform: translateY(90%);
            transition: transform 0.3s ease, opacity 0.3s ease, font-size 0.3s ease-in-out;
        }
        span {
            font-size: 20px;
            font-weight: 400;
            color: var(--blue);
            margin: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
            white-space: nowrap;
            opacity: 0;
            transform: translateY(100%);
        }
    }

    .benefits:hover .benefits-text p {
        font-size: 20px;
        transform: translateY(-20%);
    }

    .benefits:hover .benefits-text span {
        opacity: 1;
        transform: translateY(-30%);
    }

.sec-3 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    p {font-weight: 300;}
}
    .num-text {padding: 0 1rem;}
    .number-sec {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        gap: 2rem;
    }
    .number {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .num-case {
        display: inherit;
        align-items: center;
        justify-content: center;
        outline: 1px solid white;
        border-radius: 100px;
        img {
            width: clamp(150px, 40vw, 300px);
            padding: 2rem 4.5rem;
        }
    }

.sec-4 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
    .preview_panel {
        display: flex;
        flex-direction: column;
        justify-content: end;
        background-image: url('../assets/images/featured/samgyupsalamat.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        width: 950px;
        height: 430px;
        border-radius: 30px;
        transition: background-image 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .preview-text {
        padding: 2rem;
        h3 {
            filter: drop-shadow(0px 0px 4px black);
            margin: 0;
        }
        p {
            filter: drop-shadow(0px 0px 4px black);
            margin: 0;
            font-weight: 300;
        }
    }

    .carousel-wrapper {
        overflow: hidden; /* prevents flicker visibility */
        position: relative;
        mask-image: linear-gradient(to right,
         rgba(0,0,0,0),
         rgba(0,0,0,1) 5%,
         rgba(0,0,0,1) 95%,
         rgba(0,0,0,0));
      }

    .img_carousel {
        display: flex;
        width: 100%;
        width: clamp(250px, 90vw, 950px);
        padding: 0.5rem 0;
        gap: 1rem; 
        overflow-x: auto;
        scrollbar-width: none; /* hide scrollbars (Firefox) */
        -ms-overflow-style: none; /* hide scrollbars (IE/Edge) */
        scroll-snap-type: x mandatory; /* disable snapping for infinite scroll */
        scroll-behavior: smooth; /* JS will handle smoothness manually */
        -webkit-overflow-scrolling: touch;
        transition: all 0.1s ease-in-out;
        scroll-padding: 0;
    }
    .img_carousel::-webkit-scrollbar {
        display: none; /* hide scrollbar (Chrome/Safari) */
      }
    .img_carousel:hover {
        animation-play-state: paused;
      }
    .img_select {
        flex: 0 0 auto;
        width: 200px;
        height: 120px;
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        scroll-snap-align: center;
        transition: transform 0.3s ease-in-out;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .img_select:hover {
        transform: scale(1.05);
    }

    .img_select.active {
        outline: 2px solid white;
    }

.sec-5 {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

    .sec5-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    
    .sec5-text {
        max-width: 300px;
        text-align: left;
        p { font-weight: 200; }
        a {
            font-size: 20px;
            font-weight: 300;
            text-decoration: none;
            color: var(--blue);
            background-color: white;
            border-radius: 50px;
            padding: 0.5rem 3rem;
            transition: all 0.3s ease-in-out;
        }
        a:hover {
            color: white;
            font-weight: bold;
            outline: 1px solid white;
            background-color: transparent;
        }
    }

    .sec5-wrapper video  {
        width: clamp(250px, 90%, 800px);
        border-radius: 30px;
    }