html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #292f36;
  font-family: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.navi {
  width: 100%;
  height: 80px;
  background-color: #181c21;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-block;
  line-height: 0;
  margin-left: 10%;
}

.logo {
  height: 65px; /* atau 60px sesuai selera */
  width: auto;
  display: block;
}

.link {
  display: flex;
  align-items: center; /* ini penting */
  list-style: none;
  gap: 30px;
  margin-right: 10%;
}

.link li {
  display: flex;
  align-items: center; /* biar isi li sejajar */
}

.link li a {
  text-decoration: none;
  color: white;
  white-space: nowrap; /* ini penting supaya tidak turun */
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: white;
  font-size: 14px;
}

.link li.excep a {
  font-size: 10px; /* lebih kecil dari yang lain (14px) */
}

.link li.excep i {
  font-size: 14px; /* icon ikut kecil */
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  margin-right: 10%;
}

.hamburger span {
  width: 25px;
  height: 4px;
  background: white;
  border-radius: 5px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(50deg) translate(8px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-50deg) translate(9px, -6px);
}

.contact-btn {
  border: 2px solid #bc8cf2;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, #222831, #1e201e);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 180px; /* ini jarak antara teks dan foto */
}

.about-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 24px;
  background-color: #6f38c5;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.download-btn {
  display: inline-block;
  margin-left: 15px;
  padding: 10px 24px;
  background-color: #28a745; /* hijau */
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.download-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.about-btn:hover {
  background-color: #bc8cf2;
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  color: #f9f5f0;
  margin: 0;
  line-height: 1.2;
}

.hero-text b {
  font-size: 48px;
  font-weight: 700;
  color: #bc8cf2;
  margin: 0;
  line-height: 1.2;
}

.hero-text p {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 400;
  color: white;
  line-height: 1.6;
}

.hero-text p i {
  color: #8f43ee;
  margin-right: 10px;
}

.photo-card {
  width: 300px;
  height: 450px;
  background-color: white;
  border: 7px solid transparent;
  border-radius: 50px;
  /* border-radius: 40px; */
  /* border-image: linear-gradient(135deg, #6f38c5, #bc8cf2) 1; */
  background: linear-gradient(25deg, #1a1a1a, #272829);
  background-origin: border-box;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 0 15px rgba(255, 255, 255, 0.03);
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: end;
  transition: 0.3s;
}

.photo-card:hover {
  transform: translateY(-10px);
}

.photo-card img {
  width: 100%; /* sesuaikan ukuran */
  border-radius: 12px; /* biar fotonya juga agak smooth */
  margin-bottom: -10px;
}

.divider {
  width: 820px; /* pendek */
  height: 15px; /* kecil tapi masih kelihatan */
  background-color: #6f38c5;
  border-radius: 50px;
  margin: -10px auto; /* ini bikin dia turun dan punya jarak atas bawah */
  position: relative;
  z-index: 2;
}

.divider-wrapper {
  position: relative;
  width: 100%;
  height: 40px; /* tinggi total wrapper */
  margin: -20px auto;
}

/* garis putih horizontal */
.line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: translateY(-50%);
  z-index: 1; /* di belakang divider */
}

/* divider ungu */
.divider-special {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 820px;
  height: 20px;
  background-color: #8f43ee;
  border-radius: 50px;
  z-index: 2; /* di atas garis */
}

.about {
  min-height: 100vh;
  background-color: #292f36;
  display: flex;
  flex-direction: column; /* ini yang bikin turun ke bawah */
  align-items: center;
  justify-content: center;
  margin-bottom: 120px;
}

.about-title {
  color: white;
  font-size: 36px;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 130px;
  margin-top: 100px;
}

.about-box {
  width: 100%;
  height: 450px;
  background-color: #1e2228;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  gap: 160px;
}

.photo-card-2-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.card-photo-2 {
  width: 550px;
  height: 350px;
  background: linear-gradient(25deg, #1a1a1a, #272829) padding-box;
  border-radius: 15px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    inset 0 0 15px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  margin-top: -120px; /* naik sedikit tapi tetap dalam flow */
  display: flex;
  justify-content: center;
  align-items: end;
  transition: 0.3s;
  padding-bottom: 20px;
}

.card-photo-2:hover {
  transform: translateY(-10px);
}

.card-photo-2 img {
  height: 100%;
  object-fit: cover;
  margin-bottom: -40px;
}

.about-text {
  max-width: 500px;
  font-weight: 600;
  color: white;
}

.about-text h2 {
  font-size: 32px;
  color: #bc8cf2;
}

.about-text h4 {
  margin-bottom: 20px;
  color: white;
}

.about-text p {
  font-size: 14px;
  line-height: 1.5;
  color: #b8b8b8;
}

.about-exp-btn {
  display: inline-block;
  margin-bottom: 50px;
  margin-top: 20px;
  padding: 10px 24px;
  background-color: #6f38c5;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.about-exp-btn:hover {
  background-color: #bc8cf2;
}

.about-bars {
  display: flex;
  gap: 20px;
  margin-top: 3%;
}

.bar {
  width: 80px;
  height: 10px;
  background-color: white;
  border-radius: 50px;
  transition: 0.3s;
}

.bar:hover {
  background-color: rgb(171, 171, 171);
}

.bar.active {
  background-color: #6f38c5;
  transition: 0.3s;
}

.bar.active:hover {
  background-color: #8f43ee;
}

.skill {
  position: relative; /* ini penting supaya overlay berada di dalam section skill */
  width: 100%;
  padding-top: 100px;
  padding-bottom: 200px;
  background-color: #1f242a;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* supaya gambar tidak keluar area */
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0; /* transparansi */
  z-index: 0; /* di belakang card-skill */
  transition: opacity 1s ease-in-out;
}

.skill h1 {
  color: white;
  font-size: 36px;
  opacity: 100%;
  margin-bottom: 100px;
}

.card-skill-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 25px;
}

.card-skill {
  display: flex;
  height: 400px;
  gap: 40px;
  padding: 6px 100px;
  border-radius: 20px;
  background: linear-gradient(#23272e, #292e34);
  box-shadow:
    12px 12px 30px rgba(0, 0, 0, 0.6),
    -6px -6px 15px rgba(255, 255, 255, 0.03);
  position: relative;
}

.card-skill {
  display: flex;
  gap: 40px;
  padding: 40px 70px;
  border-radius: 25px;

  background: linear-gradient(145deg, #23272e, #181c21);

  box-shadow:
    12px 12px 30px rgba(0, 0, 0, 0.6),
    -6px -6px 15px rgba(255, 255, 255, 0.03);
}

.skill-item {
  width: 180px;
  height: 180px;
  padding: 15px;
  border-radius: 18px;
  margin-top: 70px;

  background: linear-gradient(145deg, #2c3037, #1f2328);

  box-shadow:
    8px 8px 18px rgba(0, 0, 0, 0.6),
    -4px -4px 10px rgba(255, 255, 255, 0.04);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-6px);
  box-shadow:
    14px 14px 28px rgba(0, 0, 0, 0.7),
    -6px -6px 15px rgba(255, 255, 255, 0.05);
}

.skill-item .logo-container img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 10;
  transition: background 0.3s ease;
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.scroll-btn.left {
  left: 10px;
}
.scroll-btn.right {
  right: 10px;
}

.logo-container {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
}

.logo-container img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

.category-title {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 5px;
}

.logo-title {
  font-size: 18px;
  transition: opacity 0.4s ease;
}

.logo-skill img {
  width: 30px; /* lebih kecil */
  height: 30px; /* fix square */
  margin: 0 5px; /* jarak antar logo kalau muncul beberapa */
}

.skill-item h3 {
  margin-top: -10px;
  color: white;
  font-size: 18px;
  text-align: center;
}

.skill-item:hover {
  transform: translateY(-10px);
  background-color: #6f38c5;
}

.skill-btn-wrapper {
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

.skill-btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: #6f38c5;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.skill-btn:hover {
  background-color: #bc8cf2;
}

.education {
  width: 100%;
  min-height: 500px; /* tinggi section */
  background-color: #292f36;
  display: flex;
  flex-direction: column; /* pastikan anak-anak tersusun vertikal */
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  gap: 40px;
  padding-bottom: 150px;
}

.education-title {
  color: white;
  font-size: 36px;
  margin-bottom: 50px;
  text-align: center;
  font-weight: 600;
}

/* container utama card education */
.card-education {
  width: 80%; /* lebar tidak mentok */
  max-width: 95%; /* agar tetap responsif */
  height: 900px; /* tinggi sedang */
  background: linear-gradient(145deg, #1f242a, #232931); /* gradasi gelap 3D */
  border-radius: 25px;
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.5),
    inset 0 5px 10px rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 80px; /* jarak antara card-itb dan teks */
}

/* container di dalam card education untuk logo ITB */
.card-itb {
  width: 400px;
  height: 400px;
  background: linear-gradient(145deg, #ffffff, #a4a4a4); /* gradasi putih 3D */
  border-radius: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 5px 10px rgba(255, 255, 255, 0.6);
  transition: 0.3s;
}

.card-itb:hover {
  transform: translateY(-10px);
}

/* styling logo ITB */
.card-itb img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.education-text {
  color: white;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gradient-text-svg {
  width: 100%;
  max-width: 250px;
  height: auto;
}

.education-text h3 {
  font-size: 18px;
  color: white;
  margin: 10px 0;
}

.education-text p {
  font-size: 14px;
  color: #b8b8b8;
  line-height: 1.6;
}

.about-itb-btn {
  display: inline-block;
  width: 140px;
  margin-top: 25px;
  padding: 10px 24px;
  background-color: #0093ee;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.about-itb-btn:hover {
  background-color: #00b3ff;
}

.experience {
  width: 100%;
  padding: 250px 0;
  background-color: #292f36;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Judul */
.experience-title {
  font-size: 36px;
  font-weight: 600;
  color: white;
  margin: 0;
  margin-top: -150px;
  margin-bottom: 100px;
}

/* Card Experience */
.card-experience {
  position: relative;
  width: 80%;
  max-width: 1100px;
  background: linear-gradient(145deg, #1f242a, #272a2d);
  border-radius: 25px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden; /* anak-anak tetap di dalam */
}

.card-experience-btn {
  width: 100%;
  display: flex;
  justify-content: center; /* tombol di tengah */
  margin-top: 30px; /* jarak dari teks */
}

.card-experience-btn button {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  background-color: #6f38c5;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.card-experience-btn button:hover {
  background-color: #bc8cf2;
}

/* Tombol navigasi */
.card-nav {
  position: absolute;
  top: 53%;
  margin-left: -20px;
  margin-right: -20px;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background-color: rgba(111, 56, 194, 0.8);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 30px;
  z-index: 2;
  transition: 0.3s;
}
.card-nav:hover {
  background-color: rgba(111, 56, 194, 1);
}
.card-nav.left {
  left: 150px;
}
.card-nav.right {
  right: 150px;
}

/* Overlay background */
.experience-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

/* Logo + teks */
.com-picture-top {
  display: flex;
  gap: 20px;
  align-items: center;
  z-index: 1;
}
.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
}
.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-info h3,
.company-info h4,
.company-info span {
  margin: 2px 0;
  padding: 0;
}
.company-info h3 {
  color: #bc8cf2;
  font-size: 18px;
  font-weight: 600;
}
.company-info h4 {
  color: white;
  font-size: 16px;
  font-weight: 500;
}
.company-info span {
  color: #b8b8b8;
  font-size: 14px;
}

/* Garis + paragraf */
.experience-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  z-index: 1;
}
.experience-intro {
  color: white;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.experience-label {
  font-size: 16px;
  font-weight: 400;
  margin: -5px 0 -5px 0;
  color: #aaa;
}
.experience-text-paragraph {
  flex: 1;
}
.experience-text-paragraph p {
  color: white;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact {
  width: 100%;
  padding: 200px 0;
  background-color: #292f36; /* background section */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.contact-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin: -60px 0 60px 0;
  text-align: center;
}

.card-contact {
  width: 80%;
  max-width: 1500px;
  padding: 40px;
  background: linear-gradient(
    145deg,
    #1c1f24,
    #1e2228,
    #25292f
  ); /* gradasi 3D */
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.5),
    inset 0 5px 15px rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: auto;
  box-sizing: border-box; /* penting */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
}

.contact-form .form-row input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 12px;
  border: none;
  background-color: #2a2f36;
  color: white;
  font-size: 16px;
  box-sizing: border-box; /* pastikan padding masuk lebar */
}

.contact-form textarea {
  width: 100%;
  height: 200px;
  padding: 15px 20px;
  border-radius: 12px;
  border: none;
  background-color: #2a2f36;
  color: white;
  font-size: 16px;
  resize: none;
  box-sizing: border-box;
}

.contact-form button {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background-color: #6f38c5;
  color: white;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  align-self: center;
  font-family: "Poppins", sans-serif;
}

/* Form row tetap dua input berdampingan */
.form-row {
  display: flex;
  gap: 20px;
}

.form-row input {
  flex: 1;
}

button {
  padding: 15px 30px;
  border-radius: 12px;
  border: none;
  background-color: #6f38c5;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #8a5fff;
}

.side-navigation {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 30px;
  z-index: 999;
}

.side-navigation button {
  width: 50px;
  height: 50px;
  padding: 8px 14px;
  background: #1e2228;
  color: #bbb;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 20px;
  transition: 0.3s;
}

.side-navigation button:hover {
  background: #6f38c5;
  color: white;
}

.side-navigation button.active {
  background: #6f38c5;
  color: white;
  transform: scale(1.05);
}

#scrollTopBtn {
  position: fixed;
  right: -1440px;
  bottom: -50%;
  padding: 12px 16px;
  font-size: 18px;
  border: none;
  border-radius: 50%;
  background: #6f38c5;
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  background: #8f43ee;
  transform: translateY(-3px);
}

footer {
  width: 100%;
  min-height: 600px;
  background-color: #181c21;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 80px;
  box-sizing: border-box;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* pastikan section sejajar di atas */
  gap: 50px;
  flex-wrap: nowrap; /* jangan wrap */
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0px; /* jarak antar elemen di section */
  min-width: 200px; /* hindari terlalu sempit */
}

.footer-about h2,
.footer-links h3,
.footer-social h3 {
  margin-bottom: 10px;
  color: #bc8cf2;
}

.footer-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #6f38c5;
}

.footer-social .social-icons {
  display: flex;
  flex-direction: row; /* paksa horizontal */
  gap: 15px;
  flex-wrap: nowrap; /* jangan pecah ke baris baru */
  align-items: center;
}

.footer-social .social-icons a {
  color: white;
  font-size: 20px;
  transition: 0.3s;
}

.footer-social .social-icons a:hover {
  color: #6f38c5;
}

.footer-logo {
  width: 80px; /* ukuran logo */
  height: auto;
  margin-bottom: 15px; /* jarak ke judul */
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #2a2f36;
  font-size: 14px;
  color: #b8b8b8;
}

.projects-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 60px 20px;
  background-color: #292f36;
}

.project-card {
  width: 95%;
  max-width: 1300px;
  background: linear-gradient(#23272e, #292e34);
  box-shadow:
    12px 12px 30px rgba(0, 0, 0, 0.6),
    -6px -6px 15px rgba(255, 255, 255, 0.03);
  border-radius: 25px;
  padding: 40px 50px; /* kiri kanan lebih lega */
  display: flex;
  flex-direction: column;
  gap: 40px; /* spasi antar project */
}

.project-heading {
  text-align: center;
  margin-bottom: 30px; /* jarak ke card */
}

.underline {
  width: 60px;
  height: 3px;
  background-color: #bc8cf2;
  margin: 10px auto 30px auto;
}

.project-heading h1,
.project-heading h2 {
  text-align: center;
  margin: 5px 0;
}

.project-heading h1 {
  font-size: 36px;
  color: white;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.project-heading h2 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 10px 0 0 0; /* jarak dari h1 */
  text-align: center;
}

.project-heading h1,
.project-heading h2 {
  text-align: center;
  margin: 50px 0 0 0;
}

.project-heading h2 {
  margin-top: 10px;
}

.single-project {
  display: flex;
  flex-direction: column;
  gap: 20px; /* spasi antar elemen project (title, year, company, p) */
  padding-bottom: 50px; /* spasi antar project */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* optional, garis bawah antar project */
}

.single-project h3 {
  text-align: left; /* judul project */
  margin: 0;
}

.single-project h4 {
  text-align: left; /* tahun */
  margin: 0;
  color: #b8b8b8;
}

.single-project h5 {
  text-align: left !important; /* paksa kiri */
  margin: 0;
  font-weight: 500;
  color: #bc8cf2;
}

.single-project p {
  white-space: pre-line; /* pakai enter */
  text-align: justify;
  line-height: 1.6;
  margin-top: 5px;
}

.project-card h5 {
  font-size: 14px;
  color: #ffffff;
  margin: 0;
  text-align: center;
  font-weight: 500;
}

.project-heading .underline {
  width: 220px; /* panjang garis */
  height: 4px; /* tebal garis */
  background-color: #bc8cf2; /* warna garis */
  margin: 10px auto 0; /* jarak dari h2 dan center */
  border-radius: 2px; /* biar ujungnya agak bulat */
}

.project-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
}

.project-card h3 {
  font-size: 24px;
  color: #bc8cf2;
  margin: 0;
}

.project-card h4 {
  font-size: 16px;
  color: white;
  margin: 0;
}

.project-card p {
  width: 100%; /* paksa isi seluruh card */
  text-align: left; /* teks ke kiri */
  line-height: 1.6;
  white-space: pre-line; /* enter di teks ikut */
  margin: 0; /* hilangkan margin default */
  color: #dadada;
}

.project-images {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.img-box {
  flex: 1;
}

.img-box img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.toggle-btn {
  margin-top: 10px;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background-color: #bc8cf2;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  align-self: self-start;
  transition: 0.3s ease;
}

.toggle-btn:hover {
  opacity: 0.8;
}

.hidden-content {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.hidden-content.active {
  display: flex;
}

.cert-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
}

.cert-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .project-images {
    flex-direction: column;
  }

  .img-box img {
    height: auto;
  }
}

@media (max-width: 1024px) {
  .link {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #181c21;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 30px 0;

    display: none;
  }

  .link.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    gap: 60px;
    text-align: center;
    padding: 100px 20px;
    height: auto;
  }

  .hero-text h1,
  .hero-text b {
    font-size: 36px;
  }

  .about-box {
    flex-direction: column;
    height: auto;
    gap: 60px;
    padding: 60px 20px;
  }

  .card-photo-2 {
    width: 90%;
    height: auto;
    margin-top: 0;
  }

  .card-photo-2 img {
    height: auto;
    width: 100%;
    margin-bottom: 0;
  }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    gap: 40px;
    padding: 100px 40px;
    height: auto;
    text-align: center;
  }

  .photo-card {
    order: -1; /* ini bikin foto naik ke atas */
    width: 300px;
    height: 480px;
  }

  .hero-text {
    max-width: 100%;
    text-align: left; /* tetap rata kiri */
  }

  .about-btn {
    align-self: start;
  }

  .download-btn {
    margin-right: -25px;
    margin-left: 5px;
  }
}

@media (max-width: 1024px) {
  .about-box {
    flex-direction: column;
    gap: 60px;
    width: 100%;
    padding: 40px 40px;
    text-align: left;
  }

  .card-photo-2 {
    width: 100%;
    max-width: 400px;
    height: 530px;
    margin-top: -120px;
  }

  .card-photo-2 img {
    margin-bottom: -40px;
    width: 100%;
  }

  .about-text {
    margin-top: -20px;
    max-width: 100%;
    margin-bottom: 0px;
  }

  .about-bars {
    gap: 12px;
    margin-top: 30px;
  }

  .bar {
    width: 60px;
    height: 8px;
  }
}

@media (max-width: 1024px) {
  .card-skill-wrapper {
    position: relative;
    width: 100%;
    padding: 0 40px; /* kasih napas kiri kanan */
  }

  .card-skill {
    width: 100%;
    height: 250px;
    padding: 30px 20px 0 20px;
    justify-content: center;
    gap: 15px;
  }

  .divider {
    width: 200px;
    height: 15px;
    background: #6f38c5;
    margin: 0 auto;
    border-radius: 20px;
  }

  .skill-item {
    width: 150px;
    min-height: 160px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #2c3037, #1f2328);
    margin-top: 0px;
    box-shadow:
      8px 8px 18px rgba(0, 0, 0, 0.6),
      -4px -4px 10px rgba(255, 255, 255, 0.04);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* biar center kalau sendirian */
    text-align: center;

    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .logo-container {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .scroll-btn {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    transition: 0.3s;
  }

  .scroll-btn.left {
    left: 20px;
  }

  .scroll-btn.right {
    right: 20px;
  }

  .scroll-btn:hover {
    background: rgba(255, 255, 255, 0.25);
  }
}

@media (max-width: 768px) {
  .card-skill-wrapper {
    position: relative;
    width: 100%;
    padding: 0 40px; /* kasih napas kiri kanan */
  }

  .card-skill {
    width: 100%;
    height: 250px;
    padding: 30px 60px 0 60px;
    justify-content: center;
    gap: 15px;
  }

  .divider {
    width: 320px;
    height: 15px;
    background: #6f38c5;
    margin: 0 auto;
    border-radius: 20px;
  }

  .skill-item {
    width: 150px;
    min-height: 160px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #2c3037, #1f2328);
    margin-top: 0px;
    box-shadow:
      8px 8px 18px rgba(0, 0, 0, 0.6),
      -4px -4px 10px rgba(255, 255, 255, 0.04);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* biar center kalau sendirian */
    text-align: center;

    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .logo-container {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }

  .logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .scroll-btn {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    transition: 0.3s;
  }

  .scroll-btn.left {
    left: 20px;
  }

  .scroll-btn.right {
    right: 20px;
  }

  .scroll-btn:hover {
    background: rgba(255, 255, 255, 0.25);
  }
}

@media (max-width: 712px) {
  .scroll-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .divider {
    width: 320px;
    height: 15px;
    background: #6f38c5;
    margin: 0px auto;
    border-radius: 20px;
  }

  .card-skill {
    width: 100%;
    height: 250px;
    padding: 30px 20px;
    justify-content: center;
    gap: 25px;
  }

  .skill-item {
    width: 100px;
    height: 80px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #2c3037, #1f2328);
    margin-top: 0px;
    box-shadow:
      8px 8px 18px rgba(0, 0, 0, 0.6),
      -4px -4px 10px rgba(255, 255, 255, 0.04);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* biar center kalau sendirian */
    text-align: center;

    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .skill-item h3 {
    font-size: 15px;
  }

  .skill-item .logo-container img {
    width: 80%;
    height: 80%;
  }
}

@media (max-width: 600px) {
  .scroll-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .divider {
    width: 320px;
    height: 15px;
    background: #6f38c5;
    margin: 0px auto;
    border-radius: 20px;
  }

  .card-skill {
    width: 100%;
    height: 470px;
    padding: 30px 20px;
    flex-wrap: wrap; /* penting supaya bisa turun */
    justify-content: center;
    gap: 25px;
  }
}

@media (max-width: 500px) {
  .scroll-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .divider {
    width: 320px;
    height: 15px;
    background: #6f38c5;
    margin: 0px auto;
    border-radius: 20px;
  }

  .card-skill {
    width: 100%;
    height: 670px;
    padding: 30px 20px;
    flex-wrap: wrap; /* penting supaya bisa turun */
    justify-content: center;
    gap: 25px;
  }

  .skill-item {
    width: 100px;
    height: 80px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #2c3037, #1f2328);
    margin-top: 0px;
    box-shadow:
      8px 8px 18px rgba(0, 0, 0, 0.6),
      -4px -4px 10px rgba(255, 255, 255, 0.04);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* biar center kalau sendirian */
    text-align: center;

    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .skill-item h3 {
    font-size: 15px;
  }

  .skill-item .logo-container img {
    width: 80%;
    height: 80%;
  }
}

@media (max-width: 480px) {
  .scroll-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .divider {
    width: 320px;
    height: 15px;
    background: #6f38c5;
    margin: 0px auto;
    border-radius: 20px;
  }

  .card-skill {
    width: 100%;
    height: 470px;
    padding: 30px 20px;
    flex-wrap: wrap; /* penting supaya bisa turun */
    justify-content: center;
    gap: 25px;
  }

  .skill-item {
    width: 100px;
    height: 80px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #2c3037, #1f2328);
    margin-top: 0px;
    box-shadow:
      8px 8px 18px rgba(0, 0, 0, 0.6),
      -4px -4px 10px rgba(255, 255, 255, 0.04);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* biar center kalau sendirian */
    text-align: center;

    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .skill-item h3 {
    font-size: 15px;
  }

  .skill-item .logo-container img {
    width: 80%;
    height: 80%;
  }
}

@media (max-width: 420px) {
  .scroll-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .divider {
    width: 320px;
    height: 15px;
    background: #6f38c5;
    margin: 0px auto;
    border-radius: 20px;
  }

  .card-skill {
    width: 100%;
    height: 670px;
    padding: 30px 20px;
    flex-wrap: wrap; /* penting supaya bisa turun */
    justify-content: center;
    gap: 25px;
  }

  .skill-item {
    width: 100px;
    height: 80px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #2c3037, #1f2328);
    margin-top: 0px;
    box-shadow:
      8px 8px 18px rgba(0, 0, 0, 0.6),
      -4px -4px 10px rgba(255, 255, 255, 0.04);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* biar center kalau sendirian */
    text-align: center;

    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .skill-item h3 {
    font-size: 15px;
  }

  .skill-item .logo-container img {
    width: 80%;
    height: 80%;
  }
}

@media (max-width: 320px) {
  .scroll-btn {
    padding: 8px 12px;
    font-size: 16px;
  }

  .divider {
    width: 320px;
    height: 15px;
    background: #6f38c5;
    margin: 0px auto;
    border-radius: 20px;
  }

  .card-skill {
    width: 100%;
    height: 670px;
    padding: 30px 20px;
    flex-wrap: wrap; /* penting supaya bisa turun */
    justify-content: center;
    gap: 25px;
  }

  .skill-item {
    width: 80px;
    height: 80px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #2c3037, #1f2328);
    margin-top: 0px;
    box-shadow:
      8px 8px 18px rgba(0, 0, 0, 0.6),
      -4px -4px 10px rgba(255, 255, 255, 0.04);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* biar center kalau sendirian */
    text-align: center;

    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .skill-item h3 {
    font-size: 10px;
  }

  .skill-item .logo-container img {
    width: 80%;
    height: 80%;
  }
}

@media (max-width: 1024px) {
  .card-education {
    flex-direction: column;
    height: auto;
    padding: 60px 30px;
    gap: 40px;
    text-align: center; /* supaya elemen default ke tengah dulu */
  }

  /* Logo tetap lingkaran tapi lebih kecil */
  .card-itb {
    margin: 0 auto; /* center horizontal */
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .card-itb img {
    width: 85%;
    height: 85%;
  }

  /* Container teks */
  .education-text {
    max-width: 100%;
    text-align: left; /* biar My Education tetep kiri */
    margin: 0 auto; /* biar cardnya center horizontal */
  }

  /* Tulisan ITB SVG di tengah */
  .gradient-text-svg {
    display: block;
    margin: 0 auto;
  }

  /* Posisikan text "ITB" di tengah SVG */
  .gradient-text-svg {
    /* reset transform supaya gak gepeng */
    transform: none !important;
  }

  .gradient-text-svg text {
    transform: translate(40%, 0%);
    transform-origin: center;
    font-size: 60px; /* sesuaikan ukuran di HP */
  }

  /* Setelah SVG dan judul, isi paragraf rata kiri */
  .education-text h3,
  .education-text p,
  .about-itb-btn {
    text-align: left;
    width: 100%;
  }

  /* Tombol tetap rata kiri */
  .about-itb-btn {
    align-self: flex-start;
    text-align: center;
  }
}

/* ================== MEDIA QUERY TABLET ================== */
@media (max-width: 1024px) {
  /* Judul center */
  .experience-title {
    text-align: center;
    margin-top: 0; /* optional, supaya lebih rapi */
  }

  /* Card responsive */
  .card-experience {
    width: 80%;
    padding: 40px;
    gap: 20px;
    position: relative; /* pastikan ini relatif */
  }

  /* Logo proporsional */
  .logo-circle {
    width: 70px;
    height: 70px;
  }
  .logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Hapus garis vertikal dan horizontal */
  .line-wrapper,
  .line-horizontal-container {
    display: none;
  }

  /* Konten teks tetap di kiri tapi ada jarak */
  .experience-text-paragraph {
    text-align: left;
    margin: 0 auto; /* supaya tetap di tengah card secara horizontal */
  }

  /* Tombol navigasi di dalam card, lebih kecil */
  .card-nav {
    width: 40px;
    height: 60px;
    font-size: 20px;
    top: 59%;
    background-color: rgba(111, 56, 194, 0.8);
    position: absolute; /* relatif ke card */
  }
  .card-nav.left {
    left: 30px; /* deket kiri card */
  }
  .card-nav.right {
    right: 30px; /* deket kanan card */
  }
}

@media (max-width: 740px) {
  /* Judul center */
  .experience-title {
    text-align: center;
    margin-top: 0; /* optional, supaya lebih rapi */
  }

  /* Card responsive */
  .card-experience {
    width: 80%;
    padding: 50px;
    gap: 6px;
    position: relative; /* pastikan ini relatif */
  }

  /* Logo proporsional */
  .logo-circle {
    width: 70px;
    height: 70px;
  }
  .logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Susunan logo di atas teks */
  .com-picture-top {
    flex-direction: column;
    align-items: center; /* biar logo dan teks rata tengah */
    gap: 15px; /* jarak logo dan teks */
  }

  .company-info {
    text-align: center; /* teks tetap rapih di bawah logo */
  }

  /* Hapus garis vertikal dan horizontal */
  .line-wrapper,
  .line-horizontal-container {
    display: none;
  }

  /* Konten teks tetap di kiri tapi ada jarak */
  .experience-text-paragraph {
    text-align: left;
    margin: 0 auto; /* supaya tetap di tengah card secara horizontal */
  }

  /* Tombol navigasi di dalam card, lebih kecil */
  .card-nav {
    width: 40px;
    height: 60px;
    font-size: 20px;
    top: 59%;
    background-color: rgba(111, 56, 194, 0.8);
    position: absolute; /* relatif ke card */
  }
  .card-nav.left {
    left: 30px; /* deket kiri card */
  }
  .card-nav.right {
    right: 30px; /* deket kanan card */
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 120px 20px;
  }

  .card-contact {
    width: 100%;
    padding: 25px;
  }

  .contact-form .form-row {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
  }

  footer {
    padding: 40px 20px;
  }
}

.divider-special {
  width: 90%;
}

@media (max-width: 1024px) {
  #scrollTopBtn {
    position: fixed;
    right: -1850%;
    bottom: -125%;
    padding: 12px 16px;
    font-size: 18px;
    border: none;
    border-radius: 50%;
    background: #6f38c5;
    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 820px) {
  #scrollTopBtn {
    position: fixed;
    right: -1350%;
    bottom: -80%;
    padding: 12px 16px;
    font-size: 18px;
    border: none;
    border-radius: 50%;
    background: #6f38c5;
    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 712px) {
  #scrollTopBtn {
    position: fixed;
    right: -1250%;
    bottom: -95%;
    padding: 12px 16px;
    font-size: 18px;
    border: none;
    border-radius: 50%;
    background: #6f38c5;
    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 600px) {
  #scrollTopBtn {
    position: fixed;
    right: -850%;
    bottom: -55%;
    padding: 12px 16px;
    font-size: 18px;
    border: none;
    border-radius: 50%;
    background: #6f38c5;
    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 500px) {
  #scrollTopBtn {
    position: fixed;
    right: -140px;
    bottom: -30%;
    padding: 12px 16px;
    font-size: 18px;
    border: none;
    border-radius: 50%;
    background: #6f38c5;
    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}
