/* Reset CSS Sederhana */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilitas */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigasi */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #007bff;
}

/* Styling untuk tombol login jika diperlukan */
.login-btn {
    display: inline-block; /* Penting untuk tag <a> agar padding bekerja dengan baik */
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none; /* Memastikan tidak ada garis bawah untuk link */
    text-align: center; /* Menengahkan teks jika diperlukan */
}

.login-btn:hover {
    background-color: #0056b3;
    color: white; /* Pastikan warna teks tetap saat hover */
    text-decoration: none; /* Pastikan tidak ada garis bawah saat hover */
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 123, 255, 0.05), rgba(0, 123, 255, 0.05)), url('../images/hero-bg.gif') no-repeat center center/cover;
    color: #333; /* Ubah warna teks agar kontras dengan background terang */
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 80vh;
    text-align: left;
}

.hero-content {
    max-width: 600px;
    animation: slideInFromLeft 1s ease-out;
}

.hero-content h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #222;
}

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

.cta-button {
    background-color: #28a745;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #218838;
    transform: translateY(-3px);
}

.hero-image {
    max-width: 500px;
    animation: slideInFromRight 1s ease-out;
}

.hero-image img {
    width: 100%;
}

/* Animasi untuk Hero */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Section Umum */
section {
    padding: 80px 20px;
    text-align: center;
}

section h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #007bff;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #28a745;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Paket Section */
#paket {
    background-color: #ffffff;
}

.paket-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; /* Agar responsif */
}

.paket-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 2rem;
    width: 320px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.paket-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.paket-card.popular {
    border-top: 5px solid #28a745;
}

.popular-badge {
    position: absolute;
    top: -1px; /* Sesuaikan agar pas dengan border */
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 0 5px 5px;
}

.paket-header h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.6rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.paket-header .harga {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.paket-header .harga span {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.paket-card ul {
    margin-bottom: 2rem;
}

.paket-card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    color: #555;
}

.paket-card ul li .icon {
    color: #28a745;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.paket-button {
    display: block;
    background-color: #007bff;
    color: white;
    padding: 0.7rem;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.paket-button:hover {
    background-color: #0056b3;
}

.paket-card.popular .paket-button {
    background-color: #28a745;
}

.paket-card.popular .paket-button:hover {
    background-color: #218838;
}

/* Fitur Section */
#fitur {
    background-color: #f0f8ff; /* Light blue background */
}

.fitur-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.fitur-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}

.fitur-item:hover {
    transform: translateY(-8px);
}

.fitur-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    /* Warna bisa disesuaikan via SVG atau filter CSS jika perlu */
}

.fitur-item h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.4rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.fitur-item p {
    font-size: 0.95rem;
    color: #666;
}

/* Kontak Section */
#kontak {
    background-color: #ffffff;
}

#kontak p {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    color: #555;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.submit-button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #218838;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 2.5rem 20px;
}

footer p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-media a {
    margin: 0 0.7rem;
    display: inline-block; /* Agar bisa di-transform */
    transition: transform 0.3s ease;
}

.social-media img {
    width: 28px; /* Ukuran ikon sosial media */
    height: 28px;
    filter: grayscale(100%) brightness(200%); /* Membuat ikon putih */
}

.social-media a:hover {
    transform: scale(1.2);
}

.social-media a:hover img {
    filter: none; /* Warna asli saat hover, jika SVG berwarna */
}

/* Styling untuk Modal Login */
.modal {
    display: none; /* Sembunyikan secara default */
    position: fixed; /* Tetap di tempat saat scroll */
    z-index: 1000; /* Pastikan di atas header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Aktifkan scroll jika konten terlalu panjang */
    background-color: rgba(0,0,0,0.6); /* Latar belakang semi-transparan */
    display: flex; /* Untuk memusatkan modal-content */
    align-items: center; /* Vertikal tengah */
    justify-content: center; /* Horizontal tengah */
}

.modal-content {
    background-color: #fefefe;
    margin: auto; /* Dihapus karena flexbox akan menangani pemusatan */
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px; /* Batas lebar maksimum */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; /* Untuk positioning close button */
    animation: fadeInModal 0.3s ease-out;
}

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

.modal-content h2 {
    font-family: 'Roboto Slab', serif;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.modal-content .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.modal-content .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
    font-size: 0.9rem;
}

.modal-content .form-group input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box; /* Pastikan padding tidak menambah lebar total */
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.login-button-modal {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.login-button-modal:hover {
    background-color: #0056b3;
}

.register-link-modal {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.register-link-modal a {
    color: #007bff;
    font-weight: 600;
}

.register-link-modal a:hover {
    text-decoration: underline;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    #hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* Sembunyikan navigasi desktop, bisa diganti dengan menu mobile */
        /* Implementasi menu mobile (hamburger) akan memerlukan JavaScript */
    }
    .login-btn {
        /* Mungkin perlu disesuaikan posisinya jika nav ul hilang */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    section h2 {
        font-size: 2.2rem;
    }
    .paket-container {
        flex-direction: column;
        align-items: center;
    }
    .paket-card {
        width: 90%;
        max-width: 350px;
    }
    .fitur-container {
        grid-template-columns: 1fr; /* Satu kolom di layar kecil */
    }
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    section h2 {
        font-size: 1.8rem;
    }
    .paket-header .harga {
        font-size: 1.8rem;
    }
    .paket-card ul li {
        font-size: 0.9rem;
    }
}

/* Animasi Scroll Sederhana (opsional, bisa dikembangkan di JS) */
.animated-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

{
    transition: all 0.3s ease;
}

{
    transform: scale(1.1);
}