/* 1. VARIABEL & RESET */
:root {
    --bg-color: #1e293b;
    --nav-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 75px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* 2. NAVBAR STANDAR (DESKTOP) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    padding-top: 0px;
    padding-bottom: 0px;
    background: var(--nav-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    /* Sembunyi di desktop */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* 3. LANGUAGE SWITCHER STYLING */
.lang-switcher button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.lang-switcher button:hover,
.lang-switcher button.active {
    color: var(--accent);
}

.sep {
    color: var(--text-primary);
    font-size: 12px;
}

/* 4. HERO SECTION STANDAR */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Membagi 2 kolom sama besar */
    min-height: calc(100vh - 75px);
    /* Mengisi tinggi layar penuh */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Ganti font sesuai selera */
    overflow: hidden;
    /* Mencegah bentuk dekoratif keluar batas */
}

.animate__fadeInLeft {
    animation-duration: 1.5s !important;
}

.animate__fadeInRight {
    animation-duration: 2.5s !important;
}

/* --- KOLOM KIRI (Area Gambar) --- */
.hero-left {
    position: relative;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    overflow: hidden;
    /* Mencegah elemen dekoratif keluar batas */
}

.hero-image-wrapper {
    /* Mengatur ukuran lonjong. Sesuaikan width/height ini jika ingin lebih besar/kecil */
    width: 320px;
    height: 480px;

    /* Menggunakan Border Radius Ekstrim untuk bentuk lonjong/pill */
    border-radius: 160px;
    /* Nilai radius yang sangat tinggi untuk efek kapsul */

    /* Memotong gambar agar mengikuti bentuk lonjong */
    overflow: hidden;

    position: relative;
    z-index: 2;
    /* Berada di atas latar belakang */
    box-shadow: 0 10px 40px rgba(64, 64, 64, 0.4);
    /* Efek bayangan gelap di tema gelap */

    /* Transition untuk memperhalus perubahan saat hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hero-image-wrapper:hover {
    transform: scale(1.02);
    /* Sedikit membesar */
    box-shadow: 0 15px 50px rgba(133, 133, 133, 0.6);
}

.hero-img {
    width: 100%;
    height: 100%;
    /* Mengisi penuh wadah lonjong */
    display: block;
    object-fit: cover;
    /* Menjaga proporsi wajah Anda agar tidak gepeng */

    /* --- EFEK UTAMA: HITAM PUTIH --- */
    filter: grayscale(100%);
    /* Menjadikan gambar 100% hitam putih secara default */

    /* Transition untuk transisi warna yang halus (0.5 detik) */
    transition: filter 0.5s ease-in-out;
}

.hero-image-wrapper:hover .hero-img {
    filter: grayscale(0%);
    /* Mengembalikan warna asli saat kursor mengarah ke foto */
}

/* --- KOLOM KANAN (Area Teks) --- */
.hero-right {
    position: relative;
    display: flex;
    border: none !important;
    box-shadow: none !important;
    flex-direction: column;
    justify-content: center;
    padding: 60px 10%;
}

/* Konten Teks */
.hero-content {
    position: relative;
    z-index: 1;
    /* Berada di atas bentuk dekoratif */
    max-width: 550px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-name {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-white {
    background-color: #ffffff;
    color: #000000;
    display: inline-block;
    text-decoration: none;
    border-radius: 30px;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-white:hover {
    background-color: #000000;
    color: #ffffff;
}

.social-icons a {
    font-size: 1.8rem;
    color: var(--text-primary) !important;
    margin: 0 15px;
    transition: 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.skills {
    padding: 60px 5%;
    text-align: center;
    background: var(--nav-color);
    /* Beri warna sedikit beda agar ada kontras */
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    /* Supaya otomatis turun ke bawah jika layar sempit */
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    background: #1e293b;
    /* Slate 800 */
    padding: 25px;
    border-radius: 15px;
    width: 140px;
    /* Ukuran tetap agar kotak terlihat seragam */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.html-color {
    color: #E34F26;
}

.css-color {
    color: #1572B6;
}

.js-color {
    color: #F7DF1E;
}

.php-color {
    color: #777BB4;
}

.ci-color {
    color: #EE4323;
}

.sql-color {
    color: #4479A1;
}

.react-color {
    color: #61DAFB;
}

.laravel-color {
    color: #FF2D20;
}

/* Efek Glow saat Hover menggunakan filter */
.skill-card:hover .html-color {
    filter: drop-shadow(0 0 10px rgba(227, 79, 38, 0.8));
}

.skill-card:hover .css-color {
    filter: drop-shadow(0 0 10px rgba(21, 114, 182, 0.8));
}

.skill-card:hover .js-color {
    filter: drop-shadow(0 0 10px rgba(247, 223, 30, 0.8));
}

.skill-card:hover .php-color {
    filter: drop-shadow(0 0 10px rgba(119, 123, 180, 0.8));
}

.skill-card:hover .ci-color {
    filter: drop-shadow(0 0 10px rgba(238, 67, 35, 0.8));
}

.skill-card:hover .sql-color {
    filter: drop-shadow(0 0 10px rgba(68, 121, 161, 0.8));
}

.skill-card:hover .react-color {
    filter: drop-shadow(0 0 10px rgba(97, 218, 251, 0.8));
}

.skill-card:hover .laravel-color {
    filter: drop-shadow(0 0 10px rgba(255, 45, 32, 0.8));
}

.skill-card i {
    font-size: 2.5rem;
    transition: all 0.3s ease;
    /* Transisi untuk warna dan filter */
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Project Section Landing page*/
/* --- Konfigurasi Container Utama (Wadah) --- */
.projects-container-wrapper {
    padding: 160px 20px 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Wadah Berbayang dengan Border Radius --- */
.projects-card-container {
    background-color: #cbd5e1;
    /* Putih datar/terang di dalam wadah */
    border-radius: 20px;
    /* Sudut membulat besar */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Bayangan lembut */
    max-width: 1200px;
    width: 100%;
    padding: 60px;
    /* Padding dalam */
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 atau 60/40 grid */
    gap: 40px;
    /* Jarak antara teks dan gambar */
}

/* --- Teks Content Kiri --- */
.projects-content-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.projects-title {
    font-size: 3rem;
    /* Judul Besar */
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.projects-underline-accent {
    display: flex;
    margin-top: 5px;
    margin-bottom: 25px;
    gap: 5px;
}

.line-dark-blue {
    width: 60px;
    height: 4px;
    background-color: #64748b;
    /* Contoh 1 Dark Blue */
    border-radius: 2px;
}

.line-lighter-blue {
    width: 100px;
    height: 4px;
    background-color: #94a3b8;
    /* Contoh 1 Lighter Blue */
    border-radius: 2px;
}

.projects-description {
    font-size: 1rem;
    color: #000000;
    /* Abu-abu kebiruan */
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 450px;
}

.btn-learn-more {
    display: inline-block;
    padding: 12px 28px;
    background-color: #000000;
    /* Dark Blue */
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.btn-learn-more:hover {
    background-color: #ffffff;
    color: #000000;
}

/* --- Kolase Gambar Kanan --- */
.projects-content-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Pastikan ini memenuhi kolom grid */
}

.projects-collage-grid {
    position: relative;
    width: 100%;
    max-width: 500px;
    /* Batasi seberapa besar kolase ini bisa membesar di desktop */

    /* KUNCI UTAMA: Kunci proporsi wadah menjadi bujur sangkar (atau 4/3). 
       Ini memastikan titik koordinat top dan left tidak meleset saat di-resize */
    aspect-ratio: 1 / 1;
}

/* --- Kartu Gambar Proyek --- */
.project-img-card {
    position: absolute;
    /* KUNCI KEDUA: Gunakan persentase, bukan 250px. 
       Gambar akan ikut mengecil saat wadah mengecil */
    width: 70%;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.project-img-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Penempatan Dinamis dan Tumpang Tindih (z-index) --- */
/* (Path gambar harus diisi dengan path yang benar) */

.img-1 {
    top: 33%;
    left: 0%;
    z-index: 3;
}

.img-2 {
    top: 18%;
    left: 20%;
    z-index: 1;
}

.img-3 {
    top: 48%;
    right: 5%;
    z-index: 2;
}

/* Efek Hover untuk interaktivitas */
.project-img-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Certificate Section Landing Page */
.certificates-container-wrapper {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificates-card-container {
    background-color: #cbd5e1;
    /* Putih datar/terang di dalam wadah */
    border-radius: 20px;
    /* Sudut membulat besar */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Bayangan lembut */
    max-width: 1200px;
    width: 100%;
    padding: 60px;
    /* Padding dalam */
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 atau 60/40 grid */
    gap: 40px;
    /* Jarak antara teks dan gambar */
}

.certificates-content-left {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Pastikan ini memenuhi kolom grid */
}

.certificates-collage-grid {
    position: relative;
    width: 100%;
    max-width: 500px;
    /* Batasi seberapa besar kolase ini bisa membesar di desktop */

    /* KUNCI UTAMA: Kunci proporsi wadah menjadi bujur sangkar (atau 4/3). 
       Ini memastikan titik koordinat top dan left tidak meleset saat di-resize */
    aspect-ratio: 1 / 1;
}

.certificate-img-card {
    position: absolute;
    /* KUNCI KEDUA: Gunakan persentase, bukan 250px. 
       Gambar akan ikut mengecil saat wadah mengecil */
    width: 70%;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.certificate-img-card img {
    width: 100%;
    height: auto;
    display: block;
}

.certificates-content-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.certificates-title {
    font-size: 3rem;
    /* Judul Besar */
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.certificates-underline-accent {
    display: flex;
    margin-top: 5px;
    margin-bottom: 25px;
    gap: 5px;
}

.certificates-description {
    font-size: 1rem;
    color: #000000;
    /* Abu-abu kebiruan */
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 450px;
}

.imgs-1 {
    top: 25%;
    left: 0%;
    z-index: 3;
}

.imgs-2 {
    top: 10%;
    left: 15%;
    z-index: 1;
}

.imgs-3 {
    top: 40%;
    right: 5%;
    z-index: 2;
}

.certificate-img-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Contact Section Landing Page */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.contact-card {
    background-color: #cbd5e1;
    /* Warna card sedikit lebih terang dari background */
    padding: 40px;
    margin-top: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-title {
    color: black;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Layout Grid untuk Name & Email */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    text-align: left;
    color: black;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Styling Input & Textarea */
.form-group input,
.form-group textarea {
    background-color: #F2F2F2;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 12px 16px;
    resize: none;
    color: #000000;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    /* Warna aksen biru RAF */
}

/* Tombol Gradient Sesuai Gambar */
.btn-send {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: black;
    /* Gradient Ungu ke Teal */
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-send:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Styling dasar untuk wadah pesan */
#response-message {
    display: none;
    padding: 14px 20px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    /* Ditebalkan sedikit agar lebih tegas */
    text-align: center;
    transition: all 0.3s ease-in-out;
}

/* Tampilan saat sukses (Latar hijau pastel lembut, Teks hijau gelap) */
#response-message.alert-success {
    display: block;
    background-color: #00b061;
    color: #ffffff;
    border: 1px solid #004124;
}

/* Tampilan saat error (Latar merah pastel, Teks merah gelap) */
#response-message.alert-error {
    display: block;
    background-color: #c20010;
    color: #ffffff;
    border: 1px solid #320005;
}

/* FOOTER UTAMA */
.site-footer {
    border-top: 1px solid #1f2937;
    background: var(--nav-color);
    color: var(--text-primary);
    padding-bottom: 20px;
}

/* Kontainer Utama untuk Footer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    /* Padding atas-bawah yang baik */
}

/* Kontainer untuk Kolom-kolom */
.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Membiarkan kolom turun di layar kecil */
    gap: 60px;
}

/* Gaya Kolom Individu */
.footer-column {
    flex: 1 1 200px;
    /* Fleksibel, setidaknya 200px lebar */
}

/* Kolom Merek (Kolom 1) */
.brand-column {
    display: flex;
    flex-direction: column;
}

.footer-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
}

.footer-logo {
    max-height: 100%;
    width: auto;
}

.brand-description {
    font-size: 14px;
    line-height: 1.6;
}

/* Gaya Judul Kolom (Kolom 2, 3, 4) */
.column-title {
    color: #c9d1d9;
    /* Warna judul lebih terang */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1.2px;
}

/* Daftar (Kolom 2, 3, 4) */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Link di dalam Daftar */

.menu-column {
    padding-top: 30px;
}

.menu-column,
.menu-links li a,
.site-footer a {
    text-decoration: none;
    transition: color 0.2s ease;
    color: var(--text-primary);
}

.services-column {
    padding-top: 30px;
}

.service-links {
    transition: color 0.2s ease;
}

.contact-column {
    padding-top: 30px;
}

.location-desc {
    margin-bottom: 40px !important;
}

/* Bagian Bawah Footer (Hak Cipta) */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 14px;
    color: var(--text-primary);
    border-top: 1px solid #1f2937;
}

@media (max-width: 1150px) {
    .hero-content h1 br {
        display: none;
    }
}

/* --- TAMPILAN HP (MEDIA QUERY) --- */
@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
        padding-top: 0px;
        padding-bottom: 0px;
        position: fixed;
        width: 100%;
        z-index: 2000;
        justify-content: space-between;
    }

    /* Reset flex agar tidak berantakan di HP */
    .logo,
    .nav-links,
    .nav-controls {
        flex: none;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100dvh;
        width: 75%;
        background: var(--nav-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 2000;
        gap: 35px;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        position: relative;
        z-index: 2001;
        color: var(--text-primary);
    }

    .nav-controls {
        gap: 10px;
        /* Lebih rapat di HP */
    }

    .hero-container {
        /* Ubah jadi flexbox agar mudah membagi tinggi layar */
        display: flex;
        flex-direction: column;
        /* Tinggi dinamis (dvh) lebih baik untuk ponsel */
        min-height: 100dvh;
        /* Pastikan tidak ada scroll horizontal */
        overflow-x: hidden;
    }

    .animate__fadeInLeft {
        /* Memaksa animasi berubah menjadi fadeInDown */
        animation-name: fadeInDown !important;

        /* Opsional: Jika ingin durasinya lebih cepat di HP */
        animation-duration: 1.5s !important;
    }

    .animate__fadeInRight {
        /* Memaksa animasi berubah menjadi fadeInUp */
        animation-name: fadeInUp !important;

        /* Opsional: Jika ingin durasinya lebih cepat di HP */
        animation-duration: 2s !important;
    }

    .hero-left {
        /* TAMBAHKAN PADDING ATAS SESUAI TINGGI NAVBAR ANDA */
        /* Asumsikan tinggi navbar 80px. Sesuaikan jika berbeda. */
        padding-top: 100px;
        padding-bottom: 20px;
        margin-bottom: -1px;

        /* Paksa hilangkan border yang mungkin menyebabkan garis putih */
        border: none !important;
        box-shadow: none !important;

        /* Membagi ruang layar */
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-image-wrapper {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        margin: 0 auto;
    }

    .hero-right {
        padding: 20px;
        padding-bottom: 60px;
        border: none !important;
        box-shadow: none !important;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Padding bawah ekstra untuk link */
        align-items: center;
        /* Teks ke tengah di HP (opsional, bisa dihapus jika ingin tetap rata kiri) */
        text-align: center;
    }

    .hero-name {
        font-size: 1rem;
        /* Mengecil dari desktop */
        letter-spacing: 4px;
        /* Jarak antar huruf */
        margin-bottom: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Mengecil secara signifikan dari desktop (misal 3.5rem) */
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero-desc {
        font-size: 0.95rem;
        /* Mengecil sedikit (misal 1.1rem ke 0.95rem) */
        line-height: 1.5;
        max-width: 100%;
        /* Pastikan teks menggunakan lebar penuh */
    }

    /* Skill Section Landing Page */
    .skills {
        margin-top: 0;
        padding-top: 60px;
        padding: 40px 5%;
    }

    .skill-card {
        min-width: 100px;
        padding: 15px;
    }

    .projects-card-container {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 0px;
    }

    .img-3 {
        width: 250px;
        top: 53%;
        right: 5%;
        z-index: 2;
    }

    .projects-content-left {
        align-items: center;
        text-align: center;
    }

    .projects-title {
        font-size: 2.5rem;
    }

    .projects-description {
        max-width: none;
    }

    .projects-collage-grid {
        /* Cukup kecilkan maksimal ukuran wadah utamanya, 
           seluruh gambar akan ikut mengecil secara otomatis dan rapi! */
        max-width: 350px;
    }

    .project-img-card {
        width: 200px;
    }

    /* certificate */

    .certificates-card-container {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 0px;
        /* Beri sedikit jarak agar teks tidak menempel ke gambar */
    }

    .imgs-1 {
        top: 20%;
        left: 0%;
    }

    .imgs-2 {
        top: 5%;
        left: 20%;
    }

    .imgs-3 {
        top: 35%;
        right: 0%;
    }

    .certificates-content-right {
        order: 1;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
        /* Beri ruang sebelum gambar di bawahnya */
    }

    .certificates-content-left {
        order: 2;
    }

    .certificates-title {
        font-size: 2.5rem;
    }

    .certificates-description {
        max-width: none;
    }

    .certificates-collage-grid {
        max-width: 350px;
        margin: 0 auto;
        /* Pastikan wadah di tengah */
    }

    .certificate-img-card {
        /* Gunakan persentase agar konsisten seperti saran sebelumnya */
        width: 70%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .footer-content {
        padding: 20px 15px;
    }

    .footer-columns {
        flex-direction: column;
        gap: 0px;
    }

    .brand-column {
        padding-right: 0;
    }

    .menu-column,
    .services-column,
    .contact-column {
        padding-top: 10px;
        max-height: 180px;
    }

    .site-footer {
        padding: 0px;
    }

    .site-footer .column-title {
        margin-bottom: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .chatbot-wrapper {
        bottom: 15px !important;
        right: 15px !important;
        z-index: 1000;
    }

    /* Mengecilkan jendela obrolan */
    #chat-window {
        width: 270px;
        height: 350px;
        bottom: 70px;
        right: 5px;
    }

    /* Menyesuaikan teks sambutan kecil */
    .chat-bubble-popup {
        font-size: 0.75rem;
        padding: 6px 18px;
        bottom: 60px;
    }
}

/* --- CERTIFICATE PAGE STYLING --- */
.cert-section {
    padding: 35px 10% 60px;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    margin-top: 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background: var(--nav-color);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cert-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.cert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.cert-card:hover .cert-img-container img {
    transform: scale(1.1);
}

.cert-info {
    padding: 20px;
}

.cert-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cert-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cert-info span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: bold;
}

/* MODAL STYLING */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px var(--accent);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Active Link Highlight */
.active-link {
    color: var(--accent) !important;
    border-bottom: 2px solid var(--accent);
}

@media (max-width: 768px) {
    .cert-section {
        padding: 100px 5% 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* --- PROJECT PAGE STYLING --- */
.project-section {
    padding: 35px 10% 60px;
    min-height: 100vh;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--nav-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-content h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 20px;
}

.p-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.p-link:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .project-section {
        padding: 100px 5% 40px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CHATBOT FLOATING --- */
.chat-bubble-popup {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 10px;
    background-color: #161b22;
    color: #e6edf3;
    padding: 12px 25px 10px 15px;
    border-radius: 10px 10px 2px 10px;
    border: 1px solid #30363d;
    font-size: 0.85rem;
    white-space: nowrap;
    position: absolute;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    cursor: pointer;
}

.close-bubble {
    position: absolute;
    top: 2px;
    right: 5px;
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
    transition: color 0.2s;
}

.close-bubble:hover {
    color: #ffffff;
}

.chat-bubble-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 15px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #161b22 transparent transparent transparent;
}

.chat-msg {
    max-width: 80%;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-msg {
    align-self: flex-end;
    background-color: #e6edf3;
    /* Kontras putih */
    color: #0d1117;
    border-radius: 10px 10px 2px 10px;
}

.bot-msg {
    align-self: flex-start;
    background-color: #21262d;
    /* Sedikit lebih terang dari background chat window */
    color: #e6edf3;
    border-radius: 10px 10px 10px 2px;
}

/* Animasi loading (titik-titik) */
.loading-msg {
    font-style: italic;
    color: #8b949e;
}

.chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    /* Konsisten dengan desain Anda */
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e6edf3;
    /* Kontras putih untuk tema gelap */
    color: #0d1117;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    transition: transform 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-window {
    display: none;
    /* Sembunyi secara default */
    width: 350px;
    height: 450px;
    background-color: #161b22;
    /* Sama dengan hero-left Anda */
    border: 1px solid #30363d;
    border-radius: 15px;
    flex-direction: column;
    position: absolute;
    bottom: 80px;
    right: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background-color: #21262d;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #30363d;
}

.chat-header h3 {
    font-size: 1rem;
    font-weight: 800;
    /* Menggunakan varian tebal Montserrat */
    margin: 0;
    color: #e6edf3;
}

#close-chat {
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 20px;
    cursor: pointer;
}

.chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #e6edf3;
    font-size: 0.9rem;
}

.chat-input-area {
    padding: 15px;
    display: flex;
    gap: 10px;
    background-color: #0d1117;
}

.chat-input-area input {
    flex: 1;
    background: #161b22;
    border: 1px solid #30363d;
    padding: 8px 12px;
    border-radius: 5px;
    color: white;
    outline: none;
}

#send-btn {
    background: #e6edf3;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#chat-toggle i {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Efek saat ikon berubah menjadi silang */
.fa-times {
    transform: rotate(90deg);
}