@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
  --bg-color: #081b29; 
  --snd-bf-color: #0b2b3a; 
  --thd-bf-color: #0e3b50;
  --fr-bf-color: #0f435a;  
  --text-color: #ededed; 
  --snd-text-color: #ccc; 
  --main-color: #00abf0; 
  --snd-main-color: rgba(0, 0, 0, 0.2);
  --thd-main-color: rgba(0, 0, 0, 0.4); 
  --fr-main-color: rgba(0, 0, 0, .2); 
  --fv-main-color: rgba(0, 0, 0, 2); 
  --primary-color: #edf2fc; 
  --secondary-color: #212121;  
}

.light-theme {
  --bg-color: #f0f8f0; /* Hijau pastel sangat terang, hampir putih */
  --snd-bf-color: #e1f0e1; /* Hijau lembut seperti daun muda */
  --thd-bf-color: #c8e6c9; /* Hijau mint segar */
  --fr-bf-color: #a5d6a7; /* Hijau zamrud yang lebih jelas */
  --text-color: #264d2c; /* Hijau tua mendekati hitam untuk teks utama */
  --snd-text-color: #3e704c; /* Hijau lebih terang untuk teks sekunder */
  --main-color: #009688; /* Hijau toska, sejuk dan modern */
  --snd-main-color: rgba(0, 128, 64, 0.2); /* Hijau transparan lembut */
  --thd-main-color: rgba(0, 100, 50, 0.4); /* Hijau lebih pekat untuk efek bayangan */
  --fr-main-color: rgba(0, 150, 80, 0.3); /* Hijau segar untuk efek tambahan */
  --fv-main-color: rgba(0, 128, 0, 0.5); /* Hijau klasik dengan transparansi */
  --primary-color: #ffffff; /* Putih bersih untuk elemen utama */
  --secondary-color: #00732d; /* Hijau zamrud tua khas Ramadhan */
}

html {
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #081b29;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.splash-logo {
  width: 150px;
  height: 150px;
  border-radius: 5px;
  opacity: 0;
  animation: 
    scaleIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards,
    pulse 0.5s ease-in-out 1s forwards;
}

@keyframes scaleIn {
  0% {
      transform: scale(0.8);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.05);
  }
  100% {
      transform: scale(1);
  }
}

@keyframes fadeOut {
  0% {
      opacity: 1;
  }
  100% {
      opacity: 0;
      visibility: hidden;
  }
}

@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  position: relative;
  font-size: 25px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  animation: showRight 1s ease forwards;
  animation-delay: .4s;
}

.navbar a {
  font-size: 18px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  transition: .3s;
  flex: 1;
  text-align: center;
}

.navbar a:hover, 
.navbar a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}

#icon {
  width: 30px;
  margin-left: 20px;
  cursor: pointer;
  vertical-align: middle; 
}

.home {
  height: 100vh;
  justify-content: space-between;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.home-content {
  max-width: 600px;
}

.home-content h1 {
  position: relative;
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
}

.home-content h1::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  animation: showRight 1s ease forwards;
  animation-delay: 2s;
}

.home-content h3 {
  position: relative;
  font-size: 25px;
  font-weight: 700;
  color: var(--main-color);
}

.home-content h3::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  animation: showRight 1s ease forwards;
  animation-delay: 1.9s;
}

.home-content p {
  position: relative;
  font-size: 16px;
  margin: 20px 0 40px;
  text-align: justify;
}

.home-content p::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  animation: showRight 1s ease forwards;
  animation-delay: 2s;
}

.home-content .btn-box {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 345px;
  height: 50px;
}

.home-content .btn-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  animation: showRight 1s ease forwards;
  animation-delay: 1.9s;
  z-index: 2;
}

.btn-box a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 100%;
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 8px;
  font-size: 19px;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  z-index: 1;
  overflow: hidden;
  transition: .5s;
}

.btn-box a:hover {
  color: var(--bg-color);
}

.btn-box a:nth-child(2) {
  background: var(--main-color);
  color: var(--bg-color);
}

.btn-box a:nth-child(2):hover {
  color: var(--main-color);
}

.btn-box a:nth-child(2)::before {
  background: var(--bg-color);
}

.btn-box a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--main-color);
  z-index: -1;
  transition: .5s;
}

.btn-box a:hover::before {
  width: 100%;
}

.social-media { 
  position:absolute;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.social-media::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  animation: showRight 1s ease forwards;
  animation-delay: 2.5s;
  z-index: 2;
}

.social-media a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  font-size: 20px;
  color: var(--main-color);
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
  transition: .5s;
}

.social-media a:hover {
  color: var(--bg-color);
}

.social-media a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--main-color);
  z-index: -1;
  transition: .5s;
}

.social-media a:hover::before {
  width: 100%;
}

.home-img img {
  width: 20vw;
  animation: floatImage 4s ease-in-out infinite;
  border-radius: 10px;
}

/* KEYSFRAMES ANIMATION */
@keyframes showRight {
  100% {
    width: 0;
  }
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.4rem);
  }
  100% {
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: var(--bg-color);
  letter-spacing: .1rem;
  font-weight: 600;
  transition: .5s ease;
  margin-top: 130px;
}

.btn:hover {
  box-shadow: none;
}

/* About Section */
.about {
  height: 100vh;
  padding: 100px 10%;
  background-color: var(--snd-bf-color);
  color: var(--text-color);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  position: relative;
  color: var(--main-color);
}

.section-title::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 4px;
  background: var(--main-color);
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-radius: 2px;
}

.about-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.about-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--main-color);
  box-shadow: 0 10px 30px var(--snd-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px var(--thd-main-color); 
}

.about-text {
  flex: 2;
  max-width: 600px;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-color);
  text-align: justify;
  padding: 0 20px;
  animation: fadeInUp 0.5s ease-in-out forwards;
  opacity: 0;
}

.about-text p {
  margin-bottom: 20px;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services Section */
.services {
  height: 100vh;
  padding: 100px 10%;
  background-color: var(--thd-bf-color);
}

.services h2 {
  padding-bottom: 50px;
}

.service-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.service-box {
  background: var(--bg-color);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  flex: 1;
}

.service-box i {
  font-size: 50px;
  color: var(--main-color);
}

.service-box h3 {
  margin: 10px 0;
  color: var(--text-color);
}

.service-box p {
  color: var(--snd-text-color);
  margin: 1rem 0 3rem;
}

.service-container .service-box { 
  padding: 3rem 2rem 4rem; 
  border: .2rem solid var(--bg-color);
}

.service-container .service-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

/* Portfolio Section */
.portfolio {
  padding: 100px 10%;
  background-color: var(--fr-bf-color);
  color: var(--text-color);
}

.portfolio h2 {
  padding-bottom: 20px;
}

.portfolio-item-1 {
  position: relative; /* Kunci agar .portfolio-info bisa diposisikan di dalamnya */
  width: 350px;
  height: 250px;
  overflow: hidden; /* PENTING! Menyembunyikan .portfolio-info yang keluar dari area */
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* Gambar di dalam wadah */
.portfolio-item-1 img {
  width: 100%;
  height: 100%;
}

/* 2. LAPISAN INFORMASI (KODE ANDA) */
.portfolio-info-1 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  box-sizing: border-box; /* Agar padding tidak menambah lebar */
  background: var(--bg-color); /* Latar belakang semi-transparan */
  /* color: var(--main-color); */

  /* 3. INI BAGIAN UTAMANYA: SEMBUNYI & ANIMASI */
  opacity: 0; /* Awalnya transparan total */
  transform: translateY(100%); /* Awalnya digeser ke bawah sejauh tinggi elemen itu sendiri */
  transition: all 0.4s ease-in-out; /* Animasi yang mulus untuk semua properti */
}

/* 4. EFEK KETIKA MOUSE MENYENTUH WADAH */
.portfolio-item-1:hover .portfolio-info-1 {
    opacity: 1; /* Munculkan kembali */
    transform: translateY(0); /* Kembalikan ke posisi semula (tidak digeser) */
}

/* Styling untuk teks di dalam info */
.portfolio-info-1 p {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    margin-bottom: 0;
}

/* Project Section */
.project-widget-carousel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  height: 420px;
  overflow: visible;
}

.project-track {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-card {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 350px;
  height: 440px;
  margin: auto;
  background: var(--bg-color, #fff);
  color: var(--text-color, #222);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 1.5px 6px rgba(0,0,0,0.08);
  text-align: center;
  opacity: 0;
  z-index: 0;
  transform: scale(0.8) translateX(0) rotateY(0deg);
  transition: 
    transform 0.7s cubic-bezier(.77,0,.18,1),
    opacity 0.5s,
    z-index 0s;
  pointer-events: none;
  backface-visibility: hidden;
}

.project-card img {
  width: 90%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  margin: 20px 0 10px 0;
}

.project-info {
  padding: 0 10px;
}

.project-card h3 {
  color: var(--main-color, #007bff);
  padding-top: 10px;
  margin-bottom: 8px;
}

.project-card p {
  color: var(--snd-text-color, #555);
  font-size: 1em;
}

/* Card aktif di tengah */
.project-card.active {
  opacity: 1;
  z-index: 3;
  transform: scale(1) translateX(0) rotateY(0deg);
  pointer-events: auto;
}

/* Card sebelum aktif (kiri, efek buka halaman ke kiri) */
.project-card.left {
  opacity: 0.8;
  z-index: 2;
  transform: scale(0.92) translateX(-60%) rotateY(25deg);
}

/* Card sesudah aktif (kanan, efek buka halaman ke kanan) */
.project-card.right {
  opacity: 0.8;
  z-index: 2;
  transform: scale(0.92) translateX(60%) rotateY(-25deg);
}

/* Card jauh di belakang */
.project-card.far {
  opacity: 0;
  z-index: 1;
  transform: scale(0.8) translateX(0) rotateY(0deg);
}

/* Tombol carousel */
.project-widget-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--main-color, #007bff);
  color: var(--bg-color, #fff);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--snd-main-color, #bbb);
  transition: background 0.3s;
}
.project-widget-carousel .carousel-btn.left { left: -60px; }
.project-widget-carousel .carousel-btn.right { right: -60px; }

/* Certification Section */
.certificates {
  height: auto;
  padding: 100px 10%;
  background-color: var(--thd-bf-color);
}

.certificates h2 {
  padding-bottom: 50px;
}

.certificate-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 40px;
}

.certificate-track {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease;
  gap: 30px;
}

.certificate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-color);
  color: var(--text-color);
  border-radius: 16px;
  box-shadow: 0 4px 24px var(--snd-main-color);
  padding: 10px 100px;
  margin: 0 5px;
  text-align: center;
  flex-shrink: 0;
  transition: box-shadow 0.3s;
}

.certificate-card:hover {
  box-shadow: 0 8px 32px var(--main-color);
  transform: translateY(-8px) scale(1.03);
}

.certificate-card img {
  width: auto;
  height: 400px;
  border-radius: 10px;
}

.certificate-card h3 {
  /* margin: 10px 0 5px; */
  color: var(--main-color);
  font-size: 1.2em;
}

.certificate-card p {
  font-size: 0.95em;
  color: var(--snd-text-color);
  padding-bottom: 10px;
}

/* Tombol di dalam kartu */
.certificate-card .carousel-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--main-color);
  color: var(--bg-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s;
  box-shadow: 0 2px 8px var(--snd-main-color);
}

.certificate-card .carousel-btn svg {
  display: block;
  margin: 0;
}

/* Tombol kiri di kiri kartu */
.certificate-card .carousel-btn.left {
  left: 10px;
}

/* Tombol kanan di kanan kartu */
.certificate-card .carousel-btn.right {
  right: 10px;
}

/* Sembunyikan tombol di luar kartu */
.certificate-carousel > .carousel-btn {
  display: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bbb;
  display: inline-block;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: var(--main-color);
  transform: scale(1.2);
}

/* Contact Section */
.contact {
  height: 100vh;
  padding: 100px 10%;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: var(--fr-bf-color);
  border: none;
  border-radius: 5px;
  color: var(--text-color);
  font-size: 16px;
  resize: none;
}

button {
  background-color: var(--main-color);
  color: var(--bg-color);
  padding: 15px;
  border: none;
  border-radius: 5px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: var(--main-color);
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
}

.footer-iconTop {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .8rem 1rem;
  background: var(--bg-color);
  border-radius: .8rem;
  transition: .5s ease; 
}

.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--main-color);
}

/* Responsive */
/* Ukuran layar besar */
@media (max-width: 1200px) {
  html {
    font-size: 90%;
  }

  .home {
    flex-direction: column;
    text-align: center;
    margin-top: 100px; 
  }

  .home-content p {
    font-size: 1rem;
  }

  .home-content h1 {
    font-size: 1.8rem;
  }

  .home-content h3 {
    font-size: 1.2rem;
  }

  .home-img img {
    width: 60vw;
  }

  .service-container {
    flex-direction: column;
  }

  .portfolio {
    height: 100%;
  }

  .portfolio h2 {
    padding-bottom: 300px;
  }

  .portfolio-item {
    position: relative;
  }

  .portfolio-item img {
    border-radius: 10px;
    padding-bottom: 20px;
  }

  .portfolio-item .portfolio-info {
    position: absolute;
    width: 100%; 
    height: 14vh;
    background: var(--bg-color);
    padding: 10px;
    border-radius: 10px;
  }

  .certificates h2 {
    padding-bottom: 300px; 
  }

  .contact-container {
    padding-top: 100px;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%; 
  }

  section {
    padding: 10rem 3%;
  }

  .services {
    padding: 7rem;
  }

  .portfolio {
    padding-bottom: 7rem;
  }

  .contact {
    min-height: auto;
  }

  .foooter {
    padding: 2rem 3%;
  }
}

@media (max-width: 990px) {
  .project-widget-carousel {
    max-width: 98vw;
    height: 340px;
    padding: 0 10px;
  }
  .project-track {
    width: 98vw;
    height: 320px;
  }
  .project-card {
    width: 90vw;
    min-width: 0;
    max-width: 98vw;
    height: 300px;
    padding: 18px 8px;
  }
  .project-card img {
    height: 110px;
    max-width: 90vw;
  }
  .project-widget-carousel .carousel-btn.left { left: -20px; }
  .project-widget-carousel .carousel-btn.right { right: -20px; }
  .project-widget-carousel .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1em;
  }
  .portfolio h2 {
    padding-bottom: 300px;
  }

  .project-widget-carousel {
    max-width: 100vw;
    height: 180px;
    padding-right: 180px;
    padding-left: 180px;
  }

  .project-track {
    width: 100vw;
    height: 160px;
  }
  .project-card {
    width: auto;
    height: 500px;
    border-radius: 10px;
  }
  .project-card img {
    height: auto;
    width: 90%;
  }
  .project-info {
    padding: 0 2px;
  }
  .project-card h3 {
    font-size: 1.2em;
  }
  #project-btn-right {
    margin-right: -30px;
  }
  #project-btn-left {
    margin-left: -30px;
  }
}

@media (max-width: 900px) {
  .certificates {
    padding: 60px 3%;
  }
  .certificate-carousel {
    max-width: 100vw;
    padding-bottom: 20px;
  }
  .certificate-card {
    padding: 10px 10px;
    min-width: 0;
    max-width: 95vw;
  }
  .certificate-card img {
    height: 220px;
    max-width: 90vw;
  }
  .certificate-card .carousel-btn.left {
    left: -60px;
  }
  .certificate-card .carousel-btn.right {
    right: -60px;
  }
}

/* Tablet: 768px ke bawah */
@media (max-width: 768px) {
  .header {
    padding: 15px 5%;
  }

  #menu-icon {
    display: block;
  }

  #icon {
    margin-left: 350px;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%; 
    background: var(--bg-color);
    border-top: .1rem solid var(--fv-main-color);
    box-shadow: 0 .5rem 1rem var(--fr-main-color);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  .home {
    margin-top: 0;
    flex-direction: column;
    text-align: center;
    height: 115vh;
  }

  .home-content h1 {
    margin-top: 8rem;
    font-size: 2.2rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  .home-img img {
    width: 50vw;
    margin-top: 0;
  }

  .social-media {
    margin-right: 50px;
  }

  .about {
    height: 100vh;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-img img {
    width: 120px;
    height: 120px;
  }
  
  .services {
    height: 120vh;
  }

  .service-container {
    flex-direction: column;
    align-items: center;
  }

  .service-box {
    width: 100%;
  }

  .portfolio {
    height: 100%;
  }

  .portfolio h2 {
    padding-bottom: 300px;
  }

  .project-widget-carousel {
    max-width: 100vw;
    height: 180px;
    padding-right: 130px;
    padding-left: 130px;
  }

  .project-track {
    width: 100vw;
    height: 160px;
  }
  .project-card {
    width: auto;
    height: 450px;
    border-radius: 10px;
  }
  .project-card img {
    height: auto;
    width: 90%;
  }
  .project-info {
    padding: 0 2px;
  }
  .project-card h3 {
    font-size: 1.2em;
  }
  #project-btn-right {
    margin-right: 20px;
  }
  #project-btn-left {
    margin-left: 20px;
  }
}

@media (max-width: 617px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }

  .home-img img {
    width: 80vw;
    margin-top: 8rem;
  }

  .about-img img {
    width: 100vh;
    margin-top: 4rem;
  }
}

@media (max-width: 600px) {
  .project-track { width: 98vw; }
  .project-card { width: 90vw; min-width: 0; }
  .project-widget-carousel .carousel-btn.left { left: -20px; }
  .project-widget-carousel .carousel-btn.right { right: -20px; }
  .portfolio {
    padding: 40px 2vw;
  }
  .project-widget-carousel {
    height: 260px;
    padding: 0 2vw;
  }
  .project-track {
    height: 220px;
  }
  .project-card {
    width: 96vw;
    max-width: 99vw;
    height: 200px;
    padding: 10px 2vw;
    border-radius: 10px;
  }
  .project-card img {
    height: 70px;
    border-radius: 7px;
  }
  .project-card h3 {
    font-size: 1em;
  }
  .project-card p {
    font-size: 0.9em;
  }
  .project-widget-carousel .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 1em;
  }

  .certificates h2 {
    font-size: 1.8em;
    padding-bottom: 50px;
    padding-top: 150px;
    text-align: center;
  }
  .certificate-card {
    padding: 8px 2vw;
    min-width: 0;
    max-width: 98vw;
    border-radius: 10px;
  }
  .certificate-card img {
    height: 140px;
    max-width: 96vw;
    border-radius: 8px;
  }
  .certificate-card h3 {
    font-size: 1em;
  }
  .certificate-card p {
    font-size: 0.9em;
  }
  .certificate-card .carousel-btn {
    width: 32px;
    height: 32px;
  }
  .certificate-card .carousel-btn.left {
    left: -60px;
  }
  .certificate-card .carousel-btn.right {
    right: -60px;
  }
  .certificate-card .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
  .carousel-dots {
    gap: 6px;
    margin-top: 10px;
  }
  .carousel-dots .dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width:540px) {
  .home {
      height: 200%;
  }

  .about {
    height: 110vh;
  }

  .about-img img {
    width: 100px;
    height: 100px;
  }

  .portfolio-info {
    position: absolute;
    width: 100%; 
    height: 24vh;
    padding: 10px;
    border-radius: 10px;
  }

  .services {
    height: 180vh;
  }

  .portfolio h2 {
    padding-top: 50px;
    padding-bottom: 150px;
  }

  .project-widget-carousel {
    max-width: 100vw;
    height: 180px;
    padding-right: 130px;
    padding-left: 130px;
  }

  .project-track {
    width: 100vw;
    height: 160px;
  }
  .project-card {
    width: auto;
    height: 450px;
    border-radius: 10px;
  }
  .project-card img {
    height: auto;
    width: 90%;
  }
  .project-info {
    padding: 0 2px;
  }
  .project-card h3 {
    font-size: 1.2em;
  }
  #project-btn-right {
    margin-right: 20px;
  }
  #project-btn-left {
    margin-left: 20px;
  }
} 

/* Mobile: 480px ke bawah */
@media (max-width: 480px) {
  html {
    font-size: 80%;
  }

  .header {
    padding: 10px 5%;
  }

  #icon {
    margin-left: 185px;
  }

  .home {
    flex-direction: column;
    text-align: center;
    height: 115vh;
  }

  .home-content h1 {
    font-size: 1.8rem;
  }

  .home-content h3 {
    font-size: 1.2rem;
  }

  .home-content p {
    font-size: 0.9rem;
  }

  .home-img img {
    width: 60vw;
  }

  .about-img img {
    width: 100px;
    height: 100px;
  }

  .portfolio-item {
    position: relative;
  }

  .portfolio-item .portfolio-info {
    position: absolute;
    width: 100%; 
    height: 12vh; 
    border-radius: 10px;
  }

  .services {
    height: 140vh;
  }

  .service-box {
    padding: 1.5rem;
  }

  .contact-container {
    width: 100%;
    padding: 10px;
  }

  .form-group input, 
  .form-group textarea {
    font-size: 14px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-iconTop {
    margin-top: 10px;
  }

  .portfolio h2 {
    padding-top: 150px;
    text-align: center; /* Tengahkan judul */
    padding-bottom: 100px;
  }

  .project-widget-carousel {
    max-width: 100vw;
    height: 180px;
    padding-right: 100px;
    padding-left: 100px;
    /* box-sizing: border-box; */
  }

  .project-track {
    width: 100vw;
    height: 160px;
  }
  .project-card {
    width: auto;
    height: 300px;
    border-radius: 10px;
  }
  .project-card img {
    height: auto;
    width: 90%;
  }
  .project-info {
    padding: 0 2px;
  }
  .project-card h3 {
    font-size: 1.2em;
  }
  #project-btn-right {
    margin-right: 30px;
  }
  #project-btn-left {
    margin-left: 30px;
  }
}

@media (max-width: 430px) {
  #icon {
    margin-left: 190px;
  }
}

@media (max-width: 412px) {
  #icon {
    margin-left: 180px;
  }
}

@media (max-width: 390px) {
  #icon {
    margin-left: 175px;
  }
  .services {
    height: 160vh;
  }
}

@media (max-width: 375px) {
  .header {
    padding: 15px 5%;
    padding-right: 15px;
  }

  html {
    font-size: 80%;
  }

  .home {
    flex-direction: column;
    text-align: center;
    height: 140vh;
  }

  #icon {
    margin-left: 165px;
  }

  .about {
    height: 120vh;
  }

  .services {
    height: 210vh;
  }

  .portfolio {
    height: auto; /* Ubah ke auto agar tinggi menyesuaikan konten */
    padding: 50px 10%; /* Kurangi padding agar lebih responsif */
  }

  .portfolio h2 {
    padding-top: 100px;
    text-align: center; /* Tengahkan judul */
    padding-bottom: 100px;
  }

  .portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsif */
    gap: 30px; /* Jarak antar item */
  }

  .portfolio-item {
    display: flex;
    flex-direction: column; /* Gambar di atas, info di bawah */
    align-items: center; /* Pusatkan konten secara horizontal */
    text-align: center; /* Teks rata tengah */
  }
  
  .portfolio-item img {
    width: 100%; /* Gambar mengisi lebar penuh */
    height: auto; /* Tinggi otomatis sesuai proporsi */
    border-radius: 10px;
  }

  .portfolio-info {
    margin-top: 15px; /* Jarak antara gambar dan info */
    padding: 10px;
    border-radius: 10px;
    width: 100%; /* Info mengisi lebar penuh */
  }

  .portfolio-item .portfolio-info {
    position: absolute;
    width: 100%; 
    height: auto;
    padding: 10px;
    border-radius: 10px;
  }

  .project-widget-carousel {
    max-width: 100vw;
    height: 180px;
    padding-right: 70px;
    padding-left: 70px;
    box-sizing: border-box;
  }

  .project-track {
    width: 100vw;
    height: 160px;
  }
  .project-card {
    width: auto;
    height: 300px;
    border-radius: 10px;
  }
  .project-card img {
    height: auto;
    width: 90%;
  }
  .project-info {
    padding: 0 2px;
  }
  .project-card h3 {
    font-size: 1.2em;
  }
}
