* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}


html, body {
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0F172A;
    color: #CBD5E1;

}

#nav-container {
    background-color: #0F172A;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 60px;
}

.nav-flex label, #Humberger {
    display: none;
}

nav ul {
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 0;
}

nav ul li a {
    display: block;
   color: #CBD5E1 ;
    padding: 0 16px;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 60px;
}

nav ul li a:hover {
    background-color: #1E293B;
    color: #38BDF8;
    transition: 0.3s;
}

.nav-brand h2 {
    margin: 14px 0 0 10px;
    color: #F8FAFC;
}


/* hero image */

#hero-container {
    position: relative;
    background-image: 
        linear-gradient(
            rgba(15, 23, 42, 0.55),
            rgba(15, 23, 42, 0.85)
        ),
        url(gambar/moon.jpg);
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-attachment: fixed;
}

.text {
    text-align: center;
    color: #F8FAFC;
    font-size: 24px;
}

.text h1 {
    font-size: clamp(40px, 8vw, 90px);
    margin-bottom: 5px;
    letter-spacing: 8px;
}

.text p {
     color: #38BDF8;
    font-weight: bold;
    letter-spacing: 4px;
    font-size: 20px;
}

#hero-container .text span {
    display: block;
    margin-top: 20px;
    font-size: 15px;
}



/* About */

main {
    width: 100%;
    margin: auto;
    padding: 30px 0;
}

#about h1  {
    text-align: center;
    color: #F8FAFC;
    margin-top: 100px;
}



.about-intro {
    max-width: 800px;
    text-align: center;
    line-height: 1.6;
    margin: 20px auto 60px;
}

#about .about-deskripsi {
    text-align: center;
    color: #38BDF8;
    font-weight: bold;
}

.about-flex {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 30px auto;
    background-color: #1E293B;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-image, .about-text {
    width: 50%;
    margin: 14px;
}

.about-flex h2 {
    color: #F8FAFC;
}

.about-flex p {
    color: #94A3B8;
}

.about-image img {
    width: 100%;
    object-fit: cover;
}

.about-image img:hover {
    transform: scale(1.1);
    transition: 1s;
}

hr {
    margin: 0;
    border: none;
    border-top: 1px solid #334155;
}

/* SKILLS */

.container-skills {
    margin: auto;
    width: 100%;
    padding: 30px 0;
}

.header h1 {
    text-align: center;
    margin-top: 50px;
    color: #F8FAFC;
}

.container-card-flex {
    width: 100%;
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 40px;
    margin-bottom: 40px;
}

.card-items {
     width: 400px;
    background-color: #1E293B;
    padding: 25px;
    margin-top: 30px;
    border-radius: 15px;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}


.card-items:hover {
    transform: translateY(-8px);
    border-color: #38BDF8;
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.15);
}

.card-items .skill-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #38BDF8;
    background-color: #0F172A;
    color: #38BDF8;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    transition: 0.3s;
}

.card-items .skill-icon:hover {
    transform: scale(1.1);
    background-color: #38BDF8;
    color: #0F172A;
}



/* PROJECTS */

.container-project {
    margin: auto;
    width: 100%;
    padding: 30px 0;
}


.container-project-flex {
    width:  100%;
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 40px;
}

.card-project {
     width: 400px;
    background-color: #1E293B;
    padding: 20px;
    margin-top: 30px;
    border-radius: 15px;
    border: 1px solid #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    transition: 0.3s;
}

.card-project img {
    width: 100%;
    border-radius: 10px;
    height: 240px;
    object-fit: contain;
}

.card-project img:hover {
     transform: translateY(-8px);
    border-color: #38BDF8;
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.15);
}

.card-project h3 {
    margin-top: 40px;
    font-size: 25px;
    font-weight: bold;
    padding-bottom: 10px;
    color: #F8FAFC;
}

.card-project p {
    font-weight: bold;
    margin-top: 5px;
     color: #94A3B8;
}

.card-project a {
    color: #0F172A;
    background-color: #38BDF8;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 30px;
    border-radius: 8px;
    padding: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.card-project a:hover {
    background-color: #7DD3FC;
    transform: translateY(-2px);
}



/* CONTACTS */



.contact-flex {
   display: flex;
   justify-content: space-between;
   margin: 30px auto;
   width: 80%;
}

.map {
    width: 60%;
}

.map h3 {
    text-align: center;   
}

.map iframe {
    border-radius: 10px;

}

.social-media {
    width: 30%;
    padding: 10px;
}

.social-media h3 {
    text-align: center;
}


.social-icon {
    display: block;
    width: 100%;
    margin-top: 10px;
    text-decoration: none;
    text-align: center;
    color: white;
    padding: 10px;
    font-weight: bold;
    border-radius: 10px;
}

.social-icon {
    transition: 0.3s;
}

.facebook {
    background-color: #3b5998;
}

.whatsapp {
    background-color: #25D366;
}

.instagram {
    background-color: #e4405f;
}

.linkedin {
    background-color:#0077b5 ;
}

.social-icon:hover {
   opacity: 0.85;
    transform: translateY(-3px);
    transition: 0.3s;
}




/* FOOTER */

 
.footer-container {
    background: #0b0b0b;
    border-top: 1px solid #292929;
}

.footer-flex {
    max-width: 1100px;
    margin: auto;
    padding: 40px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
}

.footer-items h3 {
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.footer-items p {
    color: goldenrod;
}

.footer-items span {
    color: #777777;
    font-size: 13px;
}

.footer-items-text {
    color: #666666;
    font-size: 13px;
}



/* tablet */

@media screen and (max-width:768px) {
    /* Icon Humberger */
    #nav-container .nav-flex label {
        display: inline-block;
        color: #F8F5EF;
        font-style: normal;
        font-size: 32px;
        padding: 8px;
    }

    /* Humberger Menjadi Vertikal */

    #nav-container .nav-flex {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
    }

    nav ul li a {
        display: block;
        color: #F8F5EF;
        background-color: #0F172A;
        padding: 0 30px;
        height: auto;
    }

    /* Pindah Posisi Brand */
    .nav-brand h2 {
        position: absolute;
        right: 20px;
    }

    /* Untuk Menu/Humberger */

    #nav-container nav {
        display: none;
    }

    #nav-container .nav-flex input:checked ~ nav {
        display: flex;
    }

    /* Untuk About */

    .about-flex {
        flex-direction: column;
    }

    .about-image, .about-text {
        width: auto;
    }

    .about-intro {
        width: 85%;
        max-width: none;
        margin: 20px auto 50px;
        text-align: center;
    }

    /* Untuk Service */

    .card-items {
        width: 75%;
    }


    /* PROJECTS */

   .card-project {
    width: 75%;
   }

   .card-project img {
    width: 100%;
    height: auto;
    object-fit: contain;
   }

   /* CONTACS */

   .contact-flex {
    flex-direction: column;
   }

   .map, .social-media {
    width: 100%;
   }

   /* Footer */
   
.footer-flex {
        flex-direction: column;
        text-align: center;
    }


}



/* SMARTPHONE */

@media screen and (max-width:481px) {
    
    /* Projects */
    .card-project {
    width: 90%;
   }

   .card-project img {
    width: 100%;
    height: auto;
    object-fit: contain;
   }

   /* About */    

    .about-intro {
        width: 85%;
        margin: 15px auto 40px;
        font-size: 14px;
        line-height: 1.6;
    }  
   

}