:root {
    --primary:#60d5a4;
    --bg:#010101;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 7%;
    background-color: rgba(0, 0, 0, 1);
    border-bottom: 1px solid #60d5a4;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navbar .navbar-logo {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    font-style: italic;
}

.navbar .navbar-logo span {
    color: #60d5a4;
}

.navbar .navbar-nav a {
    display: inline-block;
    color: #fff;
    font-size: 1.2rem;
    margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
    color: var(--primary);
}

.navbar .navbar-nav a::after {
    content: '';
    display: block;
    padding-bottom: 0.5rem ;
    border-bottom: 0.1rem solid var(--primary);
    transform: scaleX(0);
    transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
    transform: scaleX(0.5);
}

.navbar .navbar-extra a {
    color: #fff;
    margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
    color: var(--primary);
}

#hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

#hamburger-menu span {
    display: block;
    height: 7px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animasi jadi X */
#hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

#hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar .navbar-nav {
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.navbar {
    background: #000000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

/* Navbar Search Form */
.navbar .search-form {
    position: absolute;
    top: 100%;
    right: 7%;
    background-color: #fff;
    width: 50rem;
    height: 5rem;
    display: flex;
    align-items: center;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.3s;
}

.navbar .search-form.active {
    transform: scaleY(1);
}

.navbar .search-form input {
    height: 100%;
    width: 100%;
    font-size: 1.6rem;
    color: var(--bg);
    padding: 1rem;
}

.navbar .search-form label {
    cursor: pointer;
    font-size: 2rem;
    margin-right: 1.5rem;
    color: var(--bg);
}
/* Navbar End */

/* Shopping Cart */


.shopping-cart {
    position: absolute;
    top: 100%;
    right: -100%;
    height: 100vh;
    width: 35rem;
    padding: 0 1.5rem;
    background-color: #fff;
    color: var(--bg);
    transition: 0.3s;
}
  
.shopping-cart.active {
    right: 0;
}
  
.shopping-cart .cart-item {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #666;
    position: relative;
}
  
.shopping-cart img {
    height: 6rem;
    border-radius: 50%;
}
  
.shopping-cart h3 {
    font-size: 1.6rem;
    padding-bottom: 0.5rem;
}
  
.shopping-cart .item-price {
    font-size: 1.2rem;
}
  
.shopping-cart .remove-item {
    position: absolute;
    right: 1rem;
    cursor: pointer;
}
  
.shopping-cart .remove-item:hover {
    color: var(--primary);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('Asset/Hero.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1; /* di atas background */
}

.hero::after {
    content: '';
    display: block;
    position: absolute;
    width: 50%;
    height: 30%;
    bottom: 0;
    background: linear-gradient(0deg, rgba(1,1,3,1) 8%, rgba(255, 255, 255, 0) 50%);
}

.hero .content {
    padding: 1.4rem 7%;
    max-width: 60rem;
    position: relative;
    z-index: 2; /* di atas overlay */
}

.hero .content h1 {
    font-size: 4em;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
    line-height: 1.2;
}

.hero .content h1 span {
    color: var(--primary);
}

.hero .content p {
    font-size: 1.6rem;
    margin-top: 1rem;
    line-height: 1.4;
    font-weight: 700;
    color:#fffbff;
    text-shadow: 1px 1px 3px rgba(2, 2, 2, 0.5);
    mix-blend-mode: normal;
}

.hero .content .cta {
    margin-top: 1rem;
    display: inline-block;
    padding: 1rem;
    font-size: 2.5rem;
    color: #fff;
    background-color: #60d5a4;
    border-radius: 1.5rem;
    box-shadow: 4px 4px 6px rgba(1, 1, 3, 0.5);
}

/* Hero Section end */

/* About */

.about, 
.menu, 
.products,
.contact {
    padding: 8rem 7% 1.4rem;
}

.about h2, 
.menu h2,
.products h2,
.contact h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about h2 span, 
.menu h2 span,
.products h2 span,
.contact h2 span {
    color: var(--primary);
}

.about .row {
    display: flex;
}

.about .row .about-img {
    flex: 1 1 45rem;
}

.about .row .about-img img {
    width: 100%;
}

.about .row .content {
    flex: 1 1 35rem;
    padding: 0 1rem;
}

.about .row .content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about .row .content p {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 200;
    line-height: 1.6;
}

/* About End */

/* Menu Section */
.menu h2, 
.contact h2 {
    margin-bottom: 1rem;
}

.menu p, 
.contact p {
    text-align: center;
    max-width: 30rem;
    margin: auto;
    font-weight: 200;
    font-size: 1.5rem;
    line-height: 1.6;
}

.menu .row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5rem;
    justify-content: center;
}

.menu .row .menu-card {
    text-align: center;
    padding-bottom: 4rem;
}

.menu .row .menu-card img {
    border-radius: 0;
    width: 100%;
}

.menu .row .menu-card .menu-card-title {
    margin: 1rem auto 0.5rem;
}

/* Product Section */
.products .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.products .product-card {
    text-align: center;
    border: 1px solid #666;
    padding: 2rem;
    border-radius: 12px;
    transition: 0.3s;
}

/* efek hover premium */
.products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ICON */
.products .product-icons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.products .product-icons a {
    width: 4rem;
    height: 4rem;
    color: #fff;
    margin: 0.3rem;
    border: 1px solid #666;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.products .product-icons a:hover {
    background-color: var(--primary);
    border: 1px solid var(--primary);
}

/* GAMBAR */
.products .product-image {
    padding: 1rem 0;
}

.products .product-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* CONTENT */
.products .product-content h3 {
    font-size: 2rem;
}

.products .product-stars {
    font-size: 1.7rem;
    padding: 0.8rem;
    color: var(--primary);
}

.products .product-stars .star-full {
    fill: var(--primary);
}

.products .product-price {
    font-size: 1.3rem;
    font-weight: bold;
}

.products .product-price span {
    text-decoration: line-through;
    font-weight: lighter;
    font-size: 1rem;
}

.products .product-image img:hover {
    transform: scale(1.05);
    transition: 0.3s;
}

/* contact section */
.contact .row {
    display: flex;
    margin-top: 2rem;
    background-color: #222;
}

.contact .row .map {
    flex: 1 1 45rem;
    width: 100%;
    object-fit: cover;
}

.contact .row form {
    flex: 1 1 45rem;
    padding: 5rem 2rem;
    text-align: center;
}

.contact .row form .input-group {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    background-color: var(--bg);
    border: 1px solid #eee;
    padding-left: 2rem;
}

.contact .row form .input-group input {
    width: 100%;
    padding: 2rem;
    font-size: 1.7rem;
    background: none;
    color: #fff;
}

.contact .row form .button {
    margin-top: 3rem;
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.7rem;
    color: #fff;
    background-color: var(--primary);
    cursor: pointer;
}

.contact-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-media a {
    color: #fff;
    font-size: 24px;
    padding: 10px;
    border-radius: 10%;
    background: #010101;
    transition: 0.3s;
}

/* Hover effect */
.contact-media a:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* contact section End*/

/* Footer */
footer {
    background-color: var(--primary);
    text-align: center;
    padding: 1rem 0 3rem;
    margin-top: 3rem;
}

footer .media  {
    padding: 1rem 0;
    display: flex;
    justify-content: center; /* ini yang bikin ke tengah */
    align-items: center;
    gap: 10px;
}

footer .media a {
    color: #fff;
    margin: 1rem;
}

footer .media a:hover,
footer .links a:hover {
    color: var(--bg);
}

footer .links {
    margin-bottom: 1.4rem;
}

footer .links a {
    color: #fff;
    padding: 0.7rem 1rem;
}

footer .copyright {
    font-size: 0.8rem;
}

footer .copyright a{
    color: var(--bg);
    font-weight: 700;
}

/* Media Queries */

/* Laptop */
@media (max-width:1366px) {
    html {
        font-size: 75%;
    }
}

/* Tablet */
@media (max-width:768px) {
    html {
        font-size: 62.5%;

    }
    #hamburger-menu {
        display: inline-block;
    }

    .navbar .navbar-nav{
        position: absolute;
        top: 100%;
        right: -100%;
        background-color: #fff;
        width: 20rem;
        height: 100vh;
        transition: 0.3s;
    }

    .navbar .navbar-nav.active {
        right: 0;
    }

    .navbar .navbar-nav a {
        position: relative;
        transition: 0.3s;
        color: var(--bg);
        display: block;
        margin: 1.5rem;
        padding: 0.5rem;
        font-size: 2rem;
    }

    .navbar .navbar-nav a::after {
        transform-origin: 0 0;
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: 0.3s;
    }

    .navbar .navbar-nav a:hover::after {
        transform: scaleX(0.2);
        width: 100%;
    }

    .navbar .search-form {
        width: 90%;
        right: 2rem;
    }

    .about .row {
        flex-wrap: wrap;
    }

    .about .row .about-img img {
        height: 42rem;
        object-fit: cover;
        object-position: Top;
    }

    .about .row .content {
        padding: 0;
    }

    .about .row .content h3 {
        margin-top: 1rem;
        font-size: 2rem;
    }

    .about .row .content p {
        font-size: 1.6rem;
    }

    .menu p {
        font-size: 1.6rem;
    }

    .contact .row {
        flex-wrap: wrap;
    }

    .contact .row .map {
        height: 30rem;
    }

    .contact .row form {
        padding-top: 0;
    }

}

/* Mobile Phone */
@media (max-width:450px) {
    html {
        font-size: 55%;
    }
}

.btn-wa {
    display: inline-block;
    padding: 12px 20px;
    background-color: #25D366;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-wa:hover {
    background-color: #1ebe5d;
}

.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.wa-sales {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff7d;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 999;
    width: 170px;
    text-align: center;
    transition: 0.3s;
}

/* hover efek */
.wa-sales:hover {
    transform: translateY(-5px);
}

/* FOTO */
.wa-header {
    position: relative;
}

.wa-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: fill;
}

/* STATUS ONLINE */
.online {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* INFO */
.wa-info h4 {
    margin: 10px 0 2px;
    font-size: 14px;
    color: #000;
}

.wa-info p {
    margin: 0 0 10px;
    font-size: 12px;
    color: #666;
}

/* BUTTON */
.wa-button {
    background: #25D366;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
}

.wa-button:hover {
    background: #1ebe5d;
}
