/* ==========================================================================
   SPIDER-DEV PORTFOLIO STYLESHEET - BERNANDO IDAYAH EDITION
   Themes: Classic, Miles Morales, Iron Spider, Symbiote
   Includes Image Lightbox & Optimized Spider-Man Stage Layout
   ========================================================================== */

:root {
  /* Default: Classic Suit */
  --bg-primary: #0a0b12;
  --bg-secondary: #10121d;
  --bg-card: rgba(18, 21, 33, 0.78);
  --bg-card-hover: rgba(26, 30, 48, 0.95);
  
  --spider-red: #e62429;
  --spider-red-glow: rgba(230, 36, 41, 0.4);
  --spider-blue: #0066ff;
  --spider-blue-glow: rgba(0, 102, 255, 0.35);
  
  --accent-color: var(--spider-red);
  --accent-glow: var(--spider-red-glow);
  --accent-secondary: var(--spider-blue);
  
  --text-main: #f0f3fa;
  --text-muted: #9ba3b8;
  --text-dim: #646c82;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(230, 36, 41, 0.35);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-comic: 'Bungee', cursive;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Suit 2: Miles Morales Venom Suit */
[data-suit="miles"] {
  --bg-primary: #050608;
  --bg-secondary: #0d0e14;
  --bg-card: rgba(15, 16, 24, 0.85);
  --bg-card-hover: rgba(24, 26, 38, 0.95);
  
  --spider-red: #ff0044;
  --spider-red-glow: rgba(255, 0, 68, 0.5);
  --spider-blue: #ffe600; /* Venom electricity */
  --spider-blue-glow: rgba(255, 230, 0, 0.45);
  
  --accent-color: #ff0044;
  --accent-glow: rgba(255, 0, 68, 0.5);
  --accent-secondary: #ffe600;
  
  --border-glow: rgba(255, 0, 68, 0.4);
}

/* Suit 3: Iron Spider Nano-Tech Suit */
[data-suit="iron"] {
  --bg-primary: #0b0709;
  --bg-secondary: #170e12;
  --bg-card: rgba(28, 16, 22, 0.85);
  --bg-card-hover: rgba(38, 22, 30, 0.95);
  
  --spider-red: #c41528;
  --spider-red-glow: rgba(196, 21, 40, 0.45);
  --spider-blue: #ffd700; /* Stark Gold */
  --spider-blue-glow: rgba(255, 215, 0, 0.4);
  
  --accent-color: #ffd700;
  --accent-glow: rgba(255, 215, 0, 0.45);
  --accent-secondary: #c41528;
  
  --border-glow: rgba(255, 215, 0, 0.35);
}

/* Suit 4: Symbiote Dark Suit */
[data-suit="symbiote"] {
  --bg-primary: #040406;
  --bg-secondary: #0a0b10;
  --bg-card: rgba(14, 15, 22, 0.88);
  --bg-card-hover: rgba(22, 24, 34, 0.98);
  
  --spider-red: #a855f7;
  --spider-red-glow: rgba(168, 85, 247, 0.45);
  --spider-blue: #ffffff;
  --spider-blue-glow: rgba(255, 255, 255, 0.3);
  
  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.35);
  --accent-secondary: #a855f7;
  
  --border-glow: rgba(255, 255, 255, 0.25);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.4s ease;
}

/* Web-Shooter Canvas */
#webShooterCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* Background Universe */
.bg-universe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.web-mesh-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px, 80px 80px;
  opacity: 0.8;
}

.comic-halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.02) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.6;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  transition: background 0.6s ease;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: var(--accent-glow);
  opacity: 0.35;
}

.glow-2 {
  width: 600px;
  height: 600px;
  bottom: 10%;
  left: -200px;
  background: var(--spider-blue-glow);
  opacity: 0.25;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-text {
  color: var(--accent-color);
  text-shadow: 0 0 15px var(--accent-glow);
}

/* Floating Controls */
.floating-controls {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 100;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(18, 21, 33, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.control-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--accent-glow);
}

.control-btn.accent {
  background: linear-gradient(135deg, rgba(230, 36, 41, 0.2), rgba(0, 102, 255, 0.2));
  border-color: var(--accent-color);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4.5rem;
  z-index: 1000;
  background: rgba(10, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 11, 18, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-glow);
}

.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
}

.spider-emblem {
  width: 32px;
  height: 32px;
  color: var(--accent-color);
  transition: var(--transition-bounce);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-logo:hover .spider-emblem {
  transform: scale(1.15) rotate(10deg);
}

.emblem-svg {
  width: 100%;
  height: 100%;
}

.brand-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-monogram {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(230, 36, 41, 0.12);
  border: 1px solid var(--border-glow);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

/* Suit Selector */
.suit-selector {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.45);
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  gap: 0.25rem;
}

.suit-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-left: 0.5rem;
  padding-right: 0.2rem;
  font-weight: 600;
}

.suit-chip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-smooth);
}

.chip-color {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.chip-color.red-blue { background: linear-gradient(135deg, #e62429 50%, #0066ff 50%); }
.chip-color.black-red { background: linear-gradient(135deg, #111 50%, #ff0044 50%); }
.chip-color.gold-red { background: linear-gradient(135deg, #ffd700 50%, #c41528 50%); }
.chip-color.dark-symbiote { background: #ffffff; border: 1px solid #555; }

.suit-chip:hover { color: var(--text-main); }
.suit-chip.active {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

[data-suit="symbiote"] .suit-chip.active { color: #000; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition-smooth);
  box-shadow: 0 0 6px var(--accent-color);
}

.nav-link:hover { color: var(--text-main); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-cta::after { display: none; }
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  padding-top: 5.5rem;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-content {
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(230, 36, 41, 0.1);
  border: 1px solid var(--border-glow);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  animation: pulseDot 1.8s infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.hero-role-wrapper {
  margin-bottom: 1rem;
}

.hero-role-typing {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-color);
  display: inline-block;
}

.cursor-blink {
  color: var(--accent-color);
  animation: blink 0.9s infinite;
}

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

.hero-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-color);
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.quote-mark {
  color: var(--accent-color);
  font-weight: bold;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.65;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-sense {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-sense:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.sense-icon {
  animation: senseWiggle 2s infinite ease-in-out;
}

@keyframes senseWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-8deg); }
  75% { transform: scale(1.2) rotate(8deg); }
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-plus {
  color: var(--accent-color);
  font-weight: 800;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.3rem;
}

/* ==========================================================================
   SPIDER-MAN STAGE - HIGH HANGING & UNOBSTRUCTED PHOTO CARD
   ========================================================================== */
.hero-spiderman-stage {
  position: relative;
  height: 540px;
  display: flex;
  perspective: 1000px;
  user-select: none;
}

/* Bernando's Profile Terminal Card (Elevated & 100% Unobstructed) */
.profile-terminal-card {
  position: absolute;
  left: 10px;
  bottom: 25px;
  width: 255px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0,0,0,0.65);
  z-index: 30; /* Always above background elements */
  overflow: hidden;
  transition: var(--transition-smooth);
}

.profile-terminal-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
  box-shadow: 0 22px 55px var(--accent-glow);
}

.terminal-header {
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

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

.term-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }

.terminal-node {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.terminal-photo-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #080a11;
  cursor: zoom-in;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.terminal-photo-wrap:hover .profile-photo {
  transform: scale(1.06);
}

.scanline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 240, 255, 0.08) 51%);
  background-size: 100% 4px;
  pointer-events: none;
}

.spider-corner-tl {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--accent-color);
  border-left: 2px solid var(--accent-color);
  pointer-events: none;
}

.spider-corner-br {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-bottom: 2px solid var(--accent-color);
  border-right: 2px solid var(--accent-color);
  pointer-events: none;
}

.photo-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-glow);
}

.terminal-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border-color);
  padding: 0.5rem 0.6rem;
  text-align: center;
}

.term-stat {
  display: flex;
  flex-direction: column;
}

.term-lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
}

.term-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
}

.term-val.active-status {
  color: #27c93f;
}

/* Spider-Sense Waves Alert (Aligned above Spider-Man) */
.spider-sense-indicator {
  position: absolute;
  top: 10px;
  right: 20px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 50;
  pointer-events: none;
}

.spider-sense-indicator.active {
  display: flex;
  animation: senseFlash 0.3s infinite alternate;
}

@keyframes senseFlash {
  from { opacity: 0.7; transform: translateX(-50%) scale(0.95); }
  to { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.sense-wave {
  width: 140px;
  height: 40px;
  border: 3px solid #ffe600;
  border-bottom: none;
  border-radius: 140px 140px 0 0;
  position: absolute;
  filter: drop-shadow(0 0 8px #ffe600);
}

.wave-1 { top: -20px; width: 100px; border-color: #ff0044; }
.wave-2 { top: -35px; width: 140px; border-color: #ffe600; }
.wave-3 { top: -50px; width: 180px; border-color: #00f0ff; }

.sense-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffe600;
  background: rgba(0, 0, 0, 0.88);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-top: -65px;
  letter-spacing: 1px;
  border: 1px solid #ffe600;
  box-shadow: 0 0 10px #ffe600;
  white-space: nowrap;
}

/* Web Line hanging down (Adjusted higher) */
.spidey-web-line {
  position: absolute;
  top: -120px;
  right: 125px;
  width: 2.5px;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), #ffffff);
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
  transform-origin: top center;
  z-index: 15;
}

/* Spider-Man Pendulum: POSITIONED HIGH UP & TO THE RIGHT
   This ensures Spider-Man hangs in the top realm and NEVER obstructs Bernando's photo! */
.spiderman-pendulum {
  position: absolute;
  top: -85px; /* Shifted high up */
  right: 15px; /* Shifted to the right of the photo card */
  transform-origin: top center;
  cursor: grab;
  z-index: 20;
  transition: filter 0.3s ease;
}

.spiderman-pendulum:active {
  cursor: grabbing;
}

.spiderman-character {
  width: 220px;
  height: 310px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
  transition: transform 0.15s ease-out;
}

.spidey-svg {
  width: 100%;
  height: 100%;
}

/* Suit Color Theme Overrides for SVG */
[data-suit="classic"] .suit-red { fill: #d81b3a; }
[data-suit="classic"] .suit-blue { fill: #0b3fa8; }

[data-suit="miles"] .suit-red { fill: #e60039; }
[data-suit="miles"] .suit-blue { fill: #111218; }
[data-suit="miles"] .spidey-chest-emblem ellipse,
[data-suit="miles"] .spidey-chest-emblem path {
  fill: #ff003c !important;
  stroke: #ff003c !important;
}

[data-suit="iron"] .suit-red { fill: #b81424; }
[data-suit="iron"] .suit-blue { fill: #d4a017; }
[data-suit="iron"] .suit-webs { stroke: #ffd700 !important; }

[data-suit="symbiote"] .suit-red { fill: #12131b; }
[data-suit="symbiote"] .suit-blue { fill: #08090d; }
[data-suit="symbiote"] .suit-webs { stroke: #2a2d3d !important; }
[data-suit="symbiote"] .spidey-chest-emblem ellipse,
[data-suit="symbiote"] .spidey-chest-emblem path {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* Speech Quip Bubble */
.spidey-quip-bubble {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 21, 33, 0.95);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: floatQuip 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

.spidey-quip-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent var(--border-glow) transparent;
}

@keyframes floatQuip {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.scroll-cue:hover {
  color: var(--accent-color);
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 3px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 1.6s infinite ease-in-out;
}

@keyframes wheelScroll {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-color);
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  margin: 1.2rem auto 0;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ==========================================================================
   AREA FOKUS SECTION
   ========================================================================== */
.fokus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fokus-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.fokus-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 30px var(--accent-glow);
}

.fokus-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.fokus-icon {
  font-size: 1.8rem;
}

.fokus-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(230, 36, 41, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-glow);
}

.fokus-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

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

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
}

.comic-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
}

.comic-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--accent-glow);
}

.comic-card-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.8rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.comic-label {
  color: var(--accent-color);
  font-weight: 700;
}

.comic-date {
  color: var(--text-dim);
}

.comic-body {
  padding: 1.8rem;
}

.comic-body h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.comic-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.bio-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
}

.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.highlight-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.highlight-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Principles */
.principles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.principles-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.principle-badge {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(230, 36, 41, 0.12);
  border: 1px solid var(--border-glow);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.principle-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.principle-content p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Cartridge Status */
.cartridge-status {
  background: rgba(0,0,0,0.3);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.cartridge-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.cartridge-pct {
  color: var(--accent-color);
  font-weight: 700;
}

.cartridge-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cartridge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-color));
  box-shadow: 0 0 10px var(--accent-color);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* ==========================================================================
   PROYEK SECTION (INTERACTIVE ZOOMABLE IMAGES)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px var(--accent-glow);
}

.project-banner-real {
  height: 220px;
  position: relative;
  background: #080a11;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  cursor: zoom-in;
}

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

.project-banner-real:hover .project-main-img {
  transform: scale(1.08);
}

/* Zoom cue pill that appears on hover */
.zoom-cue-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition-smooth);
  pointer-events: none;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.zoomable-img:hover .zoom-cue-pill {
  opacity: 1;
  transform: translateY(0);
}

.project-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-glow);
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  z-index: 10;
  letter-spacing: 0.5px;
}

.project-info {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-role-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.project-company {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex: 1;
  line-height: 1.6;
}

/* Project thumbnails (Zoomable) */
.project-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-thumbs-grid.single-thumb {
  grid-template-columns: 1fr;
  max-width: 120px;
}

.thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  border: 1px solid var(--border-color);
  height: 52px;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.thumb-wrap:hover .thumb-img {
  transform: scale(1.15);
}

.thumb-wrap:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.project-flow-pills {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(0,0,0,0.3);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.project-flow-pills span {
  color: var(--accent-color);
  font-weight: 600;
}

.project-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.btn-text:hover {
  gap: 0.7rem;
  text-shadow: 0 0 10px var(--accent-glow);
}

/* ==========================================================================
   SKILLS & TOOLKIT SECTION
   ========================================================================== */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.skill-category-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 14px 35px var(--accent-glow);
}

.category-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.category-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.skill-pill {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pill-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.pill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-color));
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Cert & Edu Cards */
.cert-edu-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 2rem;
}

.cert-card, .edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.cert-icon {
  font-size: 1.8rem;
}

.cert-title {
  font-size: 1.3rem;
}

.cert-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.cert-item {
  background: rgba(0,0,0,0.3);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.4rem;
}

.cert-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.cert-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.edu-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.edu-campus {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.edu-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
  background: rgba(230, 36, 41, 0.12);
  border: 1px solid var(--border-glow);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

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

/* ==========================================================================
   TIMELINE SECTION
   ========================================================================== */
.timeline-container {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding: 1rem 0;
}

.timeline-web-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color), var(--accent-secondary), transparent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2.2rem;
}

.timeline-marker {
  position: absolute;
  left: 11px;
  top: 4px;
  width: 20px;
  height: 20px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}

.marker-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 700;
}

.timeline-badge {
  background: rgba(230, 36, 41, 0.15);
  color: var(--accent-color);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
}

.timeline-role {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.timeline-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-tech span {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.04);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.contact-info-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.contact-info-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item-link {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.info-item-link:hover {
  border-color: var(--accent-color);
  background: rgba(230, 36, 41, 0.08);
  transform: translateX(4px);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.info-icon {
  font-size: 1.4rem;
  background: rgba(255,255,255,0.06);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-submit {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.9rem;
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.form-alert.success {
  background: rgba(39, 201, 63, 0.15);
  border: 1px solid #27c93f;
  color: #a8f5b4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: #06070a;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.footer-bottom {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.easter-tip {
  margin-top: 0.5rem;
  color: var(--accent-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ==========================================================================
   IMAGE LIGHTBOX MODAL (KLIK GAMBAR UNTUK MEMPERBESAR SECARA JELAS)
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(14px);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-container {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-backdrop.open .lightbox-container {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-glow);
  color: #fff;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.lightbox-close:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
  box-shadow: 0 0 15px var(--accent-glow);
}

.lightbox-content {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.lightbox-img {
  max-width: 86vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: 0 8px 30px rgba(0,0,0,0.7);
  background: #000;
}

.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  text-align: center;
  max-width: 720px;
  background: rgba(0,0,0,0.6);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  line-height: 1.5;
}

/* ==========================================================================
   PROJECT DETAIL MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-glow);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2.2rem;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: var(--accent-color);
  color: #fff;
}

.modal-project-title {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.modal-tech-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.modal-tech-stack span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(230, 36, 41, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--accent-color);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.modal-features {
  margin-bottom: 1.8rem;
}

.modal-features h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.modal-features ul {
  padding-left: 1.4rem;
  color: var(--text-muted);
}

.modal-features li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   MINI GAME OVERLAY
   ========================================================================== */
.game-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.95);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--border-glow);
  font-family: var(--font-mono);
}

.game-score strong,
.game-timer strong {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.game-exit-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.game-exit-btn:hover {
  background: var(--spider-red);
}

.game-arena {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

.game-instructions {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

.game-target {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  animation: targetFloat 3s infinite ease-in-out;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-target:hover {
  transform: scale(1.15);
}

.game-target.trapped {
  pointer-events: none;
  filter: grayscale(0.8);
  animation: webTrapped 0.5s forwards;
}

@keyframes webTrapped {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(20deg); }
  100% { transform: scale(0.2) rotate(180deg); opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-spiderman-stage {
    order: 1;
    height: 520px;
    justify-content: center;
  }

  .profile-terminal-card {
    left: 20px;
    bottom: 10px;
  }

  .spiderman-pendulum {
    right: 20px;
    top: -60px;
  }
  
  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }

  .fokus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .skills-categories-grid {
    grid-template-columns: 1fr;
  }

  .cert-edu-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

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

  .hero-role-typing {
    font-size: 1.1rem;
  }

  .hero-spiderman-stage {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
  }

  .profile-terminal-card {
    position: static;
    transform: none;
    margin: 0 auto;
    width: 230px;
  }

  .spiderman-pendulum {
    position: relative;
    right: auto;
    top: auto;
    transform: none !important;
    margin-bottom: 1rem;
  }

  .spidey-web-line {
    display: none;
  }

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

  .cert-items {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background: rgba(10, 11, 18, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-glow);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .floating-controls {
    top: auto;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}
