 /* ==========google font========== */
 @import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');

 /* variable css */
 :root {
     --header-height: 3.5rem;
     --hue: 220;
     /* Warna Utama */
     --first-color: hsl(var(--hue), 75%, 50%);
     /* Biru cerah */
     --first-color-light: hsl(var(--hue), 75%, 60%);
     /* Biru lebih terang */
     --first-color-alt: hsl(var(--hue), 75%, 40%);
     /* Biru gelap */

     /* Warna Judul dan Teks */
     --title-color: hsl(var(--hue), 10%, 95%);
     /* Hampir putih untuk judul */
     --text-color: hsl(var(--hue), 15%, 85%);
     /* Abu terang untuk teks */
     --text-color-light: hsl(var(--hue), 15%, 75%);
     /* Abu sedikit lebih gelap untuk teks sekunder */

     /* Warna Latar Belakang */
     --body-color: hsl(var(--hue), 25%, 15%);
     /* Biru sangat gelap untuk latar belakang */
     --container-color: hsl(var(--hue), 25%, 20%);
     /* Biru gelap untuk container */

     /* ==========font dan typography========== */
     --body-font: "Syne", sans-serif;
     --biggest-font-size: 3rem;
     --big-font-size: 1.5rem;
     --h1-font-size: 1.5rem;
     --h2-font-size: 1.5rem;
     --h3-font-size: 1.5rem;
     --normal-font-size: 0.938rem;
     --small-font-size: 0.813;

     /* ==========font weight========== */
     --font-reguler: 400;
     --font-semi-bold: 600;
     --font-bold: 700;

     /* ==========z index========== */
     --z-tooltip: 10;
     --z-fixed: 100;
 }

 /* ==========responsif typografis========== */
 @media screen and (min-width: 1150px) {
     :root {
         --biggest-font-size: 5.5rem;
         --big-font-size: 2.75rem --h1-font-size: 2.25rem;
         --h2-font-size: 2.25rem;
         --h3-font-size: 1.25rem;
         --normal-font-size: 1.125rem;
         --small-font-size: 0.875rem;
     }
 }

 /* ==========base========== */
 * {
     box-sizing: border-box;

 }

 html {
     scroll-behavior: smooth;
 }

 body,
 input,
 textarea,
 button {
     font-family: var(--body-font);
     font-size: var(--normal-font-size);
 }

 body {
     background-color: var(--body-color);
 }
 canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensures particles stay behind other content */
}

 input,
 textarea,
 button {
     border: none;
     outline: none;
 }

 h1,
 h2,
 h3 {
     color: var(--title-color);
     font-weight: var(--font-semi-bold);
 }

 p {
     list-style: none;
 }

 ul {
     list-style: none;
 }

 a {
     text-decoration: none;
 }

 img {
     display: block;
     max-width: 100%;
     height: auto;
 }

 /* ==========Reusable CSS classes==========  */
 .container {
     max-width: 1120px;
     margin-inline: 1.5rem;
 }

 .grid {
     display: grid;
     gap: 1.5rem;
 }

 .section {
     padding-block: 5rem 2rem;
 }

 .section__title {
     text-align: center;
     font-size: var(--h1-font-size);
     font-weight: var(--font-bold);
     margin-bottom: 2rem;
 }

 .main {
     overflow: hidden;
 }

 /* =========== Header & Nav ==========  */
 .header {
     position: fixed;
     width: 100%;
     top: 0;
     left: 0;
     background-color: transparent;
     z-index: var(--z-fixed);
 }

 .nav {
     position: relative;
     height: var(--header-height);
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .nav__logo {
     color: var(--title-color);
     font-weight: var(--font-bold);
 }

 .nav__toggle,
 .nav__close {
     font-size: 1.5rem;
     color: var(--title-color);
     cursor: pointer;
 }

 /* Navigation untuk mobile */
 @media screen and (max-width: 1150px) {
     .nav__menu {
         position: fixed;
         top: 0;
         right: -100%;
         background-color: hsla(var(--hue), 70%, 4%, .2);
         backdrop-filter: blur(16px);
         -webkit-backdrop-filter: blur(16px);
         width: 80%;
         height: 100%;
         padding: 7rem 3 rem;
         transition: right .4s;
     }
 }

 .nav__list {
     display: flex;
     flex-direction: column;
     row-gap: 3rem;
 }

 .nav__link {
     position: relative;
     color: var(--title-color);
     font-weight: var(--font-semi-bold);
     transition: color .4s;
 }

 .nav__link::after {
     content: '';
     width: 0;
     height: 2px;
     background-color: var(--first-color-light);
     position: absolute;
     left: 0;
     bottom: -.5rem;
     transition: width .3s;
 }

 .nav__link:hover {
     color: var(--first-color-light);
 }

 .nav__link:hover:after {
     width: 30%;
 }

 .nav__close {
     position: absolute;
     top: 1rem;
     right: 1.5rem;
 }

 /* ========== show menu ========== */
 .show-menu {
     right: 0;
 }

 /* ========== Add Blur Header ========== */
 .blur-header::after {
     content: '';
     position: absolute;
     width: 1000%;
     height: 100%;
     background-color: hsla(var(--hue), 70%, 4%, .2);
     backdrop-filter: blur(16px);
     -webkit-backdrop-filter: blur(16px);
     top: 0;
     left: 0;
     z-index: -1;
 }

 /* ========== Active Link ========== */
 .active-link {
     color: var(--first-color-light);
 }

 .active-link::after {
     width: 30%;
 }

 /* ========== Home ========== */

 .home__container {
     row-gap: 2rem;
     padding-top: 1rem;
 }

 .home__img {
     width: 115%;
     /* Atau gunakan nilai persentase untuk responsif */
     max-width: 400px;
     /* Batas maksimal lebar gambar */
     justify-self: center;
     mask-image: linear-gradient(to bottom,
             hsla(var(--hue), 40%, 16%) 5%, transparent 100%);

 }

 .home__name {
     font-size: 3rem;
     font-weight: var(--font-bold);
     word-break: break-word;
     margin-bottom: 1rem;
 }

 .home__description {
     color: aliceblue;
 }

 .home__profession {
     position: relative;
     font-size: var(--big-font-size);
     color: var(--text-color);
 }

 .home__profession::after {
     content: '';
     position: absolute;
     left: 0;
     bottom: -.5rem;
     width: 25%;
     height: 3px;
     background-color: var(--text-color);
 }

 .home__scroll {
     color: var(--title-color);
     display: inline-flex;
     column-gap: .5rem;
     align-items: center;
     justify-self: center;
     margin-top: 3rem;
 }

 .home__scroll-box {
     background-color: var(--first-color);
     width: 32px;
     height: 32px;
     display: grid;
     place-items: center;
     font-size: 1.5rem;
     overflow: hidden;
 }

 .home__scroll-text {
     font-weight: var(--font-semi-bold);

 }

 .home__scroll-box i {
     animation: scroll-down 3s infinite;
 }

 /* ========== animasi scroll icon =========== */
 @keyframes scroll-down {
     0% {
         transform: translateY(-1rem);
         opocity: 0;
     }

     50% {
         transform: translateY(0);
         opocity: 1;
     }

     100% {
         transform: translateY(.6rem);
         opocity: 0;
     }
 }

 /* ========== Button ========== */
 .button {
     display: inline-flex;
     justify-content: center;
     background-color: var(--first-color);
     color: var(--title-color);
     font-weight: var(--font-semi-bold);
     padding: 1.25rem 2rem;
     transition: background-color .4s;
 }

 .button:hover {
     background-color: var(--first-color-alt);
 }



 /* ========== Work ========== */
 .work {
     background-color: var(--container-color);
 }

 .work__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

 .work__card {
    overflow: hidden; /* Mencegah kontainer memotong isi */
    display: flex;
    flex-direction: column; /* Elemen vertikal */
    align-items: center; /* Konten rata tengah */
    gap: 1rem; /* Jarak antar elemen */
    border-radius: 12px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.72); /* Tambahkan bayangan untuk efek */
}

 .work__link {
     display: block;
     position: relative;
     background-color: var(--body-color);
     padding: 2rem 1.5rem 1.5rem 1.5rem;
     color: var(--text-color);
     transition: transform .4s;
 }

 .work__title {
     font-size: var(--h3-font-size);
     margin-bottom: .75rem;
     
 }


 .work__link i {
     position: absolute;
     top: 1.8rem;
     right: 1.5rem;
     font-size: 1.5rem;
     color: var(--first-color-light);
     transition: transform .4;
 }

 .work__link:hover {
     transform: translateY(-.35rem);
 }

 .work__link:hover i {
     transform: translateX(.5rem);
 }
 .work__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.work__tool {
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work__tool:hover {
    background-color: #ddd;
    cursor: pointer;
}
.work__img {
    display: block;
    width: 100%; /* Gambar memenuhi lebar kontainer */
    height: auto; /* Menjaga aspek rasio gambar */
    object-fit: cover;
    border-radius: 10px; /* Sudut melengkung untuk estetika */
}
.work__description {
    margin-bottom: 1.5rem;  
}

.work__detail {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;

}


 /* ========== INFONE MAZZEH ========== */
 .info__container {
     row-gap: 3rem;
 }

 .info__title {
     position: relative;
     font-size: var(--small-font-size);
     color: var(--text-color);
     margin-bottom: 2rem;
 }

 .info__title::after {
     content: '';
     position: absolute;
     left: 0;
     bottom: -.5rem;
     width: 20px;
     height: 2px;
     background-color: var(--text-color);

 }

 /* ========== about ========== */
 .about {
     row-gap: 3rem;
 }

 .about__description {
     margin-bottom: 2rem;
     color: aliceblue;
 }

 .about__description b {
     color: var(--first-color-light);
 }

 .about__img {
     width: 400px;
     justify-self: center;
     mask-image: linear-gradient(to bottom,
             hsla(var(--hue), 40%, 16%) 60%, transparent 100%);
     transform: translateY(-50px);
     /* Menggeser gambar ke atas sebanyak 20px */
 }


 .about__button {
     width: 100%;
 }

 /* Experience */
 .experience__content {
     row-gap: 2rem;
 }

 .experience__date {
     row-gap: 1ram;
     color: aliceblue;
 }

 .experience__description {
     color: aliceblue;
 }

 .experience__company {
     font-size: var(--h2-font-size);
     font-weight: var(--font-bold);
 }

 .experience__professional {
     font-size: var(--h3-font-size);
     margin-bottom: .25rem;
 }

 .experience__date {
     display: block;
     font-size: var(--small-font-size);
     margin-bottom: .75rem;
 }

 /* skills */
 .skills__img {
     width: 35px;
     margin-bottom: .5rem;
 }

 .skills__name {
     font-size: var(--small-font-size);
     color: aliceblue;
 }

 .skills__content {
     grid-template-columns: repeat(3, max-content);
     justify-content: space-around;
     align-items: flex-end;

 }

 .skills__box {
     display: grid;
     place-items: center;
     transition: tranform .4s;
 }

 .skills__box:hover {
     transform: translateY(-.25rem);
 }

 /* ==========Services========== */
 .services {
     background-color: var(--container-color);
 }

 .services__container {
     row-gap: 2rem;
 }

 .services__icon {
     display: block;
     color: var(--first-color-light);
     font-size: 2rem;
     margin-bottom: 1rem;
 }

 .services__title {
     font-size: var(--h3-font-size);
     margin-bottom: .75rem;
 }

 .services__description {
     color: aliceblue;
 }
 .services__label {
    font-size: 18px; /* Ukuran font lebih besar untuk label */
    font-weight: bold; /* Membuat teks label lebih tebal */
    display: block; /* Memastikan label berada dalam baris sendiri */
    margin-bottom: 5px; /* Memberi jarak di bawah label */
    color: #fff; /* Warna teks label putih */
    position: relative;
}

.services__label::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px; /* Ketebalan garis */
    background-color: #fff; /* Warna garis putih */
    margin-top: 5px;
}

.services__text {
    font-size: 16px; /* Ukuran font teks deskripsi */
    color: #ccc; /* Warna teks deskripsi */
    display: block; /* Teks berada di baris baru */
    margin-top: 5px; /* Memberi sedikit jarak antara label dan teks */
}



 /* ==========Contact========== */
 .contact__container {
     row-gap: 4rem;
 }

 .contact__group,
 .contact__form {
     gap: 1rem;
 }

 .contact__input {
     padding: 1.25rem;
     background-color: var(--container-color);
     color: var(--title-color);
     font-weight: var(--font-semi-bold);
 }

 .contact__input::placeholder {
     color: var(--text-color-light);
 }

 .contact__area {
     height: 10rem;
     resize: none;
 }

 .contact__button {
     margin-top: 1rem;
     cursor: pointer;
 }

 .contact__social {
     grid-template-columns: repeat(2, max-content);
     justify-content: center;
     column-gap: 3rem;
 }

 .contact__social-link {
     color: var(--title-color);
     display: inline-flex;
     column-gap: .25rem;
     align-items: center;
     transition: color .4s;
 }

 .contact__social-link span {
     font-size: var(--small-font-size);
     font-weight: var(--font-semi-bold);
 }

 .contact__social-link:hover {
     color: var(--first-color-light);
 }

 .contact__message {
     font-size: var(--small-font-size);
     font-weight: var(--font-semi-bold);
     color: var(--title-color);
     margin-top: 1rem;
     /* Add margin to ensure it is properly spaced */
     background-color: var(--container-color);
     /* Ensure good contrast */
     padding: 0.5rem;
     /* Add some padding for better visibility */
     border-radius: 5px;
     /* Optional: make the message look nicer */
     text-align: center;
     /* Optional: center the text */
 }

 /*==========footer==========  */
 .footer {
     background-color: var(--container-color);
 }

 .footer__container {
     padding-block: 3rem 2rem;
     row-gap: 3rem;
 }

 .footer__link {
     display: flex;
     justify-content: center;
     column-gap: 2.5rem;
 }

 .footer__link:hover {
     color: var(--first-color-light);
 }

 .footer__copy {
     color: var(--title-color);
     font-size: var(--small-font-size);
     text-align: center;
 }

 /* ===========scroll bar========== */
 ::-webkit-scrollbar {
     width: .6rem;
     background-color: hsl(var(--hue), 20%, 20%);
 }

 ::-webkit-scrollbar-thumb {
     background-color: hsl(var(--hue), 20%, 30%);
 }

 ::-webkit-scrollbar-thumb:hover {
     background-color: hsl(var(--hue), 20%, 40%);
 }

 .scrollup {
     position: fixed;
     right: 1rem;
     bottom: -50%;
     background-color: var(--container-color);
     display: inline-flex;
     padding: 6px;
     color: var(--title-color);
     font-size: 1.25rem;
     box-shadow: 0 4px 12px hsla(var(--hue), 30%, 8%, .3);
     z-index: var(--z-tooltip);
     transition: bottom .4s, transform .4s;
 }

 .scrollup:hover {
     transform: translateY(-.5rem);
 }

 /* show scroll up */
 .show-scroll {
     bottom: 3rem;
 }

 /* breakpoint */

 /* small */
 @media screen and (max-width: 300px) {
     .container {
         margin-inline: 1rem;
     }

     .skills__content {
         grid-template-columns: repeat(2, max-content);
     }
    
 }
 /* Perbaikan untuk Media Query */
@media screen and (max-width: 480px) {
    .work__container {
        grid-template-columns: 1fr; /* Satu kolom untuk layar kecil */
        padding: 1rem; /* Ruang ekstra di sekitar */
        gap: 1rem; /* Jarak antar kartu */
    }

    .work__link {
        padding: 1rem; /* Kurangi padding untuk layar kecil */
    }

    .work__img {
        width: 100%; /* Gambar menyesuaikan kontainer */
        height: auto; /* Menjaga proporsi gambar */
        object-fit: contain; /* Jangan memotong gambar */
    }

    .work__tools {
        flex-wrap: wrap; /* Tools turun ke baris baru jika sempit */
        gap: 5px; /* Kurangi jarak antar tools */
        justify-content: center;
    }

    .work__tool {
        padding: 5px 10px; /* Ukuran lebih kecil */
        font-size: 12px; /* Ukuran font lebih kecil */
        margin: 2px 0; /* Tambahkan sedikit margin antar tools */
    }
}


 /* medium */
 @media screen and (min-width: 540px) {

     .home__container,
     .info__container,
     .services__container,
     .contact__container {
         grid-template-columns: 350px;
         justify-content: center;
     }
     .work__container {
        grid-template-columns: 1fr; /* Tata letak tetap satu kolom */
        gap: 1rem; /* Kurangi jarak antar kartu */
    }

    .work__link {
        padding: 1rem; /* Kurangi padding lebih jauh */
    }

    .work__title {
        font-size: calc(var(--h3-font-size) - 0.5rem); /* Sesuaikan ukuran font */
    }
 }

 @media screen and (min-width: 768px) {
     .nav__menu {
         width: 50%;
     }

     .home__container {
         grid-template-columns: repeat(2, 350px);
     }

     .home__data {
         align-self: flex-end;
         padding-bottom: 3rem;
         order: -1;
     }

     .home__scroll {
         grid-column: 1 / 3;
     }

     .work__container {
        grid-template-columns: 1fr; /* Tata letak satu kolom untuk layar kecil */
        gap: 1.5rem; /* Jarak antar kartu di layar kecil */
    }

    .work__link {
        padding: 1.5rem 1rem; /* Kurangi padding di layar kecil */
    }

    .work__title {
        font-size: calc(var(--h3-font-size) - 0.3rem); /* Kurangi ukuran font */
    }

    .work__tools {
        gap: 10px; /* Kurangi jarak antar elemen tools */
    }

    .work__tool {
        flex: initial; /* Biarkan tools mengatur ukuran otomatis */
        padding: 5px 10px; /* Kurangi padding */
    }
    .work__img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

     .info__container {
         grid-template-columns: initial;
     }

     .about {
         grid-template-columns: repeat(2, 350px);
         align-items: center;
     }

     .about__content {
         order: 1;
     }

     .experience__data {
         grid-template-columns: repeat(2, 1fr);
     }

     .skills__content {
         grid-template-columns: repeat(5, max-content);
         justify-content: initial;
         column-gap: 4rem;

     }

     .services__container {
         grid-template-columns: repeat(2, 320px);
     }
     

 }
 @media screen and (min-width: 769px) {
    .work__container {
        grid-template-columns: repeat(2, 540px); /* Dua kolom besar */
        gap: 2rem; /* Jarak antar elemen */
    }

    .work__link {
        padding: 3rem; /* Padding lebih luas */
    }

    .work__img {
        object-fit: cover; /* Untuk layar besar, gambar terlihat penuh */
    }

    .work__tools {
        gap: 15px;
    }
}

 /* gede */
 @media screen and (min-width: 1150px) {
     .container {
         margin-inline: auto;
     }

     .section {
         padding-block: 7rem 5rem;
     }

     .section__title {
         margin-bottom: 4rem;
     }

     .nav {
         height: calc(var(--header-height) + 2rem);
     }

     .nav__toggle,
     .nav__close {
         display: none;
     }

     .nav__menu {
         width: initial;
     }

     .nav__list {
         flex-direction: row;
         column-gap: 4rem;
     }

     .home__container {
         grid-template-columns: 375px 350px;
         gap: 3rem 16rem;
     }

     .home__image {
         width: 350px;
     }

     .home__name {
         margin-bottom: 1.5rem;
     }

     .home__profession::after {
         bottom: -1rem;
         width: 35%;
     }

     .work__container {
        grid-template-columns: repeat(2, 540px); /* Dua kolom di layar besar */
        gap: 2.5rem; /* Jarak antar kartu */
    }

    .work__link {
        padding: 3rem 3rem 2rem; /* Padding lebih besar */
    }

    .work__title {
        font-size: var(--h2-font-size); /* Ukuran font besar */
        margin-bottom: 1rem;
    }

    .work__link i {
        font-size: 2rem; /* Ikon lebih besar */
    }

     .info__container {
         row-gap: 4rem;
     }

     .info__title {
         font-size: var(--normal-font-size);
         margin-bottom: 3.5rem;
     }

     .about {
         grid-template-columns: 320px 420px;
         column-gap: 11.5rem;
     }

     .about__description {
         margin-bottom: 3rem;
     }

     .about__button {
         width: initial;
     }

     .experience__content {
         row-gap: 4rem;
     }

     .experience__data {
         grid-template-columns: 320px 380px;
         column-gap: 11.5rem;
     }

     .experience__company {
         font-size: var(--h1-font-size);
     }

     .experience__profession {
         margin-bottom: 5rem;
     }

     .experience__date {
         font-size: var(--normal-font-size);
         margin-bottom: 1.5rem;
     }

     .skills__content {
         grid-template-columns: repeat(6, max-content);
     }

     .services__container {
         grid-template-columns: repeat(2, 350px);
         gap: 6rem 13rem;
     }

     .services__icon {
         font-size: 2.5rem;
         margin-bottom: 1.5rem;
     }

     .contact__container {
         grid-template-columns: 500px;
     }

     .contact__group {
         grid-template-columns: repeat(2, 1fr);
     }

     .contact__area {
         height: 15rem;
     }

     .contact__button {
         width: max-content;
         justify-self: center;
         margin-top: 1.5rem;
     }

     .contact__message {
         bottom: 4.5rem;
     }

     .contact__social {
         grid-template-columns: repeat(3, max-content);
         column-gap: 5rem;
     }

     .footer__container {
         padding-block: 3rem;
         grid-template-columns: repeat(2, max-content);
         justify-content: space-between;
     }

     .footer__links {
         column-gap: 4rem;
         order: 1;
     }

     .scrollup {
         right: 3rem;
     }


 }