:root {
    --bg-color: #000000;
    --text-color: #f5f5f5;
    --text-secondary: #a8a8a8;
    --border-color: #262626;
    --blue-link: #0095f6;
    --hover-overlay: rgba(30, 95, 17, 0.815);
    --profil-color: rgb(255, 255, 255);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 244px;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    padding: 8px 12px 20px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    z-index: 10;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none; 
}

.logo {
    padding: 25px 12px 16px;
    font-family: 'Instagram Sans', cursive;
    font-size: 24px;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 4px 0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    transition: background 2s;
}

.nav-item:hover {
    background-color: var(--hover-overlay);
    transition: 0.5s;
    padding: 15px;
}

.nav-item span {
    font-size: 16px;
    margin-left: 16px;
}

.nav-item.active {
    font-weight: bold;
}

.nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.menu-bottom {
    margin-top: auto;
    padding-top: 20px
}

.main-content {
    margin-left: 244px;
    padding: 40px;
    width: calc(100% - 244px);
    max-width: 900px;
    margin-right: auto; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-section {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.card-list { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}

.card {
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    border-color: #444;
}

.hover-scale:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.date { 
    color: var(--text-secondary); 
    font-size: 14px; 
}

.text-muted { 
    color: var(--text-secondary); 
    font-size: 14px; 
    margin-top: 4px; 
}

.resource-link { 
    text-decoration: none; 
    color: inherit; 
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    background-color: #1a1a1a;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover { 
    transform: translateY(-5px); 
}

.project-img {
    height: 160px;
    background-color: #262626;
}

.project-info { 
    padding: 16px; 
}

.project-info h3 { 
    margin-bottom: 8px; 
    font-size: 18px; 
}

.project-info p { 
    color: var(--text-secondary); 
    font-size: 14px; 
}

.skill-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
}

.tag {
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: background 0.2s;
}

.tag:hover { 
    background-color: var(--text-color); 
    color: var(--bg-color); 
}

.profile-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.profile-bio h2 { 
    font-size: 28px; 
    font-weight: 400; 
    margin-bottom: 12px; 
}

.profile-desc { 
    color: var(--text-secondary); 
    margin-bottom: 20px; 
    line-height: 1.5; 
}

.social-links { 
    display: flex; 
    gap: 12px; 
}

.btn-outline {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-outline:hover { 
    background-color: var(--hover-overlay); 
}

#dokumentasi.active {
    position: fixed;
    top: 0;
    left: 244px;
    width: calc(100% - 244px);
    height: 100vh;
    padding: 0;
    margin: 0;
    max-width: none;
    z-index: 5;
    display: block;
}

.doc-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    position: relative;
}

.doc-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-title {
    font-size: 3.5rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    text-align: center;
}

.thumbnail-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    opacity: 0.5;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.thumb:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.thumb.active-thumb {
    border-color: #ffffff;
    opacity: 1;
}

.card-content-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.card-text h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.btn-view {
    background-color: var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-view:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.footer-links {
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 1200px) {
    .right-sidebar { 
        display: none; 
    }
    .main-content { 
        justify-content: center; 
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 72px;
        padding: 12px;
    }
    .sidebar .logo, .nav-item span {
        display: none;
    }
    .main-content {
        margin-left: 72px; 
        width: calc(100% - 72px);
        padding: 20px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .profile-header { 
        flex-direction: column; 
        text-align: center; 
    }
    #dokumentasi.active {
        left: 72px;
        width: calc(100% - 72px);
    }
    .thumbnail-container {
        bottom: 20px;
        right: 20px;
        max-width: 80%;
        flex-wrap: wrap; 
        justify-content: flex-end;
    }
    .doc-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .card-content-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-view {
        margin-top: 12px;
        width: 100%;
        text-align: center;
    }
}

.skill-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 20px;
}

.skill-left {
    flex: 1;
}

.skill-right {
    flex: 1;
    position: relative;
    min-height: 400px;
    width: 100%;
}

.float-icon {
    position: absolute;
    object-fit: contain;
    animation: floatAnim 5s ease-in-out infinite;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.icon-1 { top: 10%; left: 10%; animation-delay: 0s; width: 100px; height: 100px; }
.icon-2 { top: 1%; right: -20%; animation-delay: 0.5s; width: 150px; height: 90px; }
.icon-3 { top: 40%; left: 30%; animation-delay: 1s; width: 175px; height: 175px; }
.icon-4 { top: 35%; right: 5%; animation-delay: 1.5s; width: 55px; height: 55px; }
.icon-5 { top: 75%; left: 15%; animation-delay: 0.8s; width: 50px; height: 50px; }
.icon-6 { top: 70%; right: -30%; animation-delay: 1.2s; width: 80px; height: 80px; }
.icon-7 { top: 50%; left: 65%; animation-delay: 0.3s; width: 60px; height: 60px; }
.icon-8 { top: 20%; left: 50%; animation-delay: 2s; width: 51px; height: 55px; }
.icon-9 { top: 85%; right: 50%; animation-delay: 0.7s; width: 60px; height: 60px; }

@keyframes floatAnim {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 768px) {
    .skill-container {
        flex-direction: column;
    }
    .skill-right {
        min-height: 300px;
        margin-top: 30px;
    }
    .float-icon {
        transform: scale(0.8);
    }
}

/* =========================================
   PROJECT SECTION (DETAIL)
   ========================================= */
.section-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 15px;
    max-width: 800px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card-detail {
    display: flex;
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card-detail:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.project-image {
    width: 300px;
    object-fit: cover;
    border-right: 1px solid var(--border-color);
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.project-date {
    font-size: 12px;
    color: var(--text-secondary);
    background-color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 14px;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    margin-top: auto; /* Mendorong tag ke bawah */
}

.project-tags span {
    font-size: 12px;
    color: var(--blue-link);
    background-color: rgba(0, 149, 246, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.8;
}

.btn-outline-small {
    background-color: transparent;
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: background 0.2s;
}

.btn-outline-small:hover {
    background-color: var(--hover-overlay);
}

/* Responsif untuk HP (Project) */
@media (max-width: 768px) {
    .project-card-detail {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .project-header {
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================================
   PENGALAMAN (TIMELINE)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

/* Garis vertikal di tengah */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    
    /* State awal untuk Animasi (menghilang & turun sedikit) */
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efek memantul halus */
}

/* State akhir Animasi saat di-scroll */
.timeline-item.show-timeline {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--blue-link);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    z-index: 2;
    box-shadow: 0 0 12px rgba(0, 149, 246, 0.6);
}

.timeline-content {
    position: relative;
    width: 45%;
    background: #121212;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--blue-link);
    transform: translateY(-5px);
}

/* Posisikan Kotak Kiri dan Kanan bergantian */
.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-year {
    display: inline-block;
    font-size: 12px;
    color: var(--blue-link);
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--text-color);
}

.timeline-company {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 16px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.timeline-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--blue-link);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.timeline-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Responsif untuk HP (Garis geser ke kiri semua) */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px; /* Garis pindah ke kiri */
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 50px);
        left: 50px; /* Semua kotak pindah ke kanan garis */
    }
}

/* =========================================
   PROFIL & SOSIAL MEDIA CARDS
   ========================================= */
.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* Gradient ala Instagram */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Memastikan gambar tetap bulat */
    border: 4px solid var(--border-color);
}

.profile-avatar img {
    width: 100%; /* Diperbaiki agar pas di dalam lingkaran */
    height: 100%;
    object-fit: cover;
}

.profile-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8; /* Menambah jarak antar baris agar nyaman dibaca */
    max-width: 700px;
}

.profile-desc p {
    margin-bottom: 12px; /* Memberi jarak antar paragraf */
}

.profile-desc strong {
    color: var(--text-color); /* Menonjolkan kata kunci */
    font-weight: 600;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    margin-top: 10px;
    color: var(--text-color);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
    display: inline-block;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Sedikit diperkecil minmax-nya */
    gap: 16px; /* Jarak antar kartu disesuaikan */
    margin-bottom: 40px;
}

.social-card {
    display: flex;
    align-items: center;
    background-color: #292525;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px; /* Padding disesuaikan */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    gap: 16px; /* Memberi jarak konsisten antara ikon dan teks */
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-color);
    box-shadow: 0 6px 20px -5px var(--brand-color);
}

/* Pembungkus Ikon agar rata tengah sempurna */
.icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Mencegah ikon gepeng */
}

.social-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-text h4 {
    color: var(--text-color);
    font-size: 15px;
    margin-bottom: 2px;
    font-weight: 600;
}

.social-text p {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-desc {
        margin: 0 auto;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   FLOATING MUSIC PLAYER
   ========================================= */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background-color: #121212;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .music-btn {
        bottom: 20px;
        right: 20px;
        padding: 8px 16px;
        font-size: 13px;
    }
}