/* Mengambil font modern dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Background halus seluruh halaman */
body {
    background: #1d71f2;
}

/* Styling Header Utama - floating glass */
.main-header {
    position: sticky;
    top: 0;
    margin: 0;
    width: 100%;
    border-radius: 0;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    z-index: 999;
    transition: all 0.3s ease;
}

/* Efek mengecil saat scroll */
.main-header.scrolled {
    box-shadow: 
        0 12px 28px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Styling Logo */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1000; /* Pastikan logo tetap di atas overlay mobile */
}

.logo span {
    color: #E3000F;
}

/* Styling Menu Navigasi Desktop */
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    background: rgba(227, 0, 15, 0.08);
    color: #E3000F;
}

/* Sembunyikan ikon hamburger di desktop */
.hamburger {
    display: none;
}


/* =========================================
   RESPONSIVE DESIGN (Untuk Tablet & Mobile) 
   ========================================= */
@media screen and (max-width: 768px) {
    .main-header {
        top: 0;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 15px 5%;
        border: none;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Ganti dengan shadow tipis */
    }

    .logo {
        font-size: 24px;
    }

    /* FULL-SCREEN OVERLAY MENU */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(26px);
        -webkit-backdrop-filter: blur(26px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px; /* Jarak antar teks lebar */
        
        /* Animasi modern: menyembunyikan ke atas dengan transparan */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.98);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Animasi smooth ala iOS */
        z-index: 995;
    }

    /* Saat menu aktif */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        font-size: 26px; /* Ukuran teks besar & modern */
        font-weight: 600;
        color: #333;
        letter-spacing: 1px;
    }

    /* Hilangkan animasi garis bawah desktop di mobile */
    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        color: #E3000F;
    }

    /* Menu futuristik: fade-in per item */
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition: 0.4s ease;
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }

   /* =========================================
       HAMBURGER ICON - GEN Z EDITION
       ========================================= */
    .hamburger {
        display: flex;
        width: 48px;
        height: 48px;
        background-color: #F4F4F6; /* Latar belakang bulat abu-abu sangat muda */
        border: none;
        border-radius: 50%; /* Bentuk bulat sempurna */
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1000;
        position: relative;
        transition: background-color 0.3s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        -webkit-tap-highlight-color: transparent; /* Hilangkan highlight biru bawaan HP */
    }

    /* Efek squish (memendek/membal) saat disentuh layarnya */
    .hamburger:active {
        transform: scale(0.85);
    }

    .hamburger .bar {
        position: absolute;
        display: block;
        height: 3px; /* Agak ditebalkan sedikit agar bold */
        background: #E3000F;
        border-radius: 50px; /* Ujung garis sangat membulat (pill shape) */
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Animasi bouncy / pegas kekinian */
    }

    /* Garis Atas */
    .hamburger .bar:nth-child(1) {
        transform: translateY(-8px);
        width: 24px;
    }

    /* Garis Tengah - Asimetris (Lebih pendek & geser ke kanan) */
    .hamburger .bar:nth-child(2) {
        transform: translateY(0);
        width: 14px;
        margin-left: 10px; 
    }

    /* Garis Bawah */
    .hamburger .bar:nth-child(3) {
        transform: translateY(8px);
        width: 24px;
    }

    /* =========================================
       SAAT MENU TERBUKA (MENJADI 'X')
       ========================================= */
    .hamburger.active {
        background-color: rgba(227, 0, 15, 0.08); /* Lingkaran tombol memerah transparan */
        transform: rotate(90deg); /* Tombolnya ikut mutar sedikit biar dinamis */
    }

    .hamburger.active:active {
        transform: scale(0.85) rotate(90deg);
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(0) rotate(45deg);
        width: 24px;
    }

    /* Garis tengah seolah "terlempar" ke luar layar */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px) scale(0);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(0) rotate(-45deg);
        width: 24px;
    }
}

/* ACTIVE LINK */
.nav-links a.active {
    color: #E3000F;
    background: rgba(227, 0, 15, 0.12);
}

/* CTA BUTTON */
.nav-links .cta {
    background: linear-gradient(135deg, #E3000F, #ff4d4d);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(227, 0, 15, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links .cta::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    opacity: 0;
    transition: 0.4s;
}

.nav-links .cta:hover::before {
    opacity: 1;
}

.nav-links .cta:hover {
    background: linear-gradient(135deg, #E3000F, #ff4d4d);
    color: #fff !important;
    transform: translateY(-3px) scale(1.03);
}

/* HEADER HOVER SHADOW */
.main-header:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* LOGO EFFECT */
.logo:hover {
    transform: translateY(-1px);
    opacity: 0.9;
    transition: 0.3s;
}
