/* Dasar dan warna */
:root {
  --bg: #f7f9fd;
  --bg-soft: #edf2fa;
  --surface: #ffffff;
  --surface-2: #f0f4fb;
  --text: #101b31;
  --muted: #64738c;
  --navy: #0b1528;
  --navy-2: #14243e;
  --blue: #2864ed;
  --blue-light: #65a5ff;
  --border: #dce4f0;
  --shadow: 0 18px 55px rgba(16, 35, 67, 0.09);
  --header-bg: rgba(247, 249, 253, 0.88);
  --radius: 20px;
}

body.dark-theme {
  --bg: #091326;
  --bg-soft: #0d1a30;
  --surface: #111f36;
  --surface-2: #172741;
  --text: #f3f6fc;
  --muted: #a5b3c9;
  --navy: #071225;
  --navy-2: #14243e;
  --blue: #4383ff;
  --blue-light: #78b5ff;
  --border: #263954;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
  --header-bg: rgba(9, 19, 38, 0.88);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

body, button, a {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

::selection {
  background: rgba(40, 100, 237, 0.25);
}

/* Indikator scroll */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #72b9ff);
  z-index: 2000;
}

/* Navigasi */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.2px;
  white-space: nowrap;
}

.logo span {
  color: var(--blue-light);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  transition: 0.25s ease;
}

.theme-toggle {
  font-size: 22px;
}

.theme-toggle:hover,
.menu-toggle:hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 5px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 48%, rgba(49, 111, 220, 0.14), transparent 36%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
}

body.dark-theme .hero {
  background:
    radial-gradient(ellipse at 78% 48%, rgba(44, 104, 202, 0.18), transparent 38%),
    linear-gradient(135deg, #091326 0%, #0d1b32 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 55px;
  padding-block: 80px 95px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(71, 139, 238, 0.25);
  border-radius: 30px;
  background: rgba(55, 125, 225, 0.1);
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 25px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4d9bff;
  box-shadow: 0 0 0 4px rgba(77, 155, 255, 0.13);
}

.hero h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(43px, 5.1vw, 70px);
  line-height: 1.12;
  letter-spacing: -3.5px;
  font-weight: 800;
  margin-bottom: 17px;
}

.hero h1 span {
  color: var(--blue-light);
}

.hero-subtitle {
  color: var(--blue-light);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-description {
  max-width: 590px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 22px;
}

.hero-location span {
  color: var(--blue-light);
  font-size: 20px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 49px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.25s ease;
}

.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 22px rgba(40, 100, 237, 0.2);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(40, 100, 237, 0.3);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
}

.social-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--blue-light);
}

/* Foto dan floating card */
.hero-visual {
  min-height: 470px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 120, 229, 0.2), transparent 68%);
  filter: blur(10px);
}

.photo-frame {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  height: 490px;
  padding: 12px;
  border: 1px solid rgba(95, 151, 222, 0.32);
  border-radius: 29px;
  background: rgba(38, 74, 122, 0.12);
  transform: rotate(1.5deg);
  transition: transform 0.4s ease;
}

.photo-frame:hover {
  transform: rotate(0deg) translateY(-5px);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(100, 151, 216, 0.25);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.floating-card-top {
  top: 65px;
  left: -35px;
}

.floating-card-bottom {
  right: -28px;
  bottom: 95px;
  animation-delay: 1s;
}

.floating-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(51, 119, 222, 0.13);
  color: var(--blue-light);
  font-size: 21px;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  font-size: 13px;
  line-height: 1.5;
}

.floating-card small {
  color: var(--muted);
  font-size: 11px;
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.scroll-hint span {
  color: var(--blue-light);
  font-size: 19px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Bagian umum */
.section {
  padding-block: 100px;
}

.section-muted {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 43px;
}

.section-kicker {
  display: inline-block;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 13px;
}

.section-heading h2,
.contact-panel h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.section-heading > p,
.contact-panel > p {
  color: var(--muted);
  font-size: 15px;
}

/* Tentang saya */
.about-card {
  position: relative;
  max-width: 930px;
  padding: 40px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.about-mark {
  color: var(--blue-light);
  font-family: Georgia, serif;
  font-size: 65px;
  line-height: 0.8;
  margin-bottom: 12px;
}

/* Pendidikan */
.timeline {
  max-width: 900px;
  margin-left: 8px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 42px 35px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -8px;
  top: 5px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px rgba(40, 100, 237, 0.1);
}

.timeline-content {
  padding: 27px 30px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.item-date {
  display: inline-block;
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.timeline-content h3,
.experience-main h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 5px;
}

.item-place {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.item-highlight {
  display: inline-block;
  color: var(--blue-light);
  background: rgba(55, 125, 225, 0.1);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 12px;
}

.detail-list {
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.detail-list li {
  padding-left: 3px;
  margin-bottom: 5px;
}

.detail-list li::marker {
  color: var(--blue-light);
}

/* Filter proyek */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.filter-button {
  padding: 9px 17px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(73, 139, 239, 0.55);
  box-shadow: var(--shadow);
}

.project-card.hidden {
  display: none;
}

.project-featured {
  border-color: rgba(64, 130, 230, 0.5);
  background:
    radial-gradient(circle at 100% 0%, rgba(48, 112, 220, 0.12), transparent 42%),
    var(--surface);
}

.project-topline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.project-number {
  color: var(--blue-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.project-type {
  color: var(--muted);
  font-size: 11px;
}

.project-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 7px;
}

.project-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 8px 0 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin-top: 18px;
}

.tag-list li,
.modal-tags span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.detail-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
}

.detail-button:hover {
  color: var(--text);
}

.empty-filter {
  color: var(--muted);
  text-align: center;
  padding: 35px;
}

/* Organisasi */
.experience-list {
  display: grid;
  gap: 14px;
}

.experience-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.experience-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.experience-marker {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(55, 125, 225, 0.12);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 800;
}

/* Sertifikat */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.certificate-card {
  min-height: 165px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.certificate-year,
.award-year {
  display: inline-block;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
}

.certificate-card h3,
.award-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.certificate-card p,
.award-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Penghargaan */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.award-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.award-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.award-card:first-child {
  border-color: rgba(73, 139, 239, 0.5);
  background:
    radial-gradient(circle at 100% 0%, rgba(48, 112, 220, 0.13), transparent 45%),
    var(--surface);
}

/* Keterampilan */
.skill-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill-group {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.skill-group h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  margin-bottom: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-tags span {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: 0.2s ease;
}

.skill-tags span:hover {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
  transform: translateY(-2px);
}

/* Kontak */
.contact-section {
  padding-block: 90px;
}

.contact-panel {
  padding: 48px;
  border: 1px solid rgba(92, 151, 231, 0.25);
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0%, rgba(54, 117, 219, 0.18), transparent 38%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 650px;
}

.contact-panel > p {
  max-width: 650px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg);
  transition: 0.25s ease;
}

.contact-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.contact-symbol {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(55, 125, 225, 0.13);
  color: var(--blue-light);
  font-weight: 800;
}

.contact-card small,
.contact-card strong {
  display: block;
}

.contact-card small {
  color: var(--muted);
  font-size: 11px;
}

.contact-card strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-content {
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content .logo {
  font-size: 21px;
}

.footer-content p {
  color: var(--muted);
  font-size: 12px;
}

/* Modal proyek */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 23, 0.72);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(15px);
  transition: transform 0.25s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-content h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 25px;
  line-height: 1.35;
  margin: 8px 35px 14px 0;
}

.modal-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 23px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* Tombol kembali ke atas */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: white;
  font-size: 22px;
  box-shadow: 0 8px 25px rgba(40, 100, 237, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* Animasi saat scroll */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsif tablet */
@media (max-width: 1050px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .hero-grid {
    gap: 35px;
  }

  .photo-frame {
    width: 340px;
    height: 440px;
  }

  .floating-card-top {
    left: -15px;
  }

  .floating-card-bottom {
    right: -10px;
  }
}

/* Responsif mobile */
@media (max-width: 850px) {
  .navbar {
    min-height: 70px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px 5px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 75px 85px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-location,
  .hero-buttons,
  .social-links {
    justify-content: center;
  }

  .hero-visual {
    min-height: 460px;
  }

  .photo-frame {
    width: min(350px, 78%);
    height: 430px;
  }

  .floating-card-top {
    left: 5%;
    top: 40px;
  }

  .floating-card-bottom {
    right: 3%;
    bottom: 55px;
  }

  .scroll-hint {
    display: none;
  }

  .section {
    padding-block: 75px;
  }

  .certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsif HP kecil */
@media (max-width: 600px) {
  .container {
    width: min(100% - 34px, 1120px);
  }

  .logo {
    font-size: 23px;
  }

  .hero-grid {
    padding-top: 55px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
    letter-spacing: -2.5px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .photo-frame {
    width: 75%;
    height: 365px;
    padding: 8px;
  }

  .floating-card {
    padding: 10px 12px;
    gap: 8px;
  }

  .floating-icon {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .floating-card strong {
    font-size: 10px;
  }

  .floating-card small {
    font-size: 10px;
  }

  .floating-card-top {
    top: 25px;
    left: 0;
  }

  .floating-card-bottom {
    right: 0;
    bottom: 35px;
  }

  .social-links {
    gap: 17px;
  }

  .social-links a {
    font-size: 12px;
  }

  .section {
    padding-block: 65px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .contact-panel h2 {
    font-size: 29px;
  }

  .section-heading > p,
  .contact-panel > p {
    font-size: 13px;
  }

  .about-card {
    padding: 25px;
  }

  .about-card p {
    font-size: 14px;
    line-height: 1.85;
  }

  .timeline-item {
    padding-left: 25px;
  }

  .timeline-content {
    padding: 21px;
  }

  .timeline-content h3,
  .experience-main h3 {
    font-size: 17px;
  }

  .project-grid,
  .awards-grid,
  .skill-groups,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 22px;
  }

  .experience-item {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .experience-marker {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .certificate-card {
    min-height: auto;
  }

  .skill-group {
    padding: 22px;
  }

  .contact-panel {
    padding: 28px 22px;
  }

  .footer-content {
    padding-block: 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* Kurangi animasi jika diminta perangkat */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Penyesuaian judul ringkas */
.section-heading {
  margin-bottom: 35px;
}

.section-heading h2,
.contact-panel h2 {
  margin-bottom: 0;
}

.contact-panel h2 {
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .section-heading {
    margin-bottom: 27px;
  }

  .contact-panel h2 {
    margin-bottom: 22px;
  }
}
