/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
     background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: #241258;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(216, 216, 216, 0.5); 
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar h1 {
    font-size: 1.8rem;
    color: #241258;
    margin: 0;
    font-weight: 600;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #ffd700; /* Gold color on hover */
}

.icon-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.icon-button:hover {
    color: #ffd700;
}

/* Hero Section */
section {
    padding: 2rem 1.5rem;
    padding-bottom: 80px;
    padding-top: 50px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #241258;
}

section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: #555;
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #003366;
}

.card p {
    font-size: 0.95rem;
    color: #777;
}

.card a {
    display: inline-block;
    margin-top: 1rem;
    color: #241258;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.card a:hover {
    color: #ffcc00;
}

/* Form */
form {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form input, form textarea, form button {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

form input:focus, form textarea:focus {
    border-color: #241258;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}

form button {
    background-color: #241258;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #241258;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}

/* Video Section */
.video-section {
    position: relative;
    overflow: hidden;
    height: 80vh; /* Increased height */
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
}

.video-overlay h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #f1f1f1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.video-overlay p {
    font-size: 1.2rem;
    color: #f1f1f1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}


/* Benefit Section */
.benefits-section {
    position: relative; /* Agar gambar dapat diposisikan di dalam .benefits-section */
    padding: 40px 0;
    text-align: center;
    color: white; /* Ganti warna teks agar kontras dengan gambar latar belakang */
}

.benefits-section .background-video-container video {
    position: absolute; /* Video diposisikan di belakang konten */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Video menutupi seluruh elemen */
    object-fit: cover; /* Menjaga proporsi video */
    z-index: -1; /* Menempatkan video di belakang semua konten */
}


.benefits-section h2 {
    font-size: 2.5rem;
    color: #fff; /* Teks berwarna putih agar kontras */
    margin-bottom: 20px;
}

.benefits-section p {
    font-size: 1.1rem;
    color: #f0f0f0; /* Teks sedikit lebih terang agar terbaca jelas */
    margin-bottom: 30px;
}

.benefits-section ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cards in one row */
    gap: 20px;
    justify-items: center; /* Centers the cards horizontally */
}

.benefits-section li {
    background-color: rgba(255, 255, 255, 0.8); /* Membuat background kartu transparan */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 230px;
    margin: 0 auto;
}

.benefits-section li:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.benefits-section li i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 15px;
}

.benefits-section li h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.benefits-section li p {
    font-size: 1rem;
    color: #555;
}

/* Responsif untuk layar lebih kecil */
@media (max-width: 768px) {
    .benefits-section ul {
        grid-template-columns: repeat(3, 1fr); /* 3 card per baris untuk layar lebih kecil */
    }
}

@media (max-width: 480px) {
    .benefits-section ul {
        grid-template-columns: repeat(2, 1fr); /* 2 card per baris untuk layar lebih kecil lagi */
    }
}


/* Contact or Support Section */
#contact {
    padding: 40px;
}

/* Flex container for Contact Form and Support Info */
.contact-support-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

/* Styling the contact form */
.contact-form {
    align-items: flex-start;
    width: 100%;
    margin-left: 20px;
    margin-right: 10px;
    max-width: 500px;
    padding: 20px;
    background-color: #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #241258;
}

/* Styling the Support Info */
.support-info {
    text-align: left;
    max-width: 500px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-right: 150px;
    margin-top: 100px;
}

.support-info p {
    margin: 10px 0;
}

.support-info i {
    color: #007bff;
    margin-right: 10px;
    font-size: 1.5rem; /* Adjust the size of the icons */
}

.support-info a {
    color: #007bff;
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

/* Social media links styling */
.support-info a i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.support-info a {
    display: inline-block;
    margin-right: 15px;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .contact-support-container {
        flex-direction: column; /* Stack form and info on top of each other */
        align-items: center;
    }

    .contact-form,
    .support-info {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .footer {
        grid-template-columns: 1fr; /* Stack content vertically */
        min-height: auto; /* Adjust height to fit content */
        padding: 1rem; /* Reduce padding */
    }

    .footer .content {
        grid-gap: 2rem; /* Reduce gap between items */
    }

    .footer .content > div {
        align-items: center; /* Center align items */
        text-align: center; /* Center text */
    }

    .footer .content a, 
    .footer .content p {
        font-size: 0.875rem; /* Adjust font size */
    }

    .footer .bubbles {
        display: none; /* Optional: Hide decorative bubbles for smaller screens */
    }
}
.footer {
    z-index: 1;
    --footer-background:#241258;
    display:grid;
    position: relative;
    grid-area: footer;
    min-height:14rem;
    .bubbles {
        position: absolute;
        top:0;
        left:0;
        right:0;
        height:1rem;
        background:var(--footer-background);
        filter:url("#blob");
        .bubble {
            position: absolute;
            left:var(--position, 50%);
            background:var(--footer-background);
            border-radius:100%;
            animation:bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s),
                bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
            transform:translate(-50%, 100%);
        }
    }
    .content {
        z-index: 2;
        display:grid;
        grid-template-columns: 1fr auto;
        grid-gap: 4rem;
        padding:2rem;
        background:var(--footer-background);
        a, p {
            color:#F5F7FA;
            text-decoration:none;
        }
        b {
            color:white;
        }
        p {
            margin:0;
            font-size:.75rem;
        }
        >div {
            display:flex;
            flex-direction:column;
            justify-content: center;
            >div {
                margin:0.25rem 0;
                >* {
                    margin-right:.5rem;
                }
            }
            .image {
                align-self: center;
                width:4rem;
                height:4rem;
                margin:0.25rem 0;
                background-size: cover;
                background-position: center;
            }
        }
    }
}


@keyframes bubble-size {
0%, 75% {
    width:var(--size, 4rem);
    height:var(--size, 4rem);
}
100% {
    width:0rem;
    height:0rem;
}
}
@keyframes bubble-move {
0% {
    bottom:-4rem;
}
100% {
    bottom:var(--distance, 10rem);
}
}
