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

/* Variabel Warna & Font */
:root {
    --bg-color: #0a192f;
    --primary-text-color: #ccd6f6;
    --secondary-text-color: #8892b0;
    --accent-color: #64ffda;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text-color);
    font-family: var(--font-body);
}

body {
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased; /* Membuat font lebih halus di beberapa browser */
}

/* Class Container untuk pembungkus konten */
.container {
    width: 90%;
    max-width: 1100px; /* Lebar maksimal konten */
    margin: 0 auto; /* Trik untuk membuat konten ke tengah */
}

/* Tambahkan di bawah kode sebelumnya */

/* Styling untuk Navbar */
.navbar {
    display: flex; /* Menggunakan Flexbox untuk alignment */
    justify-content: space-between; /* Mendorong item ke ujung kiri dan kanan */
    align-items: center; /* Menyelaraskan item secara vertikal di tengah */
    padding: 20px 0; /* Memberi jarak atas-bawah */
}

.navbar-logo a {
    color: var(--accent-color); /* Warna mint dari variabel */
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none; /* Menghilangkan garis bawah link */
}

.navbar-menu ul {
    list-style: none; /* Menghilangkan bulatan/angka dari list */
    display: flex;
    gap: 30px; /* Memberi jarak antar menu */
}

.navbar-menu ul li a {
    color: var(--primary-text-color);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 16px;
    transition: color 0.3s ease; /* Animasi perubahan warna saat hover */
}

.navbar-menu ul li a:hover {
    color: var(--accent-color); /* Warna berubah jadi mint saat disentuh mouse */
}

/* Tambahkan di bawah kode sebelumnya */

/* Styling untuk Hero Section */
.hero {
    min-height: 80vh; /* Tinggi minimal 80% dari tinggi layar */
    display: flex;
    flex-direction: column; /* Menyusun item ke bawah */
    justify-content: center; /* Konten berada di tengah secara vertikal */
    padding: 40px 0;
}

.hero-intro {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-headline-1 {
    font-family: var(--font-heading);
    font-size: 70px;
    line-height: 1.1;
    color: var(--primary-text-color);
    margin-bottom: 10px;
}

.hero-headline-2 {
    font-family: var(--font-heading);
    font-size: 60px;
    line-height: 1.1;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
}

.hero-description {
    font-size: 18px;
    color: var(--secondary-text-color);
    max-width: 550px; /* Agar teks tidak terlalu lebar */
    margin-bottom: 50px;
}

.hero-button {
    color: var(--accent-color);
    background-color: transparent; /* Latar belakang transparan */
    border: 1px solid var(--accent-color); /* Garis pinggir warna mint */
    padding: 15px 30px; /* Jarak dalam tombol */
    border-radius: 4px; /* Sudut sedikit melengkung */
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: rgba(100, 255, 218, 0.1); /* Efek highlight saat disentuh mouse */
}

/* Tambahkan di bawah kode yang sudah ada di style.css */

/* Styling untuk Judul Section yang Seragam */
.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-text-color);
    margin-bottom: 40px;
    
    /* Trik untuk membuat judul dengan garis di sebelahnya */
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    width: 200px; /* Panjang garis */
    background-color: var(--secondary-text-color);
    opacity: 0.3;
}

/* Tambahkan di bawah kode sebelumnya */

/* Styling untuk About Section */
.about-section {
    padding: 60px 0; /* Memberi jarak vertikal */
}

/* Kita tidak perlu styling .about-content secara khusus saat ini */
/* karena isinya hanya paragraf yang mengalir ke bawah */

.about-content p {
    color: var(--secondary-text-color);
    margin-bottom: 15px; /* Jarak antar paragraf */
    max-width: 650px; /* Batasi lebar paragraf agar mudah dibaca */
}

.skills-list {
    list-style: none; /* Hapus bullet point bawaan */
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px)); /* Membuat 2 kolom list */
    gap: 10px; /* Jarak antar item skill */
    margin-top: 20px;
}

.skills-list li {
    color: var(--secondary-text-color);
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace; /* Font khas untuk coding */
    font-size: 14px;
    position: relative;
    padding-left: 20px; /* Ruang untuk panah */
}

/* Trik membuat panah kecil sebelum item skill */
.skills-list li::before {
    content: '▹'; /* Karakter panah */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
}

/* Tambahkan di bawah kode sebelumnya */

/* Styling untuk Projects Section */
.projects-section {
    padding: 60px 0;
}

.projects-grid {
    display: grid;
    /* Grid yang responsif secara otomatis */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
}

.project-card {
    background-color: #112240; /* Warna biru navy sedikit lebih terang */
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Mengubah cursor menjadi tangan saat hover */
}

.project-card:hover {
    transform: translateY(-7px); /* Efek kartu terangkat saat disentuh mouse */
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.7);
}

.project-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-text-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--secondary-text-color);
    font-size: 16px;
}

/* Tambahkan di bawah kode yang sudah ada di style.css */

/* Styling untuk Contact Section */
.contact-section {
    padding: 100px 0; /* Jarak vertikal yang besar agar terasa lega */
    text-align: center; /* Semua teks di bagian ini akan rata tengah */
}

.contact-headline {
    font-family: var(--font-heading);
    font-size: 50px;
    color: var(--primary-text-color);
    margin-bottom: 20px;
}

.contact-description {
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto 50px auto; /* Atas 0, Kanan-Kiri auto, Bawah 50px */
}

.contact-button {
    color: var(--accent-color);
    background-color: transparent;
    border: 1px solid var(--accent-color);
    padding: 18px 35px; /* Sedikit lebih besar dari tombol hero */
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* Tambahkan di bawah kode sebelumnya */

/* Styling untuk Footer */
.footer {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(136, 146, 176, 0.2); /* Garis pemisah tipis */
}

.footer p {
    color: var(--secondary-text-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--secondary-text-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Tambahkan di paling bawah file style.css */

/* ============================================= */
/* MEDIA QUERIES (RESPONSIVE)      */
/* ============================================= */

@media (max-width: 768px) {
    /* Style ini hanya aktif jika lebar layar 768px atau kurang */

    /* Kecilkan ukuran font judul agar tidak terlalu besar di HP */
    .hero-headline-1 {
        font-size: 40px;
    }

    .hero-headline-2 {
        font-size: 30px;
    }

    .section-title {
        font-size: 24px;
    }
    
    /* Hilangkan garis di sebelah judul section di mobile */
    .section-title::after {
        display: none;
    }

    /* Ubah layout skill list dari 2 kolom menjadi 1 kolom */
    .skills-list {
        grid-template-columns: 1fr;
    }

    /* Sembunyikan menu desktop, nanti kita ganti dengan ikon hamburger */
    .navbar-menu {
        display: none;
    }

    /* Tambahkan di dalam blok @media (max-width: 768px) */

    /* Tampilkan ikon hamburger yang tadi kita sembunyikan di desktop */
    .hamburger-menu {
        display: block; /* Tampilkan ikonnya */
        cursor: pointer;
    }

    .hamburger-menu .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-text-color);
    }

    /* Ini adalah style untuk menu saat dalam keadaan aktif/terbuka */
    .navbar-menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed; /* Membuat menu menutupi seluruh layar */
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg-color);
        z-index: 100; /* Memastikan menu ada di lapisan paling atas */
        gap: 50px;
    }

    /* Animasi ikon hamburger menjadi 'X' saat menu aktif */
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.hamburger-menu {
    display: none;
}
