/* Global Styles */
        :root {
            --bg-color: #0d1117; /* Dark background */
            --text-color: #e6edf3; /* Light text */
            --accent-color: #8b5cf6; /* Purple accent */
            --accent-light: #a78bfa;
            --secondary-bg: #161b22; /* Slightly lighter dark for cards */
            --border-color: #30363d;
            --code-font: 'Roboto Mono', monospace;
            --body-font: 'Poppins', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--body-font);
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        section {
            padding: 80px 0;
        }

        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text-color);
        }

        h2 {
            font-size: 2.5em;
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            display: inline-block; /* Agar underline sesuai lebar teks */
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
        }

        h2::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -10px;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background-color: var(--accent-color);
            border-radius: 2px;
        }

        a {
            color: var(--accent-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        a:hover {
            color: var(--accent-light);
        }

        .btn {
            display: inline-block;
            background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
            color: var(--text-color);
            padding: 12px 25px;
            border-radius: 5px;
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 1px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(139, 92, 246, 0.6);
        }

        /* Header */
        header {
            background-color: var(--secondary-bg);
            padding: 20px 0;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex; /* Use flexbox for horizontal alignment */
            align-items: center; /* Center items vertically */
            gap: 10px; /* Add spacing between the logo and text */
            font-size: 1.8em;
            font-weight: 700;
            color: var(--text-color);
            font-family: var(--code-font);
        }
        .logo span {
            color: var(--accent-color);
        }

        nav ul {
            list-style: none;
            display: flex;
        }

        nav ul li {
            margin-left: 30px;
        }

        nav ul li a {
            color: var(--text-color);
            font-weight: 400;
            font-size: 1.1em;
            position: relative;
            padding-bottom: 5px;
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            background-color: var(--accent-color);
            left: 0;
            bottom: 0;
            transition: width 0.3s ease;
        }

        nav ul li a:hover::after,
        nav ul li a.active::after {
            width: 100%;
        }

        /* Hero Section */
        #hero {
            background: var(--bg-color);
            padding: 100px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        /* Simple background particles/effect */
        #hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.1), transparent 40%),
                        radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.1), transparent 40%);
            opacity: 0.3;
            z-index: 0;
        }

        #hero .container {
            position: relative;
            z-index: 1;
        }

        #hero h1 {
            font-size: 3.8em;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        #hero h1 span {
            color: var(--accent-color);
        }

        #hero p {
            font-size: 1.4em;
            color: #c0ccda;
            margin-bottom: 40px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        /* About Section */
        #about {
            background-color: var(--secondary-bg);
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        #about .about-content {
            display: flex;
            align-items: center;
            gap: 40px;
            flex-wrap: wrap; /* Untuk responsif */
        }

        #about .profile-img {
            flex: 1;
            min-width: 250px; /* Agar tidak terlalu kecil */
            text-align: center;
        }

        #about .profile-img img {
            width: 250px;
            height: 250px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--accent-color);
            box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.2);
        }

        #about .about-text {
            flex: 2;
            min-width: 300px;
        }

        #about .about-text h3 {
            font-size: 2em;
            margin-bottom: 15px;
        }

        #about .skills-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        #about .skill-tag {
            background-color: var(--bg-color);
            color: var(--text-color);
            padding: 8px 15px;
            border-radius: 5px;
            font-size: 0.9em;
            border: 1px solid var(--border-color);
        }

        /* Projects Section */
        #projects {
            background-color: var(--bg-color);
        }

        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .project-card {
            background-color: var(--secondary-bg);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        .project-image-container {
            width: 100%;
            height: 200px;
            overflow: hidden;
            position: relative;
            border-bottom: 1px solid var(--border-color);
        }

        .project-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top; /* Menampilkan bagian atas gambar */
            aspect-ratio: 16 / 9; /* Menjaga rasio aspek yang konsisten */
            transition: transform 0.5s ease;
        }
        
        .project-card:hover img {
            transform: scale(1.05); /* Sedikit zoom pada hover */
        }

        .project-card-content {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .project-card h3 {
            font-size: 1.5em;
            margin-bottom: 10px;
        }

        .project-card p {
            font-size: 0.95em;
            color: #c0ccda;
            margin-bottom: 15px;
            flex-grow: 1;
        }

        .project-links {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }

        .project-links a {
            display: flex;
            align-items: center;
            gap: 5px;
            font-weight: 600;
        }

        /* Contact Section */
        #contact {
            background-color: var(--secondary-bg);
            border-top: 1px solid var(--border-color);
        }

        #contact p {
            text-align: center;
            margin-bottom: 40px;
            font-size: 1.1em;
            color: #c0ccda;
        }

        .contact-form {
            max-width: 600px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .contact-form label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .contact-form input[type="text"],
        .contact-form input[type="email"],
        .contact-form textarea {
            width: 100%;
            padding: 12px;
            background-color: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 5px;
            color: var(--text-color);
            font-family: var(--body-font);
            font-size: 1em;
        }

        .contact-form input[type="text"]:focus,
        .contact-form input[type="email"]:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
        }

        .contact-form textarea {
            min-height: 150px;
            resize: vertical;
        }

        .contact-form button {
            background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
            color: var(--text-color);
            padding: 15px 30px;
            border: none;
            border-radius: 5px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
        }

        .contact-form button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(139, 92, 246, 0.6);
        }

        /* Footer */
        footer {
            background-color: var(--bg-color);
            color: #c0ccda;
            text-align: center;
            padding: 40px 0;
            border-top: 1px solid var(--border-color);
            font-size: 0.9em;
        }

        .social-links {
            margin-top: 15px;
        }

        .social-links a {
            display: inline-block;
            margin: 0 10px;
            color: #c0ccda;
            font-size: 1.5em;
            transition: color 0.3s ease;
        }

        .social-links a:hover {
            color: var(--accent-color);
        }

        /* Utility classes (optional, for icons) */
        .icon {
            display: inline-block;
            width: 1em;
            height: 1em;
            stroke-width: 0;
            stroke: currentColor;
            fill: currentColor;
            vertical-align: middle;
            font-family: 'Font Awesome 5 Free'; /* Placeholder for icon font */
            font-weight: 900;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            h1 {
                font-size: 2.8em;
            }

            h2 {
                font-size: 2em;
            }

            #hero p {
                font-size: 1.2em;
            }

            header .container {
                flex-direction: column;
                gap: 15px;
            }

            nav ul {
                justify-content: center;
                flex-wrap: wrap;
                gap: 10px;
            }

            nav ul li {
                margin-left: 0;
            }

            #about .about-content {
                flex-direction: column;
                text-align: center;
            }

            #about .profile-img {
                margin-bottom: 30px;
            }

            .project-grid {
                grid-template-columns: 1fr;
            }

            section {
                padding: 60px 0;
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 2em;
            }

            h2 {
                font-size: 1.8em;
            }

            #hero p {
                font-size: 1em;
            }

            .btn {
                padding: 10px 20px;
                font-size: 0.9em;
            }

            .logo {
                font-size: 1.5em;
            }
        }
        /* --- About Section --- */
#about {
    background-color: var(--secondary-bg);
}

.about-content {
    display: flex;
    flex-direction: column; /* Default untuk mobile */
    align-items: center;
    gap: 40px; /* Jarak antara gambar dan teks */
    max-width: 1000px; /* Batasi lebar konten tentang saya */
    margin: 0 auto;
    text-align: center; /* Teks di tengah untuk mobile */
}

.profile-img img {
    width: 200px; /* Ukuran gambar profil */
    height: 200px;
    object-fit: cover; /* Pastikan gambar mengisi area tanpa distorsi */
    border-radius: 50%; /* Membuat gambar lingkaran */
    border: 5px solid var(--accent-color); /* Border warna aksen */
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5); /* Efek bayangan */
    transition: transform 0.3s ease;
}

.profile-img img:hover {
    transform: scale(1.05); /* Efek zoom saat hover */
}

.about-text {
    flex: 1; /* Agar teks mengambil sisa ruang */
    text-align: left; /* Teks normal rata kiri */
}

.about-text h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.about-text p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap; /* Skill tag bisa ke bawah jika tidak cukup ruang */
    gap: 10px; /* Jarak antar skill tag */
    margin-top: 20px;
    justify-content: center; /* Pusatkan skill tag untuk mobile */
}

.skill-tag {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap; /* Pastikan tag tidak pecah baris */
}

/* Responsif untuk desktop: gambar dan teks berdampingan */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row; /* Gambar dan teks berdampingan di desktop */
        text-align: left;
    }
    .skills-grid {
        justify-content: flex-start; /* Skill tag rata kiri di desktop */
    }
    .profile-img {
        flex-shrink: 0; /* Gambar tidak mengecil */
    }
    .about-text {
        padding-left: 40px; /* Beri jarak dari gambar */
    }
}

/* styles.css */

/* --- Work Experience Section --- */
#experience {
    background-color: var(--bg-color); /* Atau var(--secondary-bg) jika Anda suka */
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Garis vertikal di tengah timeline */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 20px; /* Posisi garis di kiri */
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 0 30px 60px;
    position: relative;
    /* --- TAMBAHKAN INI --- */
    opacity: 0; /* Sembunyikan elemen pada awalnya */
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-color);
    top: 20px;
    left: 12px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-content {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
    color: white;
    font-weight: 600;
    font-size: 0.9em;
    padding: 5px 12px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.6em;
    margin-bottom: 5px;
    color: var(--text-color);
}
.timeline-content h3 span {
    font-weight: 400;
    color: #c0ccda;
    font-size: 0.8em;
}

.timeline-content h4 {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--accent-light);
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-type: none; /* Hilangkan bullet points default */
    padding-left: 0;
}

.timeline-content ul li {
    color: #c0ccda;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

/* Membuat bullet points kustom yang lebih keren */
.timeline-content ul li::before {
    content: '▹'; /* Atau '•', '✓' */
    color: var(--accent-color);
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
}

/* Responsive adjustments for the timeline */
@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 12px;
    }
}
/* styles.css */

/* Keyframes for Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* styles.css */

/* --- Skills Section --- */
#skills {
    background-color: var(--secondary-bg);
    padding-top: 80px;
    padding-bottom: 80px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Ensure responsive layout */
    gap: 20px; /* Add spacing between items */
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(5, 1fr); /* Limit to 5 items per row on larger screens */
    }
}

.skill-item {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    
    /* State Awal untuk Animasi On-Scroll */
    opacity: 0;
    transform: translateY(30px);
}

.skill-item.is-visible {
    /* State Akhir untuk Animasi On-Scroll */
    opacity: 1;
    transform: translateY(0);
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: rotateY(180deg); /* Animasi ikon memutar saat hover */
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    color: var(--accent-light); /* Warna ikon */
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the image fits within the container without distortion */
}

.skill-item p {
    font-size: 1em;
    font-weight: 500;
    color: var(--text-color);
}

/* Penyesuaian Responsif */
@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    .skill-icon {
        width: 50px;
        height: 50px;
    }
}

/* Header Logo Adjustment */
.header-logo {
    max-width: 100px; /* Set a maximum width for the logo */
    height: auto; /* Maintain aspect ratio */
    display: inline-block; /* Ensure proper alignment */
}

@media (max-width: 768px) {
    .header-logo {
        max-width: 80px; /* Adjust size for smaller screens */
    }
}
/* --- Tombol Audio Player --- */
#audio-player-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#audio-player-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

#audio-player-button .icon-music {
    width: 24px;
    height: 24px;
    color: var(--accent-light);
}

/* Animasi berputar saat musik diputar */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#audio-player-button.is-playing {
    animation: spin 4s linear infinite;
}