/*Google Font CDN Link*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;


}

body{
    width: 100%;
    height: auto;
    background-color: black;
    overflow-x: hidden;
    /* buatan ai*/




}


/*custom scrloll bae css*/
::-webkit-scrollbar{
    width: 10px;

}

::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #FFB300;
    border-radius: 12px;
    transition: all 0.3s ease;

}

::-webkit-scrollbar-thumb:hover{
    background: #FFB300;
}

/*navbar stayling*/
nav{
  height: 50px; /* dari 80px jadi 50px */
  padding: 10px 20px; /* lebih ramping */
}


.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo{
    position: absolute;
  top: 15px;
  left: 15px;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 1000;

}

.logo span{
    color: #FFB300;
    text-shadow: 0 0 10px #FFB300;
}

.hamburg,
.cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    opacity: 0;
    pointer-events: none;
    font-size: clamp(1.5rem, 0.5rem + 5vw, 2rem);


}

.nav-container .links{
    display: flex;

}

.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #b74b4b;
    transition: 0.2s linear;


}
.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #FFB300;
    transition: 0.2s linear;


}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .links a:hover{
    color: #FFB300;
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    background-color: rgb(17, 17, 17, 1); /* solid black */

    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a{
    display: flex;
    color: rgb(255, 255, 255);
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;

}

.dropdown .links a:hover{
    background-color: #FFB300;
}

section{
    width: 100%;
    min-height: 90vh;
}
section .main-container{
    display: flex;
    justify-content: space-between;
    padding-left: 100px;
    align-items: center;
}

/* Hero Section Fullscreen */
#home {
  height: 100vh; /* penuh 1 layar */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  scroll-snap-align: start;
  position: relative;
}

/* aslinya
.main-container .image{
    width: 600px;
    height: auto;
    max-height: 55vh;
    border-radius: 70%;
    overflow: hidden;
    box-shadow: 0 0 50px #c0bbb1;
}

.main-container .image img{
    width: 100%;
    height: 100%;
     object-fit: cover;       
  display: block;
}
*/

/* ai*/
.main-container .image {
    width: 100%;
    max-width: 500px; /* Atur sesuai kebutuhan */
    height: auto;
    max-height: 55vh;
    border-radius: 70%;
    overflow: hidden;
    box-shadow: 0 0 50px #c0bbb1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container .image img {
    width: 500%;
    height: auto;
    object-fit: contain; /* ganti dari cover ke contain */
    display: block;
}

.main-container .image:hover{
    animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate{
    0% {
       transform:  scale(1);
    }
    50% {
        transform: scale(1.05);

    }

    100% {
        transform: scale(1);
    }
}

.main-container .content{
    color: rgb(255, 255, 255);
    width: 40%;

}

.content h1{
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.content h1 span {
    color: #FFB300;
    text-shadow: 0 0 10px #b74b4b;

}

.content .typewriter{
    font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
    font-weight: 600;

}

.content .typewriter-text{
    color: #FFB300;
    text-shadow: 0 0 10px #b74b4b;

}

.content p{
    font-size: clamp(0.4rem , 0.2rem + 9vw, 1rem);
    margin: 10px 0;


}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;

    background-color: transparent;
    border: 0.2rem solid #FFB300;
    border-radius: 50%;
    color: #FFB300;
    margin: 5px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: #644a13;
    background-color: #64570e;
    filter: drop-shadow(0 0 10px #5a1791);

}

.content button{
    width: 50%;
    height: 6vh;
    margin: 30px;
    background-color: #FFB300;
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;

}

.content button:hover{
    scale: 1.1;
    color: #FFB300;
    border: 2px solid #FFB300;
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px #FFB300;
}

/*about section stle*/

section .content{
    width: 80%;
    margin: 0px auto;
    font-family: 'poppins', sans-serif;

}

.about .about-details{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section .title{
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

section .title span{
    color: rgb(255, 255, 255);
    font-size: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;

}
section .title span::before,
section .title span::after{
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    background: #FFB300;
    left: 0;
    bottom: 0;

}

section .title span::after{
    bottom: -7px;
    width: 70%;
    left: 50%;
    transform: translateY(-50%);
}

.about .about-details .left{
    width: 45%;

}

.about .left video{
    height: 500px;
    width: 400px;
    object-fit: cover;
    border-radius: 12px;

}

.about-details .right{
    width: 55%;

}

section .topic{
    color: white;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.about-details .right{
    color: rgb(255, 255, 255);
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}

.about-details .right p{
  text-align: justify;
    color: white;
}

section .button{
    margin: 16px 0;
}

section .button button{
    outline: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 25px;
    font-weight: 400;
    background:#FFB300;
    color: #ffffff;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

section .button button:hover{
    border-color: #FFB300;
    background-color: transparent;
    color: #FFB300;
}

/* buatan ai*/
/* selesai*/

.skills{
    background:black;
}
.skills .content{
    padding: 40px 0;
}

.skills .skills-details{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skills-details .text{
    width: 50%;
}

.skills-details p{
    color: white;
    text-align: justify;
}

.skills .skills-details .experence {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.skills-details .experence .num{
    color: white;
    font-size: 80px;
}

.skills-details .experence .exp{
    color: white;
    margin-left: 20px;
    font-size: 18px;
    font-weight: 500;
    margin: 0 6px;
}

.skills-details .boxes{
    width: 45%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.skills-details .box{
    width: calc(100% / 2 -20px);
    margin: 20px 0;
}

.skills-details .boxes .topic{
    font-size: 20px;
    color: #FFB300;
}
.skills-details .boxes .per{
    font-size: 60px;
    color:#FFB300;
}

.services .boxes{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

}

.services .boxes .box{
    margin: 20px 0;
    width: calc(33.333% - 40PX);
    text-align: center;
    border-radius: 12px;
    padding: 30px 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.12);
    cursor: default;
    color: white;
    transition: all 0.4s ease;
}

.services .boxes .box:hover{
    background: #FFB300;
    color: #fff;

}

.services .boxes .box .icon{
    height: 50px;
    width: 50px;
    background: #FFB300;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    color: #fff;
    margin: 0 auto 10px auto;
    transition:all 0.4s ease;
}
.boxes .box:hover .icon{
    background-color: #fff;
    color: #FFB300;
}

.services .boxes .box:hover .topic,
.services .boxes .box:hover p{
    color: white;
    transition: all 0.4s ease;
}

.services .boxes .box:hover .topic,
.services .boxes .box:hover p{
    color: #fff;
}

/* contact me*/

.contact{
    background:rgb(0, 0, 0);

}

.contact .content{
    color: #fff;
    margin: 0 auto;
    padding: 30px 0;
}

.contact .text{
    width: 80%;
    text-align: center;
    margin: auto;
}



footer{
    background:#FFB300;
    padding:15px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
footer .text span{
    font-size: 17px;
    font-weight: 400;
    color: #fff;
}

footer .text span a{
    font-weight: 500;
    color: #ffffff;
}

footer .text span a:hover{
    text-decoration: underline;
}

.scroll-button a{
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    background: #FFB300;
    padding: 7px 12px;
    font-size: 18px;
    border-radius: 6px;
    box-shadow: rgba(0,0,0,0.15);
    display: none;

}

/*ai*/
.cursor {
  display: inline-block;
  color: #a09191;
  font-weight: bold;
  animation: blink 0.7s steps(1) infinite;
  font-size: inherit; /* mengikuti ukuran font teks */
  margin-left: 2px;
}




@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


@media (max-width: 1000px){
.about .about-details{
    justify-content: center;
    flex-direction: column;

}
.about .about-details .left{
    display: flex;
    justify-content: center;
    width: 100%;

}
.about-details .right{
    width: 90%;
    margin:40px 0;
}
.services .boxes .box{
    margin: 20px 0;
    width: calc(100% / 2 -20px);
}
}

@media (max-width: 900px){
    .about.left img{
        height: 350px;
        width: 350px;
    }
}

/*@media (max-width: 968px) {
  section .main-container {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    padding: 20px;
    text-align: center;
  }

  .main-container .image {
    margin-bottom: 20px;
  }

  .main-container .content {
    width: 100%;
  }
}*/

@media (max-width: 968px) {
    nav.logo{
        position:absolute;
        top: 15px;
        left: 15px;
        font-size: 1.2rem;
    }

    section .main-container{
        padding-left: 0px;
        display: flex;
        flex-direction: column;

    
    }

    section .button button{
        width: none;
        height: 60px;
        font-size: 1rem;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg,
    .cancel{
        opacity: 1;
        pointer-events: visible;
    }


    .main-container .content{
        margin-top: 20px;
        width: 80%;

    }

    .social-links{
        width: none;
        height: 3rem;
        font-size: 1.5rem;
    }

    .main-container .image{
        z-index: -1;
        width: 70%;
        height: 65%;
    }

    .skills .skills-details{
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .skills-details .text{
        width: 100%;
        margin-bottom: 50px;
    }

    .skills-details .boxes{
         display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    justify-items: center;
    }

    .services .boxes .box{
        margin: 20px 0;
        width: 100%;
    }
    .contact .text{
        width: 100%;
    }
}

@media (max-width:500px){
    .main-container .image{
        width: 90%;
        height: 500px;
        margin-bottom: 0px;

    }
    .main-container .content{
        width: 80%;

    }

    .main-container button{
        margin-top: 15px;
    }
    .skills-details .boxes .per{
        font-size: 50px;
        color: #FFB300;
    }
}

/* ai*/
@media (max-width: 768px) {
  .image-container {
    max-width: 500px;
  }
}


