/* RESET DASAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* WARNA UTAMA */
:root {
    --primary-color: #2ecc71; /* Hijau Uang */
    --secondary-color: #27ae60;
    --text-color: #333;
    --bg-light: #ffffff;
}

/* NAVBAR */
.navbar {
    background-color: var(--bg-light);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600 !important;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* Mobile Menu Toggle (Tersembunyi di Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
}

/* HERO SECTION */
.hero-section {
    padding: 80px 0;
    background-color: white;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1; /* Memberikan porsi yang sama untuk konten dan gambar */
    text-align: center; /* Memusatkan gambar di dalam div-nya */
    padding: 20px; /* Tambahkan sedikit padding jika gambar terlalu rapat ke tepi */
}

.responsive-hero-img {
    max-width: 100%; /* Memastikan gambar tidak melebihi lebar kontainernya */
    height: auto; /* Mempertahankan rasio aspek gambar */
    display: block; /* Menghilangkan spasi ekstra di bawah gambar */
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.cta-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* SLIDER SECTION */
.slider-section {
    padding: 60px 0;
    text-align: center;
}

.slider-section h3 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.slider-wrapper {
    position: relative;
    max-width: 400px; /* Ukuran Mockup HP */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    opacity: 1;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.dots-container {
    text-align: center;
    padding: 10px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* FEATURE SECTION */
.features-section {
    padding: 60px 0 80px;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f4f6f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* MEDIA QUERIES untuk Responsif */
@media (max-width: 768px) {
    /* Navbar Responsif */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Sesuaikan dengan tinggi navbar */
        left: 0;
        background-color: var(--bg-light);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        padding: 10px 0;
    }

    .nav-links a {
        margin: 10px 20px;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero Responsif */
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-image {
        margin-top: 30px;
        order: 1;
    }

    .hero-content {
        order: 2;
    }

    .responsive-hero-img {
        max-width: 80%;
    }

    /* Slider Button Adjustments */
    .prev-btn, .next-btn {
        padding: 8px;
        font-size: 1rem;
    }
}