/* ==== GENERAL STYLES ==== */
:root {
    --bg-color: #100E17;
    --primary-color: #8A2BE2;
    --card-bg-color: rgba(30, 30, 45, 0.6);
    --text-color: #EAEAEA;
    --heading-color: #FFFFFF;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

section { padding: 100px 10%; }

h1, h2, h3, h4 { color: var(--heading-color); font-weight: 700; }

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==== NAVIGATION ==== */
header {
    position: fixed;
    width: 100%;
    padding: 20px 10%;
    background-color: rgba(16, 14, 23, 0.7);
    backdrop-filter: blur(10px);
    z-index: 100;
}
nav { display: flex; justify-content: space-between; align-items: center; }
nav .logo { font-size: 1.2rem; font-weight: 700; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a { text-decoration: none; color: var(--text-color); transition: color 0.3s ease; }
nav ul li a:hover { color: var(--primary-color); }

/* ==== HERO SECTION ==== */
#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    gap: 40px;
    position: relative; 
    overflow: hidden; 
    background-color: #100E17;
}

/* Lapisan Pattern Grid */
#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    /* --- INI BAGIAN UTAMA UNTUK PATTERN GRID --- */
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    
    /* Transisi untuk efek fade & scale */
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.5; /* Opasitas awal grid */
}

/* INTERAKSI: Membuat grid lebih jelas dan sedikit membesar */
#hero:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

/* Pastikan konten tetap di atas pattern */
#hero .hero-content, #hero .hero-image {
    position: relative;
    z-index: 2; 
}


#hero .hero-content h1 {
    font-size: 2.7rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

#hero .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

#hero .hero-image img {
    max-width: 400px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 35px rgba(138, 43, 226, 0.5);
}
/* ==== ABOUT ME SECTION (GAYA BARU) ==== */

#about {
    /* Atur tinggi minimal agar ada ruang untuk konten di tengah */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 10%;
}

.about-content {
    /* Mengatur agar konten di dalamnya berada di tengah sempurna */
    max-width: 800px; /* Batasi lebar agar teks tidak terlalu panjang dan mudah dibaca */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Jarak antara heading dan paragraf */
}

/* Gaya untuk "Hook" atau kalimat pembuka */
.about-content h3 {
    font-size: 2.2rem; /* Ukuran lebih besar dari teks biasa */
    line-height: 1.4;
    font-weight: 700;
    color: var(--heading-color);
    
    /* Animasi Masuk */
    opacity: 0; /* Sembunyikan pada awalnya */
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s; /* Muncul sedikit setelah judul "About Me" */
}

/* Gaya untuk paragraf deskripsi */
.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    
    /* Animasi Masuk */
    opacity: 0; /* Sembunyikan pada awalnya */
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s; /* Muncul setelah heading h3 (efek staggered) */
}

/* Gaya untuk teks yang disorot/highlight */
.about-content .highlight {
    color: var(--primary-color); /* Gunakan warna utama Anda */
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5); /* Beri sedikit efek cahaya */
}

/* --- TAMBAHKAN KEYFRAME INI DI AKHIR FILE CSS ANDA --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== EDUCATION TIMELINE ==== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 10px var(--primary-color);
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::after { left: -10px; }
.timeline-content {
    padding: 20px 30px;
    background: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 8px;
}
.timeline-content h3 { color: var(--primary-color); }
.timeline-year { font-weight: 600; color: var(--text-color); margin: 5px 0; }



/* ==== SKILLS & ACHIEVEMENTS & PROJECTS ==== */
.skills-grid, .achievement-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.skill-card, .achievement-card, .project-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover, .achievement-card:hover, .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}
.skill-card { text-align: center; }
.achievement-card h4 { margin-bottom: 10px; color: var(--primary-color); font-size: 1.2rem; }
.project-card img { width: 100%; border-radius: 5px; margin-bottom: 15px; }
.project-card h3 { margin-bottom: 10px; }
.project-card a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

/* ==== CONTACT & FOOTER ==== */
#contact { text-align: center; }

/* --- TAMBAHKAN KODE INI --- */
#contact p {
    margin-bottom: 30px; /* Memberi jarak 30px di bawah paragraf */
}
/* ------------------------- */

#contact .social-links { margin-top: 30px; }
#contact .social-links a { margin: 0 15px; color: var(--text-color); text-decoration: none; font-size: 1.2rem; }
#contact .social-links a:hover { color: var(--primary-color); }
footer { text-align: center; padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
#contact { text-align: center; }
#contact .social-links { margin-top: 30px; }
#contact .social-links a { margin: 0 15px; color: var(--text-color); text-decoration: none; font-size: 1.2rem; }
#contact .social-links a:hover { color: var(--primary-color); }
footer { text-align: center; padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ==== RESPONSIVE DESIGN for TIMELINE ==== */
@media screen and (max-width: 768px) {
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 15px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-item::after { left: 10px; }
}
.cta-button {
    /* --- Layout & Teks Dasar --- */
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    
    /* --- Bentuk & Tampilan Utama --- */
    border: 2px solid rgba(255, 255, 255, 0.8); /* Border putih semi-transparan */
    border-radius: 50px; /* Membuat bentuk pil */
    background: 
        /* Lapisan Gradien Aurora/Cahaya */
        radial-gradient(circle at 20% 30%, rgba(180, 120, 255, 0.9), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 225, 255, 0.5), transparent 50%),
        /* Lapisan Warna Dasar */
        linear-gradient(120deg, #6a3093, #a044ff);
        
    /* --- Efek Cahaya & Bayangan --- */
    box-shadow: 
        /* Inner Glow (cahaya di dalam dari bawah) */
        inset 0 -2px 10px rgba(255, 255, 255, 0.5),
        /* Outer Glow (cahaya ungu di luar) */
        0 0 20px rgba(160, 68, 255, 0.6),
        /* Bayangan dasar */
        0 4px 15px rgba(0, 0, 0, 0.3);
        
    /* --- Persiapan untuk Animasi --- */
    position: relative;
    overflow: hidden; /* Menyembunyikan shimmer yang keluar dari tombol */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Transisi yang smooth */
}

/* Pseudo-element untuk efek kilau (shimmer) saat hover */
.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        -45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 60%
    );
    transform: rotate(25deg);
    transition: left 0.6s ease-in-out;
}

/* --- INTERAKSI SAAT HOVER --- */
.cta-button:hover {
    color: white; /* Pastikan warna teks tetap */
    transform: scale(1.05) translateY(-2px); /* Efek tombol sedikit membesar dan naik */
    box-shadow: 
        inset 0 -2px 10px rgba(255, 255, 255, 0.5),
        /* Outer glow dibuat lebih terang dan menyebar */
        0 0 35px rgba(160, 68, 255, 1), 
        0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Memicu animasi shimmer saat hover */
.cta-button:hover::before {
    left: 150%;
}
/* ==== CURSOR LIGHT EFFECT ==== */
.cursor-light {
    position: fixed; /* Tetap di layar meskipun di-scroll */
    top: 0;
    left: 0;
    width: 400px; /* Lebar area cahaya */
    height: 400px; /* Tinggi area cahaya */
    
    /* Ini adalah bagian terpenting: menciptakan cahaya */
    background: radial-gradient(
        circle, 
        rgba(160, 68, 255, 0.25) 0%,  /* Warna ungu terang di tengah (lebih pekat) */
        rgba(160, 68, 255, 0) 60%     /* Transparan di pinggir (memudar) */
    );
    
    border-radius: 50%; /* Membuatnya bulat */
    
    /* Atur agar tidak bisa diklik atau di-select */
    pointer-events: none; 
    
    /* Posisikan di belakang konten tapi di atas background */
    z-index: 99; 
    
    /* Animasi agar gerakan lebih halus */
    transition: transform 0.1s ease-out; 
    
    /* Sembunyikan saat di luar jendela browser */
    will-change: transform;
}
/* ==== (Optional) Styling for Certification Cards ==== */
#certification .project-card h3 {
    margin-bottom: 15px; /* Memberi sedikit ruang lebih antara judul dan info tahun */
}

#certification .project-card p {
    color: var(--text-color);
    font-size: 0.9rem; /* Membuat teks tahun sedikit lebih kecil */
    opacity: 0.8;      /* Membuat teks tahun sedikit lebih redup */
}
/* ==== CERTIFICATIONS GRID (4-COLUMN LAYOUT) ==== */
.certifications-grid {
    display: grid;
    /* Membuat 4 kolom dengan lebar yang sama persis */
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; /* Menjaga jarak antar kartu */
}

/* Penyesuaian untuk layar kecil (Mobile) */
@media screen and (max-width: 768px) {
    .certifications-grid {
        /* Mengubah alur grid menjadi horizontal */
        grid-auto-flow: column;
        /* Setiap kartu akan memiliki lebar 80% dari layar */
        grid-auto-columns: 80%;
        /* Mengaktifkan scroll horizontal */
        overflow-x: auto;
        /* Menambahkan sedikit padding agar tidak menempel di tepi */
        padding: 20px;
        /* Menghilangkan scrollbar agar terlihat bersih */
        scrollbar-width: none; /* Firefox */
    }
    .certifications-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, and Opera */
    }
}
/* ==== RESPONSIVE DESIGN FOR SMARTPHONE ==== */
@media screen and (max-width: 768px) {

    /* 1. PERBAIKAN UMUM */
    section {
        /* Mengurangi padding agar tidak terlalu banyak ruang kosong */
        padding: 80px 5%; 
    }

    h2 {
        /* Mengecilkan ukuran font judul section */
        font-size: 2rem; 
        margin-bottom: 40px;
    }

    /* 2. PERBAIKAN HEADER & NAVIGASI */
    header {
        padding: 15px 5%;
    }
    
    nav {
        /* Mengubah navigasi agar logo di atas, menu di bawah */
        flex-direction: column; 
        gap: 15px;
    }

    nav ul {
        /* Pastikan menu tidak keluar layar */
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }


    /* 3. PERBAIKAN HERO SECTION */
    #hero {
        /* Mengubah layout menjadi vertikal (gambar di bawah teks) */
        flex-direction: column; 
        text-align: center;
        padding-top: 120px; /* Beri ruang dari header */
    }

    #hero .hero-content {
        /* Urutkan teks di atas gambar */
        order: 1; 
    }

    #hero .hero-image {
        /* Urutkan gambar di bawah teks */
        order: 2; 
        margin-top: 40px;
    }

    #hero .hero-content h1 {
        font-size: 2.2rem; /* Kecilkan font headline */
    }

    #hero .hero-image img {
        max-width: 280px; /* Kecilkan ukuran foto */
    }

    /* 4. PERBAIKAN ABOUT ME */
    .about-content h3 {
        font-size: 1.8rem; /* Kecilkan font hook */
    }


    /* 5. PERBAIKAN SEMUA GRID (Skills, Achievements, Projects) */
    .skills-grid,
    .achievement-grid,
    .projects-grid {
        /* Mengubah semua grid menjadi 1 kolom */
        grid-template-columns: 1fr; 
    }


    /* 6. PERBAIKAN TIMELINE (Kode ini sudah ada, tapi saya sertakan lagi untuk kelengkapan) */
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 15px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-item::after { left: 10px; }


    /* 7. PERBAIKAN GRID SERTIFIKASI (Kode ini juga sudah ada) */
    .certifications-grid {
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        overflow-x: auto;
        padding: 20px;
        scrollbar-width: none; /* Firefox */
    }
    .certifications-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, and Opera */
    }
}