/* Pengaturan Dasar dan Latar Belakang Gradien */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    background: url(https://premicloud.net/banner/image/sports/7meter_General%20Web%20BG_asset.webp) no-repeat center center fixed;
    background-size: cover; /* supaya gambar memenuhi layar */
}

/* Header dan Navigasi */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0.2);
}

.logo h1 {
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffeb3b; /* Warna kuning saat disentuh */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Slider Gambar */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 100%;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Tombol CTA dengan Efek Neon Berkedip */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-blue-glow {
    border-color: #00aeff;
    animation: glowing-blue 2s infinite;
}

.btn-yellow-glow {
    border-color: #ffeb3b;
    animation: glowing-yellow 2s infinite;
}

/* Animasi Keyframes untuk Efek Neon */
@keyframes glowing-blue {
    0% { box-shadow: 0 0 5px #00aeff, 0 0 10px #00aeff, 0 0 15px #00aeff; }
    50% { box-shadow: 0 0 20px #00aeff, 0 0 30px #00aeff, 0 0 40px #00aeff; }
    100% { box-shadow: 0 0 5px #00aeff, 0 0 10px #00aeff, 0 0 15px #00aeff; }
}

@keyframes glowing-yellow {
    0% { box-shadow: 0 0 5px #ffeb3b, 0 0 10px #ffeb3b, 0 0 15px #ffeb3b; }
    50% { box-shadow: 0 0 20px #ffeb3b, 0 0 30px #ffeb3b, 0 0 40px #ffeb3b; }
    100% { box-shadow: 0 0 5px #ffeb3b, 0 0 10px #ffeb3b, 0 0 15px #ffeb3b; }
}

/* Bagian Fitur */
.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    background-color: rgba(0,0,0,0.1);
}

.feature-item {
    text-align: center;
    max-width: 250px;
}

.feature-item i {
    font-size: 3em;
    color: #ffeb3b;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: rgba(0, 0, 0, 0.3);
}

/* --- Media Queries for Responsive Design --- */

/* Aturan untuk layar dengan lebar maksimal 768px (Tablet dan Ponsel) */
@media (max-width: 768px) {

    /* 1. Menyesuaikan Header dan Navigasi */
    header {
        flex-direction: column; /* Mengubah tata letak header menjadi vertikal */
        padding: 20px;
        gap: 20px; /* Memberi jarak antara logo dan menu */
    }

    nav ul {
        flex-direction: column; /* Menu navigasi juga menjadi vertikal */
        align-items: center;
        gap: 15px; /* Jarak antar item menu */
    }

    nav ul li {
        margin-left: 0; /* Menghapus margin kiri yang tidak perlu di tampilan mobile */
    }

    /* 2. Menyesuaikan Ukuran Font di Hero Section */
    .hero h2 {
        font-size: 2.2em; /* Mengecilkan ukuran judul utama */
    }

    .hero p {
        font-size: 1em; /* Mengecilkan ukuran teks deskripsi */
    }

    /* 3. Menyesuaikan Tombol CTA */
    .cta-buttons {
        flex-direction: column; /* Membuat tombol berbaris vertikal */
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 80%; /* Tombol memenuhi sebagian besar lebar layar */
        text-align: center;
    }

    /* 4. Menyesuaikan Bagian Fitur */
    .features {
        flex-direction: column; /* Membuat kolom fitur menjadi vertikal */
        align-items: center;
        gap: 30px;
    }

    .feature-item {
        max-width: 300px; /* Sedikit memperlebar item fitur di mobile */
    }
}

/* Aturan tambahan untuk layar yang sangat kecil (Ponsel) */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8em; /* Mengecilkan judul lebih lanjut */
    }

    .slider-btn {
        padding: 8px 12px; /* Mengecilkan tombol navigasi slider */
        font-size: 1.2em;
    }
    
    .btn {
        font-size: 1em; /* Mengecilkan font di dalam tombol CTA */
        padding: 12px 25px;
    }
}