/* --- Global Styling --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f0f2f5; 
    color: #333;
}

/* --- DEFINISI KEYFRAMES ANIMASI --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Header Styling (Profil) - Tambahkan Gradient --- */
.profile-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); /* Gradient */
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative; 
}

.profile-header h1 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 2.5em;
}

.profile-header .title {
    margin: 0;
    font-size: 1.1em;
}

.profile-header p {
    margin: 3px 0;
}

.profile-header a {
    color: #ecf0f1; 
    text-decoration: underline;
}

/* --- Tombol Hamburger (Awalnya Tersembunyi di Desktop) --- */
.menu-toggle {
    display: none; 
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 1px solid white;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    border-radius: 5px;
    z-index: 1001; 
}


/* --- Tombol Toggle Desktop (DIHILANGKAN) --- */
.desktop-toggle {
    display: none !important; 
}


/* --- Layout Utama Konten --- */
.content-area-wrapper {
    position: relative; 
    padding: 20px;
    padding-left: 260px; /* Ruang default saat menu terbuka */
    transition: padding-left 0.3s ease; 
    min-height: 100vh;
}


/* --- Menu Navigasi Floating (TETAP TERBUKA DI DESKTOP) --- */
.floating-nav-container {
    position: fixed; 
    top: 150px; 
    left: 80px; 
    width: 160px; 
    background-color: #2c3e50; 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100; 
    transition: width 0.3s ease, transform 0.3s ease;
}


/* Styling Daftar Menu */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #ecf0f1; 
    font-weight: 500;
    font-size: 1em;
    transition: background-color 0.3s ease, border-left 0.3s ease; 
    border-left: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #3c5670; 
    border-left: 3px solid #3498db; 
    color: white;
}

/* --- Main Content dan Animasi Fade-In --- */
.main-content { flex-grow: 1; padding: 0; }
.container { max-width: 900px; margin: 0 auto; }

.section-box {
    padding: 25px;
    margin-bottom: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    
    opacity: 0; 
    animation: fadeIn 0.8s ease-out forwards;
}

/* Penundaan Animasi */
#summary { animation-delay: 0.1s; }
#skills { animation-delay: 0.3s; }
#experience { animation-delay: 0.5s; }
#education { animation-delay: 0.7s; }
#projects { animation-delay: 0.9s; } 
#contact { animation-delay: 1.1s; } 

/* Styling Section Icons */
.section-box h2 {
    color: #3498db;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.section-box h2 i {
    margin-right: 12px; 
    color: #2980b9; 
    font-size: 0.9em;
}


/* Styling Skills List (dengan Hover Animation) */
.skills-list span {
    display: inline-block;
    background-color: #ecf0f1;
    color: #34495e;
    padding: 6px 12px;
    margin: 5px 5px 5px 0; 
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.skills-list span:hover {
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

/* Styling Experience/Job & Project Item */
.job, .edu-item { margin-bottom: 20px; padding-left: 15px; border-left: 3px solid #3498db; }
.project-item {
    margin-bottom: 25px; padding: 15px; border-left: 4px solid #3498db; 
    background-color: #fcfcfc; border-radius: 4px;
}

.project-item h3 { margin-top: 0; margin-bottom: 5px; color: #2c3e50; }

.project-item .date {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9em;
    display: block;
    margin-bottom: 10px;
}


/* --- Styling Slider Projects --- */
.slider-container { overflow: hidden; position: relative; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 6px; }
.project-slide { display: none; padding: 10px; }
.project-slide.active-slide { display: block; }

.project-slide .project-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
.project-slide .project-item:last-child { border-bottom: none; margin-bottom: 5px; }

.slider-controls { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.slider-controls button {
    background-color: #3498db; color: white; border: none; padding: 8px 15px; cursor: pointer; border-radius: 4px; transition: background-color 0.2s;
}
.slider-controls button:hover { background-color: #2980b9; }
.slider-controls .page-indicator { font-weight: bold; color: #555; }


/* --- Styling Tombol Download Resume --- */
.download-btn {
    display: block; text-align: center; background-color: #27ae60; 
    color: white !important; padding: 10px 15px; margin: 15px auto;
    width: 175px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease;
}

.download-btn:hover { background-color: #2ecc71; }


/* --- FOOTER --- */
footer {
    text-align: center; padding: 15px; background-color: #34495e;
    color: white; font-size: 0.9em;
}


/* ============================================== */
/* --- RESPONSIVENESS (Media Query) --- */
/* ============================================== */

@media (max-width: 768px) {
    
    /* Tombol Hamburger Tampil, Desktop Toggle Hilang */
    .menu-toggle { display: block; }

    /* Atur Ulang Layout Konten Utama */
    .content-area-wrapper {
        padding: 20px; 
        padding-top: 20px;
        display: block; 
        padding-left: 20px; 
    }

    /* Menu Navigasi Dibuat Overlay Full Screen */
    .floating-nav-container {
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(44, 62, 80, 0.98); 
        transform: translateX(-100%); 
        transition: transform 0.3s ease-out;
        z-index: 1000;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Kelas yang ditambahkan JavaScript untuk menampilkan menu */
    .floating-nav-container.open {
        transform: translateX(0); 
    }

    .main-nav ul {
        display: flex; 
        flex-direction: column; 
        text-align: center;
    }
    
    .main-nav a {
        font-size: 1.5em; 
        padding: 15px 0;
        border-left: none; 
    }

    .main-nav a:hover,
    .main-nav a.active {
        border-left: none;
        background-color: #3498db; 
    }
    
    /* Penyesuaian Elemen Lain di Mobile */
    .profile-header h1 { font-size: 2em; }
    .main-content { padding: 0; }
    .container { max-width: 100%; padding: 0 10px; }
    .download-btn { margin: 10px auto; width: 80%; }
}
