/* --- DASAR --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0; padding: 0;
    background-color: #f8fafc;
    display: flex; justify-content: center;
    color: #334155;
}

.container { width: 90%; max-width: 900px; padding: 40px 0; }

a { text-decoration: none; color: inherit; }

/* --- NAVBAR (TAMBAHAN BARU) --- */
.navbar {
    width: 100%;
    background: rgba(248, 250, 252, 0.8); /* Warna background transparan */
    backdrop-filter: blur(10px); /* Efek blur kaca */
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: fixed; /* Tetap di atas saat di-scroll */
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

.nav-logo img {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #2563eb;
}

/* --- HERO SECTION --- */
.hero-section {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    gap: 30px; 
    margin-bottom: 50px;
    padding-top: 80px; /* Ditambah agar tidak tertutup Navbar */
}

.hero-content { flex: 1; }

h1 { 
    font-size: 2.5rem; 
    color: #1e293b; 
    margin: 0; 
    line-height: 1.2;
    display: flex;
    align-items: baseline; 
    flex-wrap: wrap; 
    gap: 0; 
}

h1 span:first-child {
    margin-right: 12px;
    white-space: nowrap;
}

.typing-text {
    color: #2563eb; 
    border-right: 3px solid #2563eb;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: typing 2s steps(15, end) forwards, blink 0.7s infinite;
}

@keyframes typing { from { width: 0 } to { width: 125px } }
@keyframes blink { 50% { border-color: transparent } }

.aka-text {
    display: block; 
    font-size: 1.1rem; 
    color: #64748b; 
    margin-top: 10px;
    font-weight: 400;
}

.role { color: #2563eb; font-weight: bold; font-size: 1.1rem; margin: 15px 0; }
.description { color: #475569; line-height: 1.6; margin-bottom: 20px; }

.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { width: 100%; max-width: 320px; border-radius: 20px; }

/* --- SOCIAL LINKS --- */
.social-links {
    display: flex;
    gap: 12px; 
    margin-top: 20px;
}

.btn-social {
    width: 45px;
    height: 38px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social img {
    width: 20px;
    filter: brightness(0) invert(1);
}

.btn-discord { background: #5865F2; box-shadow: 0 4px 6px rgba(88, 101, 242, 0.2); }
.btn-instagram { background: #E1306C; }
.btn-tiktok { background: #000000; }
.btn-facebook { background: #1877F2; }

.btn-social:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* --- ABOUT CARD --- */
.about-card {
    background: #ffffff; padding: 25px;
    border-radius: 12px; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- MARQUEE --- */
.skill-label {
    font-size: 0.8rem; font-weight: 900; color: #64748b;
    border-left: 4px solid #2563eb; padding-left: 12px;
    text-transform: uppercase; margin: 30px 0 15px;
}

.marquee {
    background: #ffffff; overflow: hidden;
    border: 1px solid #e2e8f0; border-radius: 12px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content { display: flex; width: max-content; padding: 15px 0; }
.marquee-content span {
    background: white; padding: 8px 16px; margin: 0 10px;
    border-radius: 10px; border: 1px solid #e2e8f0;
    font-weight: 700; display: flex; align-items: center;
}

.icon { width: 22px; height: 22px; margin-right: 10px; border-radius: 4px; }

.row1 { animation: jalan-kiri 35s linear infinite; }
.row2 { animation: jalan-kanan 35s linear infinite; }

@keyframes jalan-kiri { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes jalan-kanan { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    /* Munculkan kembali nav-links tapi atur posisinya agar rapi */
    .navbar {
        padding: 10px 0;
    }

    .nav-container {
        flex-direction: column; /* Susun logo dan menu secara vertikal */
        gap: 10px;
        padding: 10px 5%;
    }

    .nav-links {
        display: flex; /* Aktifkan kembali menu di mobile */
        gap: 15px;      /* Perkecil jarak antar menu agar muat satu baris */
    }

    .nav-links a {
        font-size: 0.8rem; /* Perkecil ukuran teks menu di mobile */
    }

    .nav-logo {
        font-size: 1rem;
    }

    /* Penyesuaian Hero Section agar tidak tertutup Navbar yang membesar */
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 130px; /* Jarak ditambah karena navbar jadi 2 baris */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    h1 {
        font-size: 1.8rem; 
        justify-content: center;
        align-items: baseline;
    }

    h1 span:first-child { margin-right: 8px; }

    .typing-text { font-size: 1.8rem; }
    
    /* Animasi typing khusus HP */
    @keyframes typing { from { width: 0 } to { width: 92px } }

    .aka-text { font-size: 0.9rem; }
    .social-links { justify-content: center; }
    .hero-image img { max-width: 200px; }
}

/* --- MARQUEE (OPTIMIZED FOR MOBILE) --- */
.skill-label {
    font-size: 0.8rem; font-weight: 900; color: #64748b;
    border-left: 4px solid #2563eb; padding-left: 12px;
    text-transform: uppercase; margin: 30px 0 15px;
}

.marquee {
    background: #ffffff; 
    overflow: hidden;
    border: 1px solid #e2e8f0; 
    border-radius: 12px;
    /* Optimasi: Mencegah kalkulasi ulang layout di luar kotak marquee */
    contain: content; 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content { 
    display: flex; 
    width: max-content; 
    padding: 15px 0;
    /* PENTING: Memaksa HP menggunakan GPU (Akselerasi Hardware) */
    will-change: transform;
    transform: translate3d(0, 0, 0); 
    backface-visibility: hidden;
}

.marquee-content span {
    background: white; 
    padding: 8px 16px; 
    margin: 0 10px;
    border-radius: 10px; 
    border: 1px solid #e2e8f0;
    font-weight: 700; 
    display: flex; 
    align-items: center;
    /* Mencegah gambar menyusut secara aneh saat loading */
    flex-shrink: 0; 
}

.icon { 
    width: 22px; 
    height: 22px; 
    margin-right: 10px; 
    border-radius: 4px;
    object-fit: cover;
}

/* Animasi menggunakan transform (lebih ringan daripada margin/left) */
.row1 { animation: jalan-kiri 35s linear infinite; }
.row2 { animation: jalan-kanan 35s linear infinite; }

@keyframes jalan-kiri { 
    from { transform: translate3d(0, 0, 0); } 
    to { transform: translate3d(-50%, 0, 0); } 
}

@keyframes jalan-kanan { 
    from { transform: translate3d(-50%, 0, 0); } 
    to { transform: translate3d(0, 0, 0); } 
}

/* --- TAMBAHAN OPTIMASI MOBILE --- */
@media (max-width: 768px) {
    /* Membuat pergerakan lebih lambat di HP agar render lebih stabil */
    .row1, .row2 {
        animation-duration: 45s; 
    }

    .marquee-content span {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Menghilangkan blur berlebih yang berat di HP spek rendah */
    .navbar {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}