/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f5f5f5;
    color: #333;
}

/* ================= HEADER & DESKTOP MENU ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: #1e3d59;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .logo img {
    height: 60px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: 0.3s;
}

.nav a:hover,
.nav .active {
    color: #f5b041;
}

/* ================= BANNER ================= */
.banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 20px 30px;
    border-radius: 8px;
}

.banner-text h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 18px;
}

/* ================= PRODUCTS GRID ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 40px 8%;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-card h3 {
    margin: 10px 0 5px 0;
    color: #1e3d59;
}

.product-card p {
    margin-bottom: 10px;
    font-size: 14px;
}

.product-card button {
    padding: 10px 20px;
    background: #1e3d59;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.product-card button:hover {
    background: #f5b041;
}

/* ================= FEATURED PRODUCTS ================= */
.featured {
    padding: 40px 8%;
    text-align: center;
}

.featured h2 {
    margin-bottom: 25px;
    font-size: 28px;
    color: #1e3d59;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.featured-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.featured-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.featured-card h4 {
    color: #1e3d59;
}

/* ================= TESTIMONIALS & ANIMATION ================= */
.testimonials {
    background: #f1f1f1;
    padding: 40px 8%;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 30px;
    color: #1e3d59;
}

.testimonial-container {
    height: 250px; 
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    animation: slideUp 15s linear infinite;
}

.comments-list:hover {
    animation-play-state: paused;
}

@keyframes slideUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

.testimonial-card {
    background: #fff;
    margin: 15px auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ================= SOCIALS ================= */
.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.social a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #f1f1f1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social a img { width: 20px; height: 20px; }

.social a:nth-child(1):hover { background-color: #E1306C; color: #fff; }
.social a:nth-child(2):hover { background-color: #1DA1F2; color: #fff; }
.social a:nth-child(3):hover { background-color: #25D366; color: #fff; }

/* ================= FOOTER ================= */
.footer {
    background: #1e3d59;
    color: #fff;
    text-align: center;
    padding: 30px 8%;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .banner-text h1 { font-size: 28px; }
    .banner-text p { font-size: 16px; }
    .product-card img, .featured-card img { height: 150px; }
}

/* THE MOBILE MENU ROW FIX (UTAMU STYLE) */
@media (max-width: 768px) {
    .header {
        flex-direction: column !important;
        padding: 10px 0 !important;
        background: #1e3d59 !important;
    }

    .header .logo img {
        height: 40px !important;
        margin-bottom: 8px !important;
    }

    .nav {
        width: 100% !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
    }

    .nav ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 10px 15px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
    }

    .nav ul::-webkit-scrollbar { display: none !important; }

    .nav a {
        font-size: 0.75rem !important;
        padding: 6px 14px !important;
        background: rgba(255,255,255,0.1) !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        color: white !important;
    }

    .nav a.active {
        background: #f5b041 !important;
        color: #1e3d59 !important;
        border-color: #f5b041 !important;
    }

    /* Content adjustments */
    .banner-text h1 { font-size: 20px; }
    .banner-text p { font-size: 14px; }
    .product-card img, .featured-card img { height: 120px; }
    .products-grid, .featured-grid { padding: 20px 5%; }
}