/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Playfair+Display:wght@400;700&display=swap');

/* Variabel Warna (sesuaikan dengan palet Anda) */
:root {
    --color-lightest: #F8F8F8; /* Hampir putih */
    --color-light: #F2EDED;    /* Sangat muda */
    --color-medium: #ECE5E5;   /* Sedang */
    --color-dark-light: #E6DDDD; /* Agak gelap */
    --color-dark: #DFD5D5;     /* Gelap */
    --color-text-dark: #333;   /* Teks gelap */
    --color-text-light: #555;  /* Teks lebih terang */
    --color-accent: #C7B5B5;   /* Warna aksen untuk tombol/highlight */
}

/* Reset CSS Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-lightest);
}

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

a {
    text-decoration: none;
    color: var(--color-accent);
}



a:hover {
    color: var(--color-dark);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5em;
    color: var(--color-dark);
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--color-dark);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    margin-right: 5px; /* Jarak antar tombol jika ada lebih dari satu */
    margin-bottom: 5px; /* Jarak jika tombol wrap ke bawah */
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9); /* Sedikit transparan */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-dark);
}

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

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

nav ul li a {
    color: var(--color-text-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent);
}

/* Hero Section */
#hero {
    background: linear-gradient(to bottom right, var(--color-light), var(--color-medium)); /* Gradient girly */
    color: var(--color-text-dark);
    text-align: center;
    padding: 150px 20px 100px;
    height: 100vh; /* Mengisi seluruh tinggi viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#hero h1 {
    font-size: 4.5em;
    margin-bottom: 15px;
    color: var(--color-dark);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

#hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

/* Section Styling */
.section {
    padding: 80px 0;
    background-color: var(--color-lightest);
    border-bottom: 1px solid var(--color-dark-light);
}

.section:nth-of-type(even) { /* Untuk membuat background berganti */
    background-color: var(--color-light);
}

/* About Me */
#about p {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-light);
}

.container img {
    max-width: 100%;        
    height: 400px;          
    margin: 0 auto 20px;    
    display: block;
    border-radius: 5px;     
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.skill-category {
    background-color: var(--color-lightest);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    text-align: center;
}

.skill-category h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    color: var(--color-accent);
    margin-bottom: 25px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    font-size: 1.1em;
    margin-bottom: 12px;
    color: var(--color-text-light);
}

.hard-skills-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.skill-item {
    text-align: center;
    flex: 0 0 calc(25% - 25px); /* 4 item per baris */
    max-width: 120px;
}

.skill-item img {
    width: 60px; /* Ukuran ikon */
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.skill-item img:hover {
    transform: translateY(-5px);
}

.skill-item span {
    display: block;
    font-size: 0.9em;
    color: var(--color-text-light);
}

/* Work Experiences Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.experience-item {
    background-color: var(--color-lightest);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-8px);
}

.experience-item img {
    max-width: 100%; /* Ukuran logo perusahaan */
    height: 200px;
    margin-bottom: 20px;
    display: block;
    border-radius: 5px; /* Sedikit radius pada gambar/logo */
}

.experience-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.experience-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.experience-item .experience-date {
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.experience-item ul {
    list-style: none; /* Hilangkan bullet default */
    padding: 0;
    margin-bottom: 20px;
}

.experience-item ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--color-text-light);
    font-size: 1.0em;
}

.experience-item ul li::before {
    content: '•'; /* Menggunakan bullet kustom */
    color: var(--color-accent);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

.experience-item .btn-small {
    margin-top: 15px;
    display: inline-block;
}

/* Project Experiences Section (menggunakan styling portfolio-grid yang sudah ada) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: var(--color-lightest);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 200px; /* Tinggi gambar portfolio yang konsisten */
    object-fit: cover;
    display: block;
    border-bottom: 5px solid var(--color-accent);
}

.portfolio-item h3 {
    margin: 20px 0 10px;
    font-size: 1.5em;
    color: var(--color-dark);
}

.portfolio-item h4 { /* Untuk sub-judul proyek seperti "Education Staff" */
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.portfolio-item p {
    font-size: 0.95em;
    color: var(--color-text-light);
    padding: 0 20px 15px;
}

/* Khusus untuk list di dalam project-item (contoh NLP/Tableau) */
.portfolio-item ul {
    list-style: disc; /* Menggunakan bullet default */
    text-align: left;
    padding: 0 35px 15px; /* Padding agar bullet terlihat */
    color: var(--color-text-light);
    font-size: 0.95em;
}
.portfolio-item ul li {
    margin-bottom: 5px;
}

.portfolio-item a {
    align-items: center;
    display: block;
}


/* Contact Section */
#contact .contact-intro-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--color-text-light);
}

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

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-medium);
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-dark);
    background-color: var(--color-light);
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(199, 181, 181, 0.3);
}

#contact button.btn {
    width: auto;
    align-self: flex-start;
    padding: 15px 30px;
    border-radius: 8px;
}

.social-links {
    text-align: center;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-links a {
    display: flex; /* Menggunakan flexbox untuk ikon dan teks */
    align-items: center;
    gap: 10px; /* Jarak antara ikon dan teks */
    margin: 0;
    font-size: 1.1em;
    color: var(--color-accent);
    transition: color 0.3s ease;
}

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

.social-links a i { /* Gaya untuk ikon Font Awesome */
    font-size: 1.3em;
    width: 25px; /* Beri lebar tetap agar sejajar */
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

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

    #hero h1 {
        font-size: 3.5em;
    }

    h2 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
        margin-top: 15px;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav {
        flex-direction: column;
    }

    .skills-grid {
        flex-direction: column;
        gap: 20px;
    }

    .skill-category {
        max-width: 100%;
    }

    .skill-item {
        flex: 0 0 calc(33% - 25px); /* 3 item per baris di mobile */
    }

    .experience-grid, .portfolio-grid {
        grid-template-columns: 1fr; /* Satu kolom di layar kecil */
    }

    .experience-item, .portfolio-item {
        padding: 25px;
    }
    .social-links a {
        font-size: 1em;
    }
}

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

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

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

    .skill-item {
        flex: 0 0 calc(50% - 25px); /* 2 item per baris di hp kecil */
    }
}