:root {
  --ink: #2f2630;
  --muted: #756976;
  --cream: #f9f4f2;
  --paper: #fffdfc;
  --blush: #e98ca2;
  --rose: #ca617d;
  --gold: #c79b56;
  --lavender: #9d86b6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(233, 140, 162, .12), transparent 24%),
    radial-gradient(circle at 8% 24%, rgba(157, 134, 182, .10), transparent 20%),
    var(--cream);
  overflow-x: hidden;
}

h1, .font-display { font-family: 'Playfair Display', Georgia, serif; }
a, button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

.container-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.section-space { padding-block: 88px; }

.glass {
  background: rgba(255, 253, 252, .80);
  border: 1px solid rgba(47, 38, 48, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.soft-card {
  background: rgba(255, 253, 252, .92);
  border: 1px solid rgba(47, 38, 48, .08);
  box-shadow: 0 14px 44px rgba(91, 57, 75, .07);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.soft-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(91, 57, 75, .13);
  border-color: rgba(202, 97, 125, .24);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(255, 253, 252, .82);
  border: 1px solid rgba(202, 97, 125, .18);
  color: var(--rose);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--rose);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  margin-top: .55rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.035em;
}

.gradient-text {
  background: linear-gradient(120deg, var(--rose), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  position: relative;
  color: rgba(47, 38, 48, .66);
  font-size: .84rem;
  font-weight: 700;
  transition: color .25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blush), var(--gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--rose); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--blush));
  box-shadow: 0 12px 30px rgba(202, 97, 125, .25);
}
.secondary-btn {
  color: var(--ink);
  background: rgba(255, 253, 252, .84);
  border: 1px solid rgba(47, 38, 48, .10);
}
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-3px); }
.primary-btn:hover { box-shadow: 0 16px 38px rgba(202, 97, 125, .34); }

/* HERO */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding-top: 116px;
  padding-bottom: 34px;
}

.hero-title {
  font-size: clamp(3.8rem, 7.4vw, 5.7rem);
}

.hero-qa-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 455px;
  border-radius: 28px;
  padding: 21px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(251,242,244,.92)),
    var(--paper);
  border: 1px solid rgba(47, 38, 48, .08);
  box-shadow: 0 24px 64px rgba(91, 57, 75, .12);
}

.hero-qa-panel::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -82px;
  top: -82px;
  background: rgba(233, 140, 162, .14);
}

.hero-qa-panel::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  left: -85px;
  bottom: -95px;
  background: rgba(157, 134, 182, .11);
}

.qa-panel-title {
  max-width: 330px;
  font-size: clamp(1.7rem, 2.35vw, 2.15rem);
  line-height: 1.16;
}

.qa-focus-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 61px;
  padding: 10px;
  border-radius: 15px;
  background: rgba(255, 253, 252, .84);
  border: 1px solid rgba(47, 38, 48, .07);
}

.qa-focus-item > div {
  min-width: 0;
}

.qa-focus-item p {
  overflow-wrap: anywhere;
}

.qa-focus-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  color: var(--rose);
  background: rgba(233, 140, 162, .12);
}

/* FOTO DI ABOUT */
.about-photo {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(233,140,162,.42), rgba(199,155,86,.28), rgba(157,134,182,.34));
  box-shadow: 0 24px 65px rgba(91,57,75,.14);
}

.about-photo-inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(248,238,239,.9)),
    var(--paper);
}

.about-photo-inner img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--rose);
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 10vw, 6.5rem);
  background:
    radial-gradient(circle at 50% 42%, rgba(233,140,162,.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,238,239,.9));
}

.photo-status {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--rose);
  background: var(--paper);
  border: 1px solid rgba(202,97,125,.15);
  box-shadow: 0 12px 34px rgba(91,57,75,.10);
  font-size: .82rem;
  font-weight: 700;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .72rem .95rem;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 252, .88);
  border: 1px solid rgba(47, 38, 48, .09);
  font-size: .86rem;
  font-weight: 600;
  transition: transform .22s ease, border-color .22s ease;
}
.skill-chip:hover { transform: translateY(-3px); border-color: rgba(202, 97, 125, .28); }
.skill-chip i { color: var(--rose); }

.timeline-line { position: relative; }
.timeline-line::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(var(--blush), rgba(157, 134, 182, .32));
}
.timeline-item { position: relative; padding-left: 58px; }
.timeline-dot {
  position: absolute;
  left: 8px;
  top: 28px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 6px solid var(--blush);
  box-shadow: 0 0 0 5px rgba(233, 140, 162, .12);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: .36rem .62rem;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(233, 140, 162, .10);
  border: 1px solid rgba(202, 97, 125, .12);
  font-size: .72rem;
  font-weight: 700;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

#mobilePanel { transform: translateX(110%); transition: transform .34s cubic-bezier(.22,1,.36,1); }
#mobilePanel.open { transform: translateX(0); }
#mobileOverlay { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
#mobileOverlay.open { opacity: 1; visibility: visible; }

#scrollBar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--lavender));
}

#backToTop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s ease;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

@media (min-width: 1024px) and (max-height: 740px) {
  .hero-section {
    padding-top: 101px;
    padding-bottom: 20px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-title {
    margin-top: 12px !important;
    font-size: clamp(4rem, 6.1vw, 4.85rem);
  }

  .hero-description {
    margin-top: 13px !important;
    max-width: 570px;
    font-size: .98rem !important;
    line-height: 1.55 !important;
  }

  .hero-actions {
    margin-top: 15px !important;
  }

  .primary-btn,
  .secondary-btn {
    min-height: 43px;
    padding: .67rem 1rem;
    font-size: .82rem;
  }

  .hero-qa-panel {
    max-width: 435px;
    padding: 17px;
    border-radius: 24px;
  }

  .qa-panel-title {
    margin-top: 4px !important;
    font-size: 1.42rem;
  }

  .qa-panel-description {
    margin-top: 8px !important;
    line-height: 1.45 !important;
  }

  .qa-focus-grid {
    margin-top: 10px !important;
    gap: 7px !important;
  }

  .qa-focus-item {
    min-height: 52px;
    padding: 7px 8px;
    gap: 8px;
    border-radius: 12px;
  }

  .qa-focus-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 10px;
    font-size: .82rem;
  }

  .qa-focus-item .font-bold {
    font-size: .78rem;
  }

  .qa-focus-item .text-xs {
    font-size: .63rem;
  }

  .qa-workflow {
    margin-top: 9px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  .qa-workflow p {
    margin-bottom: 4px !important;
  }

  .qa-availability {
    margin-top: 8px !important;
    padding: 8px 11px !important;
    border-radius: 12px !important;
  }

  .qa-availability .text-sm {
    font-size: .72rem !important;
  }
}

@media (max-width: 1023px) {
  .hero-section {
    min-height: auto;
    padding-top: 126px;
    padding-bottom: 68px;
  }

  .hero-qa-panel {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .container-shell {
    width: min(100% - 24px, 1180px);
  }

  .section-space {
    padding-block: 66px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 56px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 18vw, 4.65rem);
  }

  .hero-description {
    line-height: 1.68 !important;
  }

  .hero-qa-panel {
    padding: 18px;
    border-radius: 23px;
  }

  .qa-panel-title {
    font-size: 1.48rem;
  }

  .qa-focus-grid {
    grid-template-columns: 1fr;
  }

  .qa-focus-item {
    min-height: 58px;
  }

  .timeline-line::before {
    left: 13px;
  }

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

  .timeline-dot {
    left: 3px;
  }

  .about-photo {
    width: min(300px, 88vw);
    border-radius: 26px;
  }

  .about-photo-inner {
    border-radius: 19px;
  }

  .photo-status {
    bottom: -16px;
    padding: 9px 13px;
    font-size: .76rem;
  }
}

@media (max-width: 420px) {
  .hero-actions a {
    width: 100%;
  }

  .qa-workflow .flex {
    gap: .42rem;
  }
}


/* PENYESUAIAN UKURAN FONT */
.font-up {
  font-size: 17px;
}

.font-up .nav-link {
  font-size: .92rem;
}

.font-up .primary-btn,
.font-up .secondary-btn {
  font-size: .96rem;
}

.font-up .eyebrow,
.font-up .section-kicker {
  font-size: .8rem;
}

.font-up .hero-description {
  font-size: 1.14rem !important;
  line-height: 1.75 !important;
}

.font-up .qa-panel-description {
  font-size: .96rem !important;
  line-height: 1.65 !important;
}

.font-up .qa-focus-item .font-bold {
  font-size: .96rem;
}

.font-up .qa-focus-item .text-xs {
  font-size: .78rem;
  line-height: 1.35;
}

.font-up .qa-workflow {
  font-size: .86rem;
}

.font-up .qa-workflow p {
  font-size: .73rem !important;
}

.font-up .qa-availability .text-sm {
  font-size: .9rem !important;
}

.font-up .section-title {
  font-size: clamp(2.25rem, 4.4vw, 3.55rem);
}

.font-up #about p,
.font-up #experience p,
.font-up #projects p,
.font-up #skills p,
.font-up #contact p {
  font-size: 1.04rem;
}

.font-up #about .text-sm,
.font-up #experience .text-sm,
.font-up #projects .text-sm,
.font-up #skills .text-sm,
.font-up #contact .text-sm {
  font-size: .94rem !important;
}

.font-up .skill-chip {
  font-size: .94rem;
}

.font-up .project-tag {
  font-size: .78rem;
}

.font-up .timeline-item h3,
.font-up #projects h3 {
  line-height: 1.25;
}

.font-up footer {
  font-size: .94rem;
}

@media (min-width: 1024px) and (max-height: 740px) {
  .font-up {
    font-size: 16px;
  }

  .font-up .hero-description {
    font-size: 1.02rem !important;
    line-height: 1.58 !important;
  }

  .font-up .qa-panel-description {
    font-size: .82rem !important;
    line-height: 1.48 !important;
  }

  .font-up .qa-focus-item .font-bold {
    font-size: .82rem;
  }

  .font-up .qa-focus-item .text-xs {
    font-size: .66rem;
  }

  .font-up .qa-workflow {
    font-size: .72rem;
  }

  .font-up .qa-availability .text-sm {
    font-size: .74rem !important;
  }
}

@media (max-width: 767px) {
  .font-up {
    font-size: 16.5px;
  }

  .font-up .hero-description {
    font-size: 1.05rem !important;
    line-height: 1.72 !important;
  }

  .font-up .qa-panel-description {
    font-size: .94rem !important;
  }

  .font-up .section-title {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .font-up #about p,
  .font-up #experience p,
  .font-up #projects p,
  .font-up #skills p,
  .font-up #contact p {
    font-size: 1rem;
  }

  .font-up .skill-chip {
    font-size: .9rem;
  }
}


/* FINAL HERO TITLE & RESPONSIVE SAFETY */
.hero-copy-block {
  min-width: 0;
}

.hero-title {
  max-width: 100%;
  font-size: clamp(4.8rem, 8.2vw, 6.65rem);
  line-height: .86;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.hero-title .gradient-text {
  display: inline-block;
  max-width: 100%;
}

.hero-actions {
  align-items: stretch;
}

.hero-qa-panel,
.soft-card,
.glass {
  min-width: 0;
}

.qa-focus-item,
.qa-focus-item > div,
.timeline-item,
article {
  min-width: 0;
}

.qa-focus-item p,
.timeline-item p,
.timeline-item h3,
#projects p,
#projects h3 {
  overflow-wrap: anywhere;
}

@media (min-width: 1440px) {
  .hero-title {
    font-size: 7rem;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(4.9rem, 8vw, 5.85rem);
  }

  .hero-qa-panel {
    max-width: 420px;
  }
}

@media (min-width: 1024px) and (max-height: 740px) {
  .hero-section {
    min-height: auto;
    padding-top: 98px;
    padding-bottom: 24px;
  }

  .hero-title {
    margin-top: 9px !important;
    font-size: clamp(5.15rem, 7.1vw, 5.85rem);
    line-height: .84;
  }

  .hero-description {
    margin-top: 12px !important;
  }

  .hero-actions {
    margin-top: 14px !important;
  }
}

@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-title {
    margin-inline: auto;
    font-size: clamp(5rem, 13.5vw, 6.4rem);
  }

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

@media (max-width: 767px) {
  .hero-section {
    overflow: clip;
  }

  .hero-title {
    font-size: clamp(4.15rem, 18vw, 5.35rem);
    line-height: .88;
    letter-spacing: -.06em;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions a {
    min-width: 0;
  }

  .hero-qa-panel {
    width: 100%;
  }

  .qa-focus-grid {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .hero-title {
    font-size: clamp(3.75rem, 17.3vw, 4.65rem);
  }

  .hero-description {
    font-size: 1rem !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .qa-panel-title {
    padding-right: 4px;
  }

  .qa-workflow .flex {
    line-height: 1.7;
  }

  .photo-status {
    max-width: calc(100% - 24px);
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 359px) {
  .hero-title {
    font-size: 3.45rem;
  }

  .container-shell {
    width: calc(100% - 20px);
  }

  .hero-qa-panel {
    padding: 15px;
  }
}


/* FINAL FIX: HERO PENUH, TIDAK MEMPERLIHATKAN SECTION BERIKUTNYA */
@media (min-width: 1024px) {
  .hero-section {
    min-height: 100svh !important;
  }
}

/*
  Layar laptop pendek tetap diberi tinggi minimum 680px.
  Konten tidak dipaksa masuk ke viewport yang terlalu pendek,
  sehingga tidak terpotong dan pengguna cukup melakukan scroll.
*/
@media (min-width: 1024px) and (max-height: 740px) {
  .hero-section {
    min-height: max(680px, 100svh) !important;
    align-items: flex-start !important;
    padding-top: 108px !important;
    padding-bottom: 64px !important;
  }

  .hero-grid {
    align-items: center !important;
  }

  .hero-title {
    margin-top: 12px !important;
    font-size: clamp(5.2rem, 7.35vw, 6rem) !important;
    line-height: .84 !important;
  }

  .hero-description {
    margin-top: 14px !important;
    max-width: 590px;
    font-size: 1.04rem !important;
    line-height: 1.6 !important;
  }

  .hero-actions {
    margin-top: 17px !important;
  }

  .hero-qa-panel {
    max-width: 435px !important;
  }
}

/* Desktop normal: isi hero berada di tengah satu layar penuh. */
@media (min-width: 1024px) and (min-height: 741px) {
  .hero-section {
    min-height: 100svh !important;
    align-items: center !important;
    padding-top: 124px !important;
    padding-bottom: 56px !important;
  }
}

/* Tablet dan mobile memakai tinggi alami karena susunan berubah menjadi satu kolom. */
@media (max-width: 1023px) {
  .hero-section {
    min-height: auto !important;
    align-items: flex-start !important;
  }
}

/* Pengamanan tambahan agar tidak ada elemen melebar keluar layar. */
.hero-grid,
.hero-copy-block,
.hero-qa-panel,
.qa-focus-grid,
.qa-focus-item,
.qa-focus-item > div {
  min-width: 0;
}

.hero-title,
.hero-description,
.qa-panel-title,
.qa-panel-description,
.qa-focus-item p {
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(4rem, 17.5vw, 5.25rem) !important;
  }

  .hero-qa-panel {
    max-width: 100% !important;
  }
}

@media (max-width: 479px) {
  .hero-title {
    font-size: clamp(3.6rem, 17vw, 4.55rem) !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .hero-actions a {
    width: 100% !important;
  }
}


/* HERO POSITION, GRID BACKGROUND, AND SECTION TRANSITION */
.hero-section {
  isolation: isolate;
}

/* Pola kotak-kotak halus pada latar hero */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(202, 97, 125, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 97, 125, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .88) 0%,
    rgba(0, 0, 0, .72) 58%,
    transparent 96%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, .88) 0%,
    rgba(0, 0, 0, .72) 58%,
    transparent 96%
  );
}

/* Sedikit efek cahaya supaya pola tidak terasa kaku */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 42%, rgba(255, 255, 255, .76), transparent 30%),
    radial-gradient(circle at 80% 38%, rgba(233, 140, 162, .10), transparent 34%);
}

.hero-section > .container-shell {
  position: relative;
  z-index: 3;
}

.hero-grid {
  position: relative;
  z-index: 3;
  transform: translateY(18px);
}

/* Gradasi lembut menuju bagian Tentang Saya */
.hero-bottom-transition {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 150px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(249, 244, 242, 0) 0%,
    rgba(253, 249, 248, .52) 44%,
    rgba(255, 253, 252, .92) 82%,
    rgba(255, 253, 252, 1) 100%
  );
}

/* Garis dekoratif kecil di titik pergantian section */
.hero-bottom-transition::after {
  content: '';
  position: absolute;
  right: 12%;
  bottom: 20px;
  left: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(202, 97, 125, .13),
    rgba(199, 155, 86, .16),
    transparent
  );
}

@media (min-width: 1024px) and (min-height: 741px) {
  .hero-section {
    align-items: center !important;
    padding-top: 116px !important;
    padding-bottom: 76px !important;
  }

  .hero-grid {
    transform: translateY(24px);
  }
}

/* Laptop seperti 1366 × 680: tetap di tengah, tetapi aman */
@media (min-width: 1024px) and (min-height: 601px) and (max-height: 740px) {
  .hero-section {
    min-height: 100svh !important;
    align-items: center !important;
    padding-top: 96px !important;
    padding-bottom: 54px !important;
  }

  .hero-grid {
    transform: translateY(14px);
  }

  .hero-bottom-transition {
    height: 108px;
  }
}

/* Layar yang benar-benar pendek tidak dipaksa center */
@media (min-width: 1024px) and (max-height: 600px) {
  .hero-section {
    min-height: 640px !important;
    align-items: flex-start !important;
    padding-top: 94px !important;
    padding-bottom: 66px !important;
  }

  .hero-grid {
    transform: none;
  }

  .hero-bottom-transition {
    height: 92px;
  }
}

@media (max-width: 1023px) {
  .hero-grid {
    transform: none;
  }

  .hero-bottom-transition {
    height: 120px;
  }

  .hero-section::before {
    background-size: 36px 36px;
    opacity: .82;
  }
}

@media (max-width: 767px) {
  .hero-section::before {
    background-size: 32px 32px;
    background-image:
      linear-gradient(rgba(202, 97, 125, .045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(202, 97, 125, .045) 1px, transparent 1px);
  }

  .hero-bottom-transition {
    height: 92px;
  }

  .hero-bottom-transition::after {
    right: 20%;
    left: 20%;
  }
}


/* BUTTON IMPROVEMENTS */
.secondary-btn {
  color: #fff;
  background: linear-gradient(135deg, #3a2f3b, #2f2630);
  border: 1px solid rgba(47, 38, 48, .18);
  box-shadow: 0 12px 28px rgba(47, 38, 48, .18);
}

.secondary-btn:hover {
  background: linear-gradient(135deg, #473949, #332936);
  box-shadow: 0 16px 34px rgba(47, 38, 48, .26);
}

.dark-btn {
  color: #fff !important;
}

.menu-icon-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--blush));
  border: 1px solid rgba(202, 97, 125, .22);
  box-shadow: 0 10px 24px rgba(202, 97, 125, .22);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.menu-icon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(202, 97, 125, .30);
}

.menu-icon-btn:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
  outline: 3px solid rgba(202, 97, 125, .26);
  outline-offset: 3px;
}

/* Tombol pada area gelap tetap transparan tetapi tidak putih polos */
#contact .secondary-btn {
  color: #fff !important;
  background: rgba(233, 140, 162, .14) !important;
  border-color: rgba(233, 140, 162, .34) !important;
  box-shadow: none;
}

#contact .secondary-btn:hover {
  background: rgba(233, 140, 162, .24) !important;
}

@media (max-width: 479px) {
  .hero-actions {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* External link interaction */
a[href^="http"],
a[href^="mailto:"] {
  cursor: pointer;
}

a[href^="http"]:focus-visible,
a[href^="mailto:"]:focus-visible {
  outline: 3px solid rgba(202, 97, 125, .28);
  outline-offset: 4px;
  border-radius: 8px;
}

.external-link-fix {
  text-decoration: none;
}


/* EXPERIENCE & PORTFOLIO INTERACTION */
.experience-card,
.portfolio-card {
  position: relative;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.experience-card {
  border: 1px solid rgba(47, 38, 48, .08);
}

.experience-card:hover,
.experience-card:focus-visible,
.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(202, 97, 125, .30);
  box-shadow: 0 24px 58px rgba(91, 57, 75, .13);
}

.experience-card:focus-visible,
.portfolio-card:focus-visible {
  outline: 3px solid rgba(202, 97, 125, .22);
  outline-offset: 4px;
}

.card-open-hint,
.portfolio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--rose);
  font-size: .82rem;
  font-weight: 800;
}

.card-open-hint {
  padding-top: 18px;
  border-top: 1px solid rgba(47, 38, 48, .08);
}

.card-open-hint span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portfolio-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
}

.portfolio-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portfolio-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 16px;
  color: var(--rose);
  background: rgba(233, 140, 162, .11);
  font-size: 1.1rem;
}

.portfolio-card-footer {
  margin-top: auto;
  padding-top: 22px;
}

.portfolio-card-footer i,
.card-open-hint > i {
  transition: transform .22s ease;
}

.portfolio-card:hover .portfolio-card-footer i,
.portfolio-card:focus-visible .portfolio-card-footer i,
.experience-card:hover .card-open-hint > i,
.experience-card:focus-visible .card-open-hint > i {
  transform: translateX(4px);
}

/* WORK MODAL */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.work-modal.open {
  opacity: 1;
  visibility: visible;
}

.work-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
  background: rgba(47, 38, 48, .58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 0;
}

.work-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  border-radius: 30px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(233, 140, 162, .13), transparent 28%),
    var(--paper);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 30px 90px rgba(47, 38, 48, .28);
  transform: translateY(20px) scale(.98);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.work-modal.open .work-modal-dialog {
  transform: translateY(0) scale(1);
}

.work-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.work-modal-title {
  margin-top: 7px;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.035em;
}

.work-modal-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--blush));
  box-shadow: 0 10px 28px rgba(202, 97, 125, .26);
}

.work-modal-meta {
  margin-top: 18px;
  color: var(--rose);
  font-size: .86rem;
  font-weight: 800;
}

.work-modal-description {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

.work-modal-bullets {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
}

.work-modal-bullets li {
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
}

.work-modal-bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(233, 140, 162, .12);
}

.work-modal-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.work-result-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 13px 15px;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(233, 140, 162, .09);
  border: 1px solid rgba(202, 97, 125, .13);
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.work-result-link:hover,
.work-result-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(233, 140, 162, .16);
  border-color: rgba(202, 97, 125, .28);
}

.work-result-link span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.work-empty-state {
  padding: 15px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(47, 38, 48, .045);
  border: 1px dashed rgba(47, 38, 48, .15);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .portfolio-card {
    min-height: 280px;
  }

  .work-modal {
    align-items: end;
    padding: 10px;
  }

  .work-modal-dialog {
    width: 100%;
    max-height: 88vh;
    border-radius: 26px 26px 18px 18px;
    padding: 22px 18px;
  }

  .work-modal-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 420px) {
  .portfolio-card {
    min-height: auto;
  }

  .card-open-hint,
  .portfolio-card-footer {
    font-size: .76rem;
  }
}


/* EXPERIENCE CARDS ARE INFORMATIONAL ONLY */
.experience-card-static {
  position: relative;
  cursor: default;
  color: inherit;
}

.experience-card-static:hover {
  transform: none;
  border-color: rgba(47, 38, 48, .08);
  box-shadow: 0 14px 44px rgba(91, 57, 75, .07);
}
