:root{
  --base-color: rgba(26, 14, 36, 0.9);
  --base-color2: #21152D;
  --base-variant: aliceblue;
  --base-variant2: rgba(240, 248, 255, 0.2);
  --text-color : aliceblue;
  --text-color2 : #1A0E24;
}
body{
  color: var(--text-color);
}
header{
  color: var(--text-color);
}

.darkmode{
  --base-color: rgb(240, 248, 255, 0.7);
  --base-color2: #D0C3EA;
  --base-variant: #1A0E24;
  --base-variant2: rgba(26, 14, 36, 0.2);
  --text-color : #1A0E24;
  --text-color2 :aliceblue;
}

#theme-switch{
  border: 0px;
  height: 50px;
  width: 50px;
  padding: 0px;
  border-radius: 50%;
  margin-right: 55px;
  
}

#theme-switch img{
  margin-top: 5px;
  
}

#theme-switch img{
  fill: var(--base-color);
}
#theme-switch img:last-child{
  display: none;
}

.darkmode #theme-switch img:first-child{
  display: none;
}

.darkmode #theme-switch img:last-child{
  display: block;
}

body {
      margin: 0;
      height: auto;
      background: linear-gradient(135deg,#200043, #735b8c, #a524ff, #2e005f);
      background-size: 200% 200%;
      animation: gradientMove 10s ease infinite;
      color: var(--text-color);
      font-family: "poppins", sans-serif;
    }

    html {
  scroll-behavior: smooth;
}
    

    @keyframes gradientMove {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

 .navbar{ 
    width: 86.9%;
    height: 15%;
    border-radius: 10px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    margin-left: 6.6%;
    padding-left: 50px;
    transition: top 0.3s ease;
    top: 100px;
    z-index: 999;
    max-width: 86.9%;
 }
 .navbar-brand{
  color: var(--text-color);
  font-weight: bold;
  font-size: 4rem;
  margin-top: 5px;
  max-width: 50%;
  width: auto;
 }
 .navbar-brand:hover{
  color: var(--text-color);
  
 }

 #navbar.sticky {
  z-index: 999;
  position: fixed;
  background-color: var(--base-color2);
  top: 0; /* ketika discroll, pindah ke atas */
 }

 h1{
    font-weight: bold;
 }



 .container{
    width: 100%;
    height: auto;
    background-color: var(--base-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 40px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    margin-top: 5%;
 }

 span{
    /* gradasi text */
    background: linear-gradient(to right, #3E239D, #b84dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

      /* Tambahan agar lebih compatible */
    background-clip: text;
    color: transparent;
     /* gradasi text */
 }
 .header{
    height: 20px;
 }

 .nav-item a{
    color: var(--text-color);
    text-decoration: none;
    margin-right: 30px;
 }

 .nav-item a:hover{
    background: linear-gradient(to right, #3E239D, #b84dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

      /* Tambahan agar lebih compatible */
    background-clip: text;
    color: transparent;
    font-size: larger;
    text-decoration: none;
    font-weight: bold;
 }

 .navigasi{
    margin-right: 5px;
 }

 h6{
  font-size: 2.7rem;
  color: var(--text-color);
 }
 .intro{
    margin-top: 200px;
    margin-left: 50px;
 }


 p{
    margin-top: 20px;
    font-size: 1rem;
    text-align: justify;
    padding-right: 200px;
    margin-bottom: 0px;
    color: var(--text-color);
 }

 .btn-download {
  display: inline-block;
  height:40px;
  width: 20%;
  font-size: 1rem;
  color: var(--text-color);
  text-align: center;
  margin-top: 40px;
  line-height: 20px;
  border-radius: 15px;
  font-weight: bold;
  background: linear-gradient(to right, #3E239D, #b84dff);
  text-decoration: none;
  transition: 0.3s ease;
  margin-left: 200px;
  padding-top: 10px;
}

.btn-download:hover {
  background: var(--base-variant);
  color: #3E239D;
}


.media{
  display: inline-block;
  direction: none;
  margin-left: 23.5%;
  margin-top: 10px;
}

 .img-profil img {
  image-rendering: optimizeQuality;
  padding: 5px;
  mix-blend-mode: normal;
  filter: none;
  box-shadow: 0 0 10px #7e25ba, 0 0 10px #010003;
  filter: brightness(110%);
}

/* Default: tersembunyi sebelum di-scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

/* Muncul ketika elemen masuk viewport */
.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Animasi Fade In saat membuka halaman */
  /* .fade-in {
    animation: fadeInUp 1s ease-in-out both;
  }

  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  } */

  /* Efek teks berubah (web designer, UI designer, dll) */
  .changing-text {
    font-weight: bold;
    font-size: 3rem;
    background: linear-gradient(to right, #3E239D, #b84dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    
    
  }

  
  /* Gunakan pseudo-element ::after untuk isi teks dinamis */
  .changing-text::after {
    content: "Web Designer";
    animation: changeText 12s steps(1) infinite;
  }

  @keyframes changeText {
   
    33%  { content: "UI Designer"; }
    66%  { content: "Mobile Dev"; }
    100% { content: "Web Designer"; }
  }


  /* -------Skills--------- */

  .skills{
    margin-top: 150px;
  }

  .skills .row .col-sm-4{
    
    margin: 15px;
    width: 30%;
    height: 400px;
    border-radius: 50px;
    padding-top: 20px;
    background: var( --base-variant2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 10px 0 rgba(209, 210, 220, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .skills .row .col-sm-4 h2{
    font-size: 2rem;
    padding-top: 7px;
    padding-bottom: 0px;
    font-weight: bold;
    /* gradasi text */
    background: linear-gradient(to right, #3E239D, #b84dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

      /* Tambahan agar lebih compatible */
    background-clip: text;
    color: transparent;
     /* gradasi text */
  }







/* -----animasi ----*/
.animasi{
  margin-top: 150px;
  margin-bottom: 40px;
  margin-left: 39.5%;
  background-color: var( --base-variant2);
  border-radius: 10px;
  width: 300px;
}
.animasi h1 span {
  position: relative;
  font-family: "Lato", sans-serif;
  display: inline-block;
  font-size: 3rem;
  color: var(--text-color);
  animation: bounce 1.2s ease-in-out infinite;
  text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out;
}

/* Delay per huruf */
.animasi h1 span:nth-child(2) {
  animation-delay: 0.1s;
}
.animasi h1 span:nth-child(3) {
  animation-delay: 0.2s;
}
.animasi h1 span:nth-child(4) {
  animation-delay: 0.3s;
}
.animasi h1 span:nth-child(5) {
  animation-delay: 0.4s;
}
.animasi h1 span:nth-child(6) {
  animation-delay: 0.5s;
}

/* Animasi bounce dengan transform */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: translateY(-20px);
    text-shadow: 0 25px 15px rgba(0, 0, 0, 0.3);
  }
}








  /* -----about------- */

.about .row{
  padding-bottom: 30px;
  padding-top: 50px;
  color: var(--text-color);
}
.logo1{
  background-color: rgba(240, 248, 255, 0.1);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin-left: 150px;
  margin-top: 20px;
}

.logo1 img{
  margin-top: 10px;
  width: 300px;
  height: 280px;
  padding-bottom: 0px;
}

.text1{
  margin-right: 0px;
  text-align: justify;
  font-size: 5rem;
}

.text1 a{
  margin-top: 0px;
  margin-left: 40px;
}



.logo2{
  background-color: rgba(240, 248, 255, 0.1);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin-right: 200px;
  margin-top: 20px;
}

.logo2 img{
  margin-top: 100px;
  width: 250px;
  height: 100px;
  padding-bottom: 0px;
}

.text2{
  margin-left: 150px;
  text-align: justify;
  font-size: 5rem;
}

.text2 a{
  margin-top: 0px;
  margin-left: 40px;
}

/* ----Contact----- */
.contact{
  height: auto;
  width: 100%;
  margin: 0px;
  border-radius: 10px;
  background-color: rgba(211, 183, 242, 0.1);
  margin-top: 50px;
  padding: 30px;
}

.contact h3{
  font-size: 3rem;
  color: var(--text-color);
}
.info{
  width: 300px;
  color: var(--text-color2);
  background-color: var(--base-variant2);
  margin-left: 40px;
  padding: 5px;
  border-radius: 10px;
}

.info .row{
  text-align: left;
  margin-left: 1px;
  font-size: 20px;
}

.location{
  margin-left: 40px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  text-align: left;
  line-height: 50px;
  color: var(--text-color);

}

.form-group{
  text-align: left;
  margin-left: 40px;
  width: 450px;
  font-size: 0.8rem;
   margin-right: 5px;
   color: var(--text-color);
}

.form-control{
  margin-right: 5px;
  border-radius: 10px;
  color: var(--text-color);
  background-color: var(--base-variant2);
  color: var(--text-color);
  border: 0px;
}
.offcanvas{
  background-color: #200043;
  color: var(--text-color);
}

.navbar-toggler-icon {
  border: none; 
 color: var(--text-color);
}

.navbar-toggler{
 color: var(--text-color);
 background-color: antiquewhite;
 margin-right: 5px;
}

 .form-group button{
  display: inline-block;
  height: 30px;
  width: 80px;
  font-size: 14px;
  color: var(--text-color);
  text-align: center;
  line-height: 20px;
  border-radius: 10px;
  font-weight: bold;
  background: linear-gradient(to right, #3E239D, #b84dff);
  text-decoration: none;
  transition: 0.3s ease;
  margin-bottom: 20px;
  border: 0;
}

.form-group button:hover {
  background: var(--base-variant);
  color: #3E239D;
}





.kanan{
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.kiri{
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.kiri.appear{
  transform: translateY(0);
  opacity: 1;
}

.kanan.appear{
  transform: translateY(0);
  opacity: 1;
}















/* Untuk menengahkan brand dan menjaga toggle tetap di kanan */



.img-profil img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-right: 50px;
  margin-top: 0px;
}
@media (max-width: 992px) {

  .navbar {
    width: 95%;
    margin-left: 2.5%;
    padding-left: 20px;
  }

  .navbar-brand {
    font-size: 2.5rem;
  }

  .text1,
  .text2 {
    font-size: 3rem;
  }

  .btn-download {
    width: 40%;
    margin-left: 0;
  }

  .skills .row .col-sm-4 {
    width: 45%;
  }

}


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

  .container{
    margin-right: 0%;
    margin-top: 5%;
 }

 .navbar {
  width: 100%;
  margin: 0;
  padding: 0 16px;
}


  .navbar{
    padding: 0px;
  }
  #navbar.sticky {
    margin: 0px;
    margin-right: 0px;
    width: 100%;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .navbar-brand {
    font-size: 1.8rem;
    margin-left: 0px;
    margin-left: 16px;
  }

  .navbar-toggler{
    margin-right: -10px;
  } 

  .img-profil img {
    margin: 100px auto;
    margin-bottom: 20px;
  }
  .intro {
    margin: 20px auto;
    font-size: smaller;
  }

  p {
    padding-right: 0;
  }

  .btn-download {
    width: 80%;
    margin-left: 0;
  }

  .media{
    margin: 10px auto;
  }

  .form-group {
    width: 100%;
    max-width: 450px;
  }

  .text1,
  .text2 {
    font-size: 2rem;
    margin-left: 0;
  }

  .logo1,
  .logo2 {
    margin: 20px auto;
  }

  /* SKILL */

  

  .skills .row .col-sm-4{
    
   
    width: auto;
    min-width: 70%;
    height: 400px;
    
   
  }

 
  /* Project */
  



  .animasi, .logo1, .logo2{
    margin: 20px auto;
  }

  .animasi{
    margin-top: 200px;
  }




  /* Contact */
  .contact{
    width: auto;
    padding-left: 0px;
    padding-right: 10px;
  }

  .form-group, .info{
    max-width: 350px;
    width: auto;
    margin-right: 16px;
  }
  .cont{
    margin: 20px auto;
  }

 

  html, body {
    overflow-x: hidden;
  }
}
