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

:root {
    --bg-color: #1a1a1a;        /* Warna latar belakang gelap */
    --text-color: #f0f0f0;      /* Warna teks terang */
    --primary-color: #BB86FC;   /* Warna aksen ungu (gaya dark mode) */
    --secondary-color: #03dac6; /* Warna aksen sekunder */
    --card-bg: #2c2c2c;         /* Warna latar belakang kartu */
    --font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* HEADER & NAVIGASI */
.header {
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Dancing Script' , cursive;
    line-height: 1;
    text-decoration: none;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* BAGIAN HERO (HOME) */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0; /* Offset dari header */
    position: relative;
    z-index: 1;
}

.hero-bg {
    /* Setel posisi absolut agar mengisi seluruh parent (.hero) */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 1. Tambahkan gambar latar belakang Anda */
    background-image: url('icon/ivo.jpg'); 
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    
    /* 2. Setel Opasitas (30% atau 0.3) */
    opacity: 0.1; 
    
    /* 3. Pastikan gambar berada di belakang teks */
    z-index: 0; 
}
.hero-content {
    z-index: 2;
}
.hero-content h1 {
    z-index: 2;
    color: var(--text-color);
    padding: 20px;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* TOMBOL */
.btn {
    padding: 10px 25px;
    text-decoration: none;
    border: 2px solid;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

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

.secondary-btn {
    background: none;
    color: var(--primary-color);
    border-color: var(--primary-color);
    margin-top: 20px;
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* BAGIAN UMUM */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex; 
    flex-direction: column;
    justify-content: center; /* Pusatkan konten secara vertikal */
    align-items: center; /* Pusatkan konten secara horizontal (jika tidak dibatasi lebar) */
    text-align: center; /* Opsional: untuk pemusatan teks */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* BAGIAN TENTANG */
.about-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1000px;
    width: 100%;
    margin-top: 20px;
    /*justify-content: center;
    /*padding-top: 80px; /* Tambahkan kembali padding agar tidak menempel ke header */
    /*text-align: left; /* Kembalikan teks ke kiri untuk paragraf */
}

.about-text {
    flex: 2;
    font-size: 1.1rem;
}

.skills {
    flex: 1;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
}

.skills ul {
    list-style: none;
}

.skills li {
    padding: 5px 0;
    border-bottom: 1px solid #444;
}

/* BAGIAN PROYEK */
#projects {
    padding-top: 80px; /* Tambahkan padding agar tidak menempel ke header */
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    width: 100%;
}

.project-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

.project-image {
    background-color: #444; /* Placeholder */
    height: 200px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.project-item h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-top: 10px;
}

/* BAGIAN KONTAK */
.contact {
    text-align: center;
}

.contact-info {
    margin: 20px 0;
    font-size: 1.2rem;
}

/* Styling untuk Tombol WhatsApp Mengambang */
.whatsapp-float {
    /* Posisi tetap di layar */
    position: fixed; 
    width: 60px; /* Ukuran tombol */
    height: 60px;
    bottom: 40px; /* Jarak dari bawah */
    right: 40px; /* Jarak dari kanan */
    background-color: #25d366; /* Warna hijau WhatsApp */
    color: #fff;
    border-radius: 50px; /* Bentuk lingkaran */
    text-align: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 1001; /* Pastikan di atas elemen lain */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Efek saat dihover */
}

.whatsapp-float img {
    width: 35px; /* Ukuran ikon di dalam tombol */
    height: 35px;
    border-radius: 50%;
}

/* Responsif: Kecilkan ukuran di layar mobile */
@media (max-width: 600px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* MEDIA QUERIES (Responsif) */
@media (max-width: 768px) {
    .header {
        padding: 1rem 20px;
    }
    
    .nav-menu {
        display: none; /* Sembunyikan menu di mobile secara default */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        padding: 10px 0;
    }

    .nav-menu a {
        margin: 10px 20px;
        padding: 5px 0;
        border-bottom: 1px solid #333;
    }

    .nav-menu.active {
        display: flex; /* Tampilkan jika class active ditambahkan oleh JS */
    }

    .menu-toggle {
        display: block; /* Tampilkan tombol toggle */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text, .skills {
        width: 100%;
        margin-bottom: 30px;
    }
}
