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

/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    background: #2a9d8f;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    width: 200px;
    height: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links ul {
    list-style: none; /* Menghapus bullet points */
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;

}

.nav-links a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
    font-size: 16px;
}

.nav-links a:hover {
    color: #e9c46a;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    text-align: left;
}

.hero-content {
    flex: 1;
}

.handwriting-font {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem; /* Sesuaikan ukuran font */
    color: #e6af0c; /* Warna teks */
    transition: background 0.3s ease;
}

.hero h2 {
    font-size: 3rem;
    color: #264653;
    margin-bottom: 1rem;
    line-height: 4rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.hero .btn {
    background: #e76f51;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.hero .btn:hover {
    background: #d65f45;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1; /* Default posisi gambar */
}

.hero-gif {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Testimonials */
.testimonials {
    padding: 2rem 0;
    background: #e9c46a;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.testimonial {
    margin-bottom: 1rem;
    font-style: italic;
    color: #333;
}

/* Footer Section */
.main-footer {
    background: #2a9d8f;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsiveness */
@media (max-width: 1024px) { /* Tablet */
    .hero {
        flex-direction: space-between;
        text-align: start;
        padding: 4rem 3rem;
    }

    .logo {
        width: 150px;
    }

    .nav-links ul {
        font-size: 14px;
    }

    .hero-content {
        margin-top: 2rem;
        padding: 0 2rem;
        margin-bottom: 7rem;
    }

    .hero h2 {
        font-size: 2rem;
        line-height: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .hero-gif {
        max-width: 400px;
    }

    .testimonials h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) { /* Mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 0rem 0rem;
    }

    .handwriting-font {
        font-size: 2rem;
    }

    .hero-image {
        order: 1; /* Pastikan gambar tetap di atas */
    }

    .hero-content {
        order: 2; /* Teks berada di bawah */
    }

    .hero h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        font-size: 0.8rem;
    }

    .hero-gif {
        max-width: 300px;
    }

    .testimonials {
        padding: 1rem;
    }

    .testimonials h2 {
        font-size: 1.5rem;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    width: 30px;
    height: 30px;
    z-index: 1001;
    margin-right: 10px; /* Tambahkan jarak dari tepi kanan */
    position: relative; /* Pastikan posisi relatif untuk kontrol lebih baik */
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Responsive Menu */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e9c46a;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        align-self: center;
        right: 20px; /* Jarak dari tepi kanan */
    }

    .nav-links {
        display: none; /* Hide menu by default */
        flex-direction: column;
        position: absolute;
        top: 90%;
        right: 0;
        background: #2a9d8f;
        width: 100%;
        text-align: end;
        padding: 1rem 0;
        padding-right: 30px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Show menu when active */
    }

    .nav-links ul {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Services Section */
.services {
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    color: #264653;
    margin-bottom: 2rem;
}

.service-item {
    margin-bottom: 2rem;
    background-color: #e9c46a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item h3 {
    font-size: 1.8rem;
    color: #2a9d8f;
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 1.2rem;
    color: #333;
}
