/* =============================================
   AWENZER.EXE — CYBERPUNK PORTFOLIO
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  --black: #050508;
  --dark: #0a0a0f;
  --panel: #0d0d14;
  --purple: #8b45f0;
  --purple-dim: #7030c8;
  --purple-light: #c084fc;
  --accent: #b0b0c8;
  --red: #ff2244;
  --white: #f0f0fa;
  --gray: #c0c0d8;
  --border: rgba(140, 70, 240, 0.35);
  --border-a: rgba(138, 138, 154, 0.25);
  --glow-p: 0 0 10px rgba(140,70,240,0.7), 0 0 30px rgba(140,70,240,0.25);
  --glow-pl: 0 0 10px rgba(192,132,252,0.6), 0 0 25px rgba(192,132,252,0.2);
  --font: 'Rajdhani', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #050508;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* CURSOR */
.cursor {
  position: fixed; width: 12px; height: 12px;
  background: var(--purple); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s, width 0.2s, height 0.2s;
  box-shadow: var(--glow-p);
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--purple); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s, height 0.2s, border-color 0.2s;
  opacity: 0.6;
}
.cursor.hover { width: 6px; height: 6px; background: var(--purple-light); }
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--purple-light); opacity: 0.4; }

/* SCANLINES */
body::after {
  content: ''; position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none; z-index: 9990;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 48px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,5,8,0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--purple-light), transparent);
  animation: navGlow 4s ease infinite;
}
@keyframes navGlow { 0%,100%{opacity:0.4;} 50%{opacity:1;} }
.nav-logo {
  font-family: var(--font); font-size: 20px; font-weight: 700;
  color: var(--purple-light); text-decoration: none;
  letter-spacing: 4px; text-shadow: var(--glow-pl); text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--gray); text-decoration: none;
  letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s;
  position: relative;
}
.nav-links a::before { content: '// '; color: var(--purple-light); opacity: 0; transition: opacity 0.3s; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::before, .nav-links a.active-page::before { opacity: 1; }
.nav-links a.active-page { color: var(--purple-light); }
.nav-status {
  font-family: var(--font); font-size: 12px; font-weight: 500;
  color: var(--accent); display: flex; align-items: center; gap: 8px; letter-spacing: 1px;
}
.status-dot {
  width: 6px; height: 6px; background: var(--purple-light); border-radius: 50%;
  animation: blink 1.4s infinite; box-shadow: var(--glow-pl);
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }

/* =============================================
   MINIMAP — DRAGGABLE + TABS
   ============================================= */
#minimap {
  position: fixed; top: 80px; right: 20px; z-index: 900;
  width: 160px;
  background: rgba(5,5,8,0.95);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  font-family: var(--font);
  box-shadow: 0 8px 40px rgba(140,70,240,0.15);
  border-radius: 2px;
  user-select: none;
  transition: opacity 0.3s;
}
#minimap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light)); z-index: 1;
}
#minimap.collapsed .minimap-body { display: none; }

/* Drag Handle / Header */
.minimap-drag-handle {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(140,70,240,0.2);
  display: flex; align-items: center; justify-content: space-between;
  cursor: grab; background: rgba(140,70,240,0.06);
  transition: background 0.2s;
}
.minimap-drag-handle:active { cursor: grabbing; }
.minimap-drag-handle:hover { background: rgba(140,70,240,0.1); }
.minimap-label {
  font-size: 10px; font-weight: 700; color: var(--purple-light);
  letter-spacing: 3px; text-transform: uppercase;
}
.minimap-toggle-icon {
  font-size: 16px; color: var(--gray); line-height: 1;
  transition: color 0.2s; font-weight: 300;
}
#minimap.collapsed .minimap-toggle-icon { color: var(--purple-light); }

/* Canvas minimap */
.minimap-canvas-wrap {
  position: relative;
  padding: 0;
  border-bottom: 1px solid rgba(140,70,240,0.15);
  background: #020206;
  overflow: hidden;
}
#minimap-canvas {
  display: block;
  width: 100%;
  image-rendering: pixelated;
}
.minimap-canvas-overlay {
  position: absolute; inset: 0; pointer-events: none;
  border: 1px solid rgba(100,200,255,0.08);
}
/* corner brackets */
.minimap-corner {
  position: absolute; width: 10px; height: 10px; pointer-events: none;
}
.minimap-corner.tl { top: 4px; left: 4px;  border-top: 1px solid var(--purple-light); border-left: 1px solid var(--purple-light); }
.minimap-corner.tr { top: 4px; right: 4px; border-top: 1px solid var(--purple-light); border-right: 1px solid var(--purple-light); }
.minimap-corner.bl { bottom: 4px; left: 4px;  border-bottom: 1px solid var(--purple-light); border-left: 1px solid var(--purple-light); }
.minimap-corner.br { bottom: 4px; right: 4px; border-bottom: 1px solid var(--purple-light); border-right: 1px solid var(--purple-light); }

/* Section label HUD */
.minimap-hud-label {
  position: absolute; bottom: 6px; left: 8px;
  font-size: 8px; font-weight: 700; color: #00e5ff;
  letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--font); pointer-events: none;
  text-shadow: 0 0 6px rgba(0,229,255,0.8);
}

/* Social buttons row */
.minimap-social-row {
  display: flex;
  border-top: 1px solid rgba(140,70,240,0.15);
}
.minimap-social-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 9px 0;
  font-family: var(--font); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray); text-decoration: none;
  border-right: 1px solid rgba(140,70,240,0.15);
  transition: all 0.2s; gap: 4px;
}
.minimap-social-btn:last-child { border-right: none; }
.minimap-social-btn:hover {
  background: rgba(140,70,240,0.1);
  color: var(--purple-light);
}

/* Toggle (shown when collapsed) */
.minimap-toggle {
  position: fixed; top: 80px; right: 20px; z-index: 901;
  background: rgba(5,5,8,0.92); border: 1px solid var(--border);
  color: var(--purple-light); font-family: var(--font); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; padding: 7px 14px; cursor: pointer;
  display: none; backdrop-filter: blur(12px); transition: all 0.2s; text-transform: uppercase;
}
.minimap-toggle:hover { background: rgba(140,70,240,0.15); }
.minimap-toggle.show { display: block; }

/* GLITCH */
.glitch { position: relative; color: var(--purple-light); }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch::before {
  color: var(--accent); animation: glitch1 3s infinite;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}
.glitch::after {
  color: var(--red); animation: glitch2 3s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}
@keyframes glitch1 { 0%,100%{transform:none;opacity:0;} 2%{transform:translate(-3px,1px);opacity:0.8;} 4%{transform:none;opacity:0;} 52%{transform:translate(2px,-1px);opacity:0.6;} 54%{transform:none;opacity:0;} }
@keyframes glitch2 { 0%,100%{transform:none;opacity:0;} 3%{transform:translate(3px,-1px);opacity:0.8;} 5%{transform:none;opacity:0;} 53%{transform:translate(-2px,1px);opacity:0.6;} 55%{transform:none;opacity:0;} }

/* SECTIONS */
section { position: relative; padding: 120px 80px; min-height: 100vh; }
.section-label {
  font-family: var(--font); font-size: 12px; font-weight: 600;
  color: var(--purple-light); letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; display: block; width: 30px; height: 1px; background: var(--purple-light); box-shadow: var(--glow-pl); }
.section-title {
  font-family: var(--font); font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  color: var(--white); margin-bottom: 60px; line-height: 1.1;
  letter-spacing: 2px; text-transform: uppercase;
}
.section-title span { color: var(--purple-light); }

/* HERO */
#hero { padding: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
#matrix-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.4; }
.hero-video-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(60%) contrast(1.1); }
.hero-video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed rgba(140,70,240,0.15); margin: 60px; cursor: pointer; transition: border-color 0.3s;
}
.hero-video-placeholder:hover { border-color: rgba(140,70,240,0.35); }
.hero-video-placeholder span { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; }
.hero-video-placeholder input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.hero-photo-bg {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(5,5,8,0.7) 0%, rgba(5,5,8,0.4) 50%, rgba(5,5,8,0.8) 100%);
}
.hero-photo-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(60%) contrast(1.2); mix-blend-mode: luminosity; opacity: 0.3;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(140,70,240,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 50%, rgba(192,132,252,0.04) 0%, transparent 70%);
}
/* Hero split layout */
.hero-content { position: relative; z-index: 3; padding: 0 60px; width: 100%; max-width: 1200px; }
.hero-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}
.hero-left { text-align: left; }
.hero-left .hero-stats { justify-content: flex-start; }
.hero-left .hero-cta { justify-content: flex-start; }
.hero-left .hero-desc { margin: 0 0 48px; }

/* Portrait */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 1.0s forwards;
}
.hero-portrait { position: relative; width: 100%; max-width: 320px; }
.hero-portrait-frame {
  width: 100%;
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #0d0d18, #13101e);
  position: relative;
  overflow: hidden;
}
.hero-portrait-frame::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  z-index: 3;
}
.hero-portrait-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(140,70,240,0.025) 8px, rgba(140,70,240,0.025) 9px);
  pointer-events: none; z-index: 1;
}
.hero-portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
  display: block;
  position: relative; z-index: 2;
}
.hero-portrait-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: background 0.3s; z-index: 2;
}
.hero-portrait-placeholder:hover { background: rgba(140,70,240,0.06); }
.hero-portrait-icon { font-size: 32px; color: var(--purple-light); opacity: 0.5; }
.hero-portrait-label {
  font-family: var(--font); font-size: 11px; font-weight: 700;
  color: var(--gray); letter-spacing: 3px; text-align: center; text-transform: uppercase;
  line-height: 1.6;
}
.hero-portrait-placeholder input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.hero-portrait-tag {
  margin-top: 10px;
  font-family: var(--font); font-size: 11px; font-weight: 700;
  color: var(--purple-light); letter-spacing: 3px; text-transform: uppercase;
  text-align: center; opacity: 0.7;
}

/* Scan line on portrait hover */
.hero-portrait-frame .portrait-scan {
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(140,70,240,0.12), transparent);
  transition: left 0.6s ease; z-index: 4;
}
.hero-portrait:hover .portrait-scan { left: 150%; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-left { text-align: center; }
  .hero-left .hero-stats { justify-content: center; }
  .hero-left .hero-cta { justify-content: center; }
  .hero-left .hero-desc { margin: 0 auto 48px; }
  .hero-portrait { max-width: 220px; margin: 0 auto; }
  .hero-content { padding: 0 24px; }
}
.hero-system-text {
  font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 3px; margin-bottom: 24px; text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}
.hero-name {
  font-family: var(--font); font-size: clamp(56px, 10vw, 110px); font-weight: 700;
  line-height: 0.9; margin-bottom: 8px; letter-spacing: 4px; text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}
.hero-alias {
  font-family: var(--font); font-size: clamp(14px, 2vw, 20px); font-weight: 500;
  color: var(--purple-light); letter-spacing: 10px; margin-bottom: 32px;
  text-shadow: var(--glow-pl); text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.hero-desc {
  font-family: var(--font); font-size: 18px; font-weight: 400; color: var(--gray);
  max-width: 520px; margin: 0 auto 48px;
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
}
.hero-desc em { color: var(--white); font-style: normal; font-weight: 600; }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.8s 1.1s forwards;
}
.stat {
  text-align: center; padding: 16px 28px;
  border: 1px solid var(--border); background: rgba(140,70,240,0.05); position: relative;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
}
.stat-num { font-family: var(--font); font-size: 28px; font-weight: 700; color: var(--purple-light); line-height: 1; text-shadow: var(--glow-pl); letter-spacing: 2px; }
.stat-label { font-family: var(--font); font-size: 10px; font-weight: 600; color: var(--gray); letter-spacing: 2px; margin-top: 6px; text-transform: uppercase; }
.hero-cta { display: flex; gap: 16px; justify-content: center; opacity: 0; animation: fadeUp 0.8s 1.3s forwards; }
.btn {
  font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 3px;
  text-decoration: none; padding: 14px 36px; text-transform: uppercase;
  transition: all 0.3s; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--purple); color: var(--white); border: 1px solid var(--purple); }
.btn-primary:hover { background: var(--purple-light); border-color: var(--purple-light); box-shadow: var(--glow-p); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--border-a); }
.btn-outline:hover { border-color: var(--purple-light); color: var(--purple-light); box-shadow: var(--glow-p); }
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeUp 0.8s 1.6s forwards;
}
.scroll-indicator span { font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--gray); letter-spacing: 3px; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--purple-light), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(1);} 50%{opacity:1;transform:scaleY(1.2);} }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px);} to{opacity:1;transform:translateY(0);} }

/* FEATURED */
#featured { background: var(--dark); border-top: 1px solid var(--border); }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2px; }
.project-card {
  position: relative; overflow: hidden; background: var(--panel);
  border: 1px solid var(--border); transition: border-color 0.4s, transform 0.4s; cursor: pointer;
}
.project-card:hover { border-color: var(--purple-light); transform: translateY(-4px); z-index: 2; }
.project-img-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0d0d14 0%, #13101e 50%, #0a0a14 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--gray);
  letter-spacing: 3px; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden; text-transform: uppercase;
}
.project-img-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(140,70,240,0.03) 10px, rgba(140,70,240,0.03) 11px);
}
.project-scan {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(140,70,240,0.15), transparent);
  transition: left 0.6s ease;
}
.project-card:hover .project-scan { left: 150%; }
.project-body { padding: 28px; }
.project-tag {
  font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--purple-light);
  letter-spacing: 3px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; text-transform: uppercase;
}
.project-tag::before { content: ''; width: 16px; height: 1px; background: var(--purple-light); }
.project-name { font-family: var(--font); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.2; letter-spacing: 1px; text-transform: uppercase; }
.project-desc { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.project-link {
  font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--purple-light);
  text-decoration: none; letter-spacing: 2px; display: flex; align-items: center; gap: 8px;
  transition: gap 0.3s; background: none; border: none; cursor: pointer; padding: 0; text-transform: uppercase;
}
.project-link:hover { gap: 14px; }
.project-link::after { content: '→'; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* SKILLS */
#skills { background: var(--black); border-top: 1px solid var(--border); }
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.skills-software h3, .skills-bars h3 {
  font-family: var(--font); font-size: 13px; font-weight: 700;
  letter-spacing: 3px; margin-bottom: 32px; text-transform: uppercase;
}
.skills-software h3 { color: var(--purple-light); }
.skills-bars h3 { color: var(--accent); }
.software-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sw-item {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; border: 1px solid var(--border); background: var(--panel); padding: 16px 8px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s; position: relative; overflow: hidden; cursor: pointer;
}
.sw-item:hover { border-color: var(--purple-light); background: rgba(140,70,240,0.08); transform: translateY(-4px); box-shadow: var(--glow-p); }
.sw-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--purple); transform: scaleX(0); transition: transform 0.3s; }
.sw-item:hover::before { transform: scaleX(1); }
.sw-icon { font-size: 22px; font-weight: 700; font-family: var(--font); color: var(--purple-light); line-height: 1; }
.sw-name { font-family: var(--font); font-size: 9px; font-weight: 600; color: var(--gray); letter-spacing: 1px; text-align: center; text-transform: uppercase; }
.skill-bar-item { margin-bottom: 24px; cursor: pointer; transition: opacity 0.2s; }
.skill-bar-item:hover { opacity: 0.8; }
.skill-bar-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-bar-name { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--white); letter-spacing: 1px; text-transform: uppercase; }
.skill-bar-pct { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--accent); }
.skill-bar-track { height: 3px; background: rgba(255,255,255,0.06); position: relative; }
.skill-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple-light));
  width: 0; transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(140,70,240,0.5); position: relative;
}
.skill-bar-fill::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 8px; height: 8px; background: var(--purple-light); border-radius: 50%; box-shadow: var(--glow-pl);
}

/* CV SECTION */
.cv-section {
  margin-top: 48px; padding: 24px;
  border: 1px solid var(--border); background: rgba(140,70,240,0.04);
}
.cv-section-label {
  font-family: var(--font); font-size: 11px; font-weight: 700;
  color: var(--purple-light); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px;
}
.cv-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cv-btn {
  font-family: var(--font); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: 12px 24px;
  border: 1px solid var(--border); background: var(--panel);
  color: var(--purple-light); cursor: pointer; transition: all 0.3s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.cv-btn:hover { border-color: var(--purple-light); background: rgba(140,70,240,0.1); box-shadow: var(--glow-p); }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,5,8,0.85); z-index: 5000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(8px);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto;
  background: var(--dark); border: 1px solid var(--border); position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  user-select: none;
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
/* Dragged state: detach from flex flow */
.modal-box.modal-dragged {
  position: fixed !important;
  transform: none !important;
  transition: box-shadow 0.2s !important;
}
.modal-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light), var(--purple)); z-index: 1;
}
.modal-corner { position: absolute; width: 16px; height: 16px; z-index: 2; }
.modal-corner.tl { top: 8px; left: 8px; border-top: 1px solid var(--purple-light); border-left: 1px solid var(--purple-light); }
.modal-corner.tr { top: 8px; right: 8px; border-top: 1px solid var(--purple-light); border-right: 1px solid var(--purple-light); }
.modal-corner.bl { bottom: 8px; left: 8px; border-bottom: 1px solid var(--purple-light); border-left: 1px solid var(--purple-light); }
.modal-corner.br { bottom: 8px; right: 8px; border-bottom: 1px solid var(--purple-light); border-right: 1px solid var(--purple-light); }
.modal-topbar {
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--dark); z-index: 10;
  cursor: grab;
}
.modal-topbar:active { cursor: grabbing; }
.modal-topbar-left { display: flex; align-items: center; gap: 8px; }
.modal-dot { width: 10px; height: 10px; border-radius: 50%; cursor: pointer; transition: opacity 0.2s; }
.modal-dot:hover { opacity: 0.7; }
.modal-dot.r { background: var(--red); }
.modal-dot.y { background: #ffbd2e; }
.modal-dot.g { background: #28ca41; }
.modal-topbar-title {
  font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--gray);
  letter-spacing: 3px; text-transform: uppercase; margin-left: 8px;
}
.modal-close-btn {
  background: none; border: 1px solid var(--border); color: var(--gray);
  font-family: var(--font); font-size: 12px; font-weight: 700;
  padding: 6px 14px; cursor: pointer; letter-spacing: 2px; transition: all 0.2s; text-transform: uppercase;
}
.modal-close-btn:hover { color: var(--purple-light); border-color: var(--purple-light); }
.modal-img-placeholder {
  width: 100%; aspect-ratio: 16/7;
  background: linear-gradient(135deg, #0d0d18, #13101e);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--gray);
  letter-spacing: 3px; position: relative; overflow: hidden; text-transform: uppercase;
}
.modal-img-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(140,70,240,0.025) 8px, rgba(140,70,240,0.025) 9px);
}
.modal-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; filter: grayscale(20%) contrast(1.1); display: block; }
.modal-body { padding: 32px; }
.modal-tag {
  font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--accent);
  letter-spacing: 3px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; text-transform: uppercase;
}
.modal-title { font-family: var(--font); font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--white); margin-bottom: 16px; line-height: 1.2; letter-spacing: 2px; text-transform: uppercase; }
.modal-desc { font-size: 15px; color: var(--gray); line-height: 1.8; margin-bottom: 28px; }
.modal-desc strong { color: var(--white); font-weight: 600; }
.modal-meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; border: 1px solid var(--border); margin-bottom: 28px; background: var(--border);
}
.modal-meta-item { background: var(--panel); padding: 14px 18px; }
.modal-meta-label { font-family: var(--font); font-size: 9px; font-weight: 700; color: var(--gray); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 5px; }
.modal-meta-value { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--white); letter-spacing: 1px; }
.modal-section-label { font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--purple-light); letter-spacing: 3px; margin-bottom: 12px; margin-top: 24px; text-transform: uppercase; }
.modal-tags-list, .modal-tools-list { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-tag-pill { font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--gray); padding: 5px 12px; border: 1px solid var(--border); letter-spacing: 1px; background: var(--panel); text-transform: uppercase; }
.modal-tool-pill { font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--purple-light); padding: 5px 12px; border: 1px solid rgba(140,70,240,0.4); letter-spacing: 1px; background: rgba(140,70,240,0.07); text-transform: uppercase; }
.modal-pdf-frame { width: 100%; height: 70vh; border: none; background: #fff; display: block; }

/* FOOTER */
footer {
  background: var(--panel); border-top: 1px solid var(--border);
  padding: 60px 80px; display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-family: var(--font); font-size: 22px; font-weight: 700; color: var(--purple-light); text-shadow: var(--glow-pl); letter-spacing: 4px; text-transform: uppercase; }
.footer-copy { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--gray); text-decoration: none; letter-spacing: 2px; transition: color 0.3s; text-transform: uppercase; }
.footer-links a:hover { color: var(--purple-light); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  nav .nav-status { display: none; }
  section { padding: 80px 24px; }
  .skills-layout { grid-template-columns: 1fr; gap: 48px; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .modal-body { padding: 20px; }
  #minimap { right: 8px; width: 210px; }
}
@media (max-width: 600px) {
  .software-grid { grid-template-columns: repeat(3, 1fr); }
  nav .nav-links { display: none; }
}



.carousel { position: relative; width: 100%; height: 100%; overflow: hidden; background: #07070c; }
.carousel-track { display: flex; height: 100%; transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1); }
.carousel-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(10,10,20,0.75); border: 1px solid var(--purple-light); color: var(--purple-light); font-size: 20px; width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.25s; z-index: 10; backdrop-filter: blur(6px); }
.carousel-btn:hover { background: var(--purple-light); color: #05050a; }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-counter { position: absolute; bottom: 12px; right: 16px; font-family: monospace; font-size: 11px; letter-spacing: 2px; color: var(--purple-light); background: rgba(10,10,20,0.7); padding: 4px 10px; border: 1px solid rgba(192,132,252,0.25); }
/* ── MISSION HUD (CP2077 style) ─────────────── */
.minimap-mission {
  padding: 8px 10px 10px 10px;
  border-bottom: 1px solid rgba(255,210,0,0.2);
  background: rgba(40,30,0,0.6);
}
.minimap-mission-title {
  font-family: var(--font);
  font-size: 9px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 5px;
  text-shadow: 0 0 8px rgba(255,215,0,0.6);
}
.minimap-mission-obj {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  color: #ffe566;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
.minimap-mission-icon {
  flex-shrink: 0;
  width: 16px; height: 16px;
  background: #ffd700;
  color: #000;
  font-size: 10px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  margin-top: 1px;
  box-shadow: 0 0 8px rgba(255,215,0,0.5);
  font-family: var(--font);
}

/* ══════════════════════════════════════════════
   GLOBAL HOVER — YELLOW CP2077
   ══════════════════════════════════════════════ */
:root { --hover: #ffd700; --hover-glow: 0 0 10px rgba(255,215,0,0.5), 0 0 25px rgba(255,215,0,0.15); }

a:hover, button:hover { color: var(--hover); }

.nav-links a:hover { color: var(--hover) !important; }
.nav-links a:hover::before { color: var(--hover); opacity: 1; }
.nav-links a.active-page { color: var(--hover) !important; }
.nav-links a.active-page::before { color: var(--hover); }

.btn-primary:hover  { background: var(--hover); border-color: var(--hover); color: #000 !important; box-shadow: var(--hover-glow); }
.btn-outline:hover  { border-color: var(--hover); color: var(--hover) !important; box-shadow: var(--hover-glow); }

.project-card:hover { border-color: var(--hover); }
.project-card:hover .project-tag { color: var(--hover); }
.project-link:hover { color: var(--hover); }

.sw-item:hover { border-color: var(--hover); box-shadow: var(--hover-glow); }
.sw-item:hover .sw-name { color: var(--hover); }

.skill-bar-item:hover .skill-bar-name { color: var(--hover); }
.skill-bar-item:hover .skill-bar-pct  { color: var(--hover); }

.modal-close-btn:hover { color: var(--hover); border-color: var(--hover); }

.footer-links a:hover { color: var(--hover) !important; }

.minimap-social-btn:hover { color: var(--hover) !important; background: rgba(255,215,0,0.06); }
.minimap-drag-handle:hover .minimap-label { color: var(--hover); }
.minimap-toggle:hover { color: var(--hover); border-color: var(--hover); }

.carousel-btn:hover { background: var(--hover); color: #000; }

/* ═══════════════════════════════════════════════
   GLOBAL VIDEO BACKGROUND (all pages)
   ═══════════════════════════════════════════════ */
.global-video-bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.global-video-bg video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.18;
  filter: grayscale(60%) contrast(1.1) brightness(0.6);
}
/* Pages with video background */
body.has-video-bg {
  background: transparent;
}


/* ═══════════════════════════════════════════════
   NAV LOGO hover → jaune
   ═══════════════════════════════════════════════ */
.nav-logo {
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-logo:hover {
  color: var(--hover, #ffd700) !important;
  text-shadow: 0 0 20px rgba(255,215,0,0.5) !important;
}

/* ═══════════════════════════════════════════════
   NAV underline (nav::before) → jaune au hover nav
   ═══════════════════════════════════════════════ */
nav {
  transition: border-color 0.3s;
}
nav::before {
  transition: background 0.4s, opacity 0.4s;
}
nav:hover::before {
  background: linear-gradient(90deg, transparent, var(--hover, #ffd700), transparent) !important;
  opacity: 1 !important;
  animation: none !important;
}

/* ═══════════════════════════════════════════════
   HERO NAME — glitch jaune → AWENZER au hover
   ═══════════════════════════════════════════════ */
.hero-name-glitch-wrap {
  display: inline-block;
  position: relative;
  cursor: default;
}
/* Default state — show "AWEN ESCOULAN" */
.hero-name-glitch-wrap .name-real {
  display: inline-block;
  transition: opacity 0.15s;
}
/* Hidden AWENZER layer */
.hero-name-glitch-wrap .name-alter {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  color: var(--hover, #ffd700);
  text-shadow: 0 0 30px rgba(255,215,0,0.7), 0 0 60px rgba(255,215,0,0.3);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.05s;
  pointer-events: none;
  white-space: nowrap;
}
/* Glitch frames on hover */
.hero-name-glitch-wrap:hover .name-real {
  animation: nameGlitchOut 0.35s forwards;
}
.hero-name-glitch-wrap:hover .name-alter {
  animation: nameGlitchIn 0.35s forwards;
}
/* Mouse leave → reverse */
.hero-name-glitch-wrap:not(:hover) .name-real {
  animation: nameGlitchInReverse 0.25s forwards;
}
.hero-name-glitch-wrap:not(:hover) .name-alter {
  animation: nameGlitchOutReverse 0.25s forwards;
}

@keyframes nameGlitchOut {
  0%   { opacity:1; clip-path:inset(0 0% 0 0); color: var(--purple-light); }
  8%   { clip-path:inset(30% 0 20% 0); transform:translateX(-4px); color:#fff; }
  16%  { clip-path:inset(10% 0 40% 0); transform:translateX(5px);  color:var(--accent); }
  24%  { clip-path:inset(50% 0 0 0);   transform:translateX(-3px); }
  32%  { clip-path:inset(0 0 60% 0);   transform:translateX(4px);  color:#ff2244; }
  40%  { clip-path:inset(0 0% 0 0);    transform:translateX(0); }
  60%  { opacity:0; }
  100% { opacity:0; }
}
@keyframes nameGlitchIn {
  0%   { opacity:0; clip-path:inset(0 100% 0 0); }
  20%  { opacity:1; clip-path:inset(20% 20% 30% 0); transform:translateX(6px) skewX(-5deg); }
  35%  { clip-path:inset(40% 0 10% 5%); transform:translateX(-4px); }
  50%  { clip-path:inset(0 5% 0 0);     transform:translateX(3px) skewX(3deg); }
  65%  { clip-path:inset(0 0 0 0);      transform:translateX(-2px); }
  80%  { clip-path:inset(0 0 0 0);      transform:translateX(1px); }
  100% { opacity:1; clip-path:inset(0 0 0 0); transform:translateX(0); }
}
@keyframes nameGlitchInReverse {
  0%   { opacity:0; }
  40%  { opacity:0; }
  60%  { opacity:1; clip-path:inset(20% 0 30% 0); transform:translateX(3px); }
  80%  { clip-path:inset(0 0 0 0); transform:translateX(-2px); }
  100% { opacity:1; clip-path:inset(0 0 0 0); transform:translateX(0); }
}
@keyframes nameGlitchOutReverse {
  0%   { opacity:1; clip-path:inset(0 0 0 0); }
  30%  { clip-path:inset(10% 0 20% 5%); transform:translateX(3px); }
  60%  { opacity:0; clip-path:inset(0 100% 0 0); }
  100% { opacity:0; }
}

/* ═══════════════════════════════════════════════
   GALIAN SEPARATORS (flat sections, no tabs)
   ═══════════════════════════════════════════════ */
.galian-separator {
  display: flex; align-items: center; gap: 14px;
  margin: 40px 0 24px;
  padding: 0 4px;
}
.galian-separator:first-child { margin-top: 8px; }
.galian-sep-icon {
  font-size: 15px; color: var(--hover, #ffd700);
  text-shadow: 0 0 10px rgba(255,215,0,0.4);
  flex-shrink: 0;
}
.galian-sep-label {
  font-family: var(--font-mono, monospace);
  font-size: 10px; letter-spacing: 4px;
  color: var(--hover, #ffd700);
  text-transform: uppercase; flex-shrink: 0;
  opacity: 0.85;
}
.galian-sep-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,215,0,0.3), transparent);
}

/* Modal dragged state */
.modal-box.modal-dragged {
  left: 0; top: 0;
  translate: none;
  transform: none !important;
  max-height: 90vh;
}
.modal-overlay.open .modal-box.modal-dragged {
  transform: none !important;
}

/* ── MINIMAP SPOTIFY PLAYER ─── */
.minimap-spotify {
  padding: 6px 8px 4px;
  border-top: 1px solid rgba(140,70,240,0.2);
  background: rgba(0,0,0,0.3);
  overflow: hidden;
}
.minimap-spotify iframe {
  display: block;
  border-radius: 4px;
  filter: brightness(0.85) saturate(0.75);
  transition: filter 0.2s;
  margin: 0 auto;
}
.minimap-spotify:hover iframe {
  filter: brightness(1) saturate(1);
}

/* ── SPOTIFY FLOATING PLAYER ─── */
.spotify-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 3000;
  width: 240px;
  background: #0a0a14;
  border: 1px solid rgba(140,70,240,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(140,70,240,0.1);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.spotify-float:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 16px rgba(140,70,240,0.15);
  border-color: rgba(140,70,240,0.5);
}
/* Top bar */
.spotify-float-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: rgba(140,70,240,0.08);
  border-bottom: 1px solid rgba(140,70,240,0.2);
  cursor: grab;
}
.spotify-float-bar:active { cursor: grabbing; }
.spotify-float-icon {
  font-size: 11px; color: #1db954; flex-shrink: 0;
}
.spotify-float-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px; letter-spacing: 1.5px;
  color: var(--gray); text-transform: uppercase;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.spotify-float-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: 9px; padding: 2px 4px;
  transition: color 0.2s; flex-shrink: 0;
}
.spotify-float-toggle:hover { color: var(--hover, #ffd700); }
/* Content */
.spotify-float-content {
  display: block;
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.3s ease;
  height: 80px;
  opacity: 1;
}
.spotify-float-content.collapsed {
  height: 0;
  opacity: 0;
}
.spotify-float-content iframe {
  display: block;
  border-radius: 0;
}

/* ── MODAL LINK BUTTON ─── */
.modal-link-btn {
  font-family: var(--font-mono, monospace);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--hover, #ffd700); text-decoration: none;
  border: 1px solid rgba(255,215,0,0.3); padding: 6px 14px;
  transition: all 0.2s; white-space: nowrap;
  background: rgba(255,215,0,0.04);
}
.modal-link-btn:hover {
  background: rgba(255,215,0,0.1);
  border-color: var(--hover, #ffd700);
  box-shadow: 0 0 12px rgba(255,215,0,0.15);
}

/* ── FAVORITES INVENTORY ─────────────────────── */
.fav-inventory {
  position: fixed;
  bottom: 130px; right: 24px;
  z-index: 2999;
  width: 180px;
  background: rgba(8,8,16,0.96);
  border: 1px solid rgba(255,215,0,0.22);
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 20px rgba(255,215,0,0.04);
  border-radius: 2px;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fav-inventory.empty { opacity: 0; pointer-events: none; transform: translateY(6px); }

.fav-inventory-header {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px;
  background: rgba(255,215,0,0.05);
  border-bottom: 1px solid rgba(255,215,0,0.12);
  cursor: grab;
  transition: background 0.2s;
}
.fav-inventory-header:hover { background: rgba(255,215,0,0.09); }
.fav-inventory-header:active { cursor: grabbing; }
.fav-inv-icon { font-size: 10px; color: #ffd700; }
.fav-inv-title {
  font-family: var(--font-mono, monospace);
  font-size: 8px; letter-spacing: 2.5px; color: #ffd700; flex: 1;
}
.fav-inv-count {
  font-family: var(--font-mono, monospace);
  font-size: 8px; color: var(--gray);
  background: rgba(255,215,0,0.08);
  padding: 1px 6px; border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.15);
}
.fav-inv-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: 15px; font-weight: 300;
  line-height: 1; padding: 0 2px; transition: color 0.2s;
  flex-shrink: 0;
}
.fav-inv-toggle:hover { color: #ffd700; }

/* Body — collapses smoothly */
#fav-inv-body {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  max-height: 300px; opacity: 1;
}
#fav-inv-body.fav-inv-collapsed { max-height: 0; opacity: 0; }

/* Scroll wrapper — grid stays overflow:visible so hover menus aren't clipped */
.fav-inv-grid-scroll {
  max-height: 230px; overflow-y: auto; overflow-x: visible;
}
.fav-inv-grid-scroll::-webkit-scrollbar { width: 2px; }
.fav-inv-grid-scroll::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.2); }

/* Grid */
.fav-inv-grid {
  display: flex; flex-wrap: wrap; gap: 18px 6px;
  padding: 12px 10px 14px;
  overflow: visible;
}

.fav-inv-empty {
  font-family: var(--font-mono, monospace);
  font-size: 8px; color: var(--gray); opacity: 0.45;
  letter-spacing: 1.5px; text-align: center;
  padding: 14px 10px; width: 100%;
}

.fav-thumb {
  width: 48px; height: 48px;
  position: relative; cursor: pointer; flex-shrink: 0;
  background: rgba(140,70,240,0.12);
  border: 1px solid rgba(140,70,240,0.2);
  overflow: hidden; border-radius: 1px;
  transition: transform 0.15s, border-color 0.15s;
}
.fav-thumb:hover { transform: scale(1.06); border-color: #ffd700; z-index: 1; }
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(140,70,240,0.35);
}
/* Remove × on hover */
.fav-thumb-remove {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #ff4444;
  opacity: 0; transition: opacity 0.15s;
  pointer-events: none;
}
.fav-thumb:hover .fav-thumb-remove { opacity: 1; pointer-events: auto; }

/* Fav button inside modal */
.modal-fav-btn {
  font-size: 17px; background: none; border: none;
  cursor: pointer; color: var(--gray);
  padding: 4px 8px; transition: all 0.2s; line-height: 1;
}
.modal-fav-btn:hover { color: #ffd700; transform: scale(1.2); }
.modal-fav-btn.active { color: #ffd700; }
@keyframes favPop { 0%{transform:scale(1)} 50%{transform:scale(1.6)} 100%{transform:scale(1)} }
.modal-fav-btn.pop { animation: favPop 0.28s ease; }

/* ── FIRST-SAVE TUTORIAL POPUP ───────────────── */
.fav-tutorial-popup {
  position: fixed;
  bottom: 400px; right: 24px;
  z-index: 4000;
  width: 240px;
  background: #0a0a14;
  border: 1px solid rgba(255,215,0,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.8), 0 0 24px rgba(255,215,0,0.1);
  padding: 16px 18px;
  border-radius: 2px;
  animation: tutSlide 0.35s ease;
  pointer-events: none;
}
@keyframes tutSlide { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.fav-tutorial-popup.hide { animation: tutHide 0.3s ease forwards; pointer-events: none; }
@keyframes tutHide { to{opacity:0;transform:translateY(8px)} }
.fav-tut-title {
  font-family: var(--font-mono, monospace);
  font-size: 9px; letter-spacing: 2px; color: #ffd700;
  margin-bottom: 8px;
}
.fav-tut-body {
  font-family: var(--font-mono, monospace);
  font-size: 10px; color: var(--gray); line-height: 1.7;
}
.fav-tut-arrow {
  position: absolute; bottom: -8px; right: 30px;
  width: 14px; height: 8px; overflow: hidden;
}
.fav-tut-arrow::before {
  content: ''; position: absolute;
  width: 10px; height: 10px;
  background: #0a0a14; border: 1px solid rgba(255,215,0,0.4);
  transform: rotate(45deg); top: -6px; left: 2px;
}

/* =============================================
   HAMBURGER — desktop caché, mobile visible
   ============================================= */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none; border: none;
  padding: 4px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--purple-light);
  transition: all 0.25s; border-radius: 1px;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: rgba(5,5,8,0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  z-index: 998;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.nav-mobile-drawer.open { max-height: 300px; }
.nav-mobile-drawer a {
  display: block; padding: 14px 24px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--gray); text-decoration: none;
  letter-spacing: 3px; text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.nav-mobile-drawer a:hover,
.nav-mobile-drawer a.active-page {
  color: var(--purple-light);
  border-left-color: var(--purple-light);
  background: rgba(140,70,240,0.06);
}

/* =============================================
   MOBILE RESPONSIVE — max-width: 768px
   ============================================= */
@media (max-width: 768px) {

  /* Cursor off on touch */
  .cursor, .cursor-ring { display: none !important; }
  body { cursor: auto; }

  /* Nav */
  nav { padding: 0 16px; height: 56px; }
  .nav-links { display: none !important; }
  .nav-status { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-mobile-drawer { display: block; }

  /* Hide desktop-only floating widgets */
  #minimap         { display: none !important; }
  .spotify-float   { display: none !important; }
  .fav-inventory   { display: none !important; }

  /* Hero */
  #hero { padding: 76px 20px 52px; min-height: auto; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-left { text-align: center; }
  .hero-name { font-size: clamp(42px, 13vw, 68px); }
  .hero-alias { letter-spacing: 4px; font-size: 12px; }
  .hero-desc { font-size: 15px; margin: 0 auto 28px; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 10px; }
  .hero-cta .btn { width: 100%; max-width: 260px; text-align: center; justify-content: center; }
  .hero-portrait { max-width: 160px; margin: 0 auto; }
  .hero-system-text { font-size: 9px; letter-spacing: 2px; }

  /* Sections */
  section { padding: 56px 20px; }
  .section-title { font-size: clamp(26px, 8vw, 44px); }

  /* Featured */
  .featured-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 200px; }

  /* Skills */
  .skills-layout { grid-template-columns: 1fr; gap: 36px; }
  .software-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  /* Modal — sheet from bottom */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100% !important; width: 100% !important;
    max-height: 90vh;
    border-radius: 10px 10px 0 0;
    transform: translateY(100%) scale(1) !important;
  }
  .modal-overlay.open .modal-box { transform: translateY(0) scale(1) !important; }
  .modal-box.modal-dragged { position: relative !important; transform: none !important; left: auto !important; top: auto !important; }
  .modal-topbar { cursor: default; padding: 12px 16px; }
  .modal-topbar-title { font-size: 9px; }
  .modal-img { aspect-ratio: 16/9; }
  .modal-body { padding: 16px; }
  .modal-title { font-size: 18px; }
  .modal-desc { font-size: 14px; }
  .modal-meta-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .modal-close-btn { font-size: 10px; padding: 5px 10px; }

  /* Footer */
  footer { flex-direction: column; gap: 14px; text-align: center; padding: 28px 20px; }
  .footer-links { gap: 14px; flex-wrap: wrap; justify-content: center; }
}

/* ── FEATURED REFRESH BUTTON ─────────────────── */
.featured-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  color: var(--gray);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}
.featured-refresh-btn:hover {
  border-color: var(--hover, #ffd700) !important;
  color: var(--hover, #ffd700) !important;
  box-shadow: 0 0 10px rgba(255,215,0,0.4) !important;
}
.featured-refresh-icon {
  font-size: 15px;
  display: inline-block;
  line-height: 1;
}
