:root {
    --primary-color: #e41414; /* Merah */
    --secondary-color: #ffffff; /* Putih */
    --background-color: #f0f0f0; /* Abu-abu muda untuk latar */
    --card-bg: #ffffff;
    --text-color: #333;
    --heading-color: #e41414; /* Merah untuk judul */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

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

/* Header */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo img {
    height: 40px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #e0e0e0;
}

/* Hero Section */
#hero {
    /* Mengganti background dengan gradien linier */
    background: linear-gradient(to right, var(--primary-color), #ff4d4d);
    color: var(--secondary-color);
    text-align: center;
    padding: 100px 20px;
    height: 100vh; /* Agar full-screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero h1 {
    font-size: 3.5rem; /* Ukuran font yang lebih besar */
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#hero p {
    font-size: 1.5rem; /* Ukuran font yang lebih besar */
    max-width: 600px;
    margin-bottom: 20px;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px; /* Bentuk tombol yang lebih modern */
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px); /* Efek mengangkat saat dihover */
}

/* Services Section */
#services {
    padding: 60px 0;
    text-align: center;
}

#services h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--heading-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin: 10px 0;
}

.features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 20px;
}

.features li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.select-plan {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
}

.select-plan:hover {
    background-color: #c41010;
}

/* Checkout Section */
#checkout {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.hidden {
    display: none;
}

#checkout h2 {
    color: var(--secondary-color);
    text-align: center;
}

.checkout-summary, .checkout-form {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto 20px auto;
    max-width: 600px;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.checkout-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Penting untuk responsivitas */
}

#pay-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    transition: background-color 0.3s;
}

#pay-button:hover {
    background-color: #c41010;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

.contact-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #555;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-info p {
    margin: 0;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* === Media Queries for Responsiveness === */
@media (max-width: 768px) {
    #hero {
        height: 60vh; /* Sesuaikan tinggi untuk perangkat mobile */
        padding: 60px 20px;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }

    nav {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        margin: 5px 0;
    }
}
