/* ==========================================================================
   PENTESTER-JAWA — Modern Security Researcher & Pentester Portfolio
   Theme: Refined Slate Dark • High Contrast • Handcrafted Professional
   ========================================================================== */

:root {
  --bg: #090d16;
  --bg-surface: #0f172a;
  --bg-card: #131d33;
  --bg-card-hover: #182642;
  --bg-card-subtle: rgba(19, 29, 51, 0.6);
  --bg-input: #0b1220;

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --muted-dim: #64748b;

  --accent: #10b981;
  --accent-light: #34d399;
  --accent-dark: #059669;
  --accent-glow: rgba(16, 185, 129, 0.2);

  --accent-2: #38bdf8;
  --accent-2-glow: rgba(56, 189, 248, 0.2);

  --border: rgba(255, 255, 255, 0.09);
  --border-light: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(16, 185, 129, 0.35);

  --danger: #f43f5e;
  --warning: #fbbf24;
  --info: #38bdf8;
  --success: #10b981;

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.modal-open, body.menu-open {
  overflow: hidden !important;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* Subtle background grain / grid */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.5px;
}

.logo-bracket {
  color: var(--accent);
  font-weight: 800;
}

.logo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 8px;
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
  margin: 0;
}

.nav-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.btn-nav {
  border: 1px solid var(--border-accent) !important;
  background: rgba(16, 185, 129, 0.08) !important;
  color: var(--accent-light) !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.08);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent);
}

/* --- Container & Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.section-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.line-deco {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-light), transparent);
  min-width: 40px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 640px;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #052316;
  font-weight: 700;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  color: #021a10;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text);
  color: #fff;
  transform: translateY(-2px);
}

.btn.full {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  min-height: 88vh;
  padding: 120px 24px 70px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-accent);
  background: rgba(16, 185, 129, 0.08);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 1.6s infinite ease-in-out;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-2);
  min-height: 28px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.cursor {
  color: var(--accent-2);
  animation: blink 1s infinite;
  margin-left: 2px;
}

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

.hero-desc {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Hero Right / Identity Card --- */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-avatar-wrap {
  width: 100%;
  max-width: 420px;
  position: relative;
}

.hero-avatar-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-avatar-cyber-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.hero-avatar-cyber-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.cyber-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.cyber-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cyber-dot.red { background: #ff5f56; }
.cyber-dot.yellow { background: #ffbd2e; }
.cyber-dot.green { background: #27c93f; }

.cyber-card-title {
  margin-left: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

.cyber-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cyber-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(56, 189, 248, 0.15));
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cyber-avatar-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-light);
}

.cyber-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cyber-card-role {
  font-size: 0.78rem;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.pulse-mini {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

.cyber-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}

.cyber-stat-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 6px;
}

.cyber-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.cyber-stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
}

.cyber-card-badge {
  font-size: 0.74rem;
  color: var(--accent-light);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  width: 100%;
}

/* --- Terminal Component (if active) --- */
.terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.term-title {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.terminal-body {
  padding: 16px;
  font-size: 0.8rem;
  line-height: 1.65;
  max-height: 280px;
  overflow-y: auto;
  color: var(--text-secondary);
}

.prompt {
  color: var(--accent);
  margin-right: 6px;
  font-weight: 700;
}

.output {
  color: var(--muted);
  padding-left: 14px;
}

.output.highlight {
  color: var(--accent-light);
  font-weight: 600;
}

.output.danger { color: var(--danger); }
.output.warn { color: var(--warning); }
.output.info { color: var(--info); }
.output.success { color: var(--success); }

/* --- About Section --- */
.about-grid-new {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.about-heading-full {
  grid-column: 1 / -1;
}

.about-heading-full h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.about-text {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

/* --- Experience Timeline --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  transition: all 0.2s ease;
}

.timeline-item:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.timeline-date {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.exp-date-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-light);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-accent);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  white-space: nowrap;
}

.exp-live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 1.6s infinite;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.timeline-org {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.exp-terminal {
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 10px;
}

.exp-term-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.exp-term-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.term-controls.small {
  display: flex;
  gap: 4px;
}

.term-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.7rem;
  color: var(--muted);
  cursor: pointer;
}

.term-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.exp-term-body {
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.6;
  max-height: 160px;
  overflow-y: auto;
  color: var(--text-secondary);
}

.exp-term-pre {
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- Education Section --- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.2s ease;
}

.education-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.edu-degree {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.edu-year {
  font-size: 0.78rem;
  color: var(--accent-light);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-accent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.edu-institution {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.edu-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Sliders (HOF & Projects) --- */
.hof-slider-wrapper, .project-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hof-slider, .project-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
  width: 100%;
}

.hof-slider::-webkit-scrollbar, .project-slider::-webkit-scrollbar {
  height: 5px;
}
.hof-slider::-webkit-scrollbar-thumb, .project-slider::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: var(--accent);
  color: #021a10;
  border-color: var(--accent);
}

.slider-arrow.arrow-left { left: -16px; }
.slider-arrow.arrow-right { right: -16px; }

.slider-bottom-controls {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.hof-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.hof-nav-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 8px;
  transition: color 0.2s;
}

.hof-nav-btn:hover {
  color: var(--accent-light);
}

.slider-hint {
  font-size: 0.76rem;
  color: var(--muted);
}

/* --- HOF Cards --- */
.hof-card-premium {
  flex: 0 0 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.hof-card-premium:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hof-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  background: linear-gradient(100deg, #eef2f7 40%, #f8fafc 50%, #eef2f7 60%);
  background-size: 200% 100%;
  animation: hof-shimmer 1.2s infinite linear;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hof-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.35s ease;
  opacity: 0;
}
.hof-img.loaded { opacity: 1; }

/* PDF tampil langsung di kartu (halaman 1) - klik = perbesar via modal yg sudah ada */
.hof-pdf-wrap {
  aspect-ratio: 4 / 3;
  height: auto;
  background: #fff;
  cursor: pointer;
}
/* thumb jpg dipakai, iframe dihapus biar enteng */
.hof-pdf-open {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(9,13,22,0.85);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid var(--border);
}
.hof-pdf-open:hover { background: var(--accent-dark, #0ea5e9); }
@keyframes hof-shimmer {
  to { background-position: -200% 0; }
}
@media (max-width: 640px) {
  .hof-img-wrap, .hof-pdf-wrap { aspect-ratio: 4 / 3; }
}

.hof-card-premium:hover .hof-img {
  transform: scale(1.04);
}

.hof-pdf-placeholder, .hof-icon-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 2rem;
}

.hof-pdf-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-2);
}

.hof-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--accent-light);
  text-transform: uppercase;
}

.hof-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-2);
}

.hof-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hof-card-org {
  font-size: 0.72rem;
  color: var(--accent-2);
  margin-bottom: 4px;
  font-weight: 600;
}

.hof-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35;
}

.hof-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}

.hof-card-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Project Cards --- */
.project-card {
  flex: 0 0 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #060910;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-icon {
  font-size: 2.2rem;
  opacity: 0.4;
}

.project-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--accent-light);
}

.project-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--warning);
}

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

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

.project-desc {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}

.project-tech {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  margin-bottom: 10px;
  background: rgba(56, 189, 248, 0.06);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.project-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
}

/* --- Modals --- */
.cert-modal, .pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cert-modal.active, .pdf-modal.active {
  display: flex;
}

.cert-modal-content {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.cert-modal-close, .pdf-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cert-modal-close:hover, .pdf-modal-close:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.pdf-modal-content {
  width: 90vw;
  max-width: 900px;
  height: 85vh;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.pdf-modal-iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}

/* --- Tools & Skills Section --- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.skill-group h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-group h4::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tool-tags span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tool-tags span:hover {
  border-color: var(--border-accent);
  color: var(--accent-light);
  transform: translateY(-1px);
}

.owasp-box {
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

/* --- Contact Banner Section --- */
.contact-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.contact-cta-left h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.contact-cta-left h2 .accent {
  color: var(--accent);
}

.contact-cta-left p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-link {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-link:hover {
  color: var(--accent-light);
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.contact-social a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-2);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.contact-social a:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #fff;
}

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

.footer-compact-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
  margin: 0 4px;
}

.footer-links a:hover {
  color: var(--accent-light);
}

/* --- Contact Page (contact.php) --- */
.contact-page {
  padding: 100px 24px 60px;
  max-width: 680px;
  margin: 0 auto;
}

.btn-back, .pd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-bottom: 20px;
  transition: transform 0.2s;
}

.btn-back:hover, .pd-back:hover {
  transform: translateX(-3px);
  color: #fff;
}

.contact-page h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.contact-page .sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.contact-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 500;
}

.contact-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
}

.contact-alert.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--danger);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* --- Project Detail Page (project-detail.php) --- */
.pd-section {
  padding: 100px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.pd-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.pd-badge-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.pd-title {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.pd-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.pd-image-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.detail-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.pd-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: rgba(9, 13, 22, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.pd-meta-item b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.pd-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.pd-desc-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.pd-description {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.pd-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.pd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right {
    order: -1;
  }
  .about-grid-new {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .contact-cta-box {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .slider-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(9, 13, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero {
    padding-top: 100px;
    min-height: auto;
  }
  .hof-card-premium, .project-card {
    flex: 0 0 280px;
  }
}

/* ==========================================================================
   OVERRIDE LIGHT THEME — White Background (added 2026-09-26)
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-subtle: #f8fafc;
  --bg-input: #ffffff;

  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --muted-dim: #94a3b8;

  --border: rgba(15, 23, 42, 0.10);
  --border-light: rgba(15, 23, 42, 0.18);
  --border-accent: rgba(16, 185, 129, 0.35);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.10);
}

html, body, .footer {
  background-color: #ffffff !important;
}
body {
  color: #334155 !important;
}
.noise { opacity: 0.015; }

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(15,23,42,0.10) !important;
}
.nav-links a { color: #64748b !important; }
.nav-links a:hover { color: #0f172a !important; }
.logo { color: #0f172a !important; }
.hamburger {
  background: #f1f5f9 !important;
  border-color: rgba(15,23,42,0.12) !important;
}
.hamburger span { background: #0f172a !important; }
.hamburger:hover { background: #e2e8f0 !important; }

/* Cards & sections */
.hero-avatar-cyber-card, .terminal, .stat-card, .timeline-item,
.education-card, .hof-card-premium, .project-card, .skill-group,
.contact-cta-box, .contact-card, .pd-box, .cyber-stat-item,
.owasp-box, .exp-terminal {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.10) !important;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06) !important;
}
.cyber-card-header, .terminal-header, .exp-term-header,
.pdf-modal-header {
  background: #f8fafc !important;
  border-bottom-color: rgba(15,23,42,0.08) !important;
}
.cyber-card-title, .term-title { color: #64748b !important; }
.hero-title, .cyber-card-name, .cyber-stat-num,
.section-header h2, .timeline-content h3, .edu-degree,
.hof-card-title, .project-title, .skill-group h4,
.contact-cta-left h2, .contact-page h1, .pd-title,
.skill span, .about-heading-full h3 {
  color: #0f172a !important;
}
.hero-desc, .section-subtitle, .about-text, .timeline-org,
.edu-institution, .edu-desc, .hof-card-desc, .project-desc,
.contact-cta-left p, .contact-page .sub, .pd-summary, .pd-description {
  color: #475569 !important;
}

/* Image placeholders that were near-black */
.hof-img-wrap, .project-img-wrap {
  background: #f1f5f9 !important;
  border-bottom-color: rgba(15,23,42,0.08) !important;
}
.exp-terminal, .owasp-box, .pd-meta-grid {
  background: #f8fafc !important;
}
.exp-term-body, .terminal-body { color: #334155 !important; }

/* Buttons / tags */
.btn-ghost {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.18) !important;
  color: #334155 !important;
}
.btn-ghost:hover {
  background: #f1f5f9 !important;
  border-color: #0f172a !important;
  color: #0f172a !important;
}
.btn-nav:hover { color: #059669 !important; }
.bar { background: rgba(15,23,42,0.08) !important; }
.tool-tags span, .pd-tech-tag {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,0.10) !important;
  color: #475569 !important;
}
.cyber-avatar-circle {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(56,189,248,0.12)) !important;
}
.cyber-card-stats .cyber-stat-item { background: #f8fafc !important; }
.section + .section, .footer { border-top-color: rgba(15,23,42,0.08) !important; }
.line-deco { background: linear-gradient(90deg, rgba(15,23,42,0.18), transparent) !important; }
.pd-divider { background: rgba(15,23,42,0.08) !important; }
.contact-form input, .contact-form textarea {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.14) !important;
  color: #0f172a !important;
}
.slider-arrow {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.14) !important;
  color: #0f172a !important;
}
.hof-slider::-webkit-scrollbar-thumb, .project-slider::-webkit-scrollbar-thumb {
  background: rgba(15,23,42,0.18) !important;
}
.term-btn {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.12) !important;
  color: #64748b !important;
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav-links {
    background: rgba(255,255,255,0.98) !important;
    border-bottom-color: rgba(15,23,42,0.10) !important;
  }
}

/* ==========================================================================
   TERMINAL STAYS BLACK (added 2026-09-26)
   UI putih, tapi animasi terminal tetap dark hacker-style
   ========================================================================== */
.terminal,
.exp-terminal {
  background: #0b1220 !important;
  border-color: rgba(255,255,255,0.09) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45) !important;
}
.terminal-header,
.exp-term-header {
  background: rgba(255,255,255,0.02) !important;
  border-bottom-color: rgba(255,255,255,0.09) !important;
}
.term-title { color: #94a3b8 !important; }
.terminal-body,
.exp-term-body {
  color: #cbd5e1 !important;
}
.terminal .prompt,
.exp-term-body .prompt {
  color: #10b981 !important;
}
.terminal .output,
.exp-term-body .output,
.exp-term-pre {
  color: #94a3b8 !important;
}
.terminal .output.highlight,
.exp-term-body .output.highlight {
  color: #34d399 !important;
}
.terminal .output.danger { color: #f43f5e !important; }
.terminal .output.warn { color: #fbbf24 !important; }
.terminal .output.info { color: #38bdf8 !important; }
.terminal .output.success { color: #10b981 !important; }
.term-btn {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.09) !important;
  color: #94a3b8 !important;
}
.term-btn:hover {
  background: rgba(255,255,255,0.10) !important;
  color: #f8fafc !important;
}

/* PROFILE PHOTO — ganti box placeholder jadi foto (added 2026-09-26) */
.hero-avatar-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 16px 40px rgba(15,23,42,0.12);
  display: block;
  background: #f1f5f9;
}
.hero-avatar-wrap { position: relative; }
.avatar-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(56,189,248,0.25));
  filter: blur(28px);
  opacity: 0.35;
  z-index: -1;
}
