* {
  margin: 0;
  padding: 0;
}

body {
  font-family: monospace;
  background: rgba(0, 85, 255, 0.237);
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 9vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: #f4f4f4;
  text-decoration: none;
  text-decoration-color: white;
}

nav li a:hover {
  color: #dafdba;
}

a {
  color: #f4f4f4;
  text-decoration: none;
  position: relative;
}

nav li a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #9aeba3;
  transition: width 0.3s ease; /* Animasi lebar garis */
}

a:hover::before {
  width: 100%;
  background-color: #dafdba;
}

.logo .typing-text {
  font-size: 2rem;
  color: #f4f4f4;
  white-space: nowrap; /* Agar teks tidak turun ke baris berikutnya */
  overflow: hidden; /* Agar teks yang melebihi lebar tidak terlihat */
  border-right: 2px solid transparent; /* Membuat efek kursor */
  animation: typing 3s steps(9) infinite, blink-caret 0.75s step-end infinite;
  cursor: default; /* Mengubah kursor menjadi default */
  display: inline-block; /* Agar setiap karakter muncul dalam satu baris */
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  position: sticky;
  display: none;
  background-color: #012030;
  top: 0;
  z-index: 100;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

#desktop-nav {
  position: sticky;
  top: 0;
  background-color: #173747;
  z-index: 100;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #f4f4f4;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 5rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: fit-content;
  flex-wrap: wrap;
  margin: 2rem 0 3rem 0;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
  width: 400px;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 1.75rem;
}

.section__text__p2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  box-shadow: 5px 5px 0 0;
}

.btn-color-1,
.btn-color-2 {
  border: #012030 0.1rem solid;
  background: #f4f4f4;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
  background: #9aeba3;
  border: #9aeba3;
}

.btn-container {
  gap: 2rem;
}

.btn-color-1:active,
.btn-color-2:active {
  transform: translateY(3px) translateX(3px); /* Geser tombol sedikit ke bawah saat diklik */
  box-shadow: 3px 3px 0 0; /* Ubah bayangan tombol saat diklik */
}

/* ABOUT SECTION */

#about {
  position: relative;
  min-height: 110vh;
  height: fit-content;
}

.about-containers {
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
  width: 400px;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 13px;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 2rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.text-container {
  margin-bottom: 1.5rem;
}

.whatido-row {
  display: flex;
  justify-content: space-between;
}

.whatido-item1,
.whatido-item2,
.whatido-item3,
.whatido-item4,
.whatido-item5,
.whatido-item6 {
  flex: 1;
  background: #f4f4f4;
  font-size: 18px;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  padding: 0.75rem;
  margin: 0.25rem;
  position: relative;
  overflow: hidden;
}

.whatido-item1::before,
.whatido-item2::before,
.whatido-item3::before,
.whatido-item4::before,
.whatido-item5::before,
.whatido-item6::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  transition: bottom 0.5s ease;
  background-image: url(assets/img/visibility.png);
  background-size: 45px;
  background-position: center;
  background-repeat: no-repeat;
}

.whatido-item1::before {
  background-image: url(assets/img/design.png);
}

.whatido-item2::before {
  background-image: url(assets/img/development.png);
}

.whatido-item3::before {
  background-image: url(assets/img/function.png);
}

.whatido-item4::before {
  background-image: url(assets/img/movie-reel.png);
}

.whatido-item5::before {
  background-image: url(assets/img/destination.png);
}

.whatido-item6::before {
  background-image: url(assets/img/open-book.png);
}

.whatido-item1:hover::before,
.whatido-item2:hover::before,
.whatido-item3:hover::before,
.whatido-item4:hover::before,
.whatido-item5:hover::before,
.whatido-item6:hover::before {
  bottom: 100%;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  height: fit-content;
  padding-top: 4rem;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* SKILLS SECTION */

#skills {
  position: relative;
  padding: 4vh 0;
  height: fit-content;
}

.skills-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.skill {
  width: 100%;
  text-align: left;
}

.skill h3 {
  font-size: 1.5rem;
  color: #173747;
  margin-bottom: 0.25rem;
}

.progress-bar {
  width: 100%;
  background-color: #f4f4f4;
  border-radius: 2rem;
  height: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Terapkan animasi pada progress */
.progress {
  height: 100%;
  background-color: #4caf50; /* Warna latar belakang awal */
  width: 0; /* Awalnya lebar 0 */
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );

  /* Animasi maju */
  animation: fillProgressForward 3s linear infinite alternate;

  /* Animasi mundur */
  animation: fillProgressReverse 3s linear infinite alternate-reverse;
}

.skill span {
  font-size: 1rem;
  color: #173747;
  font-weight: 600;
  margin-top: 0.25rem;
  display: block;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  height: fit-content;
  padding-bottom: 3rem;
}

.project-container {
  padding: 13px;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
  width: 250px;
}

.projects-details-container {
  display: flex;
  justify-content: center;
}

.color-container {
  border: #012030;
  background: linear-gradient(135deg, rgb(250, 250, 250), grey);
}

.project-img {
  border-radius: 2rem;
  width: 100%;
  height: auto;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn1,
.project-btn2,
.project-btn3,
.project-btn4,
.project-btn5 {
  color: black;
}

/* PROJECT DESCRIPTION */

.close-modal1,
.close-modal2,
.close-modal3,
.close-modal4,
.close-modal5 {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 5rem;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none;
}

.modal1,
.modal2,
.modal3,
.modal4,
.modal5 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;

  background-color: white;
  padding: 3rem;
  border-radius: 5px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
  margin: 1rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

/* CERTIFICATES SECTION */

#certificates {
  position: relative;
  height: fit-content;
}

.certificate-img {
  border-radius: 2rem;
  width: 75%;
}

.certificate-title {
  margin: 1rem;
  color: black;
}

.certificate-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* SLIDER STYLES */

.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  overflow: hidden;
}

.slider {
  transition: transform 0.3s ease-in-out;
  display: flex;
}

.certificate {
  flex: 0 0 100%;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease-in-out; /* Tambahkan transisi untuk slide */
  transform: translateX(0); /* Awalnya, slide dalam posisi awal */
}

.certificate-img {
  border-radius: 2rem;
  max-width: 100%;
}

.certificate-title {
  margin-top: 1rem;
  color: black;
}

.controls {
  text-align: center;
  margin-top: 1rem;
}

.prev-btn,
.next-btn {
  background-color: grey;
  color: black;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 1rem 1.5rem;
  margin: 0 1rem;
  outline: none;
  transition: background-color 0.3s ease-in-out;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: lightgray;
}

/* Channels Section */
#channels {
  padding: 4vh 0;
  height: fit-content;
  border-radius: 10%;
  background: rgb(243, 240, 240);
}

#channels .section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#channels .title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
}

.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

#channels .video {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#channels .video iframe {
  width: 300px;
  height: 200px;
  border-radius: 5%;
}

#channels .video-title {
  font-size: 1.5rem;
  margin-top: 1rem;
  text-align: center;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;
  height: fit-content;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
  flex-wrap: wrap;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.a-contact {
  color: #012030;
}

.a-contact:hover {
  text-decoration: underline;
  color: #45c4b0;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FORM SECTION */

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.contact-form {
  background-color: white;
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  background-color: #9aeba3;
  color: black;
  border: none;
  border-radius: 2rem;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

button[type="submit"]:hover {
  background-color: #dafdba;
}

/* FOOTER SECTION */

footer {
  background-color: #012030;
  padding: 1rem;
}

footer p {
  text-align: center;
}

.submit-btn {
  text-align: right;
}

footer > p {
  color: #f4f4f4;
}

/*message*/

.error {
  color: red;
}

.learnmore > a {
  text-align: right;
  color: #45c4b0;
}
