/* Reset */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #222;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
                url('img/bg.jpeg') center / cover no-repeat fixed;
    animation: bgZoom 15s ease-in-out infinite alternate;
}

@keyframes bgZoom {
    from {
        background-size: 100%;
    }
    to {
        background-size: 108%;
    }
}
/* Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled {
    background: rgba(8, 8, 8, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo span {
    color: #ff4d4d;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu li a {
    position: relative;
    text-decoration: none;
    color: #d0d0d0;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #ff4d4d;
    transition: 0.3s;
}

.nav-menu li a:hover {
    color: #ffffff;
}

.nav-menu li a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: #ff4d4d;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}
.menu-toggle.active {
    transform: rotate(90deg);
}

/* Section umum */


section {
    min-height: 100vh;
    padding: 90px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 70px;
}

section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 30px;
}

/* Hero */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.55)
    );
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 42px 36px;
    border-radius: 24px;
    background: rgba(15, 15, 15, 0.42);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    animation: fadeUp 1.2s ease;
}

.hero-subtitle {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ff8d8d;
    margin-bottom: 14px;
    font-weight: 600;
}

.hero-text h2 {
    font-size: 58px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 800;
}

.hero-text p {
    font-size: 18px;
    color: #dddddd;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero button,
.btn-secondary {
    padding: 13px 26px;
    border-radius: 12px;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s ease;
    font-weight: 600;
}

.hero button {
    border: none;
    background: linear-gradient(135deg, #ff4d4d, #ff7474);
    color: white;
    box-shadow: 0 12px 24px rgba(255, 77, 77, 0.22);
}

.hero button:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.04);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.10);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-text {
        padding: 25px 20px;
        max-width: 90%;
    }

    .hero-text h2 {
        font-size: 34px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 28px;
    }

    .hero button,
    .btn-secondary {
        width: 100%;
    }
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    background: rgba(0, 0, 0, 0.55);
    color: white;
    padding: 30px 25px;
    border-radius: 12px;
    max-width: 600px;
}

.hero-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 15px;
}

.hero button {
    padding: 12px 24px;
    border: none;
    background: #ff4d4d;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.hero button:hover {
    background: #e03a3a;
}

/* Produk */
.produk {
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 70px;
    background: rgba(18, 18, 18, 0.74);
    backdrop-filter: blur(8px);
}

.produk h2 {
    margin-bottom: 28px;
    color: #ffffff;
    font-size: 52px;
    font-weight: 800;
}

#searchInput {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 30px;
    padding: 13px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    outline: none;
    font-size: 15px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

#searchInput::placeholder {
    color: #c7c7c7;
}

.produk-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.card {
    width: 100%;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 15px;
    border-radius: 18px;
    cursor: pointer;
    transition: 0.35s;
    text-align: center;
    justify-self: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    transition: 0.35s;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: #ffffff;
}

.card p {
    color: #ff6a6a;
    font-weight: 700;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(255,255,255,0.14);
}

.card:hover img {
    transform: scale(1.05);
}
#searchInput {
    display: block;
    margin: 0 auto 30px;
    padding: 12px 18px;
    width: 100%;
    max-width: 380px;
    border: 1px solid #ccc;
    border-radius: 999px;
    outline: none;
    font-size: 15px;
}

/* About */
.about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px;
    text-align: center;
    background: rgba(12, 12, 12, 0.72);
    backdrop-filter: blur(8px);
}

.about-content {
    max-width: 1100px;
    width: 100%;
}

.about h2 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 800;
}

.about-desc {
    max-width: 760px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.9;
    color: #d3d3d3;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 36px;
}

.about-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 28px 22px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
    transition: 0.3s;
    backdrop-filter: blur(8px);
}

.about-card:hover {
    transform: translateY(-6px);
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
}

.about-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #d0d0d0;
}

.about-btn {
    display: inline-block;
    padding: 13px 24px;
    background: linear-gradient(135deg, #ff4d4d, #ff7474);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: 0.3s;
    font-weight: 600;
}

.about-btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .about h2 {
        font-size: 34px;
    }

    .about-desc {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Contact */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 20px;
    text-align: center;
    background: rgba(18, 18, 18, 0.74);
    backdrop-filter: blur(8px);
}

.contact .contact-content {
    transform: translateY(-30px);
}

.contact h2 {
    font-size: 46px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 800;
}

.contact > p {
    color: #d2d2d2;
    margin-bottom: 35px;
    font-size: 16px;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 26px 20px;
    width: 260px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.14);
    transition: 0.3s;
    backdrop-filter: blur(8px);
}

.contact-item:hover {
    transform: translateY(-6px);
}

.contact-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #ffffff;
}

.contact-item a {
    text-decoration: none;
    color: #d9d9d9;
    font-weight: 500;
    transition: 0.3s;
}

.contact-item a:hover {
    color: #ff6a6a;
}

.contact-content {
    width: 100%;
    max-width: 1100px;
    transform: translateY(-30px);
}

.contact h2 {
    font-size: 46px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 800;
}

.contact > p,
.contact-content > p {
    color: #d2d2d2;
    margin-bottom: 35px;
    font-size: 16px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.popup-content {
    background: #151515;
    color: white;
    width: 90%;
    max-width: 370px;
    margin: 7% auto;
    padding: 25px 20px;
    border-radius: 18px;
    text-align: center;
    position: relative;
    animation: muncul 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

#popup-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.popup-content h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.popup-content p {
    color: #d8d8d8;
}

#popup-price {
    color: #ff6a6a;
    font-weight: 700;
}

#popup-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 11px 22px;
    background: linear-gradient(135deg, #ff4d4d, #ff7474);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
    font-weight: 600;
}

#popup-btn:hover {
    transform: translateY(-3px);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

@keyframes muncul {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #0c0c0c;
    color: #d9d9d9;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Tablet */
@media (max-width: 992px) {
    .hero-text h2 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .produk {
        padding-top: 100px;
    }

    .produk-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .card {
        max-width: 220px;
    }

    .card img {
        height: 230px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    section {
        min-height: 100vh;
        padding: 85px 20px 30px;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        right: 0;
        background: #111;
        flex-direction: column;
        width: 200px;
        display: none;
        padding: 20px;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-text {
        padding: 20px;
    }

    .hero-text h2 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 15px;
    }

    section h2 {
        font-size: 26px;
    }

    .produk {
        padding-top: 95px;
        padding-bottom: 40px;
    }

    .produk h2 {
        margin-bottom: 25px;
    }

    .produk-container {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 18px;
    }

    .card {
        max-width: 100%;
    }

    .card img {
        height: 200px;
    }

    .contact-item {
        width: 100%;
        max-width: 320px;
    }

    .popup-content {
        margin: 20% auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .hero-text h2 {
        font-size: 22px;
    }

    .hero button {
        width: 100%;
    }

    .produk-container {
        grid-template-columns: 1fr;
    }

    .card {
        width: 100%;
        max-width: 300px;
    }

    .card img {
        height: 220px;
    }

    
}
