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

/* Base Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 1.6;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(50deg, #007bff, #0066e6);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 23px;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 50px;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover,
nav a:focus {
    background: rgba(255, 255, 255, 0.2);
    color: #ffdf00;
    transform: translateY(-2px);
}

nav a:focus {
    outline: 2px solid #ffdf00;
    outline-offset: 4px;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 100px;
    background: linear-gradient(135deg, #007bff, #006fe6);
}

.hero-content {
    max-width: 50%;
    text-align: left;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 0px;
    color: white;
}

.hero-content h1 span {
    color: #ffd700;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: -10px;
}

.pricing {
    margin: 20px 0;
}

.original-price {
    font-size: 20px;
    color: #ccc;
}

.original-price s {
    margin-left: 10px;
}

.discount-price {
    font-size: 40px;
    font-weight: bold;
    color: #ffdf00;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    color: #007bff;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #ffdf00cc;
}

/* Hero Image */
.hero-image img {
    width: 400px;
    height: auto;
    animation: move-up-down 2s ease-in-out infinite;
}

/* Animasi */
@keyframes move-up-down {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px;
    background: #0056b3;
    color: white;
    font-size: 14px;
}

/* Responsif untuk layar kecil dan tablet */
@media screen and (max-width: 1024px) {
    header {
        flex-direction: row; /* Pastikan header tetap horizontal */
        justify-content: space-between;
        padding: 10px 20px;
    }

    .logo {
        justify-content: flex-start;
    }

    nav ul {
        gap: 20px;
    }

    .hero {
        flex-direction: column;
        padding: 40px 20px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .pricing {
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        margin-top: 20px;
    }

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

/* Responsif untuk layar sangat kecil (ponsel) */
@media screen and (max-width: 768px) {
    header {
        justify-content: flex-start; /* Menu di kiri */
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block; /* Tampilkan menu ☰ */
        font-size: 40px;
        color: white;
        cursor: pointer;
        margin-left: auto; /* Mengatur agar ikon berada di kanan */
    }
    

    .logo {
        display: flex;
        align-items: center;
    }

    .logo-img {
        width: 30px; /* Perkecil ukuran logo */
        height: 30px;
        margin-right: 5px;
    }

    nav ul {
        display: none; /* Menu awalnya disembunyikan */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Sesuaikan tinggi header */
        right: 15px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 10px;
        padding: 15px;
        width: 250px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    nav ul.active {
        display: flex; /* Tampilkan menu saat diaktifkan */
    }
}


.pricing-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Bayangan lebih halus */
}

.pricing-section h2 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-cards {
    display: flex;
    justify-content: space-between; /* Menjaga kartu tetap terpisah */
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    flex-basis: calc(25% - 20px); /* Mengatur kartu untuk 4 per baris */
    padding: 30px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    margin-bottom: 30px; /* Jarak antar baris */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.card p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 25px;
}

.card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.card ul li {
    margin: 12px 0;
    color: #34495e;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.card ul li::before {
    content: '\2713';
    color: #2ecc71;
    margin-right: 12px;
    font-size: 1.2rem;
}

.card .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.card.popular {
    border: 2px solid #f39c12;
}

.card.popular .badge {
    background: #f39c12;
    color: white;
}

.card.terlaris {
    border: 2px solid #e74c3c;
}

.card.terlaris .badge {
    background: #e74c3c;
    color: white;
}

/* Responsif */
@media (max-width: 1200px) {
    .pricing-cards {
        flex-direction: row;
        justify-content: space-around;
    }
}

@media (max-width: 992px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%;
        max-width: 400px;
    }
}

/* Footer Styling */
footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 40px 20px;
    box-sizing: border-box;
}

footer .footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom pada desktop */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer .footer-container h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;
}

footer .footer-container ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

footer .footer-container ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

footer .footer-container ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

footer .footer-container ul li a:hover {
    color: #007bff;
}

footer .social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

footer .social-media i {
    font-size: 1.3rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

footer .social-media i:hover {
    color: #007bff;
}

footer .subscribe-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

footer .subscribe-form input {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 20px;
    flex: 1;
}

footer .subscribe-form button {
    padding: 10px 15px; /* Tombol subscribe lebih kecil di samping input */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

footer .subscribe-form button:hover {
    background-color: #0056b3;
}

footer .footer-bottom {
    margin-top: 30px;
    text-align: left;
    font-size: 0.9rem;
    color: #777;
}

/* Responsif untuk layar tablet dan lebih kecil */
@media screen and (max-width: 1024px) {
    footer .footer-container {
        grid-template-columns: repeat(2, 1fr); /* Menampilkan 2 kolom pada tablet */
    }
}

/* Responsif untuk ponsel */
@media screen and (max-width: 768px) {
    footer {
        padding: 20px 10px;
    }

    footer .footer-container {
        grid-template-columns: 1fr; /* Menampilkan 1 kolom pada ponsel */
    }

    footer .social-media {
        justify-content: center;
        gap: 10px;
    }

    footer .social-media i {
        font-size: 1.2rem;
    }

    footer .subscribe-form {
        flex-direction: row; /* Tombol dan input bersebelahan */
        justify-content: center;
        gap: 5px;
    }

    footer .subscribe-form input {
        width: 80%; /* Memperlebar input untuk memberi ruang tombol */
    }

    footer .subscribe-form button {
        width: auto;
        font-size: 0.9rem; /* Mengurangi ukuran tombol */
        padding: 8px 12px; /* Tombol sedikit lebih kecil */
    }

    footer .footer-bottom {
        font-size: 0.8rem;
    }
}

/* Responsif untuk layar kecil sekali */
@media screen and (max-width: 480px) {
    footer {
        padding: 15px 5px;
    }

    footer .footer-container h3 {
        font-size: 1.2rem;
    }

    footer .footer-container ul li {
        font-size: 0.9rem;
    }

    footer .footer-container ul li a {
        font-size: 0.9rem;
    }

    footer .footer-bottom {
        font-size: 0.7rem;
    }

    footer .social-media i {
        font-size: 0.9rem;
    }

    footer .subscribe-form input,
    footer .subscribe-form button {
        font-size: 0.9rem;
    }
}
