/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root{
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    /*-- --second-color: rgb(0, 201, 255); --*/
    --second-color: rgb(30, 159, 171);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);

}

/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}


/* ---##-- REUSABLE CSS --##--- */

/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
}
.container{
    width: 100%;
    position: relative;
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
.nav-logo{
   position: relative;
}
.nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-logo span{
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn {
    position: relative;
    z-index: 10000 !important; /* Harus lebih tinggi dari .nav-menu agar tombol "X" atau "=" tetap bisa di-klik */
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}


/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.social_icons{
    display: flex;
    margin-top: 5em;
    gap: 30px;
    position: relative;
    z-index: 5; /* Lapisan bawah */
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.icon:hover{
    color: var(--first-color);
}

/* ----- FEATURED IMAGE BOX ----- */
.featured-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}
.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}

/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/* ----- ABOUT INFO ----- */
.about-info{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}
.about-info p{
    text-align: center;
    font-size: 15px;
    color: #777;
}
.about-btn button{
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}
.about-btn button:hover{
    background: var(--first-color-hover);
}

/* ----- ABOUT / SKILLS BOX ----- */
.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 30px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skills-list span{
    font-size: 14px;
    background: var(--text-color-third);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}

/* ----- PROJECTS BOX ----- */
.project-container{
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.project-box{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 30%;
    height: 250px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.project-box>i{
    font-size: 50px;
    color: #00B5E7;
    margin-bottom: 25px;
}
.project-box label{
    font-size: 15px;
    color: #777;
}
.project-box::after, .contact-info::after{
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}
.project-box:hover.project-box::after,
.contact-info:hover.contact-info::after{
    bottom: 0;
}
.project-box:hover.project-box i,
.project-box:hover.project-box>h3,
.project-box:hover.project-box>label{
    color: var(--color-white);
    z-index: 2;
}

/* ----- CONTACT BOX ----- */
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background: var(--second-color);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.contact-info>h2{
    color: var(--color-white);
    margin-bottom: 20px;
}
.contact-info>p{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    margin-block: 5px;
}
.contact-info p>i{
    font-size: 18px;
}
.contact-info::after{
    background: var(--color-white);
}
.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i{
    color: #777;
    z-index: 2;
}

/* ----- CONTACT FORM ----- */
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
}
.input-field{
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 20px;
    outline: none;
}
textarea{
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px 20px;
    outline: none;
    resize: none;
}
.form-button>.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    color: var(--color-white);
}
.form-button>.btn:hover{
    background: #00B5E7;
}
.form-button i{
    font-size: 18px;
    rotate: -45deg;
}

/* ----- FOOTER BOX ----- */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    padding-block: 40px 60px;
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;   
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
}


/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media only screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }
}

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
    .nav-button{
        display: none;
    }
    .nav-menu.responsive {
    position: fixed; /* atau absolute, tergantung template kamu */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; /* Tambahkan warna latar tegas agar tulisan di bawahnya tertutup */
    
    /* KUNCI UTAMA: Memaksa menu navigasi berada di lapisan paling atas layar */
    z-index: 999 !important; 
}
    .nav-menu{
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
    }
    .nav_menu_list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box{
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }
    .social_icons{
        margin-top: 2em;
        position: relative;
    z-index: 5; /* Lapisan bawah */
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }
    .image, .image img{
        width: 150px;
        height: 150px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;
    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }

}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */

@media only screen and (max-width: 540px){
    .featured-name{
        font-size: 40px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }
}

.commentbox {
    display: flex;
    justify-content: space-around;
    padding: 10px;
}

.commentbox > img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* float: left; */
    margin-right: 20px;
    object-fit: cover;
    object-position: center;
}

.content {
    width: 100%;
}

.user {
    border: none;
    outline: none;
    margin: 5px 0;
    color: #808080;
    margin-left: 20px;
    padding: 10px;
}

.commentinput > input {
    border: none;
    padding: 10px;
    padding-left: 0;
    outline: none;
    border-bottom: 2px solid blue;
    margin-bottom: 10px;
    width: 95%;
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #808080;
}

.buttons > button {
    padding: 5px 10px;
    background: lightgrey;
    color: #808080;
    text-transform: uppercase;
    border: none;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
}

.buttons > button.abled {
    background: blue;
    color: #fff;
}

.policy {
    margin: 20px 0;
    font-size: 0.8em;
    font-family: Arial, sans-serif;
    color: #808080;
}

.policy a {
    text-decoration: none;
    color: blue;
}

.notify {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.notify > input {
    margin-right: 5px;
    border: 2px solid #808080;
}

.parents {
    font-family: Arial, sans-serif;
    display: flex;
    margin-bottom: 30px;
}

.parents h1 {
    font-size: 0.9em;
}

.parents p {
    margin: 10px 0;
    font-size: 0.9em;
}

.parents > img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    object-position: center;
}

.engagements {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.engagements img {
    width: 20px;

}

.engagements img:nth-child(1) {
    margin-right: 10px;
    width: 25px;
}

.date {
    color: #808080;
    font-size: 0.8em;
}
/* ==================== PENYESUAIAN GAMBAR KARTU PROYEK ==================== */
.project-box .project-card-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;

    position: relative;
    z-index: 3
}

/* Efek sedikit membesar saat kartu proyek diarahkan kursor (hover) */
.project-box:hover .project-card-img {
    transform: scale(1.08);
}


/* ==================== DESAIN MODAL POP-UP DETAIL PROYEK ==================== */
.project-modal {
    display: none; /* Tersembunyi secara default */
    position: fixed; 
    z-index: 2000; /* Memastikan pop-up berada di lapisan paling atas */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.6); /* Efek latar belakang gelap transparan */
    backdrop-filter: blur(5px); /* Efek blur estetik pada latar belakang */
}

.modal-content {
    background-color: var(--color-white);
    margin: 6% auto; 
    padding: 30px;
    border-radius: 20px;
    width: 85%; 
    max-width: 750px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalSlideDown 0.4s ease;
}

/* Animasi pop-up muncul halus dari atas */
@keyframes modalSlideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Tombol silang (X) untuk menutup modal */
.close-modal {
    color: #999;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--first-color);
}

/* Pengaturan elemen di dalam modal */
.modal-detail-title {
    font-size: 22px;
    color: var(--text-color-second);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--second-color);
    padding-bottom: 10px;
    line-height: 1.4;
}

.modal-section-label {
    font-weight: 600;
    color: var(--text-color-third);
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body-text {
    font-size: 14.5px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.modal-project-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    margin-block: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-meta-info {
    background: var(--body-color);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    border-left: 3px solid var(--second-color);
}

/* Tombol Tautan/Link Proyek */
.modal-link-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background-color: var(--second-color);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-link-btn:hover {
    background-color: var(--first-color-hover);
    transform: translateY(-2px);
}

/* Responsivitas untuk Layar Smartphone */
@media only screen and (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 15% auto;
        padding: 20px;
    }
    
    .modal-detail-title {
        font-size: 18px;
    }
}

/* Styling daftar kompetensi di dalam modal sertifikasi */
.modal-cert-list {
    margin-left: 20px;
    margin-block: 15px;
    font-size: 14px;
    color: #555;
}

.modal-cert-list li {
    margin-bottom: 12px;
    line-height: 1.5;
    text-align: justify;
}

.modal-subtitle-status {
    font-size: 14px;
    color: #666;
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: inline-block;
}

/* ----- STYLING IKON AVATAR & ENGAGEMENT KOMENTAR BARU ----- */

/* Kotak Penampung Foto Profil/Ikon User */
.parents .comment-avatar-box {
    width: 42px;
    height: 42px;
    background-color: #f0f2f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Ukuran Ikon Besar untuk Avatar */
.parents .comment-avatar-box i {
    font-size: 26px;
    color: #555;
}

/* Penata Letak Row Ikon Like & Share */
.parents .engagements {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
    margin-bottom: 5px;
}

/* Desain Ikon Like dan Share kecil */
.parents .engagements i {
    font-size: 18px;
    color: #777;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Efek Interaktif Hover (Kursor didekatkan) */
.parents .engagements i:hover {
    color: var(--first-color); /* Berubah menjadi warna biru portofolio kamu */
    transform: scale(1.15);
}

/* Spesifik warna merah/biru saat jempol di-hover */
.parents .engagements #like:hover {
    color: #2979ff;
}

/* Styling Khusus untuk Ikon Hapus Komentar */
.parents .engagements .btn-delete-comment {
    margin-left: auto; /* Memaksa posisi ikon tong sampah bergeser ke ujung kanan komentar */
    color: #aaa;
    font-size: 17px;
}

/* Efek saat kursor diarahkan ke tombol hapus */
.parents .engagements .btn-delete-comment:hover {
    color: #ff3d00 !important; /* Berubah menjadi merah terang cerah */
    transform: scale(1.18);
}

.comment-avatar-box i {
    font-size: 26px;
    color: #555;
    /* Tambahkan baris transisi ini agar perubahan warna ikon terasa halus */
    transition: color 0.3s ease, class 0.3s ease; 
}
/* ----- STYLING KHUSUS AREA KONTAK & KOMENTAR (ANTI MELAR) ----- */

/* Membatasi lebar maksimal area kontak dan komentar agar seimbang di tengah */
.contact-comment-container {
    max-width: 1100px;       /* Batas lebar maksimal yang ideal untuk layar desktop */
    width: 100%;
    margin: 0 auto;          /* Memaksa elemen berada tepat di tengah halaman */
    padding-inline: 30px;    /* Jarak aman 30px di ujung kiri dan kanan agar tidak mentok */
    box-sizing: border-box;
}

/* Mengatur ukuran khusus untuk kolom komentar agar lebih ramping dan estetik */
.custom-comment-area {
    max-width: 780px;        /* Kolom komentar dibuat sedikit lebih ramping dari form kontak */
    width: 100%;
    margin: 0 auto;          /* Tetap presisi di tengah */
}

/* Garis pembatas halus antara area Get In Touch dengan Post a Comment */
.contact-comment-separator {
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    margin-block: 60px;      /* Memberikan jarak spasi vertikal atas-bawah yang lega */
}

/* Mengamankan padding dalam kotak isian komentar */
.commentbox, .parents {
    padding: 22px;
    box-sizing: border-box;
}

/* ==================== GLASSMORPHISM & BUBBLE COMMENT BOX ==================== */

/* Container Utama Kartu Komentar */
.bubble-card-wrapper {
    position: relative;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.45); /* Latar belakang mika semi-transparan */
    backdrop-filter: blur(10px);          /* Efek blur kaca di belakangnya */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden; /* Memastikan gelembung tidak meluber keluar kartu */
    box-sizing: border-box;
    opacity: 0;                             /* Tersembunyi di awal */
    transform: translateY(40px);            /* Posisinya agak turun ke bawah */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 2. Kelas Pemicu yang akan ditempelkan oleh JavaScript saat di-scroll */
.bubble-card-wrapper.show-on-scroll {
    opacity: 1;
    transform: translateY(0);               /* Kembali ke posisi normal */
}

/* Memastikan konten komentar berada di atas lapisan gelembung */
.bubble-card-wrapper .custom-comment-area {
    position: relative;
    z-index: 2;
    
}

/* Properti Dasar Gelembung Balon */
.bubble-card-wrapper .bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(40, 116, 240, 0.15), rgba(40, 116, 240, 0.03)); /* Gradasi warna tema biru portofoliomu */
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1;
    pointer-events: none; /* Supaya gelembung tidak menghalangi klik tetikus/kursor */
}

/* Atur Posisi & Ukuran Masing-Masing Gelembung */
.bubble-card-wrapper .bubble.b1 {
    width: 120px;
    height: 120px;
    top: -20px;
    right: -20px;
    animation: floatBubble 6s ease-in-out infinite alternate;
}

.bubble-card-wrapper .bubble.b2 {
    width: 80px;
    height: 80px;
    bottom: -10px;
    left: -10px;
    animation: floatBubble 8s ease-in-out infinite alternate-reverse;
}

.bubble-card-wrapper .bubble.b3 {
    width: 50px;
    height: 50px;
    top: 50%;
    left: 15px;
    animation: floatBubble 5s ease-in-out infinite alternate;
}

/* Animasi Mengapung Lembut untuk Gelembung */
@keyframes floatBubble {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        transform: translateY(-15px) scale(1.05) rotate(10deg); /* Bergerak pelan ke atas-bawah */
    }
}

/* Penyesuaian Komponen di Dalamnya Biar Menyatu Ringan */
.bubble-card-wrapper .commentbox, 
.bubble-card-wrapper .parents {
    background: rgba(255, 255, 255, 0.85); /* Membuat kotak input & list komentar sedikit transparan */
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 3%;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Pastikan tag main pembungkus portfolio kamu juga ikut terkunci */
main {
    width: 100%;
    overflow-x: hidden;
}

/* ----- REKAYASA UKURAN SKILLS BIAR PAS & RAMPING DI HP (TANPA SCROLL) ----- */
@media (max-width: 768px) {
    
    /* 1. Kembalikan container utama ke susunan vertikal lurus ke bawah */
    .col {
        display: flex !important;
        flex-direction: column !important; 
        overflow-x: visible !important; /* Matikan fitur scroll horizontal */
        gap: 15px !important;            /* Jarak antar kotak skills diperkecil */
        width: 100% !important;
        padding-inline: 15px !important; /* Jarak aman kanan-kiri layar HP */
        box-sizing: border-box;
    }

    /* 2. Perkecil ruang dalam (padding) kotak skills agar hemat tempat */
    .skills-box {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 15px !important;        /* Diperkecil dari standar desktop (biasanya 20px-25px) */
        border-radius: 12px !important;  /* Sudut kotak dibuat lebih pas untuk layar HP */
        box-sizing: border-box;
    }

    /* 3. Perkecil ukuran teks judul kategori (Frontend, Backend, dll) */
    .skills-header h3 {
        font-size: 18px !important;      /* Sedikit diperkecil agar tidak dominan */
        margin-bottom: 12px !important;
    }

    /* 4. Rampingkan badge / bulatan list skill di dalamnya */
    .skills-list {
        display: flex !important;
        flex-wrap: wrap !important;      /* Teks otomatis patah ke bawah jika barisnya penuh */
        gap: 8px !important;             /* Jarak antar badge dipersempit */
    }

    .skills-list span {
        font-size: 13px !important;      /* Perkecil ukuran huruf tiap skill (misal: Python, Figma) */
        padding: 6px 12px !important;    /* Perkecil bantalan tombol text-nya agar lebih pas di jempol */
    }
}