/* Reset Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --dark-bg: #0f172a;
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navbar */
header {
    background: rgba(15, 23, 42, 0.9);
    padding: 20px 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 10px 20px;
    border-radius: 5px;
    color: white !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Ganti 'background.jpg' dengan nama file gambar Anda */
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), 
                url('images/mahjong-bg.jpg'); 
    
    background-size: cover;        /* Gambar akan menutupi seluruh area */
    background-position: center;   /* Gambar tetap di tengah */
    background-attachment: fixed;  /* Efek parallax saat di-scroll (opsional) */
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content h1 span {
    background: linear-gradient(to right, #00d2ff, #9cedff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ffffff; /* Warna dasar putih agar teks lainnya tetap terbaca */
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* Efek Gradasi untuk span di dalam paragraf */
.hero-content p span {
    background: linear-gradient(to right, #00d2ff, #9cedff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold; /* Agar gradasinya lebih terlihat jelas */
}

.btn-main {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-right: 15px;
    transition: 0.3s;
}

.btn-secondary {
    padding: 15px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-main:hover, .btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

/* Features Section */
.features {
    padding: 100px 10%;
    background-color: #111827;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
}

.feature-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Update Styling Kartu Fitur */
.feature-card {
    background: #1e293b;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid #334155;
    text-decoration: none; /* Menghilangkan garis bawah link */
    display: block;        /* Membuat seluruh area kartu bisa diklik */
    color: inherit;        /* Mengikuti warna teks utama */
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    background: #243146;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

.feature-card:hover .read-more {
    letter-spacing: 1px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    color: var(--text-dim);
}


/* Responsivitas Mobile */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Menyusun logo dan menu secara vertikal */
        gap: 15px;
    }

    .nav-links {
        display: flex;         /* Memunculkan kembali menu */
        flex-wrap: wrap;       /* Supaya menu bisa turun ke bawah jika layar sangat sempit */
        justify-content: center;
        gap: 10px;
        padding: 0;
    }

    .nav-links li {
        margin: 5px 10px;      /* Memberi jarak antar menu */
    }

    .nav-links a {
        font-size: 0.9rem;     /* Mengecilkan sedikit ukuran font di mobile */
    }

    .hero-content h1 {
        font-size: 2rem;       /* Ukuran judul lebih pas untuk layar HP */
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-main, .btn-secondary {
        display: block;        /* Tombol jadi bertumpuk di mobile */
        margin: 10px auto;
        width: 80%;
    }
}