/* --- PENGATURAN GLOBAL & RESET DASAR --- */
* {
  box-sizing: border-box
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #121212;
  color: #e0e0e0;
}
a {
  text-decoration: none;
  color: #32cd32; /* Lime Green */
}
p {
  font-size: 16px;
}
h1 a {
  color: #fff;
}

/* Main heading styling for bio section */
#hello-msg {
  color: #e0e0e0;
  font-size: 55px;
}

/* Update section title styling for h3 instead of h2 */
h3.section-title {
  font-size: 40px;
  padding-left: 10px;
  border-left: 3px solid #32cd32;
  background: linear-gradient(to right, #1a2a1a, #121212);
  color: #fff;
}
button{
    cursor: pointer;
}
section {
  min-height: 400px;
  padding-top: 50px;
  opacity: 0;
  transition: opacity 0.7s ease-out;
  /* transform: translateY(50px); */
}
section.visible {
  opacity: 1;
  /* transform: translateY(0); */
}

section#bio {
  transform: translateY(0);
}
section#bio.visible .left-column {
  transform: translate(0, 0);
}
section#bio.visible .right-column {
  transform: translate(0, 0);
}

/* === UTILITIES === */
.highlight-text {
  color: #32cd32;
}

.section-title {
  font-size: 40px;
  padding-left: 10px;
  border-left: 3px solid #32cd32;
  background: linear-gradient(to right, #1a2a1a, #121212);
  color: #fff;
}

#welcome-msg {
  font-size: 50px; color: #fff; padding-left: 100px; padding-top: 100px;
}

/* === HEADER & NAVIGASI === */
header {
  color: #fff;
  padding: 5px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  backdrop-filter: blur(5px);
  z-index: 999;
}
header nav ul {
  padding-inline-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}
header nav li {
  list-style: none;
  display: inline-block;
  margin: 0 10px;
}
header nav a {
  color: #fff;
  font-weight: bold;
  transition: color 0.3s ease-in-out, border-bottom 0.1s ease, padding-bottom 0.1s ease;
}
header nav a:hover {
  color: #32cd32;
  padding-bottom: 5px;
  border-bottom: 2px solid #32cd32;
}

header .logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo text styling for both header and nav */
header .logo-text,
header .nav-logo-text {
  color: #fff;
  font-weight: bold;
  margin: 0;
  font-size: 2em;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
}

header #logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* box-shadow: -2px -2px 10px 2px #32cd32, 2px 2px 10px 4px #00ffff; */
  animation: logo-spin 3s linear infinite;
}

header #nav-logo {
  display: none;
}

@keyframes logo-spin {
  0% {
    box-shadow: -2px -2px 10px 2px #32cd32, 2px 2px 10px 4px #00ffff;
  }
  50% {
    box-shadow: 2px 2px 10px 2px #32cd32, -2px -2px 10px 4px #00ffff;
  }
  100% {
    box-shadow: -2px -2px 10px 2px #32cd32, 2px 2px 10px 4px #00ffff;
  }
}
/* --- STRUKTUR UTAMA (MAIN & SECTION) --- */
main section h2 {
  color: #32cd32;
}
section {
  min-height: 400px;
  padding-top: 50px;
  opacity: 0;
  /* transform: translateY(50px); */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.normal-section {
  padding: 75px 100px 50px;
}
.normal-section#about-me {
  padding: 25px 100px 50px;
}

/* === BAGIAN BIO (#bio) === */
#bio {
  display: flex;
  height: 80vh;
  padding-top: 0;
}
#bio .left-column {
  width: 50%;
  padding: 10px 0 10px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: translate(-650px, -100px);
  transition: transform 0.7s ease-out;
}
#bio .right-column {
  width: 50%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(500px, 100px);
  transition: transform 0.7s ease-out;
}
/* Styling moved to h1 section above */
#tagline {
  font-size: 20px;
  margin-top: -20px;
}
#profile-photo {
  width: 350px;
  height: 350px;
  background: #ccc;
  clip-path: polygon(0% 15%, 15% 0%, 85% 0%, 100% 0, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0 100%, 0% 85%);
}
#hello-msg #profession {
  font-weight: normal;
}
#hello-msg #profession::after {
  content: '|';
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- BAGIAN TOMBOL "KNOW MORE" --- */
#know-more {
  height: auto;
  min-height: auto;
  padding: 0 100px 10px;
  transform: translateY(-25px);
  transition: transform 0.5s ease-out;
}
#know-more.visible {
  transform: translateY(-70px);
}
.btn-know-more {
  border: none;
  padding: 14px 18px; 
  background-color: #0b700b;
  border: 2px solid #0b700b;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin-right: 10px;
  border-radius: 50px;
  transition: background-color 0.3s;
}
.btn-know-more:hover {
  background-color: inherit;
  color: #32cd32;
  box-shadow: 2px 2px 5px #00ffff, -2px -2px 5px #32cd32;
}
.btn-know-more a {
  color: inherit;
}

/* --- BAGIAN ABOUT ME & SKILLS (#about-me) --- */
.about-me-container {
  display: flex;
  border: 1px solid #2a2a2a;
  padding: 10px 15px;
  border-radius: 5px;
  background: #161515;
  z-index: 10;
}
.about-me-box {
  width: 50%;
  z-index: 10;
}
.about-me-box:nth-child(1) {
  padding-right: 25px;
  text-align: justify;
}
.about-me-box:nth-child(2) {
  /* border: 1px solid #fff; */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-me-box:nth-child(2) div {
  width: 49%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #2a2a2a;
  background: #161515;
  border-radius: 5px;
  box-shadow: 2px 2px 0 #2a2a2a;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.about-me-box:nth-child(2) div:hover {
  box-shadow: 0 0 0 #2a2a2a;
  transform: translate(2px, 2px);
}
.about-me-title {
  font-weight: bold;
  margin-bottom: 2.5px;
  font-size: 20px;
}
.about-me-text {
  color: #32cd32;
  font-size: 24px;
}
.about-me-number {
  color: #32cd32;
  font-size: 30px;
}
.about-me-detail {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}
#btn-talentDNA {
  background-color: #0b700b;
  border: 2px solid #0b700b;
  color: #fff;
  padding: 20px 32px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  transition: background-color 0.3s;
  width: auto;
  max-height: 40px;
  line-height: 0.1;
}
#btn-talentDNA a {
  color: inherit;
}
#btn-talentDNA:hover {
  background-color: inherit;
  color: #32cd32;
  box-shadow: 2px 2px 5px #00ffff, -2px -2px 5px #32cd32;
}

/* --- BAGIAN SKILLS (#skills) --- */
.skill-container {
  width: 100%;
  background-color: #121212;
  border-right: 2px solid #2a2a2a;
  border-left: 2px solid #2a2a2a;
  overflow: hidden; /* Sembunyikan item yang keluar dari kontainer */
  white-space: nowrap; /* Pastikan semua item dalam satu baris */
  position: relative; /* Diperlukan untuk elemen child */
}
.skill-container:hover .skill-track {
  animation-play-state: paused; /* Jeda animasi saat kursor di atasnya */
}
.skill-track {
  display: inline-block; /* Membuat track menjadi elemen inline yang bisa dianimasikan */
  animation: scroll 25s linear infinite; /* Terapkan animasi scroll */
}
.skill-box {
  display: inline-flex; /* Atur item skill agar berjajar ke samping */
  align-items: center;
  flex-direction: column;
  padding: 15px 50px; /* Beri jarak antar item skill */
  border: 2px solid #2a2a2a;
  box-shadow: 10px 10px #000;
  margin: 10px;
  border-radius: 5px;
  background: #161515;
}
.skill-logo {
  margin-bottom: 5px;
}

@keyframes scroll {
  from {
    transform: translateX(0); /* Mulai dari posisi awal */
  }
  to {
    transform: translateX(-50%); /* Geser ke kiri sejauh setengah lebar total (karena konten diduplikasi) */
  }
}

/* --- BAGIAN EDUKASI (#education) --- */
.education-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.education-box {
  width: 48%;
  border: 2px solid #2a2a2a;
  border-radius: 15px;
  background: #161515;
  padding: 10px 20px;
  box-shadow: 10px 10px #000;
}
.education-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- BAGIAN SERTIFIKAT (#certificates) --- */
.certificate-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.certificate-box {
  background: #161515;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  width: calc(33.333% - 20px);
  /* box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
  box-shadow: 10px 10px #000;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(50, 205, 50, 0.2);
}

.certificate-box img {
  width: 100%;
  height: 250px;
  display: block;
  cursor: pointer;
}

.certificate-info {
  padding: 15px;
}

.certificate-info h3, .certificate-info p {
  margin: 0;
}

.project-box.coming-soon, .certificate-box.coming-soon {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 250px;
}

.project-box.coming-soon .coming-soon-overlay, .certificate-box.coming-soon .coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  color: #555;
  transition: color 0.3s ease;
}

.project-box.coming-soon:hover .coming-soon-overlay, .certificate-box.coming-soon:hover .coming-soon-overlay {
  color: #32cd32;
}
.project-box.coming-soon .project-info, .certificate-box.coming-soon .certificate-info {
  text-align: center;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-box {
  background: #161515;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  width: calc(33.333% - 20px);
  /* box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
  box-shadow: 10px 10px #000;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(50, 205, 50, 0.2);
}

.project-box img {
  width: 100%;
  height: auto;
  /* min-height: 250px; */
  display: block;
  cursor: pointer;
}

.project-info {
  padding: 15px;
}

.project-info h3, .project-info p {
  margin: 0 0 10px 0;
}

.project-box button {
  background-color: #0b700b;
  border: 1px solid #32cd32;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
}

/* Tech Stack Chips Styling */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tech-chip {
  background-color: #2a2a2a;
  border: 1px solid #2a2a2a;
  color: #32cd32;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-chip:hover {
  background-color: #32cd32;
  color: #121212;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(50, 205, 50, 0.3);
}

/* === ELEMEN LATAR BELAKANG MELAYANG === */
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  display: block;
  list-style: none;
  background: linear-gradient(45deg, rgba(50, 205, 50, 0.2), rgba(0, 255, 255, 0.2));
  border-radius: 50%;
  animation: float 25s linear infinite;
}

/* === BAGIAN KONTAK (#contact) === */
#contact #form-contact {
  border: 1px solid #2a2a2a;
  background-color: #161515;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  padding: 20px;
  border-radius: 15px;
}
#form-contact .contact-container {
  display: flex;
  flex-direction: column;
  width: 49%;
}
#form-contact .map-container {
  width: 49%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#form-contact .map-container iframe {
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}

#contact label {
  margin-top: 10px;
  margin-bottom: 10px;
}
#contact input,
#contact textarea {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px;
  transition: outline 0.2s, border-color 0.2s;
}
#contact input:hover,
#contact textarea:hover {
  outline: 1px solid #32cd32;
  border-color: #32cd32;
}
#contact input:focus,
#contact textarea:focus {
  outline: 1px solid #32cd32;
  border-color: #32cd32;
}
#contact textarea {
  margin-bottom: 10px;
  resize: none;
}

/* === POP-UP OVERLAY === */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  padding: 15px;
}

.popup-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.popup-content {
  background-color: #161515;
  padding: 25px 30px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.popup-close:hover {
  color: #fff;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  background-color: #161515;
}
footer .social-links {
  margin-bottom: 10px;
}
footer .social-links a {
  margin: 0 15px;
  color: #e0e0e0; /* Warna ikon default diubah menjadi putih */
  font-size: 20px; /* Ukuran ikon diperbesar */
  transition: color 0.3s ease-in-out;
}
footer .social-links a:hover {
  color: #32cd32; /* Warna ikon saat di-hover menjadi hijau */
}
footer p {
  margin: 0;
  color: #aaa;
}

/* animasi latar belakang */
@keyframes float {
  0% {
    transform: translateY(100vh) scale(0) rotate(0deg);
    border-radius: 50%; /* Mulai lingkaran */
  }
  50% {
    border-radius: 5%; /* Berubah jadi persegi */
  }
  100% {
    transform: translateY(-10vh) scale(1) rotate(360deg);
    border-radius: 50%; /* Kembali jadi lingkaran */
  }
}

/* --- MENU RESPONSIVE (HAMBURGER) --- */
.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
}

/* --- ATURAN RESPONSIVE (TAMPILAN MOBILE) --- */
@media (max-width: 600px) {
  /* -- Pengaturan Header & Navigasi Mobile -- */
  .menu-icon {
    display: block;
  }
  .normal-section {
    padding: 100px 15px 10px;
  }
  #welcome-msg {
    padding-left: 0;
    text-align: center;
    padding-top: 100px;
    font-size: 30px;
  }
  header {
    padding: 5px 20px;
  }
	header nav {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100vh;
    background-color: #161515;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
	}

  header nav.active {
    transform: translateX(0);
  }
  
  header nav ul {
    /* padding-top: 75px; */
    flex-direction: column;
    width: 100%;
  }
  
  header nav li {
    display: block;
    text-align: left;
    margin: 0;
    padding: 15px 0 15px 15px;
    border-bottom: 1px solid #2a2a2a;
  }
  
  header nav li:last-child {
    border-bottom: none;
  }
  header #nav-logo {
    display: flex;
  }
  
  header .nav-logo-text {
    font-size: 16px;
  }

  .section-title,
  h3.section-title {
    font-size: 25px;
  }

  /* -- Penyesuaian Layout Utama -- */
  main {
    padding: 0 15px;
  }
  /* -- Bagian Bio -- */
  #bio {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 20px 0;
  }
  #bio .left-column,
  #bio .right-column {
    width: 100%;
    height: auto;
    padding: 10px;
  }
  /* -- Bagian About Me -- */
  .normal-section#about-me {
    padding: 20px 15px;
  }
  .about-me-container {
    flex-direction: column;
  }
  .about-me-box {
    width: 100%;
  }
  .about-me-box:nth-child(1) {
    padding-right: 0;
    margin-bottom: 20px;
  }
  .about-me-box:nth-child(2) div {
    width: 100%;
    margin-bottom: 10px;
  }

  .about-me-box div {
    padding: 10px 0;
  }
  
  /* Responsive adjustments for about-me text elements */
  .about-me-title {
    font-size: 16px;
  }
  .about-me-text {
    font-size: 18px;
  }
  .about-me-number {
    font-size: 22px;
  }
  #hello-msg,
  h1#hello-msg {
    font-size: 1.6em;
    line-height: 1.4;
  }

  #profile-photo {
    width: 200px;
    height: 200px;
    margin-top: 0;       /* pastikan foto tidak mendorong ke bawah */
    margin-bottom: 8px;  /* beri sedikit jarak di bawah foto */
    border-radius: 12px;
    display: block;
  }
  /* -- Bagian Tombol Know More -- */
  #know-more {
    display: flex;
    flex-direction: row;
    padding: 0;
    margin-top: 45px;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .btn-know-more {
    border-radius: 15px;
    width: 40%;
    font-size: 13px;
    margin: 0;
    padding: 12px 8px;
  }
  .project-container {
    flex-direction: column;
    height: auto;
    margin: 0;
    padding: 10px;
  }
  .education-box {
    width: 100%;
  }
  .education-box .education-year {
    display: none;
  }
  .certificate-container {
    flex-direction: column;
  }
  .certificate-box {
    width: 100%;
  }
  .certificate-box img {
    height: auto;
  }
  .project-box {
    width: 100%;
  }
  .bordered {
    margin: 0 0 10px;
  }
  .background-shapes {
    display: none;
  }
  
  .tech-chip {
    font-size: 11px;
    padding: 3px 8px;
  }

  #bio {
    flex-direction: column;
    align-items: center;
  }

  #bio .right-column {
    order: -1;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  #bio .left-column {
    order: 0;
    transform: none;
    width: 100%;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #hello-msg,
  h1#hello-msg {
    text-align: center;
    font-size: 1.4em;
    line-height: 1.2;
    margin: 4px 0 0 0;
  }

  #tagline {
    margin-top: 12px !important;
    font-size: 15px;
    text-align: center;
  }
  
  #profile-photo {
    width: 200px;
    height: 200px;
    margin: 0 0 15px 0;
    border-radius: 12px;
    display: block;
  }

  #contact #form-contact {
    flex-direction: column;
  }
  #form-contact .contact-container,
  #form-contact .map-container {
    width: 100%;
  }

  #form-contact .map-container iframe {
    width: 100%;
    height: 300px;
  }
}

/* From Uiverse.io by bhaveshxrawat */ 
.card {
  position: relative;
  display: flex;
  place-content: center;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
}

.card::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: linear-gradient(180deg, #00ffff, #32cd32);
  animation: neon-bg-anim 5s linear infinite;
  transition: all 1s linear;
  border-radius: 100%;
  z-index: 1;
}

@keyframes neon-bg-anim {
  0% {
    left: calc(100% - 75px);
    top: calc(0% - 75px);
  }
  15% {
    left: calc(100% - 75px);
    top: calc(100% - 75px);
  }
  50% {
    left: calc(0% - 75px);
    top: calc(100% - 75px);
  }
  65% {
    left: calc(0% - 75px);
    top: calc(0% - 75px);
  }
  100% {
    left: calc(100% - 75px);
    top: calc(0% - 75px);
  }
}

.card::after {
  content: '';
  position: absolute;
  background: #161515;
  inset: 3px;
  border-radius: 17px;
  z-index: 1;
}

/* === MULTI LANGUAGE TOGGLE SWITCH === */
.lang-switch-container {
  position: relative;
  display: flex;
  background: #2a2a2a;
  border-radius: 25px;
  padding: 3px;
  border: 1px solid #32cd32;
  overflow: hidden;
}

.lang-switch-container::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: linear-gradient(45deg, #32cd32, #00ffff);
  border-radius: 20px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.lang-switch-container.english::before {
  transform: translateX(100%);
}

.btn-switch-lang {
  position: relative;
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2;
  min-width: 45px;
}

.btn-switch-lang.active {
  color: #121212;
}

.btn-switch-lang:hover {
  color: #fff;
}

.btn-switch-lang:not(.active):hover {
  background: rgba(50, 205, 50, 0.1);
}

/* Mobile responsive for language switch */
@media (max-width: 600px) {
  .lang-switch-container {
    margin: 10px 0;
    justify-content: center;
    width: 100px;
  }
  
  .btn-switch-lang {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 40px;
  }
}
