@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #09090b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-1: #38bdf8; /* Cyan */
    --accent-2: #818cf8; /* Indigo */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- BACKGROUND GLOW --- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}
.blob-1 {
    width: 400px; height: 400px;
    background: var(--accent-1);
    top: -10%; left: -10%;
}
.blob-2 {
    width: 500px; height: 500px;
    background: var(--accent-2);
    bottom: -20%; right: -10%;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* --- UTILITIES --- */
.gradient-text {
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- NAVBAR FLOATING --- */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}
.nav-brand { font-weight: 800; font-size: 1.2rem; }
.nav-brand span { color: var(--accent-1); }

.nav-menu { 
    display: flex; 
    gap: 30px; 
    list-style: none; 
}
.nav-menu a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-size: 0.95rem; 
    font-weight: 500; 
    transition: 0.3s; 
}
.nav-menu a:hover { color: var(--accent-1); }

.nav-toggle { 
    display: none; 
    cursor: pointer; 
    font-size: 1.2rem; 
    color: var(--text-main); 
    z-index: 1001;
}

/* --- BUTTONS --- */
.btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary { 
    background: var(--text-main); 
    color: var(--bg-dark); 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(255,255,255,0.15); 
}
.btn-glass { 
    background: var(--glass-bg); 
    color: var(--text-main); 
    border-color: var(--glass-border); 
}
.btn-glass:hover { 
    background: var(--glass-hover); 
    transform: translateY(-3px); 
}

/* --- HERO SECTION --- */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding-top: 100px; 
}
.badge-tech {
    display: inline-block; 
    padding: 8px 16px; 
    border-radius: 50px;
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border);
    font-size: 0.85rem; 
    color: var(--accent-1); 
    margin-bottom: 25px;
}
.hero-title { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 800; 
    line-height: 1.2; 
    margin-bottom: 25px; 
    letter-spacing: -1px; 
}
.hero-desc { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    max-width: 650px; 
    margin: 0 auto 40px; 
}
.hero-btns { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
}

/* --- SECTIONS --- */
section { padding: 80px 0; }
.section-heading { 
    font-size: 2.2rem; 
    font-weight: 700; 
    margin-bottom: 40px; 
    text-align: center; 
}

/* --- BENTO GRID ABOUT --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(200px, auto);
}
.bento-box { 
    padding: 30px; 
    transition: transform 0.3s ease, border-color 0.3s; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bento-box:hover { 
    transform: translateY(-5px); 
    border-color: rgba(255,255,255,0.2); 
}
.bento-box h3 { 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
    color: var(--text-main); 
}
.bento-box p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    line-height: 1.7;
}

.intro-box { grid-column: span 2; }
.exp-box { grid-column: span 1; }
.tech-box { 
    grid-column: span 3; 
    align-items: center; 
    text-align: center; 
}

.icon-box {
    width: 50px; height: 50px; 
    background: rgba(129, 140, 248, 0.1);
    color: var(--accent-2); 
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}
.exp-box .date { 
    color: var(--accent-1); 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-bottom: 10px; 
}

.tech-icons { 
    display: flex; 
    gap: 25px; 
    flex-wrap: wrap; 
    justify-content: center; 
    margin-top: 15px; 
}
.tech-icons i { 
    font-size: 3rem; 
    color: var(--text-muted); 
    transition: 0.3s; 
}
.tech-icons i:hover { 
    color: var(--accent-1); 
    transform: scale(1.1); 
}

/* --- PROJECTS LIST --- */
.project-list { 
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
}
.project-item { 
    display: flex; 
    gap: 40px; 
    padding: 30px; 
    align-items: center; 
}
.project-img { 
    flex: 1; 
    border-radius: 16px; 
    overflow: hidden; 
}
.project-img img { 
    width: 100%; 
    height: auto; 
    display: block; 
    transition: transform 0.5s ease; 
}
.project-item:hover .project-img img { transform: scale(1.03); }
.project-info { flex: 1; }
.project-info .tag { 
    color: var(--accent-1); 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    display: inline-block;
    margin-bottom: 10px;
}
.project-info h3 { font-size: 1.8rem; margin-bottom: 15px; line-height: 1.3; }
.project-info p { color: var(--text-muted); margin-bottom: 25px; }
.project-link { 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: 0.3s; 
}
.project-link:hover { color: var(--accent-1); gap: 12px; }

/* --- FOOTER / CONTACT --- */
footer { padding: 40px 0 60px; text-align: center; }
.footer-container { padding: 50px 30px; }
.footer-container h2 { font-size: 2rem; margin-bottom: 10px; }
.footer-container p { color: var(--text-muted); margin-bottom: 30px; }
.footer-links { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 40px; 
    flex-wrap: wrap; 
}
.social-mini { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 20px; 
}
.social-mini a { 
    color: var(--text-muted); 
    font-size: 1.5rem; 
    transition: 0.3s; 
}
.social-mini a:hover { color: var(--text-main); transform: translateY(-3px); }
.copyright { 
    font-size: 0.85rem; 
    border-top: 1px solid var(--glass-border); 
    padding-top: 20px; 
    margin-top: 20px; 
    color: var(--text-muted);
}

/* --- ANIMATIONS (Scroll Reveal) --- */
.hidden { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); 
}
.show { 
    opacity: 1; 
    transform: translateY(0); 
}

/* =========================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
========================================= */

/* Tablet */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .intro-box { grid-column: span 2; }
    .exp-box { grid-column: span 2; } /* Lebar penuh di tablet */
    .tech-box { grid-column: span 2; }
    
    .project-item {
        flex-direction: column;
        padding: 25px;
    }
    /* Pastikan gambar selalu di atas pada layar kecil */
    .project-item:nth-child(even),
    .project-item:nth-child(odd) {
        flex-direction: column;
    }
    .project-img { width: 100%; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Navbar Mobile Fix */
    .glass-nav { 
        width: 100%; 
        top: 0; 
        border-radius: 0; 
        border-top: none; 
        border-left: none; 
        border-right: none; 
        padding: 15px 24px;
        background: rgba(9, 9, 11, 0.9);
    }
    .nav-toggle { display: block; }
    
    .nav-menu { 
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        /* Default sembunyi dengan transisi */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }
    
    /* Class ini akan dipicu oleh JavaScript */
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero { padding-top: 120px; }
    .hero-title { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    
    
    .intro-box, .exp-box, .tech-box { grid-column: span 1; padding: 25px; }
    
    .project-item { padding: 20px; gap: 20px; }
    .project-info h3 { font-size: 1.5rem; }
    
    .footer-container { padding: 40px 20px; }
    .footer-links { flex-direction: column; }
    .footer-links .btn { width: 100%; justify-content: center; }
    
    /* Blob size reduction on mobile */
    .blob-1 { width: 300px; height: 300px; top: -5%; }
    .blob-2 { width: 300px; height: 300px; bottom: -5%; }
}