/* ==========================================================================
   Faq Portfolio - Modern AI Engineer & Researcher Hero
   Optimized for 16:10 Laptop Viewport (1-Screen Fit, No Scroll),
   Bottom-Aligned PORTFOLIO & Contact Me, Persistent Rail Nav, & Full Photo Card.
   ========================================================================== */

/* --- 1. DESIGN TOKENS & VARIABLES --- */
:root {
  --bg-canvas: #ffffff;
  --card-bg: #e5e5e5;              /* Pure Neutral Silver-Gray */
  --card-bg-hover: #dadada;
  --card-chip-bg: rgba(255, 255, 255, 0.75);
  --card-chip-hover: #ffffff;

  --text-pure-black: #000000;
  --text-primary: #111111;
  --text-secondary: #444444;
  --text-muted: #777777;

  --accent-primary: #000000;
  --accent-muted: #666666;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.06);

  --radius-card: 32px;
  --radius-pill: 999px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-jp: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

/* 
 * KUNCI 1: Fit 1 Layar Laptop 16:10 Tanpa Fullscreen & Tanpa Scroll 
 * Menggunakan height: 100vh / 100dvh dengan overflow: hidden pada layar desktop
 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-pure-black);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(12px, 1.8vh, 24px) clamp(16px, 2.5vw, 36px);
  overflow-x: hidden;
  overflow-y: auto;
}

body.lang-jp {
  font-family: var(--font-jp);
}

/* ==========================================================================
   2. MOBILE FIXED HEADER (Solusi 1: Flag Switcher Melayang di Layar Ponsel)
   ========================================================================== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: var(--shadow-subtle);
}

.mobile-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.logo-mark {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-pure-black);
  letter-spacing: -0.04em;
}

.logo-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   3. SITE LAYOUT WRAPPER (Persistent Sticky Rail & Continuous Content Flow)
   ========================================================================== */
.site-layout-wrapper {
  width: 100%;
  max-width: 1720px;
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 36px);
  position: relative;
}

.site-main-flow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 10vh, 120px);
  padding-bottom: clamp(60px, 8vh, 100px);
}

/* --- A. Vertical Rail Navigation (Sticky dengan Active Sliding Indicator & Magnetic Hover) --- */
.hero-rail {
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  height: calc(100vh - clamp(24px, 3.6vh, 48px));
  position: sticky;
  top: clamp(12px, 1.8vh, 24px);
  z-index: 100;
}

/* --- B. Hero Canvas (Fit 1-Screen Laptop 16:10) --- */
.hero-canvas {
  width: 100%;
  height: calc(100vh - clamp(24px, 3.6vh, 48px));
  min-height: 560px;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.rail-track {
  position: relative;
  height: 94%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

/* Garis Rel Vertikal Minimalis di Samping Menu */
.rail-track::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

/* Active Sliding Indicator (Meluncur Mulus Mengikuti Posisi Menu Aktif) */
.rail-indicator {
  position: absolute;
  left: 5px;
  top: 0;
  width: 4px;
  height: 32px;
  background: var(--text-pure-black);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s ease;
  pointer-events: none;
  will-change: transform;
}

.rail-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  gap: clamp(52px, 8.5vh, 96px);
  padding-left: 12px; /* Memberi ruang manis dari garis indicator */
}

.rail-item {
  color: var(--text-pure-black);
  font-size: clamp(0.92rem, 1.1vw, 1.12rem);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transform: rotate(-90deg);
  transform-origin: center center;
  white-space: nowrap;
  opacity: 0.42;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

/* Magnetic Micro-Hover Effect */
.rail-item:hover {
  opacity: 0.95;
  color: var(--text-pure-black);
  transform: rotate(-90deg) translateY(-4px) scale(1.08);
}

.rail-item.active {
  opacity: 1;
  font-weight: 800;
  color: var(--text-pure-black);
  transform: rotate(-90deg) scale(1.08);
}

/* --- B. Main 2-Column Bento Grid (Strict 50/50 Split dengan minmax(0, 1fr)) --- */
.hero-bento-grid {
  flex: 1;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
  align-items: stretch;
  min-height: 0;
  min-width: 0;
}

/* ==========================================================================
   4. KOLOM KIRI: About Me Notch Card + Giant "PORTFOLIO"
   ========================================================================== */
.left-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

/* Wrapper Kartu About Me (Bentuk Notch Kiri Atas) */
.about-card-container {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* SVG Background Shape */
.card-shape-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Label "About Me" yang duduk di ruang notch kiri atas */
.about-label-notch {
  position: absolute;
  top: clamp(8px, 1.5vh, 18px);
  left: clamp(20px, 2.5vw, 36px);
  z-index: 10;
}

.section-heading {
  font-size: clamp(1.8rem, 2.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure-black);
  line-height: 1;
}

/* --- FULL PHOTO BACKGROUND WRAPPER --- */
.about-photo-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: url(#aboutCardClip);
  -webkit-clip-path: url(#aboutCardClip);
  overflow: hidden;
}

.about-profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Fallback jika foto belum ditaruh di assets/profile.jpg */
.photo-fallback-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #e5e5e5, #cccccc);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.silhouette-svg {
  width: clamp(120px, 18vh, 180px);
  height: auto;
  opacity: 0.35;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.photo-instruction-hint {
  position: absolute;
  top: clamp(75px, 11vh, 100px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.photo-instruction-hint code {
  font-family: var(--font-mono);
  color: #000000;
}

/* Gradient Overlay Bawah (Membuat teks selalu tajam dan kontras di atas foto) */
.photo-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    rgba(0, 0, 0, 0.05) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* Konten Teks Identitas di Bagian Bawah Kartu */
.about-card-content {
  position: relative;
  z-index: 5;
  padding: clamp(26px, 4vh, 52px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.identity-block {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.3vh, 14px);
}

.person-name {
  font-size: clamp(2.2rem, 3.4vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.person-tagline {
  font-size: clamp(0.95rem, 1.3vw, 1.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  max-width: 520px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Action Button & Popover: Download Resume (3 Formats: EN, 履歴書, 職務経歴書) */
.card-action-row {
  margin-top: clamp(8px, 1.3vh, 14px);
  display: flex;
  align-items: center;
}

.resume-popover-wrapper {
  position: relative;
  display: inline-flex;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-weight: 800;
  text-decoration: none;
  padding: clamp(7px, 1.1vh, 10px) clamp(16px, 1.4vw, 22px);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  user-select: none;
}

.resume-download-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
  color: #000000;
}

.resume-download-btn.open {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-color: #000000;
  color: #000000;
}

.download-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.resume-download-btn:hover .download-icon {
  transform: translateY(2px);
}

.chevron-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 2px;
}

.resume-download-btn.open .chevron-icon {
  transform: rotate(180deg);
}

/* Floating Glass Popover (Muncul ke atas agar tidak terpotong) */
.resume-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: clamp(290px, 25vw, 360px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom left;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s;
  pointer-events: none;
}

.resume-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-header-note {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 6px 10px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.resume-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: transparent;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.resume-option-item:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateX(4px);
}

.doc-badge-mono {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: #000000;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.doc-desc {
  font-size: 0.73rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.doc-dl-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.resume-option-item:hover .doc-dl-icon {
  color: var(--text-pure-black);
  transform: translateY(2px);
}

/* 
 * KUNCI 2: Batas Bawah "PORTFOLIO" Tepat Sejajar Batas Bawah Contact Me
 * Tinggi container dikunci sama dan flex-align diset ke flex-end
 */
.giant-portfolio-wrapper {
  flex: 0 0 auto;
  height: clamp(64px, 9.5vh, 88px);
  display: flex;
  align-items: flex-end; /* Memastikan huruf menempel tepat di baseline bawah */
  padding-bottom: 2px;
}

.giant-portfolio-text {
  font-size: clamp(2.2rem, 3.8vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-pure-black);
  line-height: 0.85; /* Proporsional & rapi pas di garis bawah */
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   5. KOLOM KANAN: Tools, Sliding Banner, & Contact Pill
   ========================================================================== */
.right-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  min-width: 0;
  gap: clamp(14px, 2vh, 22px);
}

/* --- A. KARTU ATAS: Tools & Stack dengan Notch Dudukan Bendera --- */
.tools-card-container {
  position: relative;
  flex: 0 0 auto;
  height: clamp(135px, 19vh, 175px);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  min-width: 0;
  width: 100%;
}

.tools-header-bar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(10px, 1.6vh, 16px) clamp(16px, 2vw, 28px) 4px;
}

.tools-title-tab {
  font-size: clamp(1.3rem, 1.7vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure-black);
  line-height: 1;
}

/* Kapsul 3 Bahasa (Docked Padat di Lengkungan Notch Kanan Atas) */
.lang-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 12px 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.lang-label {
  font-size: clamp(0.72rem, 0.84vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  user-select: none;
}

.lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn:hover {
  transform: scale(1.15);
}

.lang-btn.active {
  border-color: var(--text-pure-black);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.flag-icon {
  width: clamp(20px, 2.2vh, 26px);
  height: clamp(20px, 2.2vh, 26px);
  border-radius: 50%;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-btn:hover .flag-icon {
  transform: scale(1.1);
}

.lang-btn.active .flag-icon {
  opacity: 1;
}

/* Konten Infinite Running Marquee (Satu Jalur Ramping & Elegan) */
.tools-card-content {
  position: relative;
  z-index: 3;
  padding: 0 clamp(20px, 2.5vw, 32px) clamp(12px, 2vh, 18px);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.marquee-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
  min-width: 0;
  /* Sisi kiri 100% solid agar item tidak terpotong; hanya fade halus di sisi kanan saat item masuk */
  mask-image: linear-gradient(to right, black 0%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 88%, transparent 100%);
}

.marquee-row {
  width: 100%;
  overflow: hidden;
  display: flex;
  min-width: 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  will-change: transform;
  animation: scrollMarquee 32s linear infinite;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 clamp(10px, 1.2vw, 16px);
  height: clamp(36px, 4.4vh, 42px);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
  box-sizing: border-box;
}

.tech-pill:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.12);
}

.tech-logo-img {
  height: clamp(20px, 2.5vh, 24px);
  width: auto;
  max-width: clamp(76px, 8.5vw, 100px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
  transition: transform 0.2s ease;
}

.tech-pill:hover .tech-logo-img {
  transform: scale(1.05);
}

/* --- B. KARTU TENGAH: Sliding Banner Project --- */
.project-banner-container {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: clamp(16px, 2.5vh, 28px) clamp(20px, 2.5vw, 34px);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.banner-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-main-title {
  font-size: clamp(1.4rem, 1.9vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure-black);
  line-height: 1.1;
}

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

.carousel-btn {
  width: clamp(28px, 3.5vh, 34px);
  height: clamp(28px, 3.5vh, 34px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-pure-black);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.carousel-indicators {
  display: flex;
  gap: 6px;
}

.c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
}

.c-dot.active {
  width: 20px;
  border-radius: var(--radius-pill);
  background: var(--text-pure-black);
}

/* Slide Stage */
.banner-stage {
  position: relative;
  margin-top: clamp(6px, 1vh, 12px);
}

.project-slide {
  display: none;
  animation: fadeInSlide 0.35s ease forwards;
}

.project-slide.active {
  display: block;
}

@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-info {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
}

.category-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.75);
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text-primary);
}

.project-heading {
  font-size: clamp(1.2rem, 1.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-pure-black);
  line-height: 1.2;
}

.project-summary {
  font-size: clamp(0.85rem, 1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 620px;
}

.tech-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tech-tags-row span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.8);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-primary);
}

/* --- C. KARTU BAWAH: CONTACT ME: Full-Width Pill (Tinggi & Posisi Sejajar PORTFOLIO) --- */
.contact-pill-container {
  background: var(--card-bg);
  border-radius: var(--radius-pill);
  flex: 0 0 auto;
  height: clamp(64px, 9.5vh, 88px);
  padding: 0 clamp(20px, 2.5vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease;
}

.contact-pill-container:hover {
  transform: translateY(-2px);
}

.contact-heading {
  font-size: clamp(1.2rem, 1.6vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-pure-black);
  line-height: 1;
}

.social-links-group {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
}

.social-icon-btn {
  width: clamp(38px, 5vh, 48px);
  height: clamp(38px, 5vh, 48px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-pure-black);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon-btn:hover {
  transform: translateY(-2px) scale(1.1);
  background: #ffffff;
}

.social-icon-btn.github:hover {
  color: #000000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-icon-btn.whatsapp:hover {
  color: #000000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-icon-btn.linkedin:hover {
  color: #000000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   6. CONNECTED CONTINUOUS TIMELINE (Experience & Education)
   ========================================================================== */
.timeline-super-section {
  width: 100%;
  padding-top: clamp(24px, 4vh, 48px);
  position: relative;
}

/* Header Section */
.timeline-header-block {
  margin-bottom: clamp(36px, 5vh, 60px);
  max-width: 720px;
}

.timeline-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  background: #eeeeee;
  border: 1px solid #cccccc;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.timeline-main-heading {
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-pure-black);
  line-height: 1.1;
  margin-bottom: 12px;
}

.timeline-subheading {
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 500;
}

/* Unified Connected Spine Stream */
.timeline-stream {
  position: relative;
  padding-left: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vh, 64px);
}

/* Continuous Glowing Vertical Spine */
.timeline-spine-line {
  position: absolute;
  top: 16px;
  bottom: 24px;
  left: clamp(10px, 1.5vw, 22px);
  width: 3px;
  background: linear-gradient(
    to bottom,
    #000000 0%,
    #444444 40%,
    #888888 75%,
    rgba(0, 0, 0, 0.08) 100%
  );
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* Phase Container (#experience & #education) */
.timeline-phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vh, 40px);
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  width: fit-content;
  position: relative;
  z-index: 5;
  margin-left: -8px;
}

.phase-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.phase-title {
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure-black);
}

.phase-range {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  padding-left: 10px;
}

.timeline-milestones {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 32px);
}

/* Individual Milestone Item */
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
}

/* Milestone Node Marker on the Spine */
.milestone-marker {
  position: absolute;
  left: calc(-1 * clamp(28px, 4vw, 56px) + clamp(10px, 1.5vw, 22px) - 7px);
  top: 24px;
  z-index: 6;
}

.marker-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid #000000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.marker-dot.edu {
  border-color: #333333;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.timeline-item:hover .marker-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.15);
}

/* Live Pulsing Dot for Active Role (Emerald Pulse) */
.marker-dot.pulsing {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
  position: relative;
}

.marker-dot.pulsing::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.35);
  animation: pulseDot 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: -1;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Bento Milestone Card */
.milestone-card {
  flex: 1;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: clamp(20px, 3vh, 32px) clamp(22px, 2.5vw, 36px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.milestone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.25);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.role-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #f0f0f0;
  color: #333333;
}

.role-badge.active {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.role-badge.edu {
  background: #f0f0f0;
  color: #111111;
  border: 1px solid #cccccc;
}

.role-badge.verified {
  background: #f5f5f5;
  color: #222222;
  border: 1px solid #d0d0d0;
}

.date-stamp {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.role-title {
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure-black);
  line-height: 1.2;
}

.company-subline {
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 700;
  color: #111111;
  margin-top: -6px;
}

.company-subline .company-loc {
  color: var(--text-muted);
  font-weight: 500;
}

.role-summary {
  font-size: clamp(0.88rem, 1vw, 0.96rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Bullet Points */
.impact-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.impact-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: clamp(0.85rem, 0.95vw, 0.92rem);
  color: var(--text-primary);
  line-height: 1.5;
}

.impact-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: #000000;
  font-size: 0.95rem;
}

/* ==========================================================================
   Thesis Spotlight Showcase Card (Education Section)
   ========================================================================== */
.thesis-spotlight-card {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 20px;
  padding: clamp(14px, 1.8vh, 20px) clamp(16px, 2vw, 22px);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.thesis-spotlight-card:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* CSS Document Cover Mockup */
.thesis-cover-mockup {
  position: relative;
  width: clamp(75px, 8vw, 92px);
  height: clamp(105px, 11vw, 128px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  display: flex;
  overflow: hidden;
  user-select: none;
  transition: transform 0.3s ease;
}

.thesis-spotlight-card:hover .thesis-cover-mockup {
  transform: translateY(-2px) scale(1.03);
}

.thesis-doc-spine {
  width: 5px;
  height: 100%;
  background: #111111;
  flex-shrink: 0;
}

.thesis-doc-sheet {
  flex: 1;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thesis-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.52rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #777777;
}

.thesis-doc-badge-center {
  font-size: 0.64rem;
  font-weight: 900;
  color: #000000;
  text-align: center;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.thesis-doc-sub {
  font-size: 0.46rem;
  font-weight: 700;
  color: #666666;
  text-align: center;
}

.thesis-doc-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0;
}

.thesis-doc-lines span {
  display: block;
  height: 2px;
  background: #e0e0e0;
  border-radius: 2px;
}

.thesis-doc-lines span:nth-child(2) {
  width: 80%;
}

.thesis-doc-lines span:nth-child(3) {
  width: 60%;
}

.thesis-doc-author {
  font-size: 0.48rem;
  font-weight: 800;
  color: #333333;
  text-align: right;
  font-family: var(--font-mono);
}

/* Content Side */
.thesis-content-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thesis-meta-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.thesis-type-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: #000000;
  padding: 3px 9px;
  border-radius: 6px;
}

.thesis-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.thesis-grade-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
}

.thesis-main-title {
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  font-weight: 800;
  color: var(--text-pure-black);
  line-height: 1.35;
}

.thesis-summary-text {
  font-size: clamp(0.82rem, 0.92vw, 0.88rem);
  color: var(--text-secondary);
  line-height: 1.48;
}

.thesis-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.thesis-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.thesis-pdf-btn:hover {
  background: #333333;
  transform: translateY(-2px);
}

.thesis-paper-link {
  font-size: 0.76rem;
  font-weight: 700;
  color: #444444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.thesis-paper-link:hover {
  color: #000000;
  text-decoration: underline;
}

/* Stack Badges */
.milestone-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.m-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #222222;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

/* Transition Bridge Divider */
.timeline-transition-bridge {
  position: relative;
  padding: 12px 0;
}

.bridge-indicator {
  display: flex;
  align-items: center;
}

.bridge-pill {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   6B. FEATURED PROJECTS SECTION (#projects)
   ========================================================================== */
.projects-section {
  width: 100%;
  padding-top: clamp(32px, 5vh, 60px);
  margin-top: clamp(20px, 3vh, 40px);
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.projects-bento-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vh, 36px);
  margin-top: clamp(24px, 3.5vh, 40px);
}

.project-bento-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  padding: clamp(24px, 3.5vh, 38px) clamp(22px, 2.8vw, 38px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.project-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 0, 0, 0.22);
}

.p-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.p-badge-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.p-badge-type {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #000000;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
}

.p-badge-scale {
  font-size: 0.72rem;
  font-weight: 700;
  color: #444444;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.p-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.p-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

.p-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  background: #f0f0f0;
  color: #111111;
  border: 1px solid #dcdcdc;
}

.p-link-btn:hover {
  background: #e4e4e4;
  border-color: #000000;
  transform: translateY(-2px);
}

.p-link-btn.primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.p-link-btn.primary:hover {
  background: #333333;
  border-color: #333333;
  transform: translateY(-2px);
}

.p-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-card-title {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-pure-black);
  line-height: 1.25;
}

.p-card-subtitle {
  font-size: clamp(0.85rem, 1vw, 0.92rem);
  color: #555555;
}

/* --- Schematic Pipeline Canvas --- */
.p-schematic-canvas {
  background: #0f0f11;
  border-radius: 18px;
  border: 1px solid #222226;
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #ffffff;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.p-schematic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #888892;
  padding-bottom: 10px;
  border-bottom: 1px solid #222228;
  flex-wrap: wrap;
  gap: 8px;
}

.schematic-terminal-dots {
  display: flex;
  gap: 5px;
}

.schematic-terminal-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333339;
}

.schematic-title {
  font-weight: 700;
  color: #e0e0e6;
  letter-spacing: 0.02em;
}

.schematic-env {
  color: #10b981;
  font-weight: 700;
}

.schematic-flow-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
}

.schematic-node {
  background: #18181d;
  border: 1px solid #2b2b35;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 130px;
  flex: 1;
  transition: all 0.25s ease;
}

.schematic-node:hover {
  border-color: #ffffff;
  background: #202028;
}

.schematic-node.highlight {
  border-color: rgba(16, 185, 129, 0.45);
  background: #142019;
}

.node-icon {
  color: #d1d5db;
  margin-bottom: 2px;
}

.node-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.node-sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #9ca3af;
  white-space: nowrap;
}

.schematic-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0 4px;
  user-select: none;
}

/* --- Metrics Ribbon --- */
.p-metrics-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #f7f7f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.p-metrics-ribbon.compact {
  padding: 10px 14px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.1);
}

/* --- Architectural Pillars --- */
.p-engineering-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.pillar-box {
  background: #fbfbfb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 0.82rem;
  color: #555555;
  line-height: 1.5;
}

.p-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.p-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.p-btn-action:hover {
  background: #333333;
  transform: translateY(-2px);
}

.p-btn-action.secondary {
  background: #f0f0f0;
  color: #111111;
  border: 1px solid #dcdcdc;
}

.p-btn-action.secondary:hover {
  background: #e4e4e4;
  border-color: #000000;
}

/* --- Dual Split Bento Row --- */
.projects-dual-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

.project-bento-card.sub-card {
  height: 100%;
  justify-content: space-between;
}

.p-card-body {
  font-size: clamp(0.85rem, 0.95vw, 0.9rem);
  color: #444444;
  line-height: 1.55;
}

.p-status-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #555555;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  padding: 3px 8px;
  border-radius: 6px;
}

/* --- Bottom Archive Callout --- */
.projects-archive-callout {
  background: #f5f5f7;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
  transition: all 0.3s ease;
}

.projects-archive-callout:hover {
  background: #ffffff;
  border-color: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.archive-callout-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.archive-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.archive-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #000000;
}

.archive-desc {
  font-size: 0.8rem;
  color: #555555;
  line-height: 1.4;
}

.archive-action-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  background: #000000;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.archive-action-btn:hover {
  background: #333333;
  transform: translateY(-2px);
}

/* --- Hero Slide Interactive Enhancements --- */
.slide-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.slide-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.slide-live-tag.mono {
  color: #555555;
  background: #f0f0f0;
  font-family: var(--font-mono);
}

.slide-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.slide-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  background: #f0f0f0;
  border: 1px solid #dcdcdc;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.slide-explore-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-1px);
}

/* ==========================================================================
   6C. RESEARCH & PUBLICATIONS SECTION (#publication)
   ========================================================================== */
.publications-section {
  width: 100%;
  padding-top: clamp(32px, 5vh, 60px);
  margin-top: clamp(20px, 3vh, 40px);
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.publications-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  margin-top: clamp(24px, 3.5vh, 40px);
}

.pub-bento-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  padding: clamp(22px, 3vh, 32px) clamp(22px, 2.5vw, 34px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.22);
}

.pub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pub-journal-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #000000;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
}

.pub-doi-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #555555;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.pub-peer-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pub-title {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure-black);
  line-height: 1.35;
}

.pub-authors {
  font-size: 0.84rem;
  color: #444444;
  margin-top: -6px;
}

.pub-authors strong {
  color: #000000;
  font-weight: 800;
}

.pub-abstract {
  font-size: clamp(0.85rem, 0.96vw, 0.92rem);
  color: var(--text-secondary);
  line-height: 1.55;
}

.pub-action-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  flex-wrap: wrap;
}

.pub-btn-doi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.pub-btn-doi:hover {
  background: #333333;
  transform: translateY(-2px);
}

.pub-btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f0f0;
  color: #111111;
  border: 1px solid #dcdcdc;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.pub-btn-pdf:hover {
  background: #e4e4e4;
  border-color: #000000;
  transform: translateY(-2px);
}

.pub-btn-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #111111;
  border: 1px solid #dcdcdc;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.pub-btn-code:hover {
  background: #f7f7f7;
  border-color: #000000;
  transform: translateY(-2px);
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ========================================================================== */

/* --- Mobile Phone (< 860px) --- */
@media (max-width: 860px) {
  /* Di ponsel, biarkan halaman bisa di-scroll vertikal secara natural */
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding: 76px 12px 32px;
  }

  /* Aktifkan Mobile Header */
  .mobile-header {
    display: flex;
  }

  .hero-canvas {
    height: auto;
    gap: 12px;
  }

  /* 
   * KUNCI 3: Navbar Samping Tetap Dipertahankan Saat Responsif! 
   * Tetap berdiri di sisi kiri sebagai vertical rail ramping yang rapi
   */
  .hero-rail {
    display: flex;
    width: 38px;
    padding: 12px 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    z-index: 90;
  }

  .rail-track {
    height: 100%;
    padding: 8px 0;
  }

  .rail-items {
    gap: clamp(32px, 5vh, 48px);
    padding-left: 8px;
  }

  .rail-item {
    font-size: 0.82rem;
  }

  /* Bento Grid menjadi 1 kolom vertikal stack */
  .hero-bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    height: auto;
  }

  .left-column, .right-column {
    height: auto;
    gap: 16px;
  }

  /* Pindahkan Kapsul Bahasa ke Header Mobile */
  .mobile-lang-anchor .lang-capsule {
    box-shadow: none;
    padding: 3px 6px;
    gap: 6px;
  }

  .mobile-lang-anchor .flag-icon {
    width: 22px;
    height: 22px;
  }

  .about-card-container {
    min-height: 420px;
  }

  .about-card-content {
    padding: 20px 20px 24px;
  }

  .giant-portfolio-wrapper {
    height: auto;
    padding: 6px 0;
  }

  .giant-portfolio-text {
    font-size: clamp(2.8rem, 11vw, 4.2rem);
    line-height: 0.9;
  }

  .tools-card-container {
    height: auto;
  }

  .tools-header-bar {
    padding: 16px 20px 6px;
  }

  .tools-card-content {
    padding: 6px 20px 20px;
  }

  .project-banner-container {
    height: auto;
    min-height: 300px;
    padding: 20px;
  }

  .contact-pill-container {
    height: auto;
    padding: 14px 20px;
    border-radius: 20px;
  }

  /* Responsive Timeline */
  .timeline-super-section {
    padding-top: 32px;
  }

  .timeline-stream {
    padding-left: 24px;
    gap: 36px;
  }

  .timeline-spine-line {
    left: 7px;
  }

  .milestone-marker {
    left: -24px;
  }

  .milestone-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  /* Responsive Projects */
  .projects-section {
    padding-top: 36px;
  }

  .projects-dual-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .p-metrics-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 14px;
  }

  .metric-divider {
    display: none;
  }

  .schematic-flow-track {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .schematic-arrow {
    transform: rotate(90deg);
    padding: 2px 0;
  }

  /* Responsive Publications */
  .publications-section {
    padding-top: 36px;
  }

  .publications-bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pub-bento-card {
    padding: 20px 18px;
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .project-bento-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .p-engineering-pillars {
    grid-template-columns: 1fr;
  }

  .projects-archive-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
  }

  .archive-callout-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-action-btn {
    width: 100%;
    justify-content: center;
  }

  .thesis-spotlight-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .thesis-cover-mockup {
    width: 80px;
    height: 112px;
  }

  .thesis-action-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

