/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* Navigation Styles */
nav {
    background-color: #0073e6;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

nav .logo img {
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #cce4ff;
}

nav ul li .shopee-btn {
    background-color: #ee4d2d;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li .shopee-btn:hover {
    background-color: #d73211;
    transform: scale(1.05);
}

nav ul li .shopee-btn i {
    font-size: 1.2em;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 115, 230, 0.7), rgba(0, 115, 230, 0.7));
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-section h1 {
    font-size: 3.5em;
    margin: 0;
}

.hero-section p {
    font-size: 1.3em;
    max-width: 600px;
    margin: 20px auto;
}

.hero-section .cta-btn {
    background-color: #ee4d2d;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-section .cta-btn:hover {
    background-color: #d73211;
    transform: scale(1.05);
}

/* Landing Page Sections */
.landing-section.zigzag {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.landing-section.zigzag.reverse {
    flex-direction: row-reverse;
}

.landing-section.zigzag .text-content {
    flex: 1 1 60%;
}

.landing-section.zigzag .text-content h2 {
    color: #0073e6;
    font-size: 2em;
    margin-bottom: 10px;
}

.landing-section.zigzag .text-content p {
    font-size: 1em;
    line-height: 1.7;
    color: #444;
}

.landing-section.zigzag .icon {
    flex: 1 1 30%;
    text-align: center;
}

.landing-section.zigzag .icon img {
    max-width: 100px;
    height: auto;
}


/* Products Section */
.products-section {
    min-height: auto; /* Produk tidak perlu memenuhi layar penuh karena banyak item */
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px auto;
    max-width: 1100px;
    text-align: center;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 380px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3em;
    color: #333;
    margin: 10px 0;
    text-align: center;
    line-height: 1.2;
    min-height: 3em; /* Menyamakan tinggi heading */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.product-card .price {
    font-weight: 600;
    color: #0073e6;
    font-size: 1.2em;
    margin: 10px 0;
}
.about-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-content {
    text-align: center;
    margin-bottom: 50px;
    animation: slideUp 0.8s ease-in-out;
}

.about-content h2 {
    color: #0073e6; /* Biru */
    font-size: 2.2em;
    margin-bottom: 20px;
}
/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 1s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.feature-card i {
    font-size: 2.5em;
    color: #f39c12; /* Oranye (komplementer biru) */
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5em;
    color: #333;
    margin: 10px 0;
}

.feature-card p {
    font-size: 1em;
    color: #777;
    line-height: 1.6;
}
.about-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.product-card .button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.product-card button, .product-card a {
    background-color: #0073e6;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-card button.detail-btn {
    background-color: #f39c12;
    color: #333;
}

.product-card button:hover, .product-card a:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

.product-card button.detail-btn:hover {
    background-color: #e67e22;
}

.product-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Modal Styles */
.detail-modal, .zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.detail-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.detail-modal-content h3 {
    margin: 0 0 15px;
    color: #0073e6;
    font-size: 1.8em;
    font-weight: 600;
}

.detail-modal-content img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.detail-modal-content p {
    margin: 10px 0;
    color: #333;
    font-size: 1em;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.detail-modal-content .price {
    font-weight: 600;
    color: #0073e6;
    font-size: 1.2em;
}

.detail-modal-content button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.detail-modal-content button:hover {
    background-color: #c0392b;
}

.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.zoom-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.close-zoom {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    background-color: #e74c3c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.close-zoom:hover {
    background-color: #c0392b;
}

/* Footer Styles */
footer {
    background-color: #0073e6;
    color: white;
    text-align: center;
    padding: 30px 20px;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #cce4ff;
}

/* Media Queries */
@media (max-width: 900px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .landing-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .landing-section h2 {
        font-size: 1.8em;
    }

    .close-zoom {
        top: -30px;
        right: -30px;
        font-size: 28px;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 4px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Media Query for Mobile Navbar */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #0073e6;
        padding: 10px 0;
        z-index: 999;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 5px 0;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 8px 0;
        display: block;
    }

    .nav-menu li .shopee-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
        padding: 8px 15px;
        font-size: 1rem;
    }

    .nav-menu li .shopee-btn i {
        font-size: 1.2rem;
    }
}
