/* ===== THEME VARIABLES & TOGGLE BUTTON ===== */
:root {
  /* --- Light Mode Colors (Default) --- */
  --bg-primary: #ededed;
  --bg-secondary: #d9d9d9;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f0;
  --bg-form: #e9e9e9;
  --text-primary: #333333;
  --text-secondary: black;
  --heading-color: #000000;
  --accent-color: #f20000;
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --modal-bg: #ffffff;
  --modal-text: #333333;
  --primary-accent-color: #f20000;
  --profession-text-color: #f20000;
  --color-cat-web-development: #007bff; /* Biru */
  --color-cat-app-development: #28a745; /* Hijau */
  --color-cat-game-development: #6f42c1; /* Ungu */
  --color-cat-graphic-design: #fd7e14; /* Oranye */
}

body.dark-mode {
  /* --- Dark Mode Colors --- */
  --bg-primary: #141414;
  --bg-secondary: #111111;
  --bg-card: #303030;
  --bg-card-hover: #444444;
  --bg-form: #303030;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --heading-color: #ffffff;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --modal-bg: #303030;
  --modal-text: #ffffff;
  --accent-color: orange;
  --profession-text-color: orange;
}

/* --- Theme Transition (Ringan, tidak membebani seluruh DOM) --- */
body,
section,
footer {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

body {
  overflow-x: hidden;
}

/* --- Toggle Button Style --- */
.theme-toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle-btn:hover {
  opacity: 0.8;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 70px;
}

/* ===== UTILITY CLASSES ===== */
.extra-space-l {
  height: 2rem;
}

.devider {
  width: 60px;
  height: 4px;
  background-color: #f20000;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
#main-navbar {
  background-color: maroon;
  padding: 0.75rem 4rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-text {
  color: white;
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 1;
  display: inline-block;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding-left: 20px;
  align-items: center;
}

.navbar-menu li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  position: relative;
  padding: 0.25rem 0;
  transition: all 0.3s ease;
  font-weight: bold;
}

.navbar-menu li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.navbar-menu li a:hover::after {
  width: 100%;
}

.navbar-menu .has-dropdown > a:hover::after {
  width: 0;
}

/* ===== BUTTONS ===== */
.btn-blank {
  padding: 0.4rem 0.5rem;
  background-color: transparent; /* Dibuat transparan agar lebih bersih */
  color: var(
    --text-primary
  ); /* PERBAIKAN: Menggunakan variabel untuk teks & ikon */
  border: 2px solid var(--text-primary); /* PERBAIKAN: Menggunakan variabel untuk border */
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-blank:hover {
  background-color: var(--text-primary); /* Efek hover kebalikan */
  color: var(--bg-primary); /* Efek hover kebalikan */
}

.btn-square {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #f20000;
  color: #fff;
  width: 120px;
  height: 120px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
  border: 2px solid #fff;
  outline: 2px double #fff;
  outline-offset: -10px;
  border-radius: 10px;
  padding: 65px 0px;
}

.btn-square i {
  font-size: 28px;
}

.btn-square span {
  margin-top: 8px;
}

.btn-square:hover {
  background-color: #ff2929;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* ===== INTRO SECTION (REVISED) ===== */
#intro-section {
  background-image: url("../../img/slider-bgw.webp"); /* <-- PERBAIKAN: Latar belakang untuk mode terang */
  background-size: cover;
  background-position: center;
  height: 110vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

body.dark-mode #intro-section {
  background-image: url("../../img/slider-bg.webp");
}

#intro-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px; /* Sedikit lebih lebar */
  margin: 0 auto;
  gap: 2rem;
}

.intro-content {
  position: relative;
  z-index: 2;
  color: var(--text-primary);
  flex: 1.2; /* Beri lebih banyak ruang untuk konten teks */
  display: flex;
  flex-direction: column;
  align-items: center; /* Kunci untuk menengahkan semua item */
  text-align: center;
}

.intro-content h1 {
  font-size: 45px;
  font-weight: bold;
  margin-bottom: 0;
  color: var(--heading-color);
}

.intro-content h1 span {
  color: var(--profession-text-color); /* <-- PERBAIKAN */
}

/* BARU: Wrapper untuk profesi agar posisinya pas */
.profession-wrapper {
  height: 30px; /* Beri ruang agar tidak loncat saat teks berganti */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 20px;
}

.intro-social-icons {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.intro-social-icons a {
  color: var(--text-primary);
  font-size: 24px;
  transition: color 0.3s ease;
}

.intro-social-icons a:hover {
  color: #ff2929;
}

/* BARU: Wrapper untuk semua tombol */
.intro-buttons-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem; /* Jarak antar baris tombol */
  margin-bottom: 2.5rem; /* Jarak ke bagian stats */
}

/* BARU: Aturan untuk setiap baris tombol */
.intro-buttons-row {
  display: flex;
  flex-wrap: wrap; /* Agar responsif di layar kecil */
  justify-content: center;
  gap: 1rem;
}

.intro-photo {
  flex: 1;
  text-align: center;
  z-index: 2;
}

.intro-photo img {
  width: 60%; /* Sedikit lebih kecil agar proporsional */
  height: auto;
}

/* BARU: CSS untuk bagian statistik */
.intro-stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 1rem;
  background: rgba(
    255,
    255,
    255,
    0.3
  ); /* Latar lebih terang untuk light mode */
  border-radius: 10px;
  border-top: 2px solid rgba(242, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

body.dark-mode .intro-stats-container {
  background: rgba(0, 0, 0, 0.3);
}

.counter::after,
.stat-number::after {
  content: "+";
  font-weight: bold;
  font-size: 0.8em; /* Sedikit lebih kecil dari angkanya */
  position: relative;
  top: -0.2em; /* Sedikit naik agar sejajar */
  margin-left: 2px;
}

.stat-item {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

/* Garis pemisah antar item statistik */
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--profession-text-color);
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.stat-icon {
  font-size: 25px; /* Ukuran ikon */
  color: var(--profession-text-color); /* Warna ikon sesuai tema */
  margin-bottom: 10px; /* Jarak ke angka di bawahnya */
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) translateY(-3px); /* Sedikit membesar dan naik saat hover */
}

.stats-container {
  display: flex;
  flex-direction: column; /* Mengatur tumpukan vertikal: teks di atas, grafik di bawah */
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

/* Kolom Grafik */
.stats-graphs {
  width: 100%;
  max-width: 900px; /* Batasi lebar maksimum grafik */
}

.graph-item {
  text-align: left;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid rgba(242, 0, 0, 0.5);
  padding: 25px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.graph-item h4 {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  text-align: center;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 300px; /* Tinggi disesuaikan untuk bar chart */
}

.stats-text {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 100px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid rgba(242, 0, 0, 0.5);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

body.dark-mode .stats-text,
body.dark-mode .graph-item {
  background-color: var(--bg-card);
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid rgba(242, 0, 0, 0.5);
}

.fact {
  text-align: center;
}
.fact i {
  font-size: 2.5rem;
  color: var(--profession-text-color);
  margin-bottom: 10px;
}
.counter {
  font-size: 2.8rem;
  font-weight: bold;
  display: block;
  color: var(--profession-text-color);
}
.lead {
  margin-top: 5px;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ===== ABOUT SECTION ===== */
#about-section {
  background-color: var(--bg-primary);
  padding: 4rem 1rem;
  text-align: center;
}

.page-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

#about-section img {
  border: 5px solid #f20000;
  max-width: 200px;
  height: 250px;
  border-radius: 100px;
  margin-top: 50px;
}

.flip-photo {
  border: 5px solid black;
  max-width: 200px;
  height: 250px;
  margin-top: 50px;
  border-radius: 100px;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
}

.flip-photo.flip {
  transform: rotateY(180deg);
}

#about-section h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--heading-color);
}

#about-section p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Rotate Box Styles */
.rotate-box-1-wrapper .row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 50px;
  margin: 40px 0px;
}

.aos-card-wrap {
  display: flex;
}

.rotate-box-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 25px 20px;
  width: 250px;
  min-height: 250px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.rotate-box-1:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.rotate-box-1 .rotate-box-icon,
.rotate-box-2 .rotate-box-icon {
  font-size: 50px;
  color: #f20000;
  margin-bottom: 15px;
}

.rotate-box-1:hover .rotate-box-icon {
  color: #ff2929;
}

.rotate-box-info1 h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.rotate-box-info1 p {
  font-size: 14px;
  color: var(--text-secondary) !important;
  text-align: center;
  line-height: 1.6;
}

/* Tambahkan di bagian CSS */
.skill-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.skill-header h4 {
  margin: 0;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0px 120px;
  position: relative;
  z-index: 10;
  justify-content: center;
}

.skill-item {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--card-shadow);

  flex-direction: column;
  height: 200px;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;

  /* PERBAIKAN: Sembunyikan item secara default untuk fix bug refresh */
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.skill-item.hide {
  opacity: 0;
  transform: translateY(20px);
  display: none;
}

.skill-item:hover {
  transform: translateY(-5px);
}

/* Skill Icon Styles */
.skills-grid .skill-item .skill-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  border: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  height: 50px !important;
  margin-top: 0 !important;
}

.skills-grid .skill-item:hover .skill-icon {
  filter: none;
  transform: scale(1.2);
  animation: pulse 1s ease infinite alternate;
}

.skill-item:hover .skill-icon {
  filter: none;
  transform: scale(1.2);
  animation: pulse 1s ease infinite alternate;
}

.skill-item h4 {
  margin-bottom: 14px;
  color: var(--heading-color);
  font-weight: bold;
}

/* Skills Filter Buttons */
.skills-filter-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 10px; /* Menyesuaikan margin atas & bawah */
}

.skills-filter-buttons {
  display: inline-flex;
  background-color: var(--bg-card);
  border-radius: 30px;
  padding: 5px;
  border: 2px solid #f20000;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.skill-filter-btn {
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: bold;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
  outline: none;
}

.skill-filter-btn.active {
  background-color: #f20000;
  color: white;
}

.skill-filter-btn:not(.active):hover {
  background-color: rgba(242, 0, 0, 0.3);
  color: white;
}

/* Skills Slider Styles */
.skills-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  justify-content: center;
}

/* Perbaikan untuk tombol navigasi skills */
.skills-slider-container {
  position: relative; /* KUNCI #1: Wadah harus relatif */
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.skills-slider-nav {
  position: absolute; /* KUNCI #2: Tombol harus absolut */
  top: 45%; /* KUNCI #3: Posisikan 50% dari atas */
  transform: translateY(
    -50%
  ); /* KUNCI #4: Tarik ke atas 50% dari tingginya sendiri */
  background: rgba(242, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.skills-slider-nav:hover {
  background: #f20000;
  /* Penting: Pertahankan transform saat hover agar tidak loncat */
  transform: translateY(-50%) scale(1.1);
}

.skills-slider-prev {
  left: 50px;
}

.skills-slider-next {
  right: 50px;
}

/* ===== Indikator Titik untuk Slider Skill ===== */
.skills-dots-container {
  text-align: center;
  padding-top: 20px; /* Jarak dari grid skill */
}

.skill-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc; /* Warna titik non-aktif */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.skill-dot:hover {
  background-color: #888;
}

.skill-dot.active {
  background-color: #f20000; /* Warna titik aktif (merah) */
}

.capsule-bars {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.capsule {
  width: 10px;
  height: 30px;
  border-radius: 3px;
  background-color: #ccc;
  opacity: 0.4;
  transition: opacity 0.3s ease-in;
}

.capsule.filled {
  animation:
    fillPop 0.3s ease-in forwards,
    shine 1s ease-in-out forwards;
  animation-fill-mode: forwards;
  background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  background-size: 200% 100%;
  background-position: -100% 0;
}

.skill-item:hover .capsule.filled {
  background-color: #f20000 !important;
  background-image: none !important;
  animation: none !important;
  opacity: 1 !important;
}

.capsule.filled {
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

@keyframes fillPop {
  0% {
    transform: scale(0.7);
    opacity: 0.4;
    background-color: #ccc;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    background-color: #f20000;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    background-color: #f20000;
  }
}

@keyframes shine {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* ===== CTA SECTION ===== */
#cta-section {
  background-color: var(--bg-card);
}

.cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
  padding: 50px 150px;
}

.cta-text {
  flex: 1;
  min-width: 280px;
}

.cta-text h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.cta-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 20px;
}

.cta-btn-columns {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  min-width: 280px;
}

.download-icon {
  font-size: 14px; /* Ukuran lebih kecil dari ikon utama */
  margin-top: 8px; /* Jarak dari teks di atasnya */
  color: #fff;
  opacity: 0.7; /* Sedikit transparan */
  transition: opacity 0.3s ease;
}

.btn-square:hover .download-icon {
  opacity: 1; /* Tampil jelas saat di-hover */
}

/* ===== SERVICES SECTION ===== */
#services-section {
  background-color: var(--bg-primary);
  padding: 60px 0;
  text-align: center;
}

#services-section .page-header h2 {
  font-size: 32px;
  font-weight: bold;
}

.rotate-box-2-wrapper .row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 50px;
}

.rotate-box-2-wrapper .col-md-3 {
  display: flex;
}

.rotate-box-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 25px 20px;
  width: 250px;
  min-height: 350px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.rotate-box-2:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.rotate-box-info h4 {
  font-size: 18px;
  margin-bottom: 12px;
}

.rotate-box-info p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: left;
}

.service-description {
  text-align: left;
  margin-top: 15px;
}

.service-description p {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.4;
}

.service-description i {
  margin-right: 8px;
  font-size: 16px;
}

/* ===== EDUCATION & EXPERIENCE SECTIONS ===== */
#education-section,
#experience-section {
  padding: 30px;
  background-color: var(--bg-primary);
}

.edu-exp-wrap {
  flex: 0 1 350px;
  display: flex;
}

.education-item,
.experience-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
  width: 100%;
  overflow-wrap: break-word;
}

.education-item:hover,
.experience-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.experience-location,
.education-location {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Experience Tech Icons ===== */
.experience-tech-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  justify-content: center; /* BARIS BARU */
}

.tech-icon-img {
  height: 20px; /* Ukuran tinggi ikon */
  width: auto; /* Lebar otomatis menyesuaikan */
  transition: transform 0.2s ease-in-out;
}

.tech-icon-img:hover {
  transform: scale(1.15); /* Sedikit membesar saat disentuh mouse */
}

.experience-location i {
  margin-right: 5px; /* Jarak antara ikon dan teks */
}

.education-location i {
  margin-right: 5px; /* Jarak antara ikon dan teks */
  margin-bottom: 10px;
}

#education-section h2,
#experience-section h2 {
  text-align: center;
  margin-bottom: 10px;
}

#education-section .row,
#experience-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* KUNCI: Menengahkan semua item */
  gap: 50px;
  align-items: stretch;
}

.education-item h3,
.experience-item h3 {
  margin-top: 15px;
  margin-bottom: 5px;
  color: var(--heading-color);
  line-height: 1.5;
}

.education-item p,
.experience-item p {
  margin: 3px 0;
  color: var(--text-secondary);
}

.education-img,
.experience-img {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 10px;
}

/* Education Meta Styles */
.education-meta-container {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.education-meta {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
}

.education-meta-line,
.experience-meta-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 5px 0px;
}

.gpa-meta {
  background-color: #ffd700;
  color: #333;
}

.period-meta {
  background-color: #87cefa;
  color: #333;
}

.major-container {
  display: block;
  width: 100%;
  margin: 5px 0px;
}

.major-meta {
  background-color: #ffa500;
  color: #333;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
}

.education-description {
  background-color: var(--bg-secondary);
  padding: 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  width: 300px;
  margin-top: 15px;
}

/* Experience Meta Styles */
.experience-meta-container {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.experience-meta {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
}

.status-meta {
  background-color: #ffd700;
  color: #333;
}

.workplace-meta {
  background-color: #ffa500;
  color: #333;
}

.position-meta {
  background-color: #90ee90;
  color: #333;
}

.period-container {
  margin-top: 8px;
  display: block;
  width: 100%;
}

.experience-description {
  background-color: var(--bg-secondary);
  padding: 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  width: 300px;
  margin-top: 15px;
}

/* ===== CERTIFICATION SECTION ===== */
#certification-section {
  background-color: var(--bg-primary);
  padding: 20px;
}

#certification-section .devider {
  width: 60px;
  height: 3px;
  background-color: #f20000;
  margin: 15px auto;
  margin-bottom: 20px;
}

#certification-section h2 {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 30px;
}

.certificate-slider {
  position: relative;
  width: 100%;
  /* PERUBAHAN: Slider dibuat lebih lebar untuk 3 item */
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.certificate-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.certificate-item {
  /* PERUBAHAN: Mengatur lebar item untuk 3 per halaman */
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
  text-align: center;
  margin-top: 10px;
}

.certificate-item img {
  width: 100%; /* Gambar mengisi lebar item */
  height: 300px; /* Tinggi gambar dibuat konsisten */
  object-fit: cover; /* Menyesuaikan gambar tanpa distorsi */
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.2s;
}

.certificate-item img:hover {
  transform: scale(1.03);
}

/* BARU: Styling untuk info di bawah gambar */
.certificate-info {
  margin-top: 15px;
  padding: 0 10px;
}

.certificate-title {
  font-weight: bold;
  color: var(--heading-color);
  font-size: 1rem; /* Ukuran font yang pas */
  line-height: 1.4;
  margin: 0;
}

.certificate-date {
  display: block;
  color: var(--text-secondary);
  opacity: 0.8;
  font-size: 0.85rem;
  margin-top: 5px;
  font-style: italic;
}

/* PERUBAHAN: Menargetkan class baru untuk tombol panah */
.certificate-nav-prev,
.certificate-nav-next {
  /* Menggunakan style dari .skills-slider-nav */
  top: 40%;
  z-index: 20;
}

.certificate-nav-prev {
  left: 5px; /* Disesuaikan agar pas */
}
.certificate-nav-next {
  right: 5px; /* Disesuaikan agar pas */
}

.certificate-dots {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.certificate-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.certificate-dots .active {
  background: #f20000;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial {
  position: relative;
  padding: 60px 0;
  background-color: var(--bg-primary); /* <-- MENGGUNAKAN WARNA TEMA */
}

#testimonial-section .row {
  margin: 0px 80px;
  justify-content: center;
}

.testimonial .cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
  border-top: solid #f20000;
}

.testimonial .page-header-wrapper,
.testimonial .container {
  position: relative;
  z-index: 1;
}

.testimonial-item,
.testimonial-text,
.testimonial-author {
  color: var(--text-primary) !important; /* <-- WARNA TEMA UNTUK TEKS */
}

.testimonial .row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: center;
  gap: 20px;
  scrollbar-width: none;
  padding: 10px 0px 20px;
}

.testimonial .row::-webkit-scrollbar {
  display: none;
}

.testimonial-item {
  flex: 0 0 auto;
  width: 350px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  backdrop-filter: none;
  box-shadow: var(--card-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

body.dark-mode .testimonial-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.testimonial-item i {
  color: gold;
  font-size: 18px;
  margin: 0 2px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
  color: var(--text-primary);
  text-align: center;
  font-weight: bold;
}

.testimonial-author {
  font-weight: bold;
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 10px;
  text-align: center;
}

#testimonial-section .page-header h2 {
  color: var(--heading-color); /* <-- WARNA TEMA UNTUK JUDUL */
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

#testimonial-section .subtitle {
  color: var(--text-secondary); /* <-- WARNA TEMA UNTUK SUB-JUDUL */
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  font-weight: bold;
}

#testimonial-section .devider {
  margin-bottom: 20px;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 10px;
}

.testimonial-stars i {
  color: gold;
  font-size: 30px;
}

.testimonial-author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-accent-color);
  margin-bottom: 15px;
}

.testimonial-stars .fa-regular.fa-star {
  color: gold; /* Pastikan bintang kosong tetap berwarna emas */
}

/* =====================================================================
   # CSS BARU: Slider, Filter, dan Navigasi untuk Review
   ===================================================================== */

/* --- Filter Menu --- */
.reviews-filter-menu {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.reviews-filter-menu ul {
  list-style: none;
  padding: 5px;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  background-color: var(--bg-card);
  border-radius: 30px;
  border: 2px solid var(--primary-accent-color);
  box-shadow: var(--card-shadow);
}
.reviews-filter-menu a {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  background-color: transparent;
  font-weight: bold;
  padding: 8px 20px;
  border: none;
  transition: all 0.3s ease;
  border-radius: 20px;
  text-transform: capitalize;
}
.reviews-filter-menu li:not(.active_review_menu) a:hover {
  background-color: rgba(242, 0, 0, 0.3);
  color: white;
}
.reviews-filter-menu .active_review_menu a {
  background-color: var(--primary-accent-color);
  color: white;
}

/* --- Slider Container & Track --- */
.testimonial-slider-container {
  position: relative;
  width: auto; /* Biarkan lebar diatur oleh margin */
  overflow: hidden;
  margin: 0px 80px; /* <-- BARIS INI DIUBAH untuk meniru .row */
  padding: 20px 0px;
  justify-content: center;
}
.testimonial-slider-track {
  display: flex;
  /* PERBAIKAN: Hapus properti yang tidak perlu, biarkan JS & flex item yang mengatur */
  transition: transform 0.5s ease;
  will-change: transform;
  align-items: stretch;
}
.testimonial-slider-item {
  /* PERBAIKAN: Lebar item diatur di sini, bukan di JS */
  flex: 0 0 calc(100% / 3);
  padding: 0 15px;
  box-sizing: border-box;
  display: flex;

  /* BARU: Properti untuk animasi transisi */
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.testimonial-slider-item .testimonial-item {
  height: 100%; /* Pastikan semua item sama tinggi */
  width: 100%;
}

/* --- Slider Navigation (Arrows & Dots) --- */
.testimonial-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(242, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.testimonial-slider-nav:hover {
  background: var(--primary-accent-color);
  transform: translateY(-50%) scale(1.1);
}
.testimonial-slider-prev {
  left: 5px;
}
.testimonial-slider-next {
  right: 5px;
}

.testimonial-dots {
  text-align: center;
}
.testimonial-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.testimonial-dots .testimonial-dot.active {
  background: var(--primary-accent-color);
}

.testimonial-numeric-rating {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-secondary);
  opacity: 0.8; /* Sedikit transparan agar tidak terlalu dominan */
  margin-top: 5px; /* Jarak dari bintang di atasnya */
  margin-bottom: 10px; /* Jarak ke teks review di bawahnya */
}

.reviews_filter_select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 2px solid var(--primary-accent-color);
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
  transition: all 0.3s ease;
}

.reviews-filter-wrapper {
  display: none; /* Sembunyikan di desktop secara default */
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 10px auto;
}

/* --- Ikon Panah untuk Select Dropdown --- */
.reviews-filter-wrapper::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--primary-accent-color);
  pointer-events: none;
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio-section {
  padding: 80px;
  position: relative;
  background-image: url("../../img/testimonial-bgsw.webp"); /* <-- LATAR MODE TERANG */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 3px solid #f20000;
  border-bottom: 3px solid #f20000;
}

body.dark-mode #portfolio-section {
  background-image: url("../../img/testimonial-bgs.webp"); /* <-- Latar mode gelap */
}

#portfolio-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 0;
}

body.dark-mode #portfolio-section::before {
  background: rgba(0, 0, 0, 0.8);
}

#portfolio-section .container {
  position: relative;
  z-index: 1;
}

#portfolio-section .page-header h2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--heading-color);
  text-align: center;
}

#portfolio-section .devider {
  width: 60px;
  height: 3px;
  background-color: #f20000;
  margin: 15px auto;
  margin-bottom: 20px;
}

.portfolio_menu {
  display: flex; /* Menggunakan flexbox untuk penataan */
  justify-content: center; /* Menengahkan kontainer kapsul */
  margin-bottom: 10px; /* Menambah jarak bawah */
}

.portfolio_menu ul,
.certification_menu ul {
  list-style: none;
  padding: 5px;
  margin: 0;
  display: inline-flex; /* Membuat item sejajar dalam satu baris */
  flex-wrap: wrap; /* Izinkan item turun baris jika tidak muat */
  justify-content: center; /* Menengahkan item di dalam kapsul */
  gap: 5px; /* Jarak antar tombol filter */

  /* Gaya "kapsul" dari My Skills */
  background-color: var(--bg-card);
  border-radius: 30px;
  border: 2px solid #f20000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.portfolio_menu ul li {
  margin: 0; /* Hapus margin default dari li */
}

.portfolio_menu ul li a,
.certification_menu ul li a {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  background-color: transparent; /* Tombol transparan secara default */
  font-weight: bold;
  padding: 8px 20px;
  border: none; /* Hapus border default */
  transition: all 0.3s ease;
  border-radius: 20px; /* Tombol di dalam kapsul juga rounded */
  text-transform: capitalize;
}

/* Gaya untuk item yang tidak aktif saat di-hover */
.portfolio_menu ul li:not(.active_prot_menu) a:hover {
  background-color: rgba(242, 0, 0, 0.3);
  color: white;
}

/* Gaya untuk item yang aktif */
.portfolio_menu .active_prot_menu a,
.certification_menu .active_cert_menu a {
  background-color: #f20000;
  color: white;
}

.portfolio_content .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 1. KARTU UTAMA */
.portfolio_single_content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}

.portfolio_single_content:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

/* 2. GAMBAR */
.portfolio-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* 3. WRAPPER KONTEN TEKS */
.portfolio-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  align-items: flex-start; /* <-- PERBAIKAN: Menghentikan peregangan */
}

/* 4. JUDUL */
.portfolio-card-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--heading-color);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

/* --- Gaya untuk Kapsul Kategori Portofolio --- */
.portfolio-card-category {
  display: inline-block; /* Memastikan kontainer pas dengan panjang teks */
  background-color: #f20000;
  color: white;
  padding: 6px 15px; /* PERBAIKAN: Padding dibuat lebih longgar */
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: capitalize; /* PERBAIKAN: Hanya huruf pertama setiap kata yang kapital */
}

/* 5. TECH STACK (TANPA CONTAINER) */
.portfolio-item-tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: left; /* Ikon di tengah */
  align-items: left;
  gap: 8px;
  margin-bottom: 5px;
  min-height: 24px;
  position: static; /* Hapus posisi absolute */
}

.portfolio-item-tech img {
  height: 20px;
  width: 20px;
  object-fit: contain;
}

.portfolio-link {
  display: block;
  padding: 15px;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: 0;
  text-align: center;
}

.portfolio-text-content {
  flex-grow: 1; /* Ambil semua sisa ruang vertikal di dalam kartu */
  display: flex;
  align-items: center; /* Tengahkan judul secara vertikal */
  justify-content: center; /* Tengahkan judul secara horizontal */
  padding: 5px; /* Beri sedikit padding */
}

.portfolio-card-date {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.8;
  margin: -5px 0 12px 0; /* Jarak dari judul dan ikon tech stack */
  display: flex;
  align-items: center;
  gap: 8px; /* Jarak antara ikon kalender dan teks */
}

/* Portfolio Slider Styles */
.portfolio-slider-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.certificate-slider-container {
  width: auto;
  margin: 0 40px;
}

.portfolio-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.portfolio-slider-item {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
  padding: 0px 15px;
}

.portfolio-slider-item.show {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-slider-item.show:nth-child(1) {
  transition-delay: 0.1s;
}
.portfolio-slider-item.show:nth-child(2) {
  transition-delay: 0.2s;
}
.portfolio-slider-item.show:nth-child(3) {
  transition-delay: 0.3s;
}
.portfolio-slider-item.show:nth-child(4) {
  transition-delay: 0.4s;
}
.portfolio-slider-item.show:nth-child(5) {
  transition-delay: 0.5s;
}
.portfolio-slider-item.show:nth-child(6) {
  transition-delay: 0.6s;
}

.portfolio-slider-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(242, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.portfolio-slider-nav:hover {
  background: #f20000;
  transform: translateY(-50%) scale(1.1);
}
.portfolio-slider-prev,
.certificate-slider-prev {
  left: 5px;
}
.portfolio-slider-next,
.certificate-slider-next {
  right: 5px;
}

/* BARU: Navigasi titik (dots) */
.portfolio-dots {
  text-align: center;
  padding: 20px 0px 40px;
}
.portfolio-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.portfolio-dots .portfolio-dot.active {
  /* Selector diperbaiki */
  background: #f20000;
}

.portfolio-link {
  margin-top: auto; /* Mendorong link & tech ke bawah */
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
}

/* ===== COUNTER SECTION ===== */
#counter-section {
  color: var(--text-primary);
  text-align: center;
  position: relative;
  padding: 60px 0;
  background-image: url("../../img/counter-wallw.webp"); /* <-- LATAR MODE TERANG */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 3px solid var(--primary-accent-color);
  border-bottom: 3px solid var(--primary-accent-color);
  overflow: hidden;
}

body.dark-mode #counter-section {
  background-image: url("../../img/counter-wall.webp"); /* <-- Latar mode gelap */
}

#counter-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 1;
}

body.dark-mode #counter-section::before {
  background-color: rgba(0, 0, 0, 0.7);
}

#counter-section .container,
#counter-section .page-header-wrapper {
  position: relative;
  z-index: 2;
}

#counter-up-trigger {
  background-image: url("../../img/counter-wall.webp");
  background-size: cover;
  background-position: center;
  border-top: solid #f20000;
  border-bottom: solid #f20000;
}

#counter-section h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--heading-color); /* <-- PERBAIKAN */
}

#counter-section .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px;
}

.fact {
  text-align: center;
}

.fact i {
  font-size: 2.5rem;
  color: var(--profession-text-color); /* <-- PERBAIKAN */
  margin-bottom: 10px;
}

.counter {
  font-size: 2.8rem;
  font-weight: bold;
  display: block;
  color: var(--profession-text-color); /* <-- PERBAIKAN */
}

.lead {
  margin-top: 5px;
  font-size: 1rem;
  color: var(--text-secondary); /* <-- PERBAIKAN */
}

/* ===== SOCIAL SECTION ===== */
#social-section {
  padding: 50px 0;
  background-color: var(--bg-primary);
}

#social-section h2 {
  text-align: center;
  margin-bottom: 10px;
}

.social-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.social-list li {
  width: 80px;
  height: 80px;
  margin-top: 50px;
}

.social-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: solid #f20000 3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.3s ease;
}

.social-list li a:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  border-color: #ff2929;
}

.social-list li i {
  font-size: 40px;
  color: #f20000;
  transition: color 0.3s ease;
}

.social-list li:hover i {
  color: #ff2929;
}

/* ===== CONTACT SECTION ===== */
#contact-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--text-primary);
  padding: 60px 0;
  text-align: center;
  background-attachment: fixed;
  background-image: url("../../img/map-bgsw.webp");
}

body.dark-mode #contact-section {
  background-image: url("../../img/map-bgs.webp");
}

#contact-section .cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
  border-top: solid #f20000;
  border-bottom: solid #f20000;
}

body.dark-mode #contact-section .cover {
  background: rgba(0, 0, 0, 0.8);
}

#contact-section .container,
#contact-section .page-header-wrapper,
#contact-section .contact {
  position: relative;
  z-index: 2;
}

#contact-section h2 {
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 10px;
}

#contact-section h4 {
  color: var(--heading-color);
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

#contact-section i {
  color: #f20000;
  margin-right: 10px;
}

#contact-section .contact-info {
  text-align: center;
}

#contact-section .contact-address {
  list-style: none;
  padding: 0;
  margin: 0;
}

#contact-section .contact-address li {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-note {
  background-color: rgba(0, 0, 0, 0.2); /* Latar belakang transparan halus */
  padding: 15px;
  margin-bottom: 30px; /* Jarak ke form input di bawahnya */
  border-left: 4px solid var(--primary-accent-color); /* Aksen garis merah di kiri */
  border-radius: 0 8px 8px 0; /* Sudut membulat */
  color: var(--text-secondary); /* Warna teks agak redup */
  font-size: 14px;
  line-height: 1.6;
  text-align: left; /* Teks rata kiri agar mudah dibaca */
  font-style: italic;
}

.contact-form {
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: 10px;
  border: 3px solid #f20000;
  box-shadow: var(--card-shadow);
  margin: 30px 300px;
}

.form-row {
  display: flex;
  gap: 20px; /* Jarak antara form Nama dan Email */
}

.form-row .form-group {
  flex: 1; /* Membuat kedua form memiliki lebar yang sama */
  margin-bottom: 25px; /* Jaga margin bawah */
}

.form-group {
  position: relative;
  margin: 0px auto 25px;
}

.form-control {
  width: 100%;
  padding: 15px 15px 15px 45px;
  font-size: 16px;
  border: 2px solid #444;
  border-radius: 8px;
  background-color: var(--bg-form);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #f20000;
  box-shadow: 0 0 10px rgba(242, 0, 0, 0.3);
  outline: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  padding-top: 15px;
}

.form-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #f20000;
  font-size: 18px;
}

.textarea-icon {
  top: 20px;
  transform: none;
}

.btn-submit {
  background-color: #f20000;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0px auto;
}

.btn-submit:hover {
  background-color: #ff2929;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 0, 0, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.alert {
  padding: 15px;
  border-radius: 8px;
  font-weight: bold;
  margin: 20px 300px 0px;
}

.alert-success {
  background-color: #4caf50;
  color: white;
  border: 2px solid #45a049;
}

.alert-danger {
  background-color: #f44336;
  color: white;
  border: 2px solid #d32f2f;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 60px;
  padding-bottom: 10px;
  font-family: Arial, sans-serif;
}

.footer-top {
  padding-bottom: 30px;
}

.footer-top h4 {
  color: var(--heading-color);
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f20000;
  padding-bottom: 8px;
}

.footer-top .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-top .row > div {
  flex: 1 1 30%;
  box-sizing: border-box;
}

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

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

footer .imp-links li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

footer .imp-links li a:hover {
  color: #f20000;
}

footer .imp-links i {
  margin-right: 8px;
}

#footer_signup p {
  color: var(--text-secondary);
  line-height: 1.6;
}

#footer_signup img {
  display: block;
  margin: 20px auto 0;
  border-radius: 8px;
}

.footer {
  padding: 15px 0;
}

.footer .copyright {
  margin: 0;
  font-size: 16px;
  text-align: center;
  font-style: italic;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scrolltotop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f20000;
  color: white;
  padding: 12px 16px;
  border-radius: 50%;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  z-index: 9999;
}

.scrolltotop:hover {
  background-color: #ff2929;
  transform: scale(1.1);
}

/* ===== MODALS ===== */
/* Certificate Modal */
.certificate-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.certificate-modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoomInAbsolute 0.3s;
  border-radius: 10px;
}

.certificate-modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.certificate-modal-close:hover {
  color: #bbb;
}

.certificate-modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  text-align: center;
  color: #fff;
  padding: 10px 0;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(30, 30, 30, 0.5);
  border-radius: 10px;
  font-weight: bold;
}

/* BARU: Aturan untuk posisi panah di dalam modal */
.certificate-modal-prev {
  left: 15px;
}

.certificate-modal-next {
  right: 15px;
}

/* BARU: Aturan untuk menata teks judul dan tanggal di modal */
#modalCaptionTitle {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

#modalCaptionDate {
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
  color: #ddd;
  font-style: italic;
}

/* Portfolio Modal */
.portfolio-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--modal-bg);
  display: flex;
  flex-direction: column; /* Mengatur layout vertikal */
  max-width: 900px;
  width: 90%;
  position: relative; /* Diubah dari fixed */
  margin: 0; /* Menengahkan modal */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  max-height: 90vh; /* Batas tinggi modal */
  overflow: hidden; /* Sembunyikan scrollbar utama modal */
  animation: zoomInFlex 0.3s;
}

#modalDate {
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 5px 0 5px 0; /* Jarak dari judul dan meta container */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 1. Animasi untuk modal yang di-center dengan 'position: absolute' (Sertifikat) */
@keyframes zoomInAbsolute {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* 2. Animasi untuk modal yang di-center dengan 'flexbox' (Portofolio) */
@keyframes zoomInFlex {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translate(-50%, -60%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.close-modal:hover {
  color: #f1f1f1;
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

body.dark-mode .close-modal {
  color: #141414;
  background: rgba(255, 255, 255, 0.5);
}

body.dark-mode .close-modal:hover {
  color: #121212;
  background: rgba(255, 255, 255, 0.8);
}

.modal-body {
  padding: 30px;
  display: flex;
  gap: 30px;
  overflow: hidden; /* Konten tidak boleh meluap */
  flex-grow: 1;
}

.modal-column.image-column {
  flex: 1;
}
.modal-column.info-column {
  flex: 1.2;
  display: flex;
  flex-direction: column; /* Mengatur layout info secara vertikal */
  overflow: hidden; /* Mencegah konten meluap */
}

#modalImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#modalTitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--heading-color);
}

/* BARU: Kontainer untuk meta (kategori & tech) */
.modal-meta-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 0px 10px 0;
}
.modal-category {
  background-color: #f20000;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}
.modal-tech-stack {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-tech-stack img {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

.modal-nav-prev,
.modal-nav-next {
  position: fixed; /* Menggunakan fixed agar posisi tetap walau di-scroll */
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001; /* Harus di atas overlay modal */
}

.modal-nav-prev {
  left: 20px;
}

.modal-nav-next {
  right: 20px;
}

#modalDescription {
  flex-grow: 1;
  overflow-y: auto;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  padding-right: 15px;
}

.modal-row {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.modal-column {
  flex: 1;
  min-width: 300px;
  max-width: 100%;
}

.image-column {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.image-column img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.image-column:hover img {
  transform: scale(1.03);
}

.info-column {
  padding: 10px 0;
  max-height: 100%;
}

.info-column h2 {
  color: var(--heading-color);
  margin-bottom: 15px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal-category {
  display: flex;
  background-color: #f20000;
  color: white;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  align-items: center;
}

#modalDescription {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 16px;
  padding-right: 10px;
  max-height: 150px;
  overflow-y: auto;
  text-align: justify;
}

.modal-button-container {
  display: flex;
  justify-content: center;
  text-align: left;
}

.modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: #f20000;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  gap: 8px;
  margin: 0 auto;
}

.modal-button:hover {
  background-color: #f20000;
  transform: translateY(-3px);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.modal-button:active {
  transform: translateY(1px);
}

.modal-button i {
  font-size: 16px;
}

/* Scrollbar styles */
.info-column p::-webkit-scrollbar {
  width: 6px;
}

.info-column p::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.info-column p::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.info-column p::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===== PROFESSION ANIMATION ===== */
.profession-container {
  font-family: Arial, sans-serif;
  font-size: 24px;
  color: var(--profession-text-color);
  text-align: center;
  margin-bottom: 0px;
  position: relative;
  display: inline-block;
}

.profession-container::before {
  content: attr(data-prefix);
  color: var(--heading-color);
  font-weight: bold;
  font-family: Times New Roman;
}

.profession {
  font-weight: bold;
  display: inline-block;
  position: relative;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.3),
    0 0 15px rgba(255, 255, 255, 0.3);
}

.profession::after {
  content: "|";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-60%);
  animation: blink 0.7s infinite;
}

.profession-hover {
  transition: all 0.3s ease;
}

.profession-hover:hover {
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.8),
    0 0 15px rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.separator {
  margin: 0 10px;
}

/* ===== TECH STACK SECTION ===== */
#tech-stack-section {
  background-color: var(--bg-secondary);
  padding: 5px 0;
  overflow: hidden;
  position: relative;
  border-top: 2px solid #f20000;
  border-bottom: 2px solid #f20000;
}

.tech-stack-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tech-stack-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  padding: 15px 0; /* Tambahkan padding */
}

.tech-stack-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 30px;
  color: var(--text-primary); /* Pastikan teks berwarna putih */
  font-weight: bold;
  font-size: 16px;
  height: auto; /* Ubah dari 36px ke auto */
  padding: 10px 0; /* Tambahkan padding */
  margin-bottom: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tech-stack-item:hover img {
  transform: scale(1.1);
}

.tech-stack-item img {
  height: 36px;
  width: auto;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}
.tech-stack-item i {
  font-size: 36px;
  margin-bottom: 8px;
}

.tech-stack-item span {
  font-size: 14px;
  margin-top: 5px;
  color: var(--text-primary); /* Pastikan teks berwarna putih */
  text-shadow: none; /* Tambahkan shadow untuk kontras */
}

/* ===== DESCRIPTION WITH CHECK ===== */
.description-with-check {
  position: relative;
  padding-left: 25px;
  margin: 5px 0;
  line-height: 1.5;
}

.description-with-check:before {
  content: "✔";
  color: #4caf50;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Hide burger on desktop */
.navbar-toggle {
  display: none;
}

/* Portfolio Filter Select */
.portfolio_filter_select {
  display: none;
}

.item-counter {
  display: inline-block; /* Agar bisa di-center dan ukurannya pas */
  background-color: #f20000; /* Warna latar kapsul */
  color: white; /* Warna teks */
  font-size: 14px;
  font-weight: bold;
  padding: 5px 15px; /* Ruang di dalam kapsul */
  border-radius: 20px; /* Membuat bentuk kapsul */
  margin-top: 15px;
  margin-bottom: 0;
  font-style: normal; /* Hapus gaya italic yang lama */
  transition: all 0.3s ease;
}

.hover-image-wrapper {
  position: relative;
  overflow: hidden;
  display: block;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-image-wrapper:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-8px);
}

.hover-image-wrapper-portfolio {
  position: relative;
  overflow: hidden;
  display: block;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.certificate-item .hover-image-wrapper {
  display: inline-block; /* Membuat wrapper hanya selebar isinya (gambar) */
  vertical-align: top; /* Mencegah spasi ekstra di bawah gambar */
}

.certificate-item .hover-image-wrapper-portfolio {
  display: inline-block; /* Membuat wrapper hanya selebar isinya (gambar) */
  vertical-align: top; /* Mencegah spasi ekstra di bawah gambar */
}

.certificate-item-content {
  width: auto;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
}

/* Trigger hover on the main item container */
.portfolio_single_content:hover .hover-overlay,
.hover-image-wrapper:hover .hover-overlay,
.hover-image-wrapper-portfolio:hover .hover-overlay {
  /* <-- PERBAIKAN */
  opacity: 1;
}

.hover-overlay i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hover-overlay span {
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ===== BASE TYPOGRAPHY THEME COLORS ===== */
h2,
h3,
h4 {
  color: var(--heading-color);
}

p {
  color: var(--text-secondary);
}

/* --- Gaya Baru untuk Tombol Toggle --- */
.theme-toggle-btn {
  background: none;
  border: 2px solid white; /* Border putih */
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; /* Lebar tetap */
  height: 38px; /* Tinggi tetap */
  border-radius: 50%; /* Membuatnya bulat sempurna */
  padding: 0;
  transition: background-color 0.3s ease;
}

.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Efek hover halus */
}

/* --- Pengaturan Tampilan Responsif --- */
.mobile-only-toggle {
  display: none; /* Sembunyikan tombol mobile di desktop */
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 15px; /* Jarak antara tombol toggle dan burger */
}

/* --- Animasi untuk Tombol Toggle Tema --- */
.theme-toggle-btn i {
  transition: transform 0.4s ease; /* Durasi animasi putaran */
}

.theme-toggle-btn.toggling i {
  transform: rotateY(360deg); /* Efek berputar 360 derajat pada sumbu Y */
}

body.dark-mode .intro-social-icons a:hover {
  color: #f20000;
}

.skills-filter-wrapper {
  display: none;
}

.skill-filter-btn,
.portfolio_menu ul li a,
.certification_menu ul li a {
  font-size: 14px; /* Atur ukuran font agar seragam */
}

/* ===== CSS BARU UNTUK MODAL PREVIEW ===== */
.modal-content.preview {
  max-width: 900px;
  background-color: var(--bg-card); /* Menggunakan variabel tema */
  display: flex;
  flex-direction: column;
}
.modal-header,
.modal-footer {
  padding: 15px 20px;
  border-color: #444; /* Warna border yang cocok untuk kedua tema */
  flex-shrink: 0;
}
.modal-header h3 {
  margin: 0;
  color: var(--heading-color); /* Menggunakan variabel tema */
}
.preview-iframe {
  width: 100%;
  height: 70vh; /* Tinggi iframe */
  border: none;
  flex-grow: 1; /* Mengisi ruang yang tersedia */
}

.testimonial-author-info {
  margin-top: 10px;
  line-height: 1.2;
}
.testimonial-author {
  display: block; /* Pastikan nama penulis di barisnya sendiri */
}
.testimonial-date {
  display: block;
  font-size: 13px;
  font-weight: normal; /* Dibuat tidak tebal agar berbeda dari nama */
  color: var(--text-secondary);
  opacity: 0.8;
  margin-top: 5px; /* Jarak dari nama penulis */
  text-align: center;
}

/* [BARU] CSS untuk Galeri Gambar di Modal Portofolio */
.modal-image-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dua kolom sama lebar */
  gap: 10px;
  width: 100%;
  height: 100%;
}

.gallery-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gambar utama (pertama) mengambil seluruh kolom di baris pertama */
.gallery-item.main-image {
  grid-column: 1 / -1; /* Mengambil dari kolom 1 sampai akhir */
  height: 250px; /* Beri tinggi tetap yang lebih besar */
}

.image-viewer-modal {
  display: none; /* Sembunyikan secara default */
  position: fixed;
  z-index: 10001; /* Pastikan di atas semua elemen lain, termasuk modal portofolio */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* Latar belakang hitam transparan */
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.image-viewer-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-viewer-content img {
  width: 100%;
  height: auto;
  max-height: 80vh; /* Batasi tinggi agar tidak terlalu besar */
  object-fit: contain; /* Pastikan gambar terlihat utuh */
  border-radius: 8px;
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(242, 0, 0, 0.7);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  user-select: none;
  padding: 0;
  line-height: 1;
}

.image-viewer-nav i {
  font-size: 18px; /* Mengatur ukuran ikon secara spesifik */
  line-height: 1; /* Memastikan tidak ada spasi vertikal ekstra */
  margin: 0px; /* Menghapus margin yang mungkin mengganggu */
  padding: 12px 10px 10px 17px; /* Menghapus padding yang mungkin mengganggu */
}

.image-viewer-nav:hover {
  background: #f20000;
  transform: translateY(-50%) scale(1.1);
}

.image-viewer-nav.prev {
  left: -10px; /* Jarak dari sisi kiri, sedikit lebih jauh agar tidak terlalu menempel */
}

.image-viewer-nav.next {
  right: -10px; /* Jarak dari sisi kanan */
}

.image-viewer-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.image-viewer-close:hover,
.image-viewer-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* ===== NAVBAR DROPDOWN ===== */
.navbar-menu li {
  position: relative; /* Penting untuk posisi dropdown */
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 10px; /* Jarak antara teks "About" dan ikon panah */
}

.dropdown-menu {
  display: none; /* Sembunyikan dropdown secara default */
  position: absolute;
  top: 100%; /* Posisikan tepat di bawah item "About" */
  left: 0;
  background-color: maroon; /* Samakan dengan warna navbar */
  list-style: none;
  padding: 8px 0;
  margin-top: 0px; /* Beri sedikit jarak dari navbar utama */
  min-width: 220px; /* Lebar minimum dropdown */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
  z-index: 1001;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  white-space: nowrap;
  position: relative; /* PENTING: Untuk posisi garis bawah */
  transition: background-color 0.3s ease; /* Untuk efek hover latar */
}

.dropdown-menu li a:hover {
  background-color: #a00000; /* Warna hover yang sedikit lebih terang */
}

.dropdown-menu li a::after {
  /* Baris display: none; dihapus untuk mengaktifkan kembali garis */
  content: "";
  position: absolute;
  bottom: 5px; /* Atur posisi garis di bagian bawah, di dalam link */
  left: 20px;  /* Samakan dengan padding kiri agar rata */
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

/* Tambahkan ini untuk memunculkan garis saat hover */
.dropdown-menu li a:hover::after {
  width: calc(100% - 40px); /* Lebar garis (total lebar dikurangi padding kiri & kanan) */
}

/* Tampilkan dropdown saat hover di desktop */
.has-dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===== SUPPORT SECTION ===== */
#support-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--bg-primary);
  border-bottom: 3px solid #f20000;
}

.support-columns-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

a.support-column {
  flex: 1;
  min-width: 250px;
  max-width: 250px;
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none; /* Menghapus garis bawah dari link */
}

a.support-column:hover {
  transform: translateY(-10px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.support-column h3 {
  color: var(--heading-color);
  margin-bottom: 10px;
  font-size: 1rem;
}

.support-column p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
  font-style: italic;
}

/* Wrapper baru untuk gambar (menggantikan .support-button) */
.support-button-image-wrapper {
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  /* Properti border telah dihapus */
}

.support-button-image-wrapper img {
  width: 100%;
  max-width: 100px;
  height: auto;
  display: block;
}

/* ===== Statistik Tambahan di Bawah Grafik ===== */
.stats-summary-container {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 40px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  text-align: center;
  flex-wrap: wrap;
  box-shadow: var(--card-shadow);
}

body.dark-mode .stats-summary-container {
  background: var(--bg-card);
  backdrop-filter: none;
  border: none;
}

.summary-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--profession-text-color);
  display: block;
}

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

.portfolio-content-wrapper {
    position: relative;
    z-index: 1; /* Pastikan konten berada di atas overlay gelap ::before */
}

/* --- Custom Language Button Style --- */
.language-btn {
  text-decoration: none !important; /* Hapus garis bawah */
  padding: 0;
  overflow: hidden; /* Agar bendera tetap di dalam lingkaran */
}

/* Pastikan tidak ada garis bawah animasi navbar saat hover */
.navbar-menu li .language-btn::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
}

/* Hapus garis bawah saat hover pada link */
.language-btn:hover {
  text-decoration: none !important;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Membuat ikon bendera menjadi bulat penuh */
.language-btn .flag-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background-size: cover !important;
  background-position: center !important;
  line-height: 24px;
}

@media (max-width: 1200px) {
  .skills-grid {
    /* Menjadi 3 kolom untuk layar laptop kecil */
    grid-template-columns: repeat(3, 1fr);
    padding: 0 40px;
    justify-content: center;
  }

  .reviews-filter-menu {
    margin-bottom: 0px;
  }

  .reviews-filter-menu ul {
    display: none;
  }

  .reviews-filter-wrapper {
    display: block;
  }
}

@media (max-width: 1040px) {
  .desktop-only-toggle {
    display: none;
  }

  .mobile-only-toggle {
    display: flex;
  }

  .navbar-toggle {
    display: block;
    margin: 0;
    margin-left: auto;
    order: 2;
    background: transparent;
    border: 1px solid white;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
  }

  .navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
  }

  .navbar-toggle {
    margin: 0;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-menu.show {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: maroon;
    padding: 1rem 0;
    text-align: center;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1001;
  }

  .navbar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar-menu li a {
    display: block;
    color: white;
    text-decoration: none;
  }

  .navbar-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .navbar-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .dropdown-menu {
    position: static; /* Hapus posisi absolut */
    box-shadow: none;
    background-color: transparent;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
    /* Sembunyikan dengan max-height untuk animasi transisi */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
  }

  .has-dropdown:hover .dropdown-menu {
    /* Nonaktifkan efek hover di mobile */
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .dropdown-menu li {
    background-color: rgba(0, 0, 0, 0.2); /* Beri sedikit latar berbeda */
  }

  .dropdown-menu li a {
    padding-left: 35px; /* Beri indentasi agar terlihat seperti submenu */
  }

  .navbar-menu .has-dropdown > a {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 992px) {
  .skills-grid {
    /* Menjadi 2 kolom untuk layar tablet */
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }

  .education-item h3,
  .experience-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
  }

  #portfolio-section {
    padding: 60px 40px; /* Kurangi padding agar lebih pas */
  }

  .portfolio-slider-item {
    flex: 0 0 50%; /* Menjadi 2 kolom */
  }

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

  .stats-text {
    order: 2;
  }
  .stats-graphs {
    order: 1;
  }

  .testimonial .row {
    flex-wrap: wrap; /* Izinkan item untuk turun ke baris baru */
    justify-content: center; /* Pastikan item tetap di tengah */
  }

  .testimonial-slider-item {
    flex: 0 0 50%; /* Membuat item menjadi 2 kolom */
  }

  .contact-form {
    padding: 20px;
    margin: 30px;
  }

  .form-row {
    display: block; /* Nonaktifkan flexbox dan kembalikan ke normal */
  }
}

@media (max-width: 768px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  .page-header h2 {
    font-size: 30px; /* Ukuran yang lebih sesuai untuk judul halaman di mobile */
  }

  /* Navbar */
  #main-navbar {
    padding: 0.75rem 2rem;
  }

  #main-navbar .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .navbar-brand {
    margin-right: auto;
  }

  .navbar-brand img {
    height: 30px;
    max-width: 100%;
  }
  
  .brand-text {
      font-size: 1.2rem;
  }

  /* Intro Section */
  #intro-section {
    height: auto;
    min-height: 100vh;
    padding: 6rem 1rem 3rem 1rem; /* Tambah padding atas untuk navbar */
  }

  .intro-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1rem;
    padding: 0;
  }

  .intro-content {
    width: 100%;
  }

  .intro-content h1 {
    font-size: 2.5rem;
  }

  .profession-wrapper {
    margin-bottom: 1.5rem;
  }

  .intro-social-icons {
    margin-bottom: 2rem;
  }

  .intro-buttons-wrapper {
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .intro-buttons-row {
    gap: 0.75rem;
  }

  .intro-photo {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  .intro-photo img {
    width: 70%;
    max-width: 280px;
  }

  /* BARU: Aturan responsive untuk statistik */
  .intro-stats-container {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .stat-item {
    padding: 0 0.5rem;
    /* BARU: Aturan agar item sejajar rapi saat teks wrap */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 65px; /* Memberi tinggi minimum agar sejajar */
  }

  .stat-item:not(:last-child)::after {
    display: none; /* Garis pemisah tetap disembunyikan agar tidak sempit */
  }

  .stat-number {
    font-size: 30px; /* Perkecil ukuran angka */
  }

  .stat-label {
    font-size: 0.8rem;
    white-space: normal; /* PERBAIKAN: Izinkan teks untuk wrap */
    line-height: 1.2; /* Atur jarak baris jika terjadi wrap */
  }

  /* Rotate Box 1 */
  .rotate-box-1-wrapper .row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .rotate-box-1 {
    width: 300px;
    min-height: auto;
    padding: 20px 15px;
    margin: 0 auto;
  }

  .rotate-box-1 .rotate-box-icon,
  .rotate-box-2 .rotate-box-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .rotate-box-info1 h4 {
    font-size: 1.05rem;
  }

  .rotate-box-info1 p {
    font-size: 0.9rem;
  }

  /* Skills Section */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0px 20px;
  }

  .skill-item {
    padding: 16px;
  }

  .skill-item h4 {
    font-size: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .skills-slider-nav {
    width: 35px;
    height: 35px;
    font-size: 18px;
    top: 40%;
  }

  .skills-slider-prev {
    left: 5px;
  }

  .skills-slider-next {
    right: 5px;
  }

  .skills-dots-container {
    text-align: center;
    padding-top: 10px; /* Jarak dari grid skill */
  }

  .capsule {
    width: 8px;
    height: 24px;
  }

  /* Rotate Box 2 */
  .rotate-box-2-wrapper .row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .rotate-box-2 {
    width: 300px;
    min-height: auto;
    padding: 20px 15px;
    margin: 0 auto;
  }

  .rotate-box-info h4 {
    font-size: 16px;
  }

  .rotate-box-info p {
    font-size: 13px;
  }

  .service-description p {
    font-size: 14px;
  }

  /* Education Section */
  #education-section {
    padding: 20px 10px;
  }

  .edu-exp-wrap {
    flex: 0 0 auto;
    width: 300px;
  }

  .education-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .education-img {
    width: 80px;
    height: 80px;
  }

  .education-item h3 {
    font-size: 17px;
  }

  .education-item p {
    font-size: 14px;
    text-align: center;
  }

  #education-section .row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .education-meta-line {
    gap: 0px;
    margin: 0px;
    justify-content: center;
  }

  .education-meta {
    margin: 5px;
    font-size: 12px;
  }

  .major-container {
    display: block;
    width: 100%;
    margin: 0px 0px;
  }

  .education-description {
    width: auto;
    font-size: 14px;
    padding: 8px;
    margin-top: 10px;
  }

  /* Experience Section */
  #experience-section {
    padding: 20px 10px;
  }

  .experience-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .experience-img {
    width: 80px;
    height: 80px;
  }

  .experience-item h3 {
    font-size: 17px;
  }

  .experience-item p {
    font-size: 14px;
    text-align: center;
  }

  #experience-section .row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .experience-tech-icons {
    justify-content: center; /* Menengahkan ikon-ikon di layar mobile */
    gap: 10px;
    margin: 12px 0;
  }

  .tech-icon-img {
    height: 20px; /* Ikon sedikit lebih kecil di mobile */
  }

  .experience-meta-line {
    justify-content: center;
    display: flex;
    gap: 0px;
    margin: 0px 0;
    flex-wrap: wrap;
  }

  .experience-meta {
    margin: 5px;
    font-size: 12px;
  }

  .experience-description {
    padding: 5px;
    font-size: 14px;
    width: auto;
  }

  .certificate-item {
    flex: 0 0 100%; /* Menampilkan 1 item per halaman */
  }

  /* PERBAIKAN BARU: Atur wrapper agar lebarnya 80% dan berada di tengah */
  .certificate-item .hover-image-wrapper {
    max-width: 80%;
    margin: 0 auto; /* Ini akan menengahkan wrapper */
  }

  /* PERBAIKAN BARU: Atur gambar agar mengisi 100% dari wrapper-nya yang baru */
  .certificate-item img {
    height: 200px;
    max-width: 100%; /* Ubah dari 80% menjadi 100% */
    width: 100%; /* Pastikan gambar mengisi penuh wrapper */
  }

  .certificate-nav-prev {
    left: 10px;
  }
  .certificate-nav-next {
    right: 10px;
  }

  .certificate-nav-prev,
  .certificate-nav-next {
    /* Menggunakan style dari .skills-slider-nav */
    top: 40%;
    z-index: 20;
  }

  .certificate-slider-container {
    width: auto;
    margin: 0 0px;
  }

  .certificate-modal-prev {
    top: 50%;
    left: 15px;
  }

  .certificate-modal-next {
    top: 50%;
    right: 15px;
  }

  .portfolio_menu {
    margin-bottom: 0px; /* Menambah jarak bawah */
  }

  /* Testimonial Section */
  .testimonial .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    overflow-x: hidden;
    margin: 0 auto;
  }

  .testimonial-item {
    width: 90%;
    max-width: 350px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto;
    min-height: auto;
  }

  .testimonial-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .testimonial-author {
    font-size: 13px;
  }

  .testimonial-stars {
    justify-content: center;
  }

  #testimonial-section .row {
    margin: 0 40px; /* Menghapus margin 80px dan menggantinya dengan margin 15px yang lebih sesuai */
  }

  .reviews-filter-menu ul {
    display: none;
  }
  .reviews-filter-wrapper {
    display: block;
  }

  /* Portfolio Section */
  #portfolio-section {
    padding: 40px 20px;
  }

  #portfolio-section .page-header h2 {
    font-size: 1.6rem;
  }

  .portfolio_menu ul,
  .certification_menu ul {
    display: none;
  }

  /* GANTI ATURAN CSS INI DI DALAM @media (max-width: 768px) */

  /* BARU: Wrapper untuk select filter di mobile */
  .portfolio-filter-wrapper,
  .certification-filter-wrapper,
  .reviews-filter-wrapper,
  .skills-filter-wrapper {
    position: relative;
    width: 100%;
    max-width: 280px; /* Sedikit lebih lebar */
    margin: 0 auto 10px auto; /* Menambah margin bawah */
  }

  .portfolio_filter_select,
  .certification_filter_select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-primary); /* <-- PERBAIKAN: Warna teks */
    background-color: var(--bg-card); /* <-- PERBAIKAN: Warna latar */
    border: 2px solid var(--primary-accent-color); /* <-- PERBAIKAN: Warna border */
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;

    text-align: center;
    text-align-last: center;
  }

  .portfolio-filter-wrapper::after,
  .certification-filter-wrapper::after,
  .reviews-filter-wrapper::after,
  .skills-filter-wrapper::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: var(--primary-accent-color); /* <-- PERBAIKAN */
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .portfolio_filter_select:hover,
  .reviews_filter_select:hover,
  .certification_filter_select:hover {
    background-color: var(--bg-card-hover);
    border-color: #ff2929;
  }

  .portfolio_filter_select:focus,
  .reviews_filter_select:focus,
  .certification_filter_select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(242, 0, 0, 0.5);
  }

  .portfolio_content .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio_single_content {
    max-width: 90%;
    margin: 0 auto;
    width: 300px;
    height: auto;
  }

  .portfolio-img {
    width: 100%;
    height: 160px;
  }

  .portfolio-link {
    font-size: 0.9rem;
    padding: 10px;
    text-align: center;
  }

  .portfolio-slider-item {
    flex: 0 0 100%;
    padding: 0px 0px;
  }

  .portfolio-slider-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Portfolio Modal */
  .portfolio-modal {
    padding: 10px;
  }

  .portfolio-image-wrapper {
    height: auto;
  }

  .modal-content {
    width: 90%;
    height: auto; /* Biarkan tinggi menyesuaikan konten */
    max-height: 85vh; /* Batasi tinggi maksimal 85% dari layar */
    padding: 15px;
  }

  .modal-row {
    flex-direction: column;
    gap: 15px;
  }

  .modal-column {
    min-width: 100%;
    max-width: 100%;
  }

  .modal-column.image-column {
    flex-shrink: 0;
  }

  /* PERBAIKAN: Paksa gambar untuk menutupi seluruh area kolomnya */
  #modalImage {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 'cover' akan "stretch" gambar tanpa distorsi */
  }

  #modalTitle {
    font-size: 16px; /* Ukuran diperkecil */
    margin-bottom: 10px;
  }

  .modal-category {
    font-size: 12px;
    padding: 4px 12px;
  }

  .modal-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .close-modal {
    top: 10px;
    right: 10px;
    font-size: 20px;
    width: 30px;
    height: 30px;
  }

  .modal-column.info-column {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Mencegah konten meluap */
  }

  #modalDescription {
    flex-grow: 1; /* KUNCI: Membuat deskripsi mengisi semua sisa ruang vertikal */
    overflow-y: auto; /* Menambahkan scrollbar HANYA jika teksnya panjang */
    font-size: 14px;
    padding-right: 10px; /* Memberi ruang untuk scrollbar */
    text-align: justify;
  }

  .modal-body {
    padding-bottom: 0px;
  }

  /* Tech Stack */
  .tech-stack-item {
    margin: 0 20px;
    min-width: 60px;
  }

  .tech-stack-item i {
    font-size: 28px;
  }

  .tech-stack-item span {
    font-size: 12px;
  }

  /* Counter Section */
  #counter-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px;
  }

  .testimonial-slider-container {
    padding: 20px 0; /* Hapus padding horizontal di mobile agar lebih lebar */
  }

  .testimonial-slider-item {
    flex: 0 0 100%; /* 1 item per halaman di mobile */
    padding: 0 10px;
  }
  .testimonial-slider-nav {
    width: 35px;
    height: 35px;
  }
  .testimonial-slider-prev {
    left: 5px;
  }
  .testimonial-slider-next {
    right: 5px;
  }

  .testimonial-slider-container {
    margin: 0px 40px; /* Atur margin lebih kecil untuk mobile */
  }

  .reviews-filter-menu ul {
    gap: 2px;
    padding: 3px;
    display: none;
  }
  .reviews-filter-menu a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .reviews-filter-wrapper {
    display: block;
  }

  .stats-container {
    gap: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Grafik berjejer 2 horizontal di mobile */
  .stats-graphs {
    order: 2; /* Pastikan grafik di bawah stat di mobile */
  }

  .graph-item {
    padding: 15px;
  }

  .chart-container {
    height: 250px;
  }

  .fact {
    flex: 1; /* Biarkan setiap item mengambil ruang yang sama */
    min-width: 0; /* Mencegah item meluap */
  }

  .stats-text {
    width: 100%;
    display: flex;
    justify-content: space-around; /* Ini akan memberi spasi antar item */
    align-items: flex-start; /* Sejajarkan item di atas jika tingginya beda */
    gap: 10px; /* Gunakan gap kecil saja */
  }

  .fact i {
    font-size: 2rem;
  }
  .counter {
    font-size: 2.2rem;
  }
  .lead {
    font-size: 0.8rem;
  }

  /* Social Section */
  .social-list {
    gap: 15px;
  }

  .social-list li {
    width: 70px;
    height: 70px;
    margin-top: 20px;
  }

  .social-list li i {
    font-size: 32px;
  }

  /* Contact Section */
  #contact-section {
    padding: 40px 15px;
  }

  #contact-section h4 {
    font-size: 18px;
    margin-top: 15px;
  }

  #contact-section .contact-address li {
    font-size: 14px;
  }

  .contact-form {
    padding: 20px;
    margin: 30px;
  }

  /* Footer */
  footer {
    padding: 40px 20px 10px;
  }

  .footer-top .row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer-top .row > div {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer .copyright {
    font-size: 14px;
  }
  
  .footer-top .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

  .description-with-check:before {
    margin-left: 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 0; /* Margin bawah dari .form-group sudah cukup */
  }

  .form-control {
    padding: 12px 12px 12px 40px;
  }

  .form-icon {
    font-size: 16px;
    left: 12px;
  }

  .alert {
    margin: 30px;
  }

  .item-counter {
    font-size: 13px;
    padding: 4px 12px;
    margin-top: 10px;
  }

  .desktop-only-toggle {
    display: none; /* Sembunyikan tombol desktop di mobile */
  }

  .mobile-only-toggle {
    display: flex; /* Tampilkan tombol mobile */
  }

  /* Pindahkan navbar-actions ke kanan dan brand ke kiri */
  .navbar-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .skills-filter-buttons {
    display: none;
  }

  /* Tampilkan filter select KHUSUS untuk Skills */
  .skills-filter-wrapper {
    display: block;
  }

  .modal-footer {
    display: flex;
    justify-content: center;
  }

  .gallery-item.main-image {
    height: auto; /* Atau hapus baris height sama sekali */
  }
  .image-viewer-nav.prev {
    left: 5px; /* Lebih dekat ke sisi di mobile */
  }
  .image-viewer-nav.next {
    right: 5px; /* Lebih dekat ke sisi di mobile */
  }
  .image-viewer-nav {
    font-size: 30px;
    padding: 5px 10px;
  }
  .image-viewer-nav i {
    padding: 5px 0px 0px 5px;
  }

  /* Support Section for 768px */
  .support-columns-container {
    gap: 15px; /* Perkecil jarak antar kolom */
    flex-wrap: nowrap; /* Paksa agar tidak turun ke bawah */
  }
  a.support-column {
    padding: 15px; /* Perkecil padding di dalam kartu */
    min-width: 0; /* Izinkan kartu untuk menyusut */
  }
  .support-column h3 {
    font-size: 0.8rem; /* Perkecil ukuran judul */
  }
  .support-column p {
    font-size: 0.8rem; /* Perkecil ukuran paragraf */
    margin-bottom: 15px;
  }
  .support-button-image-wrapper img {
    max-width: 80px; /* Perkecil ukuran gambar logo */
  }
/* [PERBAIKAN] Statistik bulanan/harian di mobile */
  .stats-summary-container {
    flex-direction: row; /* Mengatur agar berjejer horizontal */
    justify-content: space-around;
    align-items: flex-start; /* Sejajarkan ke atas jika tinggi berbeda */
    gap: 10px;
    padding: 20px 10px; /* Kurangi padding agar lebih lega */
    margin-top: 30px;
  }

  /* [PERBAIKAN] Perkecil ukuran konten agar muat berdampingan */
  .stats-summary-container .fact {
    flex: 1; /* Biarkan setiap item mengambil ruang yang sama */
    min-width: 0; /* Mencegah item meluap */
  }
  .stats-summary-container .fact i {
    font-size: 2rem; /* Ikon diperkecil */
    margin-bottom: 8px;
  }
  .stats-summary-container .summary-number {
    font-size: 2rem; /* Angka diperkecil */
  }
  .stats-summary-container .lead {
    font-size: 0.75rem; /* Teks diperkecil */
    line-height: 1.3;
  }
  
  .recaptcha-container {
    /* Perkecil ukuran widget reCAPTCHA agar tidak meluap di layar sempit */
    transform: scale(0.7);
    
    /* Sesuaikan margin bawah karena scaling juga memperkecil jarak vertikal */
    margin-bottom: 20px; 
  }
}

/* Hover dan animasi AOS sudah dipisah ke elemen terpisah — tidak butuh override !important */