/* =========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================= */
* {
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; /* Ganti jadi Inter */
    text-decoration: none;
    list-style: none;
}
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
}

body {
    background-color: #2b2b2b;
    color: #f5f5f5;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    animation: fadeInAnimation 1s ease-in-out ;
}

body.no-scroll {
    overflow: hidden;
}

/* Definisi Gerakan Muncul Pelan-pelan */
@keyframes fadeInAnimation {
    0% {
        opacity: 0;           /* Mulai dari gelap/hilang */
        transform: translateY(-10px); /* Agak geser dikit dari atas */
    }
    100% {
        opacity: 1;           /* Muncul sempurna */
        transform: translateY(0);
    }
}

::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #2b2b2b;
}
::-webkit-scrollbar-thumb {
    background: #f5f5f5;
    border-radius: 10px;
    border: 3px solid #2b2b2b;
}

section {
    min-height: 50vh;
    padding: 4rem 12%;
    width: 100%;
    position: relative;
}

.section-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: hsl(0, 3%, 21%);
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.hide {
    transform: translateY(-100%);
}

/* =========================================
   STYLE KHUSUS BAGIAN HOME (HERO)
   ========================================= */

.home {
    background: linear-gradient(rgba(43, 43, 43, 0.85), rgba(43, 43, 43, 0.85)), 
                url('https://images.unsplash.com/photo-1510519138101-570d1dca3d66?q=80&w=2047&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* <-- LINK GAMBAR CONTOH */

    background-size: cover;

    /* 3. Posisi gambar selalu di tengah */
    background-position: center center;

    /* 4. Agar gambar tidak berulang-ulang */
    background-repeat: no-repeat;

    /* FITUR KEREN (Opsional): Parallax Effect */
    /* Kalau ini diaktifkan, saat scroll gambarnya akan diam di tempat. */
    /* Hapus baris di bawah ini kalau tidak suka efeknya. */
    background-attachment: fixed;

    /* Pastikan tingginya memenuhi layar */
    min-height: 100vh; /* Ubah dari 50vh ke 100vh biar gagah */
    display: flex;
    align-items: center; /* Teks di tengah vertikal */
}

.logo {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: rgb(0, 157, 255);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    position: relative;
    color: white;
    font-weight: 300;
    font-size: 1rem;
}

.nav-links li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 3px;
    bottom: -5px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
}

.nav-links li a:hover::before {
    width: 100%;
}

.visit-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    background: #f5f5f5;
    cursor: pointer;
    transition: 0.3s ease;
}

.visit-btn:hover {
    background: rgb(0, 157, 255);
    color: white;
    transform: scale(1.05);
}

#menu-icon {
    font-size: 1.8rem;
    display: none; /* Hidden di desktop */
    cursor: pointer;
    color: white;
}

/* =========================================
   3. HERO SECTION (HOME)
   ========================================= */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Full screen feel */
}
/* =========================================
   PERBAIKAN TEXT ABOUT ME
   ========================================= */

.about-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* Memastikan semua isi di tengah */
}

.about-info p {
    /* 1. Kunci supaya enak dibaca: Batasi Lebar */
    max-width: 800px;  /* Maksimal lebar cuma 800px, sisanya margin kosong */
    width: 90%;        /* Di HP dia akan isi 90% layar */
    
    /* 2. Agar posisi teks ada di tengah-tengah kotak */
    margin: 0 auto;
    
    /* 3. Jarak antar baris (Napas teks) */
    line-height: 1.8;  /* 1.8 itu standar emas untuk artikel/bio */
    
    /* 4. Estetika Tambahan */
    font-size: 1.1rem; /* Sedikit lebih besar dari default */
    text-align: center; /* Rata tengah (opsional: ganti 'justify' kalau mau rata kiri-kanan) */
    color: #e0e0e0;    /* Putih agak abu biar mata ngga sakit kena kontras tinggi */
    
    /* Jarak ke bawah biar ngga nempel sama section berikutnya */
    margin-bottom: 3rem; 
}

.info-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.info-box h3 {
    font-size: 2rem;
    font-weight: 500;
    opacity: 0.9;
}

.info-box h1 {
    font-size: 3.5rem;
    padding-top: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.info-box span {
    font-size: 2rem;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    border: 2px solid white;
    color: white;
    font-weight: 500;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: white;
    color: #2b2b2b;
    transform: translateY(-3px);
}

.socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.socials i {
    font-size: 1.8rem;
    color: #f5f5f5;
    transition: 0.3s ease;
}

.socials i:hover {
    color: rgb(0, 157, 255);
    transform: scale(1.2);
}

/* =========================================
   4. EXPERIENCE SECTION (GRID CARDS)
   ========================================= */
/* Container Grid (PENTING: Ini yang bikin rapi) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsif */
    gap: 2rem;
    width: 100%;
}

/* Kartu */
.grid-card {
    background-color: #363636;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Header Kartu (Ikon + Judul) */
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.grid-card i {
    font-size: 2.2rem;
    color: white;
}

.grid-card span {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grid-card h3 {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.grid-card p {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.more-btn {
    align-self: flex-start;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 50px;
    background: #f5f5f5;
    color: #4c4c4c ;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.more-btn:hover {
    transform: scale(1.05);
    background: rgb(0, 157, 255);
}
/* Container Utama Section Projects */
.projects {
    min-height: 50vh; /* Memberi tinggi minimal supaya bisa di-tengah secara vertikal */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Menengahkan secara Vertikal (Atas-Bawah) */
    align-items: center;     /* Menengahkan secara Horizontal (Kiri-Kanan) */
    text-align: center;
    padding: 2rem;
}

/* Tulisan "Stay Tuned" */
.projects-placeholder {
    font-size: 1.2rem;       /* Ukuran font sedang */
    font-weight: 500;
    
    /* Warna: Abu-abu gelap transparan (biar tidak terlalu mencolok) */
    color: rgba(255, 255, 255, 0.3); 
    
    /* Opsional: Huruf besar semua biar kmv veren */
    text-transform: uppercase; 
    letter-spacing: 2px;     /* Jarak antar huruf renggang */
    
    margin-top: 1rem;
}

/* =========================================
   5. CONTACT FORM
   ========================================= */
.contact form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: #363636; /* Sesuaikan dengan tema dark */
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact label {
    font-weight: 500;
    color: #f5f5f5;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #555;
    background: #2b2b2b;
    color: white;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.contact input:focus,
.contact textarea:focus {
    border-color: rgb(0, 157, 255);
    outline: none;
}

.contact button {
    padding: 0.9rem;
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
    margin-top: 1rem;
    transition: 0.3s;
}

.contact button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* =========================================
   STYLE KONTAK (EMAIL BUTTON)
   ========================================= */

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Jarak antara teks dan tombol */
    text-align: center;
}

.contact-box p {
    color: #ccc;
    font-size: 1.1rem;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Jarak ikon amplop ke tulisan email */
    
    background-color: #363636; /* Warna tombol */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Garis pinggir tipis */
    padding: 1rem 2rem;
    border-radius: 50px; /* Bentuk lonjong */
    
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Efek saat mouse diarahkan ke email */
.email-link:hover {
    background: white;       /* Berubah jadi putih */
    color: #2b2b2b;          /* Teks jadi hitam */
    transform: scale(1.05);  /* Membesar sedikit */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); /* Efek glowing */
}

.email-link i {
    font-size: 1.3rem;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    padding: 2rem;
    text-align: center;
    color: #888;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   7. PAGE: COMING SOON
   ========================================= */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
.coming-soon h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* =========================================
   MEDIA QUERIES (TAMPILAN HP & TABLET)
   ========================================= */

@media (max-width: 1100px) {

    /* 1. HEADER */
    header {
        padding: 15px 20px;
    }

    /* Ikon Menu (Garis Tiga / Silang) */
    #menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: white;
        z-index: 3000; /* PENTING: Supaya ikon tetap bisa diklik saat menu buka */
        position: relative; /* Biar z-index jalan */
    }

    .visit-btn {
        display: none; /* Tombol menu desktop dihilangkan */
    }

    /* 2. MENU NAVIGASI (Gaya Full Screen Modern) */
    .nav-links {
        position: fixed; /* Mengunci posisi di layar */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Tinggi 100% layar HP */
        
        /* Warna Background Agak Transparan Dikit (Glass Effect) */
        background: rgba(43, 43, 43, 0.98); 
        backdrop-filter: blur(5px); /* Efek blur di belakang menu */

        display: none; /* Sembunyi dulu */
        flex-direction: column;
        align-items: center; /* Rata Tengah Horizontal */
        justify-content: center; /* Rata Tengah Vertikal */
        gap: 3rem; /* Jarak antar tulisan menu renggang biar rapi */
        z-index: 2000; /* Di atas segalanya */
    }

    /* Saat menu aktif (diklik) */
    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease-in-out; /* Animasi muncul halus */
    }

    /* Teks Menu di HP */
    .nav-links li a {
        font-size: 2rem; /* Tulisan Besar */
        font-weight: 600;
        color: #fff;
        display: block;
        transition: 0.3s;
    }

    /* Efek saat teks menu disentuh */
    .nav-links li a:hover {
        color: rgb(0, 157, 255);
        transform: scale(1.1); /* Membesar sedikit */
        letter-spacing: 2px; /* Huruf jadi renggang dikit */
    }

    /* 3. PERBAIKAN GRID & FONT LAIN */
    .grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
    }

    .info-box h1 {
        font-size: 2.5rem;
    }

    .experience img {
        width: 100%;
        max-width: 400px;
    }
}

/* 4. ANIMASI MUNCUL */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* KHUSUS HP KECIL */
@media (max-width: 480px) {
    .nav-links li a {
        font-size: 1.5rem; /* Ukuran font disesuaikan HP kecil */
    }
}
/* =========================================
   FIX TAMPILAN HP (BIAR GAK KEGEDEAN)
   ========================================= */

@media (max-width: 600px) {
    
    /* 1. Kecilkan Judul Halaman */
    .section-title {
        font-size: 1.8rem; /* Turun dari 2.5rem */
        margin-bottom: 2rem;
    }

    /* 2. Kecilkan Teks Paragraf Contact */
    .contact-box p {
        font-size: 0.9rem; /* Turun dari 1.1rem */
        padding: 0 1rem;   /* Biar gak mepet pinggir layar */
    }

    /* 3. Tombol Email: Lebih Ramping */
    .email-link {
        font-size: 0.9rem;      /* Teks lebih kecil */
        padding: 0.8rem 1.2rem; /* Tombol lebih pendek */
        width: 90%;             /* Lebar tombol menyesuaikan layar HP */
        justify-content: center; /* Teks di tengah tombol */
        word-break: break-all;   /* Jaga-jaga kalau email kepanjangan */
    }

    .email-link i {
        font-size: 1rem; /* Ikon juga dikecilkan */
    }
}