/* ==========================================================================
   JAVANESE NOIR / WAYANG ELEGANCE — PORTFOLIO STYLESHEET
   Muhammad Atho'illah Mu'thisyah | Researcher • Cyber Law • Digital Forensics
   ========================================================================== */

/* --- CSS VARIABLES & THEME TOKENS --- */
:root {
  /* Color Palette - Javanese Charcoal / Dark Navy Base */
  --bg-darkest: #090b0e;
  --bg-primary: #0e1117;
  --bg-surface: #141821;
  --bg-surface-elevated: #1c222e;
  --bg-surface-glass: rgba(20, 24, 33, 0.78);
  --bg-card: #151a24;
  --bg-card-hover: #1b212f;
  --bg-warm-tint: rgba(43, 38, 32, 0.6);

  /* Gold & Amber Accents */
  --gold-primary: #d4af37;
  --gold-secondary: #c9a24b;
  --gold-bright: #f3e098;
  --gold-deep: #9a7822;
  --gold-glow: rgba(212, 175, 55, 0.28);
  --gold-glow-subtle: rgba(212, 175, 55, 0.12);
  --gold-border: rgba(212, 175, 55, 0.32);
  --gold-border-strong: rgba(212, 175, 55, 0.75);

  /* Typography Colors */
  --text-primary: #f8f4eb;       /* Rich cream / off-white */
  --text-secondary: #d1c8b8;     /* Warm muted off-white */
  --text-muted: #958d7d;         /* Slate gold-brown */
  --text-gold: #dfb858;
  --text-cyan: #38bdf8;          /* Cyber telemetry accent */

  /* Typography Families */
  --font-serif: 'Cinzel', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --font-quote: 'Cormorant Garamond', 'Cinzel', Georgia, serif;

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.2);
  --shadow-gold-heavy: 0 10px 35px rgba(212, 175, 55, 0.3);

  /* Spacing */
  --container-width: 1200px;
  --nav-height: 80px;
}

/* --- GLOBAL RESET & BASE STYLES --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-darkest);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(20, 24, 33, 0.8) 0%, transparent 60%),
    radial-gradient(circle at 0% 80%, rgba(30, 25, 20, 0.5) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #2b2419;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-secondary);
}

::selection {
  background: var(--gold-primary);
  color: #0b0d10;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
a:hover {
  color: var(--gold-bright);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 92%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

/* --- NOIR AMBIENT OVERLAYS & WAYANG CORNERS --- */
.section-wrapper {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.wayang-bg-left, .wayang-bg-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 520px;
  opacity: 0.13;
  pointer-events: none;
  z-index: 1;
  transition: opacity var(--transition-smooth);
}
.wayang-bg-left {
  left: -60px;
  background: url('../assets/svgs/wayang-silhouette-left.svg') no-repeat center left / contain;
}
.wayang-bg-right {
  right: -60px;
  background: url('../assets/svgs/wayang-silhouette-right.svg') no-repeat center right / contain;
}
.section-wrapper:hover .wayang-bg-left,
.section-wrapper:hover .wayang-bg-right {
  opacity: 0.22;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
  position: relative;
  z-index: 2;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title span {
  background: linear-gradient(135deg, #f5e0a0 0%, #d4af37 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Batik Divider */
.batik-divider {
  width: 100%;
  height: 36px;
  background: url('../assets/svgs/batik-divider.svg') no-repeat center center;
  background-size: 100% 36px;
  margin: 10px 0;
  opacity: 0.85;
}

/* Corner Ornaments for Cards */
.corner-bracket {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.7;
  background: url('../assets/svgs/corner-ornament.svg') no-repeat center / contain;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.corner-tl { top: 6px; left: 6px; }
.corner-tr { top: 6px; right: 6px; transform: rotate(90deg); }
.corner-bl { bottom: 6px; left: 6px; transform: rotate(270deg); }
.corner-br { bottom: 6px; right: 6px; transform: rotate(180deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-gold-solid {
  background: linear-gradient(135deg, #dfb858 0%, #d4af37 50%, #b38b22 100%);
  color: #0b0d10;
  border-color: #f3e098;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-gold-solid:hover {
  background: linear-gradient(135deg, #f5e0a0 0%, #dfb858 50%, #c9a24b 100%);
  color: #000;
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.btn-gold-outline {
  background: rgba(20, 24, 33, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(8px);
}
.btn-gold-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.84rem;
}

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-smooth);
  background: rgba(9, 11, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(9, 11, 14, 0.95);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.brand-icon svg {
  width: 24px;
  height: 24px;
}
.nav-brand:hover .brand-icon {
  border-color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

/* Nav Menu Items */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  transition: transform var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-bright);
}
.nav-link:hover::after, .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

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

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--gold-primary);
  transition: all var(--transition-smooth);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 60px 0;
  overflow: hidden;
  background: #090b0e;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  filter: saturate(0.85) contrast(1.15) brightness(0.7);
  transform: scale(1.03);
  transition: transform 12s ease-out;
}

.hero-section:hover .hero-bg-img {
  transform: scale(1.07);
}

/* Vignette and Dark Navy Noir Gradient Overlays */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 65% 45%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(9, 11, 14, 0.82) 0%, rgba(9, 11, 14, 0.5) 40%, rgba(9, 11, 14, 0.95) 90%, #090b0e 100%),
    linear-gradient(90deg, rgba(9, 11, 14, 0.95) 0%, rgba(9, 11, 14, 0.7) 50%, rgba(9, 11, 14, 0.85) 100%);
  z-index: 2;
}

/* Canvas Particle Grid */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 680px;
}

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid var(--gold-border);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-primary);
  animation: pulseGold 2s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-title .title-line {
  display: block;
}

.hero-title .title-first {
  color: #ffffff;
  font-weight: 600;
}

.hero-title .title-second {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-title .title-gold {
  background: linear-gradient(135deg, #fdf6dc 0%, #e6c867 35%, #d4af37 70%, #9a7822 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-shadow: 0 0 35px rgba(212, 175, 55, 0.25);
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 36px;
  border-left: 2px solid var(--gold-border);
  padding-left: 18px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

/* Javanese Quote Floating Card */
.hero-quote-card {
  position: relative;
  background: rgba(18, 22, 30, 0.72);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 36px 30px;
  backdrop-filter: blur(14px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.08);
  transition: all var(--transition-smooth);
}

.hero-quote-card:hover {
  border-color: var(--gold-border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

.quote-gunungan-watermark {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 140px;
  height: 200px;
  background: url('../assets/svgs/gunungan.svg') no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

.quote-icon-top {
  font-family: var(--font-quote);
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--gold-primary);
  opacity: 0.6;
  margin-bottom: 10px;
}

.quote-text-jawa {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.quote-meaning {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding-top: 16px;
}

.quote-latin-motto {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
}

.quote-seal {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 8px;
  border-radius: 3px;
}


/* ==========================================================================
   3. TENTANG SAYA (ABOUT SECTION)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-photo-wrapper {
  position: relative;
}

.photo-frame {
  position: relative;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(20, 24, 33, 0.8) 50%, rgba(212, 175, 55, 0.15) 100%);
  border: 1px solid var(--gold-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.photo-frame img {
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
  transition: transform var(--transition-smooth);
}

.photo-frame:hover img {
  transform: scale(1.03);
}

/* Floating Status Pill */
.photo-status-badge {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 17, 23, 0.92);
  border: 1px solid var(--gold-border);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  z-index: 4;
}

.status-dot-green {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

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

.about-bio-lead {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--gold-bright);
  line-height: 1.5;
  margin-bottom: 18px;
}

.about-bio-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* 4 Info Boxes Grid */
.info-boxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-box {
  background: rgba(20, 24, 33, 0.7);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.info-box:hover {
  background: rgba(26, 32, 44, 0.85);
  border-color: var(--gold-bright);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.info-box-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-box-content h4 {
  font-size: 0.86rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.info-box-content p {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.4;
}


/* ==========================================================================
   4. BIDANG RISET (RESEARCH DOMAINS)
   ========================================================================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.research-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 38px 32px;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.research-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), var(--shadow-gold);
  transform: translateY(-5px);
}

.research-card:hover::before {
  opacity: 1;
}

.research-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 1.7rem;
  margin-bottom: 22px;
  transition: all var(--transition-fast);
}

.research-card:hover .research-icon-wrapper {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: scale(1.08);
}

.research-card-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.research-card-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4px 12px;
  border-radius: 4px;
}


/* ==========================================================================
   5. PROYEK UNGGULAN (FEATURED PROJECTS)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.projects-coming-soon {
  grid-column: 1 / -1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--gold-border-strong);
  background: rgba(9, 11, 14, 0.45);
  text-align: center;
}

.projects-coming-soon i {
  font-size: 2rem;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.projects-coming-soon h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin: 0;
}

.projects-coming-soon p {
  color: var(--text-muted);
  margin: 0;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
}

.project-card:hover {
  border-color: var(--gold-border-strong);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  transform: translateY(-6px);
}

.project-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090b0e;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
  filter: contrast(1.05) brightness(0.85);
}

.project-card:hover .project-img {
  transform: scale(1.06);
  filter: contrast(1.1) brightness(1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 24, 33, 0.95) 100%);
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 3px 9px;
  border-radius: 3px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.project-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 22px;
  flex-grow: 1;
}

.project-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-project-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-bright);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.btn-project-detail:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.btn-project-detail i {
  transition: transform var(--transition-fast);
}
.btn-project-detail:hover i {
  transform: translateX(4px);
}


/* ==========================================================================
   6. KONTAK & GET IN TOUCH
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.contact-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 38px 32px;
  position: relative;
}

.contact-info-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.contact-info-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-text h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.contact-text p, .contact-text a {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0;
}

/* PGP Key Callout */
.pgp-callout {
  background: rgba(14, 17, 23, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  padding: 16px;
}

.pgp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pgp-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-bright);
}

.pgp-fingerprint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  word-break: break-all;
  letter-spacing: 0.05em;
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 38px 34px;
  position: relative;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(14, 17, 23, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-bright);
  background: rgba(20, 24, 33, 0.9);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  background: #07080a;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 70px 0 30px 0;
  overflow: hidden;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-gunungan {
  width: 54px;
  height: 80px;
  background: url('../assets/svgs/gunungan.svg') no-repeat center / contain;
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-motto-latin {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.footer-motto-id {
  font-family: var(--font-quote);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-javanese-philosophy {
  max-width: 680px;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 30px;
  border-top: 1px dashed rgba(212, 175, 55, 0.15);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.15);
  padding: 12px 0;
}

.footer-social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--gold-primary);
  color: #000000;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-3px);
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}
.btn-back-to-top:hover {
  color: var(--gold-bright);
  transform: translateY(-2px);
}


/* ==========================================================================
   9. MODALS & INTERACTIVE OVERLAYS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 8, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--shadow-gold);
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-primary);
  margin-bottom: 24px;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--gold-bright);
  border-radius: 6px;
  padding: 16px 24px;
  color: var(--text-primary);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Fade-In on Scroll Utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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


/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo-wrapper {
    max-width: 380px;
    margin: 0 auto;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .wayang-bg-left, .wayang-bg-right {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(9, 11, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 30px;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    border-top: 1px solid var(--gold-border);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-resume-btn {
    display: none;
  }

  .section-title {
    font-size: 1.95rem;
  }

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

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

  .info-boxes-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .modal-container {
    padding: 30px 20px;
  }
}
