@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap');

.font-robotoMono {
    font-family: 'Roboto Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #000;
    color: white;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikal di tengah */
    align-items: center; /* Horizontal di tengah */
    height: calc(100vh - 60px); /* Tinggi viewport dikurangi tinggi navbar */
    text-align: center; /* Teks di tengah */
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

header div {
    width: 60%; /* Sesuaikan dengan kebutuhan */
    height: 60px; /* Tinggi navbar */
    display: flex;
    justify-content: space-between; /* justify-between */
    align-items: center; /* items-center */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

header a {
    color: #e2e8f0; /* text-slate-200 */
    font-size: 1.875rem; /* text-3xl */
    font-family: 'Roboto Mono', monospace; /* font-mono */
}

#hamburger {
    display: none; /* Sembunyikan di desktop */
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}
/* Container bintang supaya tidak mengganggu scrolling */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Supaya tidak mengganggu klik */
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    opacity: 0;
    animation: fall linear infinite;
}

@keyframes fall {
    from {
        transform: translateY(-10vh);
        opacity: 1;
    }
    to {
        transform: translateY(110vh);
        opacity: 0;
    }
}



#navbar-links {
    display: none; /* Sembunyikan secara default di mobile */
    flex-direction: column;
    position: absolute;
    top: 80px; /* Sesuaikan dengan tinggi header */
    right: 20px;
    background: rgba(255, 255, 255, 0.1); /* Latar belakang semi-transparan */
    backdrop-filter: blur(10px); /* Efek blur */
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#navbar-links.active {
    display: flex; /* Tampilkan saat tombol hamburger diklik */
}

/* Tombol Hamburger */
#hamburger {
    display: block; /* Tampilkan di mobile */
}




/* Responsive Styles */
@media (max-width: 1024px) {
    /* Adjust header */
    header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 10px; /* Opsional: untuk memberikan ruang */
    }
    
    header .title {
        font-size: 1.5rem;
        position: relative;
    }

    header div {
        width: 90%;
        justify-content: space-around;

    }
    
    header button{
        margin-left: 63px;
    }

    main{
        padding: 0 10px;
    }
     

    header ul {
        gap: 10px;
    }


    #navbar-links {
        display: none; /* Sembunyikan navbar links secara default */
        flex-direction: column;  
        position: absolute;
        top: 80px; /* Sesuaikan dengan tinggi header */
        right: 20px;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #navbar-links.active {
        display: flex; /* Tampilkan navbar links saat aktif */
    }


    #hamburger {
        display: flex; /* Tampilkan tombol hamburger */
        position: absolute;        
        flex-direction: column;  
        position: absolute;
        right: 20px;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    /* Adjust main content */
    main {
        flex-direction: column;
        justify-content: center; /* Vertikal di tengah */
        align-items: center; /* Horizontal di tengah */
        height: 100vh; /* Tinggi penuh viewport */
        text-align: center; 
         margin-top: 2rem; /* Jarak yang lebih kecil dari navbar */
        margin-bottom: 2rem; /* Jarak yang lebih kecil dari footer (jika ada) */
        display: flex;
        height: calc(100vh - 80px); /* Tinggi viewport dikurangi tinggi navbar */
    }

    main h1 .hello {
        font-size: 3rem; /* Ukuran lebih besar */
        margin-bottom: 10px; /* Jarak antara h1 dan h2 */
    }
    main h1 .main {
        font-size: 3rem; /* Ukuran lebih besar */
        margin-bottom: 10px; /* Jarak antara h1 dan h2 */
    }

    main .text {
        font-size: 2rem; /* Ukuran lebih kecil untuk mobile */
        align-items: center;
        justify-content: center;
        justify-items: center;
    }

    .enthusiast {
        font-size: 2rem; /* Ukuran lebih besar */

    }
    
    .typing {
        font-size: 2rem; /* Ukuran lebih besar */

    }
    
    /* Adjust about section */
    #about {
        flex-direction: column;
        align-items: center;
    }

    #about div {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }
}

    #about h1 {
        font-size: 2rem;
    }

    #about img {
        width: 30vw;
        height: 30vw;
        max-width: 150px;
        max-height: 150px;
        margin-top: 10px;
        justify-self: center;
    }

    #about button{
        margin-bottom: 10px;
    }

    #about div {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
     #about .tab-image {
        width: 3rem; /* w-12 */
        height: 3rem; /* h-12 */
    }


    /* Adjust project section */

    #project div .card-container{
        will-change: transform;
    }

    #project button {
     display: block;
    }

    /* Adjust contact section */
    #contact {
        flex-direction: column;
    }

    #contact div {
        width: 100%;
        margin: 0;
        padding: 10px;
    }


@media (max-width: 1023px) and (min-width: 768px) {
    /* Adjust header */

    header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 10px; /* Opsional: untuk memberikan ruang */
    }
    
    header .title {
        font-size: 1.5rem;
        position: relative;
    }

    header ul {
        flex-direction: column;
        align-items: center;
    }

    /* Adjust main content */
    main h1 {
        font-size: 2rem;
    }

    main .text {
        font-size: 1rem;
    }

    /* Adjust about section */
    #about img {
        width: 50vw;
        height: 50vw;
        max-width: 120px;
        max-height: 120px;
    }

    #about div {
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    /* Adjust project section */
    #project .flex {
        display: flex ;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    #project .flex div {
        margin: 0;
        padding: 10px;
        width: 90%; /* Lebar card pada mobile */
        max-width: 100%; 
    }

    #project button {
     display: block;
    }

    /* Adjust contact section */
    #contact div {
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    .card-container{
        width: 50%;
    }

    #about {
        flex-direction: column; /* Mengatur arah flex menjadi kolom */
        align-items: center; /* Pusatkan item secara horizontal */
    }

    #about div {
        width: 100%; /* Lebar penuh */
        max-width: 100%; /* Maksimum lebar 100% */
        margin-bottom: 20px; /* Jarak antar card */
    }

    #about img {
        width: 50vw; /* Lebar gambar 50% dari viewport width */
        height: 50vw; /* Tinggi gambar 50% dari viewport width */
        max-width: 150px; /* Maksimum lebar gambar */
        max-height: 150px; /* Maksimum tinggi gambar */
        margin-top: 10px; /* Jarak atas gambar */
    }

    #about button {
        margin-bottom: 10px; /* Jarak bawah tombol */
    }
}

@media (min-width: 1024px) and (max-width: 1366px) {
    header {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 10px; /* Opsional: untuk memberikan ruang */
    }
    
    header .title {
        font-size: 1.5rem;
        position: relative;
    }

    header div {
        width: 90%;
        justify-content: space-around;

    }
    
    header button{
        margin-left: 63px;
    }

    main{
        padding: 0 10px;
    }
     

    header ul {
        gap: 10px;
    }


    #navbar-links {
        display: none; /* Sembunyikan navbar links secara default */
        flex-direction: column;  
        position: absolute;
        top: 80px; /* Sesuaikan dengan tinggi header */
        right: 20px;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #navbar-links.active {
        display: flex; /* Tampilkan navbar links saat aktif */
    }


    #hamburger {
        display: flex; /* Tampilkan tombol hamburger */
        position: absolute;        
        flex-direction: column;  
        position: absolute;
        right: 20px;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    /* Adjust main content */
    main {
        flex-direction: column;
        justify-content: center; /* Vertikal di tengah */
        align-items: center; /* Horizontal di tengah */
        height: 100vh; /* Tinggi penuh viewport */
        text-align: center; 
         margin-top: 2rem; /* Jarak yang lebih kecil dari navbar */
        margin-bottom: 2rem; /* Jarak yang lebih kecil dari footer (jika ada) */
        display: flex;
        height: calc(100vh - 80px); /* Tinggi viewport dikurangi tinggi navbar */
    }

    main h1 .hello {
        font-size: 3rem; /* Ukuran lebih besar */
        margin-bottom: 10px; /* Jarak antara h1 dan h2 */
    }
    main h1 .main {
        font-size: 3rem; /* Ukuran lebih besar */
        margin-bottom: 10px; /* Jarak antara h1 dan h2 */
    }

    main .text {
        font-size: 2rem; /* Ukuran lebih kecil untuk mobile */
        align-items: center;
        justify-content: center;
        justify-items: center;
    }

    .enthusiast {
        font-size: 2rem; /* Ukuran lebih besar */

    }
    
    .typing {
        font-size: 2rem; /* Ukuran lebih besar */

    }
    
    /* Adjust about section */
    #about {
        flex-direction: column;
        align-items: center;
    }

    #about div {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }
}

    #about h1 {
        font-size: 2rem;
    }

    #about img {
        width: 30vw;
        height: 30vw;
        max-width: 150px;
        max-height: 150px;
        margin-top: 10px;
        justify-self: center;
    }

    #about button{
        margin-bottom: 10px;
    }

    #about div {
        width: 100%;
        margin: 0;
        padding: 10px;
    }
     #about .tab-image {
        width: 3rem; /* w-12 */
        height: 3rem; /* h-12 */
    }


    /* Adjust project section */

    #project div .card-container{
        will-change: transform;
    }

    #project button {
     display: block;
    }

    /* Adjust contact section */
    #contact {
        flex-direction: column;
    }

    #contact div {
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    
