* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: black;
}

/* header */

header {
  background: transparent;
  backdrop-filter: blur(6px);
  width: 100%;
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
}

.brand h1 {
  color: rgb(0, 42, 255);
  margin: 10px;
  font-size: 20px;
  font-weight: 700;
}


#menunav {
  position: fixed;
  top: 19px;
  right: -250px;
  width: 150px;
  height: 40vh;
  background-color: rgb(55, 55, 255);
  transition: right 0.5s ease;
  z-index: 1000;
  padding-top: 2px;
  border-radius: 10px;
}

#menunav li {
  list-style: none;
  padding: 20px;
  text-align: center;
}

#menunav.show {
  right: 10px;
}

#toggle {
  cursor: pointer;
  margin: 10px;
  padding: 1px 10px;
  font-size: 20px;
  border-radius: 10px;
  color: blue;
  border: none;
  background-color: transparent;
}

#close {
  width: 50%;
  margin: 0 auto;
  cursor: pointer;
  color: white;
  font-size: 30px;
  text-align: center;
  border-radius: 10px;
  padding: 1px 10px;
  margin-top: 5px;
}

nav a {
  font-weight: 500 ;
  text-decoration: none;
  color: white;
  position: relative;
}

nav a:hover {
    color: rgb(0, 0, 155);
    transition: .3s;
}




/* home */

.home {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(67, 98, 238, 0.165), rgba(57, 12, 163, 0.252), #000);
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 2px 10px black;
}

#output {
  font-size: 20px;
  color: blue;
  text-align: center;
  font-weight: 700;
}

#myname {
  color: #ffff;
  display: inline-block;
  opacity: 0;
  transition: 0.5s ease-in-out;
  font-size: 35px;
  font-weight: 800;
  padding: 2px 5px;
}

.typed-cursor {
  font-size: 35px;
  color: white;
}

#myname.typed-cursor {
  opacity: 1 !important;
}

#home-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.home button {
  position: absolute;
  bottom: 50px;
  border-radius: 10px;
  margin: 10px;
  border: 1px solid white;
  padding: 5px 10px;
  color: white;
  background: transparent;
  cursor: pointer;
  border-image-slice: 1;
  opacity: 0;
  transform: translateY(100px);
  animation: startbtn 2s ease-out forwards;
}

.home button:hover {
  border: 1px solid blue;
  transition: 0.8s;
  box-shadow: 1px 2px 20px rgb(106, 106, 255);
}

@keyframes startbtn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* .home-picture {
    display: flex;
    justify-content: center;
    width: 200px;
}

.image img {
    max-width: 30vh;
}

.home-text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
} */

/* about */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12rem auto 0 auto;
  width: 80%;
  background-color: #121212;
  border-radius: 10px;
  padding: 15px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.about h2 {
  margin: 10px;
  margin-bottom: 5vh;
}

.about-contains {
  display: flex;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 5vh;
}

.about-image {
  display: flex;
  justify-content: center;
  width: 200px;
  height: auto;
}

.about-text {
  display: flex;
  align-items: center;
  max-width: 600px;
}

.about-image img {
  max-width: 200px;
  display: block;
  height: auto;
  border-radius: 20%;
  transition: 1s;
}

.about-image img:hover {
  filter: drop-shadow(1px 1px 20px blue);
}

/* skill */

.skill {
  width: 70%;
  margin: 8vh auto 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
}

.skill h3 {
  margin-bottom: 2vh;
}

.skill-contains {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.skill-icons {
  display: flex;
  align-items: center;
  font-size: 25px;
  border: 1px solid rgba(255, 255, 255, 0.356);
  width: 120px;
  padding: 5px 10px;
  gap: 5px;
  border-radius: 2px;
  transition: all 0.3s ease-out;
}

.skill-icons:hover {
  border: 1px solid rgb(43, 180, 254);
  transform: scale(1.02);
  background-color: rgba(120, 219, 255, 0.435);
}

.skill-icons p {
  font-size: 15px;
}

/* projectttttt */
.project {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  width: 100%;
  height: auto;
  margin-top: 15vh;
  padding: 10px 30px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.project h2 {
  margin: 20px;
  margin-bottom: 10vh;
}

.project-contains {
  max-width: 700px;
  display: flex;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 5vh;
}

.project-img {
  max-width: 300px;
  display: flex;
  overflow: hidden;
  border-radius: 5px;
  flex-direction: column;
  align-items: center;
  height: auto;
  padding: 10px;
  background-color: #121212;
}

.desk-img {
  max-width: 250px;
  margin-top: 2vh;
}

.desk-img h4 {
  text-align: center;
}

.desk-img p {
  font-size: 13px;
  margin: 5px;
}

.project-img img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: 5px;
  transition: 0.4s;
}

.project-img img:hover {
  transform: scale(1.1);
}

/* progressssss */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #374151; /* gray-700 */
  border-radius: 2px;
}

        /* Menyesuaikan posisi garis di layar kecil */
@media (max-width: 768px) {
  .timeline-container::before {
      left: 20px; /* Pindahkan garis ke kiri */
  }
}
        
        /* Animasi fade-in dan slide-up saat elemen muncul */
        .timeline-item {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }
        
        .timeline-item.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

/* KONTTTTTTTT ak */

.contact {
  margin-top: 30vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
}

.say-hello {
  width: 80%;
  margin: 0 auto;
  color: white;
  padding: 1rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.say-hello h2 {
  font-weight: 700;
}

.line {
    flex-grow: 1;
    height: 1px;
    background-color: #0044ff;
}

.content {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.5rem;
}

.contact-content {
  padding: 15px;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .contact-content {
    flex-direction: row;
  }
}

.contact-info-section {
  padding: 2.5rem;
  flex: 1;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: white;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.contact-info {
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
}

.contact-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #ffffff;
}

.contact-text p {
  font-size: 1rem;
  color: #ffffff;
}

.social-links {
  display: flex;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #555;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  transform: translateY(-3px);
}

.mapku {
  flex: 1;
  min-height: 300px;
  position: relative;
}

.map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* Responsive hahaha*/

@media (max-width: 767px) {
  .mapku {
    min-height: 250px;
  }

  .contact-info-section {
    padding: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .contact-info-section {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .say-hello h2 {
    font-size: 2rem;
  }

}
