@import url('https://fonts.googleapis.com/css2?family=Poppins%3Awght%40100%3B200%3B300%3B400%3B500%3B600&display=swap%27%29%3B');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
#menu-icon{
    font-size: 3.5rem;
    color: var(--main-color);
    display: none;
}

.logo{
    font-size: 4rem;
    color: #87CEEB;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    text-shadow:0 0 10px #0084ff;
}

.logo:hover{
    transform: scale(1.1);
}


nav ul{
    width: 150%;
    flex-direction: column;
}
nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    width:100%;
    padding-left: 2.5rem;
}
nav a.active-link{
    border-bottom:none;
}
nav .home-li{
    margin-right: unset;
}

nav a:hover,
nav a.active{
    color: #87CEEB;
    border-bottom: 3px solid #87CEEB;
}

    .navbar-toggle {
        display: none;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .bare {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background: white;
        transition: all 0.3s ease-in-out;
    }

@media(max-width:50px){ /*navbar*/
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

robot-3d{
    position: absolute;
    top: 0;
    right: -20%;
}


nav a:hover,
nav a.sidebar{
    color: #87CEEB;
}

.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: white;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li{
    width: 100%;
}

.sidebar a{
    width: 100%;
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}
span{
    color: #87CEEB;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 30vw;
    border-radius: 50%; /*ukuran border*/
    box-shadow: 0 0 25px solid #87CEEB;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #87CEEB;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #87CEEB;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #87CEEB;
    box-shadow: 0  0 25px #87CEEB;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #87CEEB;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #87CEEB;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #87CEEB;
    color: black;
    box-shadow: 0 0 25px #87CEEB;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #87CEEB;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

section .content{
    text-align: center;
    font-size: 25px;
    width: 100%;
    margin: 100px auto; /*size ukuran all*/
    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: white;
    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: #87CEEB;
left: 0;
bottom: 0;
}
section .title span::after{
    bottom: -7px;
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
}
.about .about-details .left{
    width: 45%;
}
.about-details .right{
    width: 55%;
}
.section .topic{
    color: white;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}
.about-details .right p{
    text-align: justify;
    color: white;
}


/*tentang saya*/
.title-sm-center {
  color: rgb(255, 255, 255); /* Warna teks biru navy */
  text-align: center; /* Pusatkan teks */
  max-width: 100%;
  font-size: 30px
}

/*karya game*/

.projects {
  color: white;
  padding: 12rem 2rem 8rem; /* ⬅️ naikkan padding atas & bawah */
  text-align: center;
  margin-top: 160px; /* ⬅️ tambah jarak dari navbar ke section Projects */
}

.section-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5rem;
}

.projects-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 3rem; /* jarak antar card */
}

.project-card {
  background: #0d0d0d;
  border: 2px solid #87CEEB;
  border-radius: 30px;
  box-shadow: 0 0 25px #87CEEB;
  width: 360px;
  min-height: 550px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 50px #87CEEB;
}

.project-card img {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.project-card p {
  font-size: 1.5rem;
  color: #ccc;
  line-height: 1.6;
  flex-grow: 1;
}

.project-card button {
  background: linear-gradient(90deg, #87CEEB, #87CEEB);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 14px 28px;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 0 20px #87CEEB;
  margin-top: 2rem;
  align-self: center;
}

.project-card button:hover {
  background: linear-gradient(90deg, #87CEEB, #87CEEB);
  box-shadow: 0 0 40px #87CEEB;
}

.review-btn {
  display: inline-block;
  background: linear-gradient(90deg, #87CEEB, #87CEEB);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 14px 28px;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease;
  margin-top: auto;
}

.review-btn:hover {
  background: linear-gradient(90deg, #87CEEB, #87CEEB);
  box-shadow: 0 0 40px #87CEEB;
}




/*game favorit*/
main{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
}
h4 {
font-size: 30px;
text-align: center;
}
img.ke1 {
    float: left;
    margin: 20px;
    height: 400px;
    margin-bottom: 10px;
}
img.ke2 {
    float: left;
    margin: 20px;
    height: 400px;
    margin-bottom: 10px;
}



/*keahlian pemograman*/
h5{
    text-align: center;
    font-size: 29px;
}
h6{
    margin: 15px;
    font-size: 29px;
}

.skill{
width: 1000px;
margin: 200px auto;
color: #fff;
padding: 20px;
box-shadow: 0 14px 28px rgba(135, 206, 235, 1), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.skill li{
margin: 20px 0;
padding: 10px;
}
.bar{
background: #353b48;
display: block;
height: 20px;
border: 1px solid rgba(0, 0, 0, 0.3);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12), 0 10px 10px rgba(0, 0, 0, 0.22);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}
.bar:hover{
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
.bar span{
height: 20px;
float: left;
background: linear-gradient(135deg, rgba(135, 206, 235, 1)0%, rgb(100, 142, 235)100%);
}
.html{
width: 70%;
animation: html 3s;
}

.css{
 width: 50%; 
 animation: css 3s;
}

.php{
width: 60%;
animation: php 3s;

}
.javascript{
width: 40%; 
animation: javascript 3s;
}

@keyframes html{
0%{
width: 0%;
}
100%{
width: 70%;
}
}

@keyframes css{
0%{
width: 0%;
}
100%{
width: 50%;
}
}

@keyframes php{
0%{
width: 0%;
}
100%{
width: 60%;
}
}

@keyframes javascript{
0%{
width: 0%;
}
100%{
width: 40%;
}
}


/*contact*/
.contact-left {
    display: flex; /*flex*/
    flex-direction: column;
    align-items: start;
    gap: 20px;
    margin-top: 200px; /*ukuran semua*/
    margin-left: 300px; /*ukuran semua same aje*/
}
.contact-left{
    font-weight: 600;
    color: #87CEEB;
    font-size: 40px; /*ukuran font atas*/
    margin-bottom: 5px;
}
.contact-left-title hr{
    border: none;
    width: 400px;
    height: 5px;
    background-color: #87CEEB;
    border-radius: 10px;
    margin-bottom: 20px;
}
.contact-inputs {
    width: 400px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 25px;
    font-weight: 500;
    color: #666;
    border-radius: 50px;
}
.contact-left textarea{
    height: 140px;
    padding-top: 15px;
    border-radius: 20px;
}
.contact-inputs:focus{
    border: 2px solid #87CEEB;
}
.contact-input::placeholder{
    color: #a9a9a9;
}
.contact-left button{
    display: flex;
    align-items: center;
    padding:  15px 30px;
    font-size: 16px;
    color: #fff;
    gap: 106px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(270deg,#87CEEB,blue);
    cursor: pointer;
}

/*copyright*/

footer{
    background: #87CEEB;
    padding: 15px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;

}
footer .text span{
    font-size: 17px;
    font-weight: 400;
    color: white;
}
footer .text span a{
    font-weight: 500;
    color: white;
}
footer .text span:hover{
    text-decoration:underline;
}

@media (max-width: 1000px){ /*ukuran size tablet*/
       .navbar-menu{
position: absolute;
top: 100%;
right: 30px;
width: 50%;
padding: 1rem 3rem;
background:rgba(0, 0, 0, 0.8);
border-bottom-left-radius: 2rem;
height: 100022px;
border-left: 2px solid var(--main-color);
border-bottom: 2px solid var(--main-color);
border-left: 2px solid #87CEEB;
border-top: 2px solid #87CEEB;
display: none;
    }

   .navbar-menu.active {
    display: block;
}
        .navbar-toggle {
        display: block;
        z-index: 999;
    }
    
    .navbar-menu a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }
    .navbar-toggle.active .bare:nth-child(2) {
        opacity: 0;
    }
    .navbar-toggle.active .bare:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
        .navbar-toggle.active .bare:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
        .home{
        flex-direction: column;
    }


    .home .home-content h3{
        font-size: 4rem; /*saya seorang*/
    }

    .home-content h1{
        font-size: 5rem; 
    }

    .home-img img{
        width: 70vw;
        margin-top: 5rem;
       }

    .home .home-content h1{ /*size nama saya beryl*/
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.3;
    }

.home-content p{
    font-size: 2.2em;
}

.social-icons a{
        display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 8rem;
    height: 8rem;
    background-color: transparent;
    border: 0.2rem solid #87CEEB;
    font-size: 4rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #87CEEB;
}

/*tentang saya*/
.title-sm-center {
  text-align: center; /* Pusatkan teks */
  max-width: 100%;
  font-size: 40px;
}

/*karya game*/


/*game favorit*/
main{
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
}

h4 {
font-size: 30px;
text-align: center;
}
img.ke1 {
    width: 100%;
    max-width: 700px;          /* batasi lebar gambar */
    height: auto;
    display: block;
    margin: 10px auto;         /* biar di tengah */
}

img.ke2 {
    width: 100%;
    max-width: 700px;          /* batasi lebar gambar */
    height: auto;
    display: block;
    margin: 10px auto;         /* biar di tengah */
}
/*keahlian pemograman*/
h5{
    text-align: center;
    font-size: 29px;
}
h6{
    margin: 15px;
    font-size: 29px;
}

.skill{
width: 100%;
max-width: 700px;
margin: 200px auto;
color: #fff;
padding: 20px;
box-shadow: 0 14px 28px rgba(135, 206, 235, 1), 0 10px 10px rgba(0, 0, 0, 0.22);
}

/*contact*/
  #Contact {
    padding: 40px 0 20px;        /* ruang atas-bawah biar panjang */
    min-height: auto;      /* section contact sedikit lebih tinggi */
  }
  
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.contact-left {
  max-width: 700px;   /* batas lebar form di layar kecil */
  margin: 0 auto;
  text-align: center;
  gap: 15px;
  margin: 100px auto;
}

.contact-left-title {
  text-align: center;        /* teks dalam kontainer di tengah */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;       /* ⬅️ memastikan elemen anak (h4 & hr) di tengah */
}

.contact-left-title h4 {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
}

.contact-left-title hr {
  width: 100%;
  height: 4px;
  background-color: #87CEEB;
  border-radius: 10px;
  margin: 10px auto 20px;
}

.contact-inputs {
  max-width: 100%;
  width: 1000px;   /* batas maksimum di HP */
  height: 70px;
  border: none;
  outline: none;
  padding-left: 15px;
  border-radius: 30px;
  margin: 8px auto;
  font-size: 20px;
}

.contact-left textarea {
  width: 100%;
  max-width: 1000px;
  height: 150px;
  padding: 10px 15px;
  border-radius: 20px;
  resize: none;
}

.contact-left button {
  width: 100%;
  max-width: 120px;
  height: 60px;
  margin: 15px auto;
  padding: 12px 20px;
  font-size: 17px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(270deg, #87CEEB, blue);
  color: #fff;
  cursor: pointer;
  margin-left: 0;
}

footer {
    margin-top: 0;          /* hilangkan jarak tambahan */
    padding: 15px 0;        /* tinggi footer tetap rapi */
  }

}

@media(max-width:600px){ /*ukuran size android*/
    .navbar-menu{
position: absolute;
top: 100%;
right: 30px;
width: 60%;
padding: 3rem 3rem;
background:rgba(0, 0, 0, 0.8);
border-bottom-left-radius: 2rem;
height: 1000px;
border-left: 2px solid var(--main-color);
border-bottom: 2px solid var(--main-color);
border-left: 2px solid #87CEEB;
border-top: 2px solid #87CEEB;
display: none;
    }

   .navbar-menu.active {
    display: block;
}
        .navbar-toggle {
        display: block;
        z-index: 999;
    }
    
    .navbar-menu a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }
    .navbar-toggle.active .bare:nth-child(2) {
        opacity: 0;
    }
    .navbar-toggle.active .bare:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
        .navbar-toggle.active .bare:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    .home{
        flex-direction: column;
    }


    .home .home-content h3{
        font-size: 2rem; /*saya seorang*/
    }

    .home-content h1{
        font-size: 5rem; 
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
       }

    .home .home-content h1{ /*size nama saya beryl*/
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    }
    
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #87CEEB;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #87CEEB;
}

    /*tentang saya*/

      section .title span {
    font-size: 20px;     /* ⬅️ ubah dari 30px ke 45px */
    font-weight: 700;    /* ⬅️ biar lebih tebal */
    text-align: center;  /* pastikan tetap di tengah */
    display: block;      /* biar efek center-nya bekerja */
  }

    .title-sm-center {
  text-align: center; /* Pusatkan teks */
  max-width: 100%;
  font-size: 15px;
}
/*karya game*/
.Karya{
    background-color: var(--second-bg-color);
}
.Karya-box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax (350px, 1r));
    place-items: 3rem;
    row-gap: 5rem;
}
.Karya-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
}
.Karya-card:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 25px var(--main-color);
                transform: scale(1.02);
}
.Karya-card img{
    max-width: 300px;
    border-radius: 2em;
    object-fit: cover;
}
.Karya-card p{
    font-size: 1.6rem;
}

/*game favorit*/
main{
    display: block;
    grid-template-columns: 1fr;
    gap: 20px;
}

h4 {
font-size: 30px;
text-align: center;
}

img.ke1 {
  display: block;
  width: 100%;       /* isi seluruh lebar kontainer */
  max-width: 330px;  /* batas maksimum di layar kecil */
  height: auto;      /* tinggi mengikuti proporsi asli */
  margin: 10px auto; /* tengah */
  float: none;
}

img.ke2 {
  display: block;
  width: 100%;       /* isi seluruh lebar kontainer */
  max-width: 330px;  /* batas maksimum di layar kecil */
  height: auto;      /* tinggi mengikuti proporsi asli */
  margin: 10px auto; /* tengah */
  float: none;
}

/*keahlian pemograman*/
h5{
    text-align: center;
    font-size: 22px;
}
h6{
    margin: 15px;
    font-size: 17px;
}

.skill{
width: 100%;
max-width: 300px;
margin: 200px auto;
color: #fff;
padding: 20px;
box-shadow: 0 14px 28px rgba(135, 206, 235, 1), 0 10px 10px rgba(0, 0, 0, 0.22);
}

/*contact*/
  #Contact {
    padding: 40px 0 20px;        /* ruang atas-bawah biar panjang */
    min-height: auto;      /* section contact sedikit lebih tinggi */
  }
  
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.contact-left {
  width: 100%;
  max-width: 350px;   /* batas lebar form di layar kecil */
  margin: 0 auto;
  text-align: center;
  gap: 15px;
}

.contact-left-title h4 {
  font-size: 22px;
}

.contact-left-title hr {
  width: 100%;
  height: 4px;
  background-color: #87CEEB;
  border-radius: 10px;
  margin: 10px auto 20px;
}

.contact-inputs {
  width: 100%;
  max-width: 330px;   /* batas maksimum di HP */
  height: 45px;
  border: none;
  outline: none;
  padding-left: 15px;
  border-radius: 30px;
  margin: 8px auto;
  font-size: 14px;
}

.contact-left textarea {
  width: 100%;
  max-width: 330px;
  height: 120px;
  padding: 10px 15px;
  border-radius: 20px;
  resize: none;
}

.contact-left button {
  width: 100%;
  max-width: 200px;
  margin: 15px auto;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(270deg, #87CEEB, blue);
  color: #fff;
  cursor: pointer;
}

footer {
    margin-top: 0;          /* hilangkan jarak tambahan */
    padding: 15px 0;        /* tinggi footer tetap rapi */
  }

}


