/* --- Inisialisasi & Tema Deep Space --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #9b59b6; /* Ungu yang lebih vibrant */
    --secondary-color: #3498db; /* Biru cerah */
    --accent-color: #e74c3c; /* Merah sebagai aksen kontras */
    --text-primary: #ecf0f1; /* Putih keabuan */
    --text-secondary: #bdc3c7; /* Abu-abu terang */
    --bg-dark: #1e1e2f; /* Biru dongker gelap */
    --bg-surface: #2c2c3e; /* Permukaan yang sedikit lebih terang */
    --shadow-color: rgba(0, 0, 0, 0.4);
    --glow-color: rgba(52, 152, 219, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-primary: 'Poppins', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7; 
    color: var(--text-primary); 
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top left, rgba(155, 89, 182, 0.1), transparent 30%),
                      radial-gradient(circle at bottom right, rgba(52, 152, 219, 0.1), transparent 30%);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}
a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--glow-color);
}

/* --- Navbar --- */
.navbar {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}
.nav-menu { display: block; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 35px; }
.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; }

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 100px 0;
}
.hero-content {
    animation: fadeIn 1.5s ease-out;
}
.profile-picture {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px var(--glow-color), 0 5px 20px var(--shadow-color);
    transition: var(--transition-smooth);
}
.profile-picture:hover {
    transform: scale(1.05) rotate(5deg);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-title .highlight {
    color: var(--secondary-color);
    display: block;
}
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}
.typing-text {
    font-weight: 600;
    color: #fff;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
}
.btn-primary {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}
.btn-primary:hover {
    background: #5dade2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-3px);
}
.btn-small {
    padding: 10px 24px;
    font-size: 0.8rem;
}

/* --- General Section Styling --- */
.section-padding {
    padding: 120px 0;
}
.bg-light {
    background-color: var(--bg-surface);
}
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 5px;
}

/* --- About & Skills Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}
.skill-item {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: var(--border-radius-md, 12px);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}
.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--secondary-color);
}
.skill-item img {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.portfolio-item {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md, 12px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}
.portfolio-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px var(--shadow-color);
}
.portfolio-item img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    display: block;
}
.portfolio-info {
    padding: 1.5rem;
}
.portfolio-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* --- Contact Section --- */
.contact-description { text-align: center; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--glow-color);
}
.contact-form button { width: 100%; margin-top: 1rem; }
.social-links { margin-top: 3rem; display: flex; justify-content: center; gap: 2rem; }
.social-links a {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* --- Footer --- */
.footer { padding: 2rem 0; text-align: center; background-color: var(--bg-dark); margin-top: 50px; border-top: 1px solid var(--border-color); }

/* --- Animasi --- */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animated-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Responsif --- */
@media (max-width: 768px) {
    #dashboard-view.active {
        flex-direction: column; /* Ubah layout menjadi atas-bawah */
    }

    .sidebar {
        width: 100%; /* Sidebar memenuhi lebar */
        flex-direction: row; /* Ubah item di dalamnya jadi menyamping */
        justify-content: space-between;
        padding: 0.5rem 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .sidebar-header, .sidebar-footer {
        display: none; /* Sembunyikan header dan footer sidebar di mobile */
    }

    .sidebar-nav {
        display: flex; /* Buat navigasi menyamping */
        flex: 1;
        padding: 0;
        justify-content: space-around;
    }

    .nav-item i {
        font-size: 1.5rem; /* Perbesar ikon */
        margin-right: 0;
    }
    .nav-item span {
        display: none; /* Sembunyikan teks navigasi */
    }

    .main-content {
        padding: 1rem; /* Kurangi padding di mobile */
    }
    
    #commitment-form {
        flex-direction: column; /* Susun form ke bawah */
        gap: 0.5rem;
    }
    #commitment-form input, #commitment-form button {
        width: 100%;
    }
}