/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: #03a5f0;
  --second-color: #585858;
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

/*===== Gaya untuk preloader =====*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Pastikan preloader di atas konten lainnya */
}
/*===== Gaya untuk teks persentase =====*/
.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: bold;
  color: #3498db;
  text-align: center;
}

/*===== Gaya untuk spinner =====*/
.spinner {
  border: 8px solid grey; /* Warna latar belakang spinner */
  border-top: 8px solid #3498db; /* Warna bagian yang berputar */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite; /* Animasi spin */
}

/*===== Animasi untuk spinner =====*/
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*===== Sembunyikan konten utama sampai halaman selesai dimuat =====*/
#content {
  display: none;
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
  overflow-x: hidden;
}

h1, h2, p {
  margin: 0;
}

p {
  text-align: justify;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #ffffffef;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/* Navbar Brand */
.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 25px;
  height: 25px;
}


/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: #ffffffb4;
    transition: 0.5s;
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
  }
  .contact__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .contact-right {
    order: 2; /* Menempatkan contact-right di bawah form */
  }
}
.nav__item {
  margin-bottom: var(--mb-4);
}
.nav__link {
  position: relative;
  color: var(--second-color);
}
.nav__link:hover {
  position: relative;
}
.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.navlogo {
  display: flex;
  width: 25;
  height: 25;
  color: var(--second-color);
}
.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}
/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: var(--first-color);
  border: none;
  color: white; /* warna teks untuk outline-secondary */
  padding: 0.375rem 0.75rem; /* padding default */
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem; /* border radius */
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  font-size: 0.875rem; /* ukuran font lebih kecil */
  padding: 0.25rem 0.5rem; /* padding kecil */
  border-radius: 0.2rem; /* border radius lebih kecil */
}

.btn:hover {
  background-color: #6c757d; /* background ketika hover */
  color: white; /* teks putih ketika hover */
  border-color: #6c757d; /* tetap border abu-abu ketika hover */
}

.btn:focus, .btn.focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5); /* efek fokus */
}


/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
}
.home__data {
  align-self: center;
}
.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
}
.home__title-color {
  color: var(--first-color);
}
.home__social {
  display: flex;
  flex-direction: column;
}
.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
}
.home__social-icon:hover {
  color: var(--first-color);
}
.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.home__img img{
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}
.button:hover {
  background-color: var(--second-color);
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}

/* ===== aboutme =====*/
.aboutme__container {
  row-gap: 2rem;
  text-align: center;
}
.aboutme__subtitle {
  margin-bottom: var(--mb-2);
}
.aboutme__text {
  margin-bottom: 20px;
  text-indent: 20px; /* tambahkan tab di awal paragraf */
}
.aboutme__img {
  justify-self: center;
}
.aboutme__img img {
  width: 200px;
  border-radius: 0.5rem;
}

/* ===== SKILLS =====*/
.skills__container {
  row-gap: 2rem;
  text-align: center;
}
.skills__subtitle {
  margin-bottom: var(--mb-2);
}
.skills__text {
  margin-bottom: var(--mb-4);
  text-indent: 20px;
}
.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: 0.5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: 0.5rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
}
.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--first-color);
}
.skills__darticon {
  width: 24px;
  height: auto;
  margin-right: 1.5rem;
}
.skills__names {
  display: flex;
  align-items: center;
}
.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
}
.skills__html {
  width: 100%;
}
.skills__css {
  width: 100%;
}
.skills__js {
  width: 60%;
}
.skills__dart {
  width: 87%;
}
.skills__ux {
  width: 86%;
}
.skills__img {
  border-radius: 0.5rem;
  margin-bottom: 10px;
}

/* ===== Portfolio =====*/
.Portfolio__container {
  row-gap: 2rem;
}
.Portfolio__img {
  position: relative;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  display: inline-block;
}
.Portfolio__img img {
  transition: 1s;
  display: block;
  width: 100%;
  height: auto;
}
.Portfolio__img img:hover {
  transform: scale(1.1);
}
.Portfolio__img:hover .Portfolio__text {
  color: var(--first-color);
}
.Portfolio__img:hover .Portfolio__subtext {
  color: rgba(128, 128, 128, 0.692);
}
.Portfolio__text {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(128, 128, 128, 0.692);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -ms-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
}
.Portfolio__subtext {
  display: block; /* Membuat subteks muncul di bawah teks utama */
  font-size: 1rem;
  font-weight: normal;
  margin-top: 0.5rem; /* Jarak antara teks utama dan subteks */
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease; /* Animasi perubahan warna */
}
/* Animasi untuk munculnya modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Animasi untuk menghilangnya modal */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}
/* Modal Pop-up */
.modal {
  display: none; /* Sembunyikan modal secara default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* Latar belakang gelap */
  justify-content: center;
  align-items: center;
}
/* Tampilkan modal saat aktif */
.modal.active {
  display: flex; /* Tampilkan modal saat aktif */
  animation: fadeIn 0.3s ease-out; /* Animasi saat modal muncul */
}
.modal.closing {
  animation: fadeOut 0.3s ease-out; /* Animasi saat modal menghilang */
}
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
  transform: scale(0.9); /* Awalnya sedikit lebih kecil */
  opacity: 0; /* Awalnya transparan */
}
.modal.active .modal-content {
  opacity: 1; /* Muncul sepenuhnya */
  transform: scale(1); /* Kembali ke ukuran normal */
}
.modal-content h2 {
  color: var(--first-color);
}
.modal-content img {
  margin-top: 10px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}
.modal__link {
  text-align: left;
}
.modal-content a {
  color: white;
  background-color: var(--first-color);
  margin: 10px;
  padding: 0 5px 0 5px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}
.modal-content a:hover {
  background-color: var(--second-color);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: var(--second-color);
}
.modal-close:hover {
  color: #000;
}
.modal-overlay {
  display: none; /* Sembunyikan overlay secara default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0; /* Awalnya transparan */
  transition: opacity 0.3s ease-out; /* Animasi smooth */
}
.modal-overlay.active {
  display: block;
  opacity: 1; /* Muncul sepenuhnya */
}
/* ===== CONTACT FORM ===== */
.contact__form {
  width: 100%; /* Form memenuhi lebar layar */
  max-width: 500px; /* Batas maksimal lebar form */
  margin: 0 auto; /* Tengahkan form */
}
.contact__input {
  width: 100%; /* Input memenuhi lebar form */
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--second-color);
  outline: none;
  margin-bottom: var(--mb-4);
}
.contact__button {
  width: 30%; /* Lebar tombol 40% */
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
  flex-grow: 1; /* Tombol akan menyesuaikan ruang yang tersedia */
  display: block; /* Pastikan tombol menjadi elemen blok */
  text-align: center; /* Teks di dalam tombol tetap rata tengah */
  margin: 0 auto; /* Pusatkan tombol secara horizontal */
}
/*===== Styling untuk reCAPTCHA =====*/
.contact__action {
  display: flex;
  align-items: center;
  gap: 10px; /* Jarak antara reCAPTCHA dan tombol */
}
.g-recaptcha-wrapper {
  display: flex;
  justify-content: center; /* Memusatkan reCAPTCHA secara horizontal */
  margin-bottom: 10px; /* Jarak bawah dengan tombol */
}
.g-recaptcha {
  transform: scale(0.8); /* Menyesuaikan ukuran reCAPTCHA */
  transform-origin: center; /* Menjaga agar reCAPTCHA tetap terpusat */
}

@media (max-width: 768px) {
  .contact__action {
      flex-direction: column; /* Susun secara vertikal */
      align-items: stretch; /* Elemen memenuhi lebar */
  }

  .g-recaptcha {
      margin-bottom: 10px; /* Tambahkan jarak bawah pada reCAPTCHA */
  }

  .contact__button {
      flex-grow: 0; /* Tombol tidak perlu menyesuaikan ruang */
  }
  .g-recaptcha-wrapper {
    margin-bottom: 15px; /* Tambahkan jarak bawah pada reCAPTCHA */
}
}
/* ===== CONTACT RIGHT ===== */
.contact-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  width: 100%; /* Memenuhi lebar layar */
  max-width: 360px; /* Batas maksimal lebar */
  margin: 0 auto; /* Tengahkan contact-right */
}
.contact-right h3 {
  font-size: 1.5rem; /* Ukuran font judul diperbesar */
  color: var(--first-color);
  margin-bottom: 1rem; /* Jarak bawah judul diperbesar */
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Jarak antar info-item diperbesar */
}
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem; /* Jarak antara ikon dan teks diperbesar */
}
.info-item i {
  font-size: 1.75rem; /* Ukuran ikon diperbesar */
  color: var(--first-color);
}
.info-item span {
  font-size: 1.25rem; /* Ukuran teks diperbesar */
  color: var(--second-color);
}

.contact-right h3 {
  font-size: 1.25rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-item i {
  font-size: 1.25rem;
  color: var(--first-color);
}

.info-item span {
  font-size: 0.875rem;
  color: var(--second-color);
}

.contact-right h3 {
  font-size: 1.25rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.contact-right p {
  font-size: 0.875rem;
  color: var(--second-color);
  text-align: center;
}

.contact-right .social-links {
  display: flex;
  gap: 1rem;
}

.contact-right .social-links a {
  font-size: 1.5rem;
  color: var(--second-color);
  transition: color 0.3s ease;
}

.contact-right .social-links a:hover {
  color: var(--first-color);
  
}

/* Footer Container */
footer {
  background-color: var(--second-color); /* Warna latar belakang */
  padding-top: 20px 0; /* Ruang di atas dan bawah */
  text-align: center;
}

.footer-container {
  max-width: 1200px; /* Batas lebar maksimal */
  margin: 0 auto; /* Tengahkan kontainer */
  padding: 20px 15px 30px 15px; /* Ruang di kiri dan kanan */
}
.custom-hr {
  margin-top: 1.5rem; /* Sama dengan "my-4" (margin-y: 4) pada Bootstrap */
  margin-bottom: 1.5rem; 
  border: none;
  border-top: 0.8px solid rgba(253, 253, 253, 0.466); /* Warna dengan transparansi */
}
/* Footer Content */
.footer-content small {
  display: block; /* Tampilkan sebagai blok untuk stack teks */
  margin: 5px 0; /* Ruang antar teks */
  color: white; /* Warna teks abu-abu */
}

.footer-content a {
  font-weight: bold;
  color: white; /* Warna tautan */
  text-decoration: none;
}

.footer-content a:hover {
  color: var(--first-color);
}

/* Social Media Links */
.social-links {
  list-style: none; /* Hilangkan bullet */
  padding: 0;
  margin: 15px 0 0; /* Ruang di atas */
  display: flex; /* Gunakan Flexbox untuk ikon */
  justify-content: center; /* Tengahkan ikon */
  gap: 20px; /* Jarak antar ikon */
}

.social-links li {
  display: inline-block; /* Tampilkan elemen sebagai inline-block */
}

.social-links a {
  color: white; /* Warna ikon */
  font-size: 20px; /* Ukuran ikon */
  transition: color 0.3s ease; /* Efek transisi warna */
}

.social-links a:hover {
  color: var(--first-color); /* Warna ikon saat hover */
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
.home {
  row-gap: 2rem;
}
.home__img {
  width: 200px;
}
}
@media screen and (min-width: 576px) {
.home {
  padding: 4rem 0 2rem;
}
.home__social {
  padding-top: 0;
  padding-bottom: 2.5rem;
  flex-direction: row;
  align-self: flex-end;
}
.home__social-icon {
  margin-bottom: 0;
  margin-right: var(--mb-4);
}
.home__img {
  width: 300px;
  bottom: 25%;
}
.aboutme__container {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  text-align: initial;
}
.skills__container {
  grid-template-columns: 0.7fr;
  justify-content: center;
  column-gap: 1rem;
}
.Portfolio__container {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  padding-top: 2rem;
}
.contact__form {
  width: 360px;
  padding-top: 2rem;
}
.contact__container {
  justify-items: center;
}
}
@media screen and (min-width: 768px) {
body {
  margin: 0;
}
.section {
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.section-title {
  margin-bottom: var(--mb-6);
}
.section-title::after {
  width: 80px;
  top: 3rem;
}
.nav {
  height: calc(var(--header-height) + 1.5rem);
}
  .nav__list {
  display: flex;
  padding-top: 0;
}
.nav__item {
  margin-left: var(--mb-6);
  margin-bottom: 0;
}
.nav__toggle {
  display: none;
}
.nav__toggle i {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__link {
  color: var(--second-color);
}
.home {
  padding: 8rem 0 2rem;
}
.home__img {
  width: 400px;
  bottom: 10%;
}
.aboutme__container {
  padding-top: 2rem;
}
.aboutme__img img {
  width: 300px;
}
.skills__container {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  align-items: center;
  text-align: initial;
}
.Portfolio__container {
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2rem;
}
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.contact-right {
  margin-left: auto;
}
}

@media screen and (min-width: 992px) {
.bd-grid {
  margin-left: auto;
  margin-right: auto;
}
.home {
  padding: 10rem 0 2rem;
}
.home__img {
  width: 400px;
}
}