/* ═══════════════════════════════════════════════════════════════
   FAWAZ DIMARCIANO AFGHAN — PORTFOLIO
   Warm Mode · Maroon & Cream · Luxury Corporate
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   Color inspiration: Gudang Garam TBK
═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Sebelumnya ivory/white, sekarang krem hangat */
  --ivory:       #F5EDD8;
  --white:       #FDF8EF;

  /* Ganti emerald → maroon/merah tua ala Gudang Garam */
  --emerald:     #7A1219;
  --emerald-mid: #9E1B25;
  --emerald-lt:  #E8B4B8;
  --emerald-xs:  #F5E0E2;
  --emerald-glow:#C0392B;

  /* Gold tetap, sedikit dihangatkan */
  --gold:        #B8922A;

  /* Teks tetap gelap tapi sedikit lebih coklat */
  --ink:         #1C1007;
  --ink-70:      rgba(28,16,7,.70);
  --ink-40:      rgba(28,16,7,.40);
  --ink-12:      rgba(28,16,7,.12);
  --ink-06:      rgba(28,16,7,.06);
  --line:        rgba(28,16,7,.10);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  --ease-out:   cubic-bezier(.22,.68,0,1.1);
  --ease-smooth: cubic-bezier(.4,0,.2,1);

  --section-pad: clamp(5rem, 10vw, 9rem);
  --container:   min(1140px, 94vw);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: var(--container); margin-inline: auto; }

/* ── Loading Screen ─────────────────────────────────────────── */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2rem;
  transition: opacity .6s var(--ease-smooth), visibility .6s;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }

.loader-logo {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: .25em;
  color: var(--emerald);
  margin-bottom: 2rem;
}

.loader-bar-wrap {
  width: 200px; height: 1px;
  background: var(--ink-12);
  margin: 0 auto 1.5rem;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: var(--emerald);
  width: 0%;
  animation: loaderFill 1.8s var(--ease-smooth) forwards;
}
@keyframes loaderFill { to { width: 100%; } }

.loader-text {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(245,237,216,.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, padding .4s;
}
.navbar.scrolled { border-color: var(--line); padding-block: .9rem; }

.nav-brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--ff-display);
}
.brand-initials {
  font-size: 1.4rem; font-weight: 700;
  color: var(--emerald); letter-spacing: .05em;
}
.brand-dot { color: var(--ink-40); font-size: 1rem; }
.brand-name { font-size: .95rem; font-weight: 400; color: var(--ink-70); letter-spacing: .02em; }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-link {
  font-size: .82rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-70); position: relative;
  transition: color .3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--emerald);
  transition: width .3s var(--ease-smooth);
}
.nav-link:hover, .nav-link.active { color: var(--emerald); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: .3s;
}

/* ── Section Headers ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }

.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 1rem;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600; line-height: 1.2;
  color: var(--ink);
}

.title-ornament {
  width: 40px; height: 1px;
  background: var(--emerald); margin: 1.5rem auto 0;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 80px;
  background: var(--ivory);
  position: relative; overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: linear-gradient(135deg, var(--emerald-xs) 0%, rgba(232,180,184,.25) 100%);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-section::after {
  content: 'FDA';
  position: absolute; right: 5%; bottom: 5%;
  font-family: var(--ff-display);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 700; color: rgba(122,18,25,.05);
  line-height: 1; pointer-events: none; z-index: 0;
  letter-spacing: .05em;
}

.hero-container {
  width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  position: relative; z-index: 1;
  padding-block: var(--section-pad);
}

/* Hero Left */
.hero-greeting {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.greeting-line {
  display: block; width: 30px; height: 1px; background: var(--emerald);
}
.greeting-text {
  font-size: .8rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--emerald);
}

.hero-name {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 600; line-height: 1.05;
  color: var(--ink); margin-bottom: 1.5rem;
}
.name-accent { color: var(--emerald); font-style: italic; }

.hero-role {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem; color: var(--ink-70);
}
.role-prefix { color: var(--emerald); }
.typewriter { font-weight: 500; }
.cursor-blink { color: var(--emerald); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: 1rem; color: var(--ink-70);
  max-width: 480px; line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .85rem 2rem;
  background: var(--emerald); color: var(--white);
  font-size: .85rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background .3s, transform .2s, box-shadow .3s;
}
.btn-primary:hover {
  background: var(--emerald-mid);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(122,18,25,.25);
}
.btn-primary i { transition: transform .3s; }
.btn-primary:hover i { transform: translateX(4px); }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .85rem 2rem;
  border: 1px solid var(--emerald);
  color: var(--emerald);
  font-size: .85rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background .3s, color .3s, transform .2s;
}
.btn-outline:hover {
  background: var(--emerald); color: var(--white);
  transform: translateY(-2px);
}

/* Hero Socials */
.hero-socials { margin-bottom: 2rem; }
.socials-label {
  display: block;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-40); margin-bottom: 1rem;
}
.social-icons { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .8rem; font-weight: 500; color: var(--ink-70);
  transition: border-color .3s, background .3s, color .3s, transform .2s;
  background: var(--white);
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn.instagram:hover { border-color: #E1306C; color: #E1306C; background: #FFF0F5; }
.social-btn.facebook:hover { border-color: #1877F2; color: #1877F2; background: #F0F5FF; }
.social-btn.whatsapp:hover { border-color: #25D366; color: #25D366; background: #F0FFF5; }

/* Hero Stats */
.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  max-width: 380px;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2rem; font-weight: 600;
  color: var(--emerald); line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-40);
}
.stat-divider { width: 1px; height: 36px; background: var(--line); }

/* Hero Right */
.hero-right { display: flex; justify-content: center; }

.profile-frame-wrap {
  position: relative; width: 420px; height: 480px;
}

.profile-img-container {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--emerald-xs);
  border: 4px solid var(--white);
  box-shadow: 0 24px 64px rgba(122,18,25,.15);
  z-index: 2;
}
.profile-img { width: 100%; height: 100%; object-fit: cover; }
.profile-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; color: var(--emerald-mid);
}
.profile-placeholder i { font-size: 3rem; }
.profile-placeholder span { font-size: .8rem; text-align: center; opacity: .7; }

.profile-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--emerald-lt);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: .5;
}
.ring-1 { width: 340px; height: 340px; animation: ringPulse 4s ease-in-out infinite; }
.ring-2 { width: 390px; height: 390px; animation: ringPulse 4s ease-in-out .8s infinite; }
.ring-3 { width: 440px; height: 440px; animation: ringPulse 4s ease-in-out 1.6s infinite; }
@keyframes ringPulse { 0%,100%{opacity:.3} 50%{opacity:.6} }

.profile-badge {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .78rem; font-weight: 500; color: var(--ink);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  white-space: nowrap;
}
.profile-badge i { color: var(--emerald); font-size: .85rem; }
.badge-1 { top: 10%; right: -5%; animation: badgeFloat 3s ease-in-out infinite; }
.badge-2 { bottom: 25%; left: -8%; animation: badgeFloat 3s ease-in-out .7s infinite; }
.badge-3 { bottom: 10%; right: -5%; animation: badgeFloat 3s ease-in-out 1.4s infinite; }
@keyframes badgeFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-40); z-index: 1;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 1.5px solid var(--ink-40); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--emerald); border-radius: 2px;
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(12px);opacity:0} }

/* ── About Section ──────────────────────────────────────────── */
.about-section {
  padding-block: var(--section-pad);
  background: var(--white);
}

.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 4rem;
}

.about-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--emerald);
  transition: height .4s var(--ease-smooth);
}
.about-card:hover { transform: translateY(-4px); border-color: var(--emerald-lt); box-shadow: 0 12px 40px rgba(122,18,25,.08); }
.about-card:hover::before { height: 100%; }

.about-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--emerald-xs);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.about-icon-wrap i { color: var(--emerald); font-size: 1.2rem; }

.about-card h3 {
  font-family: var(--ff-display);
  font-size: 1.4rem; font-weight: 600; color: var(--ink);
  margin-bottom: .75rem;
}
.about-card p { font-size: .92rem; color: var(--ink-70); line-height: 1.75; }

.about-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; padding: 3rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.detail-title {
  font-family: var(--ff-display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--ink); margin-bottom: 1.5rem;
}

.info-list { display: flex; flex-direction: column; gap: .9rem; }
.info-list li {
  display: flex; align-items: center; gap: .9rem;
  font-size: .9rem; color: var(--ink-70);
}
.info-list i { color: var(--emerald); width: 16px; flex-shrink: 0; font-size: .9rem; }

.values-grid {
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.value-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  background: var(--emerald-xs); color: var(--emerald);
  border: 1px solid var(--emerald-lt);
  border-radius: 100px;
  font-size: .8rem; font-weight: 500;
}
.value-tag i { font-size: .75rem; }

/* ── Experience Section ─────────────────────────────────────── */
.experience-section {
  padding-block: var(--section-pad);
  background: var(--ivory);
}

.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--line);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid; grid-template-columns: 1fr 40px 1fr;
  gap: 2rem; align-items: start;
  margin-bottom: 4rem; position: relative;
}

.timeline-item:nth-child(odd) .timeline-date { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-dot  { grid-column: 2; justify-self: center; }
.timeline-item:nth-child(odd) .timeline-card { grid-column: 3; }

.timeline-item:nth-child(even) .timeline-date { grid-column: 3; grid-row: 1; text-align: left; }
.timeline-item:nth-child(even) .timeline-dot  { grid-column: 2; grid-row: 1; justify-self: center; }
.timeline-item:nth-child(even) .timeline-card { grid-column: 1; grid-row: 1; }

.timeline-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--emerald);
  margin-top: .5rem; position: relative; z-index: 1;
  transition: background .3s;
}
.timeline-item:hover .timeline-dot { background: var(--emerald); }

.timeline-date {
  padding-top: .4rem;
}
.timeline-date span {
  display: block;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--emerald);
}
.date-sep { color: var(--ink-40) !important; }

.timeline-card {
  padding: 2rem 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.timeline-card:hover {
  border-color: var(--emerald-lt);
  box-shadow: 0 8px 32px rgba(122,18,25,.08);
  transform: translateY(-3px);
}

.card-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.25rem;
}
.card-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--emerald-xs); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.card-icon i { color: var(--emerald); font-size: 1rem; }
.card-title {
  font-family: var(--ff-display);
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
  margin-bottom: .2rem;
}
.card-company { font-size: .9rem; font-weight: 500; color: var(--emerald); margin-bottom: .15rem; }
.card-type { font-size: .78rem; color: var(--ink-40); }

.card-tasks {
  list-style: none; display: flex; flex-direction: column; gap: .6rem;
  margin-bottom: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem;
}
.card-tasks li {
  font-size: .88rem; color: var(--ink-70);
  padding-left: 1.2rem; position: relative;
}
.card-tasks li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald); flex-shrink: 0;
}
.card-tasks strong { color: var(--ink); font-weight: 600; }

.card-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.card-tags span {
  padding: .3rem .8rem;
  background: var(--emerald-xs); color: var(--emerald);
  border-radius: 100px;
  font-size: .73rem; font-weight: 500; letter-spacing: .05em;
}

/* ── Education Section ──────────────────────────────────────── */
.education-section {
  padding-block: var(--section-pad);
  background: var(--white);
}

.edu-cert-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.edu-card {
  padding: 2.5rem;
  background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: flex; align-items: flex-start; gap: 1.5rem;
  transition: border-color .3s, box-shadow .3s;
}
.edu-card:hover { border-color: var(--emerald-lt); box-shadow: 0 8px 32px rgba(122,18,25,.08); }

.edu-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--emerald-xs); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.edu-icon i { color: var(--emerald); font-size: 1.4rem; }

.edu-year {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--emerald); display: block; margin-bottom: .5rem;
}
.edu-content h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem; font-weight: 600; color: var(--ink);
  margin-bottom: .25rem;
}
.edu-major { font-size: .9rem; color: var(--ink-70); margin-bottom: .15rem; }
.edu-faculty { font-size: .82rem; color: var(--ink-40); margin-bottom: 1rem; }
.edu-gpa {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem;
  background: var(--emerald-xs);
  border: 1px solid var(--emerald-lt);
  border-radius: 100px;
}
.gpa-label { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald); }
.gpa-value { font-size: .9rem; font-weight: 600; color: var(--emerald); font-family: var(--ff-display); }

.cert-list {
  padding: 2.5rem;
  background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.cert-heading {
  font-family: var(--ff-display);
  font-size: 1.4rem; font-weight: 600; color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}

.cert-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cert-item:last-child { border-bottom: none; padding-bottom: 0; }

.cert-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--emerald-xs); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.cert-icon i { color: var(--emerald); font-size: .95rem; }

.cert-info h4 { font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .15rem; }
.cert-info p { font-size: .82rem; color: var(--ink-70); }
.cert-info a { color: var(--emerald); text-decoration: underline; }

.cert-badge {
  display: inline-block;
  padding: .2rem .65rem;
  background: var(--emerald-xs); color: var(--emerald);
  border-radius: 100px;
  font-size: .7rem; font-weight: 500;
  margin-top: .3rem;
}

/* ── Skills Section ─────────────────────────────────────────── */
.skills-section {
  padding-block: var(--section-pad);
  background: var(--ivory);
}

.skills-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}

.skills-category-title {
  font-family: var(--ff-display);
  font-size: 1.5rem; font-weight: 600; color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}

/* Technical skill tags (no bars) */
.skill-tags-grid {
  display: flex; flex-direction: column; gap: 1rem;
}

.skill-tag-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .3s, transform .3s, background .3s;
}
.skill-tag-item:hover {
  border-color: var(--emerald-lt);
  transform: translateX(4px);
  background: var(--emerald-xs);
}

.skill-tag-name {
  font-size: .9rem; font-weight: 500; color: var(--ink);
  display: flex; align-items: center; gap: .75rem;
}
.skill-tag-name i { color: var(--emerald); font-size: .9rem; width: 16px; }

.skill-tag-level {
  display: flex; gap: 3px;
}
.skill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald-lt);
  transition: background .3s;
}
.skill-dot.active { background: var(--emerald); }

/* Soft skills */
.soft-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
}
.soft-card {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: .88rem; font-weight: 500; color: var(--ink-70);
  transition: border-color .3s, background .3s, color .3s, transform .3s;
}
.soft-card:hover {
  border-color: var(--emerald);
  background: var(--emerald-xs);
  color: var(--emerald);
  transform: translateY(-2px);
}
.soft-card i { color: var(--emerald); font-size: .9rem; width: 16px; }

/* ── Portfolio Section ──────────────────────────────────────── */
.portfolio-section {
  padding-block: var(--section-pad);
  background: var(--white);
}

.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.portfolio-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.portfolio-card:hover {
  border-color: var(--emerald-lt);
  box-shadow: 0 16px 48px rgba(122,18,25,.10);
  transform: translateY(-6px);
}

.port-img-wrap {
  height: 200px; position: relative; overflow: hidden;
  background: var(--emerald-xs);
}
.port-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-smooth); }
.portfolio-card:hover .port-img-wrap img { transform: scale(1.05); }

.port-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald-mid); font-size: 3rem;
}

.port-overlay {
  position: absolute; inset: 0;
  background: rgba(122,18,25,.7);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.5rem;
  opacity: 0; transition: opacity .3s;
}
.portfolio-card:hover .port-overlay { opacity: 1; }

.port-info { padding: 1.5rem; }
.port-info h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem; font-weight: 600; color: var(--ink);
  margin-bottom: .5rem;
}
.port-info p { font-size: .85rem; color: var(--ink-70); margin-bottom: 1rem; line-height: 1.6; }

.port-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.port-tags span {
  padding: .25rem .7rem;
  background: var(--emerald-xs); color: var(--emerald);
  border-radius: 100px; font-size: .72rem; font-weight: 500;
}

.empty-portfolio {
  grid-column: 1/-1; text-align: center; padding: 5rem;
  color: var(--ink-40);
}
.empty-portfolio i { font-size: 3rem; margin-bottom: 1rem; color: var(--emerald-lt); }
.empty-portfolio h3 { font-family: var(--ff-display); font-size: 1.5rem; margin-bottom: .5rem; color: var(--ink); }
.empty-portfolio code { background: var(--emerald-xs); padding: .2rem .5rem; border-radius: var(--radius-sm); font-size: .85rem; color: var(--emerald); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(28,16,7,.6);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 2rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 560px; width: 100%;
  position: relative;
  transform: scale(.95); transition: transform .3s var(--ease-out);
}
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%;
  background: none; cursor: pointer; color: var(--ink-70);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s;
}
.modal-close:hover { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
#modal-title { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
#modal-desc { font-size: .92rem; color: var(--ink-70); line-height: 1.8; margin-bottom: 1.5rem; }
.modal-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.modal-tags span { padding: .3rem .8rem; background: var(--emerald-xs); color: var(--emerald); border-radius: 100px; font-size: .75rem; }

/* ── Documents Section ──────────────────────────────────────── */
.documents-section {
  padding-block: var(--section-pad);
  background: var(--ivory);
}

.doc-tabs {
  display: flex; justify-content: center; gap: .5rem;
  margin-bottom: 3rem;
  padding: .35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  width: fit-content; margin-inline: auto; margin-bottom: 3rem;
}
.doc-tab {
  padding: .6rem 1.5rem;
  border: none; background: none; cursor: pointer;
  font-family: var(--ff-body); font-size: .82rem; font-weight: 500;
  letter-spacing: .05em; color: var(--ink-70);
  border-radius: 100px;
  transition: background .3s, color .3s;
}
.doc-tab.active { background: var(--emerald); color: var(--white); }

.doc-panel { display: none; }
.doc-panel.active { display: flex; flex-direction: column; gap: 1rem; }

.doc-card {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color .3s, box-shadow .3s;
}
.doc-card:hover { border-color: var(--emerald-lt); box-shadow: 0 4px 20px rgba(122,18,25,.06); }

.doc-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--emerald-xs); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.doc-icon i { color: var(--emerald); font-size: 1.2rem; }
.doc-info { flex: 1; }
.doc-info h4 { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.doc-info p { font-size: .82rem; color: var(--ink-70); }

.doc-download-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.25rem;
  background: var(--emerald); color: var(--white);
  border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 500;
  transition: background .3s, transform .2s;
  white-space: nowrap;
}
.doc-download-btn:hover { background: var(--emerald-mid); transform: translateY(-1px); }

.doc-empty {
  text-align: center; padding: 4rem;
  color: var(--ink-40);
}
.doc-empty i { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: var(--emerald-lt); }
.doc-empty code { background: var(--emerald-xs); padding: .2rem .5rem; border-radius: var(--radius-sm); font-size: .85rem; color: var(--emerald); }
.doc-empty span { display: block; font-size: .82rem; margin-top: .5rem; }

/* ── Contact Section ────────────────────────────────────────── */
.contact-section {
  padding-block: var(--section-pad);
  background: var(--white);
}

.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--ff-display);
  font-size: 2rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem;
}
.contact-info > p { font-size: .92rem; color: var(--ink-70); line-height: 1.8; margin-bottom: 2rem; }

.contact-list { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2.5rem; }
.contact-list li {
  display: flex; align-items: center; gap: 1rem;
  font-size: .9rem; color: var(--ink-70);
}
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--emerald-xs); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon i { color: var(--emerald); font-size: 1rem; }
.contact-list a { color: var(--emerald); transition: opacity .2s; }
.contact-list a:hover { opacity: .75; }
.contact-list strong { color: var(--ink); font-weight: 600; }

.socials-heading {
  font-size: .78rem; font-weight: 500; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-40); margin-bottom: 1rem;
}

.contact-social-grid { display: flex; flex-direction: column; gap: .75rem; }

.contact-social-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--ivory);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color .3s, transform .2s;
}
.contact-social-card:hover { transform: translateX(4px); }
.contact-social-card.instagram:hover { border-color: #E1306C; }
.contact-social-card.facebook:hover { border-color: #1877F2; }

.csc-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.instagram .csc-icon { background: #FFF0F5; color: #E1306C; }
.facebook .csc-icon { background: #F0F5FF; color: #1877F2; }

.csc-info { flex: 1; display: flex; flex-direction: column; }
.csc-platform { font-size: .8rem; font-weight: 600; color: var(--ink); }
.csc-handle { font-size: .75rem; color: var(--ink-40); }
.csc-arrow { color: var(--ink-40); font-size: .75rem; }

/* Contact Form */
.contact-form-wrap {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-70);
}
.form-group input,
.form-group textarea {
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: .9rem; color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
  outline: none; resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(122,18,25,.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-40); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #1C0A08;
  padding: 3rem 0;
}
.footer-inner {
  width: var(--container); margin-inline: auto;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 2rem;
}

.footer-brand { display: flex; flex-direction: column; gap: .3rem; }
.footer-brand .brand-initials { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 700; color: var(--emerald-glow); }
.footer-brand p { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.8); }
.footer-brand span { font-size: .75rem; color: rgba(255,255,255,.4); }

.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  font-size: .8rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  transition: color .3s;
}
.footer-links a:hover { color: var(--emerald-glow); }

.footer-socials { display: flex; gap: .75rem; }
.footer-social-btn {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .9rem;
  transition: border-color .3s, color .3s, background .3s;
}
.footer-social-btn.instagram:hover { border-color: #E1306C; color: #E1306C; }
.footer-social-btn.facebook:hover { border-color: #1877F2; color: #1877F2; }
.footer-social-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }

.footer-copy {
  width: 100%;
  font-size: .8rem; color: rgba(255,255,255,.3);
  text-align: center; border-top: 1px solid rgba(255,255,255,.06); padding-top: 2rem;
}
.footer-copy i { color: #E25555; }

/* ── Reveal Animations ──────────────────────────────────────── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity .8s var(--ease-smooth), transform .8s var(--ease-smooth);
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0);
}

/* ── Responsive ─────────────────────────────────────────────── */

/* ── Tablet & Mobile: ≤ 1024px — hamburger menu aktif ── */
@media (max-width: 1024px) {

  /* Navbar bar — solid, tidak transparan */
  .navbar {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Hamburger button — tampil */
  .nav-toggle { display: flex; }

  /* Nav links — overlay full screen, solid background */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 70px;
    background: var(--white);   /* ← solid, bukan rgba */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    border-top: 1px solid var(--line);
    z-index: 999;
    /* Pastikan tidak ada efek blur/transparansi */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.1rem; }

  /* Layout adjustments — tablet */
  .hero-container { grid-template-columns: 1fr; text-align: center; padding-block: 6rem; }
  .hero-right { display: none; }
  .hero-greeting, .hero-cta-group { justify-content: center; }
  .hero-socials { text-align: center; }
  .social-icons { justify-content: center; }
  .hero-stats { margin-inline: auto; }
  .hero-desc { margin-inline: auto; }

  .about-grid { grid-template-columns: 1fr; }
  .about-detail { grid-template-columns: 1fr; gap: 2rem; }
  .edu-cert-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }

  .timeline::before { left: 20px; }
  .timeline-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { grid-column: 1; grid-row: 1; }
  .timeline-item:nth-child(odd) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date { grid-column: 2; grid-row: 1; text-align: left; }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card { grid-column: 2; grid-row: 2; }
}

/* ── Mobile Only: ≤ 640px ── */
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .doc-tabs { flex-direction: column; width: 100%; }
  .soft-grid { grid-template-columns: 1fr; }
}