@font-face {
    font-family: 'CustomFont';
    src: url('https://raw.githubusercontent.com/MohRobyTrio/website-adi/main/assets/Poppins-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'CustomFont', sans-serif;
}

body {
    padding: 40px;
    background-color: #f4f4f4;
    color: #454545;
}

.horizontal-line {
    border: none; /* Menghilangkan border default */
    height: 3px; /* Tinggi garis */
    background-color: #000000; /* Warna garis */
    margin: 30px 0; /* Jarak atas dan bawah garis */
    width: 100%; /* Lebar garis */
}

.header-img {
    display: flex;
    justify-content: center;
}

.img-title {
    width: 70vw;
    height: auto;
    margin-right: 3.5rem;
    margin-left: 3.5rem;
}

.profile-section {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-direction: row;
    justify-content: flex-start;
}

.profile-img {
    width: 40vw;
    height: auto;
    border-radius: 1%;
    margin: 10px 40px 40px 40px;
}

.profile-text h2 {
    font-size: medium;
}

.container {
    display: flex;
    flex-direction: column;
}

.profile-logo {
    display: flex; 
    align-items: flex-start; 
}

.profile-foto {
    display: flex;
    width: 100%;
    justify-content: center;
}

.logo-img {
    width: 40px; 
    height: 100%; 
    margin-right: 10px; 
    border-radius: 50%;
}

.update-info {
    /* color: gray; */
    color: #3f3f3f;
    font-size: small;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    text-align: justify; 
    margin-bottom: 1em;
}

.karya {
    width: 100%;
    height: auto;
    display: block; 
    object-fit: cover; 
    max-width: 100%; 
}

.portfolio {
    margin-bottom: 20px;
    text-align: center;
}

.portfolio iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.portfolio h3 {
    font-size: medium;
    color: #fbc70e;
}

.kontak {
    font-size: small;
}

.kontak h2 {
    font-size: large;
    margin-bottom: 10px;
}

.kontak .p {
    font-size: small;
    margin-bottom: 20px;
}

.img-media {
    width: 42px;
    height: 42px;
}

.long-media {
    height: 42px;
}

.long-media-linktree {
    height: 42px;
    margin-top: 20px;
} 

.social-icons {
    display: flex;
    justify-content: start;
    flex-wrap: nowrap;
    gap: 10px;
}

@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
    .profile-img {
        width: 50vw;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    header {
        margin: 1.5rem 2rem 1.5rem 2rem;
    }

    .profile-section {
        padding: 20px;
    }

    .horizontal-line {
        margin: 20px 0;
    }

    .profile-img {
        width: 100%;
    }

    .portfolio iframe {
        height: 215px;
    }

    .social-icons {
        /* justify-content: space-between; */
        justify-content: start;        
    }
}

@media (max-width: 520px) {
    .social-icons {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Jangan pindahkan ikon ke bawah */
        overflow: hidden; /* Tambahkan jika diperlukan untuk memotong ikon jika terlalu besar */
        gap: 5px;
    }
    
    .social-icons a {
        flex-grow: 1;
        flex-shrink: 1; /* Biarkan ikon menyusut jika ruang tidak cukup */
        min-width: 0; /* Izinkan penyusutan tanpa batas */
        text-decoration: none;
    }
    
    .social-icons img {
        max-height: 50px; /* Ukuran awal ikon */
        width: 100%; /* Ikon akan menyesuaikan lebar linknya */
        height: auto;
        transition: width 0.3s ease; /* Transisi untuk memperhalus penyusutan */
    }

    .long-media-linktree {
        height: 30px;
        margin-top: 20px;
    } 
}

@media (max-width: 468px) {
    .profile-img {
        margin: 10px;
    }

    .container-text {
        margin-top: 20px;
    }

    /* .img-media {
        width: 33px;
        height: 33px;
    }
    
    .long-media {
        height: 33px;
    } */
}
