/*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: rgb(30, 21, 21);
  overflow-x: hidden;
}
/* helper to prevent background scroll when menu open */
body.no-scroll{
  overflow: hidden;
}

/*--- Custom Scroll Bar CSS---*/
::-webkit-scrollbar{
  width: 10px;
}
::-webkit-scrollbar-track{
  background: #ebc8d3;
}
::-webkit-scrollbar-thumb{
  background: #fc93c2;
  border-radius: 12px;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover{
  background: #ca52a4;
}

/* Navbar CSS */
nav{
  width: 100%;
  height: 10vh;
}

.nav-container{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between; /* logo kiri, links kanan */
  align-items: center;
  padding: 0 20px;
  position: relative; /* ensure absolute children (hamburg) are positioned inside */
}

.logo{
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
}

.logo span{
  color: #fc93c2;
  text-shadow: 0 0 10px  #fc93c2;
}

.nav-container .links{
  display: flex;
  gap: 20px;
}

.nav-container .links a{
  position: relative;
  font-size: 1.2rem;
   padding: 8px 12px; 
  color: #fff;
  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: #ca52a4;
  transition: 0.2s linear;
}

.nav-container .links a:hover::before{
  width: 100%;
}

.nav-container .links a:hover{
  color: #fc93c2;
  text-shadow: 0 0 10px #fc93c2;
}


.hamburg,
.cancel{
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  color: aliceblue;
  opacity: 0;
  pointer-events: none;
  font-size: clamp(2.5rem, 0.5em + 5vw, 3rem);
  z-index: 20000; /* ensure hamburger sits above other elements */
}

/* Tambahkan — BARIS BARU */
.hamburg {
  position: relative;
  z-index: 9999;
  cursor: pointer;
}


/* GANTI BAGIAN .dropdown — Baris 160–200 */
.dropdown {
  position: fixed;
  top: 0;
  right: 0;
  background: white;
  width: 70%;
  height: 100vh;
  transform: translateX(100%);
  transition: 0.3s ease;
  z-index: 9998;           /* Di bawah hamburger */
  pointer-events: none;    /* Tidak menutupi hamburger */
}

.dropdown.open {
  transform: translateX(0);
  pointer-events: auto;    /* Aktif ketika dibuka */
}


/* Section */
section{
  width: 100%;
  min-height: 90vh;
}

section .main-container{
  display: flex;
  justify-content: space-between;
  padding-left: 100px;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.main-container .image{
  width: 500px;
  height: 80vh;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0 0 50px #ca52a4;
}

.main-container .image img{
  width: 100%;
}

.main-container .image:hover{
  animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate{
  0%{ scale: 1; }
  50%{ scale: 1.05; }
  100%{ scale: 1; }
}

.main-container .content{
  color: #fff;
  width: 40%;
}

.content h1{
  font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.content h1 span{
  color: #fc93c2;
  text-shadow: 0 0 10px #fc93c2;
}

.content-typewriter{
  font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
  font-weight: 600;
}

.content-typewriter-text{
  color: #fc93c2;
  text-shadow: 0 0 10px #fc93c2;
}

.content p{
  font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
  margin: 10px 0;
}

.sosial-links i{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background-color: transparent;
  border: 0.2rem solid #fc93c2;
  border-radius: 50%;
  color: #fc93c2;
  margin: 5px 15px;
  font-size: 1.5rem;
  transition: 0.2s linear;
}

.sosial-links i:hover{
  scale: 1.3;
  color: #000;
  background-color: #fc93c2;
  filter: drop-shadow(0 0 10px #fc93c2);
}

.content button{
  width: 50%;
  height: 6vh;
  margin: 30px;
  background-color: #fc93c2;
  color: #fff;
  border: none;
  outline: none;
  font-size: 120%;
  font-weight: 700;
  border-radius: 5px;
  transition: 0.2s linear;
}

.content button-hover{
  scale: 1.1;
  color: #ca52a4;
  border: 2px solid #ca52a4;
  background-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 40px #ca52a4;
}

/* About Section Style*/
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: #fff;
  font-size: 30px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

section .title span::before,
section .title span::after{
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background-color: #ca52a4;
  border-radius: 5px;
}

section .title span::after{
  left: 50%;
  right: 0;
  width: 70%;
  bottom: -7px;
  transform: translateX(-50%);
}

.about .about-details .left{
  width: 45%;
}

.about .left img{
  height: 400px;
  width: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.about-details .right{
  width: 55%;
}

section .topic{
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 10px;
}

.about-details .right p{
  text-align: justify;
  color: #fff;
}

.about-details .button{
   padding: 8px 12px; 
}



section .button{
  margin: 16px 0;
}

section .button button{
  outline: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 25px;
  font-weight: 400;
  background: #ca52a4;
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

section .button button:hover{
  border-color: #ca52a4;
  background-color: #fff;
  color: #ca52a4;
}




/* Skills */
.skills{
  background: #000;
}

.skills .content{
  padding: 40px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.skills .skills-details{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skills-details .text{
  width: 50%;
}

.skills-details p{
  color: #fff;
  text-align: justify;
}

.skills .skills-details .experience{
  display: flex;
  align-items: center;
  margin: 0 10px;
}

.skills-details .experience .num{
  color: #fff;
  font-size: 80px;
}

.skills-details .experience .exp{
  color: #fff;
  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: #ca52a4;
}

.skills-details .boxes .per{
  font-size: 60px;
  color: #ca52a4;
}

/* Services */
.services .boxes{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.services .boxes .box{
  margin: 20px 0;
  width: calc(100%/3 - 20px);
  text-align: center;
  border-radius: 12px;
  padding: 30px 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  cursor: default;
  color: #fff;
  transition: all 0.4s ease;
}

.services .boxes .box:hover{
  background: #ca52a4;
  color: #fff;
  padding: 12px 30px;
}

.services .boxes .box .icon{
  height: 50px;
  width: 50px;
  background: #ca52a4;
  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: #ca52a4;
}

.services .boxes .box:hover .topic,
.services .boxes .box:hover p{
  color: #fff;
  transition: all 0.4s ease;
}

.contact-section {
  padding: 50px 20px;
  background-color: #f8f8f8;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-map, .contact-form {
  flex: 1 1 400px;
  min-height: 400px;
}

.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.contact-form h3 {
  margin-bottom: 16px;
  font-size: 1.2em;
  color: #222;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
}

.contact-section {
  padding: 50px 20px;
  background-color: #ffe6f0; /* Latar belakang soft pink */
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-map, .contact-form {
  flex: 1 1 400px;
  min-height: 400px;
}

.contact-form {
  background: #fff0f6; /* Form pink muda */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form h2 {
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  color: #ff3399; /* Judul pink cerah */
}

.contact-form h3 {
  margin-bottom: 16px;
  font-size: 1.2em;
  color: #222;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #ff3399;
}

.contact-section {
  padding: 50px 20px;
  background-color: #000; /* Background hitam */
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-map, .contact-form {
  flex: 1 1 400px;
  min-height: 400px;
}

.contact-map iframe {
  border-radius: 10px;
}

.contact-form {
  background: #1a001a; /* Form dark purple/pinkish supaya kontras */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255,51,153,0.3); /* Pink glow */
}

.contact-form h2 {
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  color: #ff3399; /* Judul pink cerah */
}

.contact-form h3 {
  margin-bottom: 16px;
  font-size: 1.8em;
  color: #e849be;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #ff99cc; /* Label pink lembut */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 15px;
  border: 1px solid #ff99cc; /* Border pink */
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  background: #2a002a; /* Input dark */
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ffb3d9; /* Placeholder pink lembut */
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff3399;
  outline: none;
  box-shadow: 0 0 8px rgba(255,51,153,0.6);
}

.contact-form button {
  padding: 12px 25px;
  background-color: #ff3399; /* Tombol pink */
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background-color: #cc0077; /* Pink gelap */
  transform: scale(1.05);
}

/* Responsif untuk layar kecil */
@media(max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  .contact-map, .contact-form {
    min-height: 300px;
  }
}

#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #ff3399;
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 15px;
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(255,51,153,0.3);
}

/* Show animation */
#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 20px; opacity: 1;}
}

@keyframes fadeout {
  from {bottom: 20px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

/* Footer */
footer{
  background: #ca52a4;
  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: #fff;
}

footer .text span a:hover{
  text-decoration: underline;
}

.scroll-button a{
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  background: #ca52a4;
  padding: 7px 12px;
  font-size: 18px;
  border-radius: 6px;
  box-shadow: rgba(0,0,0,0.1);
  display: none;
}

/* Responsive */
@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){
  nav .logo{
    position: absolute;
    top: 16px;
    left: 15px;
    font-size: 1.5rem;
  }

  section .main-container{
    padding-left: 0px;
    display: flex;
    flex-direction: column;
  }

  .nav-container .links{
    display: none;
  }
  .hamburg,
  .cancel{
    opacity: 1;
    pointer-events: auto;
    z-index: 10001;
  }

  .main-container .content{
    margin-top: 20px;
    width: 80%;
  }

  .sosial-links i{
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .main-container .image{
    z-index: -1;
    width: 50%;
    height: 60%;
  }

  .skills .skills-details{
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .skills-details .text{
    width: 100%;
    margin-bottom: 50px;
  }

  .skills-details .boxes{
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .services .boxes .box{
    margin: 20px 0;
    width: 100%;
  }

  .contact .text{
    width: 100%;
  }
}

@media (max-width:500px){
  .main-container .image{
    width: 50%;
    height: 60%;
    margin-bottom: 0px;
  }

  .main-container .content{
    width: 80%;
  }

  .main-container .button{
    margin-top: 15px;
  }

  .skills-details .boxes .per{
    font-size: 50px;
    color: #ca52a4;
  }
}


/* Dropdown */
.dropdown{
  z-index: 9999;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  backdrop-filter: blur(8px) brightness(40%);
  box-shadow: 0 0 20px black;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.dropdown.open{
  transform: translateY(0);
  opacity: 1;
}

.dropdown .links{
  display: flex;
  flex-direction: column;
  text-align: center;
}

.dropdown .links a{
  display: block;
  padding: 20px 0;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.dropdown .links a:hover{
  color: #fc93c2;
}

/* Hamburger and Cancel Icon */
.hamburg,
.cancel{
  cursor: pointer;
  font-size: clamp(2.5rem, 0.5em + 5vw, 3rem);
  color: aliceblue;
  z-index: 10001;
  position: fixed;
  top: 20px;
  right: 20px;
}

/* Show cancel icon only when dropdown is open */
.dropdown.open ~ .cancel{
  display: block;
}

/* Prevent background scroll */
body.no-scroll{
  overflow: hidden;
}

/* Toast */
#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #ff3399;
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 15px;
  position: fixed;
  z-index: 9999;
  right: 20px;
  bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(255,51,153,0.3);
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 20px; opacity: 1;}
}

@keyframes fadeout {
  from {bottom: 20px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}
