/* 1. ANIMASI MARQUEE (BERJALAN MENYAMPING & BISA DIGESER MANUAL)
   Container utama dengan fitur scroll horizontal tanpa batang scrollbar. */
.marquee-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 15px 0;
    scroll-behavior: smooth;
    
    /* Menghilangkan scrollbar untuk Firefox & IE/Edge modern */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Menghilangkan scrollbar untuk Chrome, Safari, dan Opera */
.marquee-wrapper::-webkit-scrollbar {
    display: none;
}

/* Track yang bergerak otomatis dari kanan ke kiri */
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    flex-shrink: 0;
    will-change: transform;
    animation: scrollRightToLeft 30s linear infinite !important;
}

@keyframes scrollRightToLeft {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-50% - 10px), 0, 0); }
}

/* 2. DESAIN FOOTER EKSELUSIF (TEMA GEMINI / GLASSMORPHISM)*/
.custom-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px 0;
    margin-top: 80px;
    background: rgba(3, 3, 8, 0.6);
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-title {
    color: #00f2fe;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 25px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* PERBAIKAN STACKING CONTEXT (DROPDOWN TERTUMPUK KARTU DI BAWAHNYA) */
.glass-box {
    position: relative; /* Memastikan z-index aktif pada kontainer kartu */
}

/* Mengangkat kartu ke lapisan paling atas saat disentuh atau dropdown terbuka */
.glass-box:hover,
.glass-box:focus-within,
.glass-box:has(.custom-select-wrapper.open) {
    z-index: 50 !important;
}

/* 3. RESPONSIVE MOBILE OPTIMIZATION (ZERO DEPENDENCY) */
@media (max-width: 768px) {
    /* 1. Mengecilkan teks judul yang terlalu besar di HP */
    h1.glow-text {
        font-size: 2.5rem !important;
    }
    h2.glow-text {
        font-size: 1.8rem !important;
    }
    
    /* 2. HAMBURGER MENU MOBILE (Zero Dependency - Z-Index Fix) */
    nav {
        position: relative !important;
        z-index: 99999 !important; /* PENTING: Memaksa seluruh navbar berada di lapisan paling atas */
    }

    .hamburger {
        display: block !important;
    }
    
    .nav-menu {
        display: none !important;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        /* Diubah menjadi warna gelap pekat solid (#05050f) agar teks bercahaya di belakangnya tidak tembus */
        background: #05050f !important; 
        border: 1px solid rgba(0, 242, 254, 0.4);
        border-radius: 16px;
        padding: 25px 20px;
        flex-direction: column;
        gap: 20px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
        z-index: 99999 !important; /* PENTING: Lapisan dropdown di atas segalanya */
    }

    .nav-menu.active {
        display: flex !important;
        animation: fadeIn 0.3s ease;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 5px !important;
    }
    
    .nav-menu ul li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 12px;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* 3. Menyesuaikan Padding container dan jarak seksi */
    .container {
        width: 92%;
    }
    section {
        padding-top: 40px !important;
        margin-bottom: 50px !important;
    }
    
    /* 4. Tombol dibuat penuh memanjang ke bawah (Stacking) */
    .btn {
        display: block;
        width: 100%;
        margin: 0 0 15px 0 !important;
        box-sizing: border-box;
        text-align: center;
    }
    
    /* 5. Khusus untuk Code Editor Terminal agar tidak jebol */
    .code-content {
        font-size: 0.85rem !important;
    }

    .floating-wa-container { position: fixed; right: 16px; bottom: 16px; width: auto; margin: 0; }

    .wa-toggle {
        width: 50px;
        height: 50px;
        margin: 0;
    }

    .wa-menu {
        position: absolute;
        right: 0;
        bottom: 70px;
        width: min(250px, calc(100vw - 32px));
        margin: 0;
    }
}

/* Header tetap terlihat ketika halaman digulir. */
.site-header {
    position: sticky !important;
    top: 0;
    z-index: 999999 !important;
}

/* 4. RESPONSIVE TEAM CARDS (TENTANG KAMI) */
.team-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 80px;
    flex-wrap: wrap; /* PENTING: Mengizinkan kartu turun ke bawah saat layar sempit */
}

/* Mengatur proporsi ukuran masing-masing kartu developer */
.team-wrapper .glass-box {
    flex: 1;
    min-width: 280px; /* Batas minimal ukuran kartu sebelum otomatis turun ke bawah */
    max-width: 450px; /* Batas maksimal agar tidak terlalu lebar saat di layar PC */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-wrapper .glass-box > h2 {
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.team-wrapper .glass-box > p:last-of-type {
    flex: 1;
}

.team-wrapper .glass-box > .btn {
    width: min(100%, 260px) !important;
    margin-top: auto !important;
    white-space: nowrap;
}
