/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    min-height: 100vh;
}

/* --- MODERN NAVBAR WITH GLASSMORPHISM --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed; /* Membuat navbar melayang tetap di atas */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(30, 60, 114, 0.3); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

nav .brand-logo {
    text-decoration: none;
}

/* Logo Putih Solid Bersih */
nav h1 {
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #ffffff; 
}

nav .nav-links {
    display: flex;
    align-items: center;
}

nav .nav-links a {
    margin-left: 35px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65); /* Sedikit redup saat tidak aktif agar kontras bagus */
    transition: color 0.3s ease;
    font-size: 15px;
    font-weight: 400;
    position: relative;
    padding: 5px 0;
}

/* Efek garis bawah animasi saat menu di-hover atau aktif */
nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    transition: width 0.3s ease;
}

nav .nav-links a:hover::after,
nav .nav-links a.active::after {
    width: 100%;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    color: #00f2fe; /* Menyala biru cyan terang saat aktif */
}

/* Tombol Hamburger (Default Tersembunyi di Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    margin-top: 100px; /* Jarak aman agar konten tidak tertutup navbar fixed */
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 1.5s ease;
}

.hero h1 {
    font-size: 50px;
}

.hero p {
    margin: 15px 0 25px 0;
    opacity: 0.8;
}

/* --- DROPDOWN DESIGN --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn.active .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    z-index: 100;
    overflow: hidden;
    padding: 6px;
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    top: 115%;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    text-align: left;
    border-radius: 12px;
    transition: 0.25s;
    margin-left: 0;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #00f2fe;
    transform: translateX(4px);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 8px;
}

/* --- CARDS CONTAINER --- */
.container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 50px;
    flex-wrap: wrap;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    width: 250px;
    border-radius: 20px;
    text-align: center;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 242, 254, 0.3);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popUp {
    from { opacity: 0; transform: translateX(-50%) scale(0.92); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* --- MEDIA QUERIES (RESPONSIVE RESPONS HP) --- */
@media(max-width: 768px) {
    .hero h1 { font-size: 32px; }
    
    nav { 
        padding: 15px 6%; 
    }

    .menu-toggle {
        display: flex; /* Memunculkan Hamburger Menu di HP */
    }

    /* Animasi Hamburger Menjadi Simbol X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mengubah susunan menu horizontal menjadi Menu Slide-In Samping */
    nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyi sebelum diklik */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 75%;
        height: 100vh;
        background: rgba(18, 38, 74, 0.96);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.85, 0, 0.15, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    /* Menampilkan menu panel saat aktif */
    nav .nav-links.active {
        right: 0;
    }

    nav .nav-links a {
        margin-left: 0;
        font-size: 20px;
    }
}