/* ============================================
   PIERANDREA // CYBERPUNK TERMINAL PORTFOLIO
   ============================================ */

/* --- VARIABLES --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d15;
  --bg-tertiary: #12121a;
  --bg-card: #0c0c14;
  --bg-terminal: #080810;
  --green: #00ff41;
  --green-dim: #00cc33;
  --green-dark: #003b10;
  --cyan: #00d4ff;
  --cyan-dim: #0099bb;
  --magenta: #ff0080;
  --magenta-dim: #cc0066;
  --amber: #ffb800;
  --amber-dim: #cc9300;
  --red: #ff3333;
  --text-primary: #c8c8d0;
  --text-secondary: #8888a0;
  --text-dim: #4a4a60;
  --border: #1a1a2e;
  --border-glow: #1e1e3a;
  --glow-green: 0 0 10px rgba(0, 255, 65, 0.3), 0 0 40px rgba(0, 255, 65, 0.1);
  --glow-cyan: 0 0 10px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
  --glow-magenta: 0 0 10px rgba(255, 0, 128, 0.3), 0 0 40px rgba(255, 0, 128, 0.1);
  --glow-amber: 0 0 10px rgba(255, 184, 0, 0.3), 0 0 40px rgba(255, 184, 0, 0.1);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --font-display: 'Orbitron', 'JetBrains Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--green-dim) var(--bg-secondary);
}

body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--green);
  color: var(--bg-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--green-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--green-dim); }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--green); }

.hidden { opacity: 0; pointer-events: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- BOOT SCREEN --- */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#boot-screen.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-content {
  max-width: 700px;
  width: 90%;
  font-size: 0.85rem;
}
#boot-log {
  min-height: 200px;
}
#boot-log .boot-line {
  opacity: 0;
  animation: bootFadeIn 0.15s forwards;
  white-space: nowrap;
}
#boot-log .boot-line .ok { color: var(--green); }
#boot-log .boot-line .fail { color: var(--red); }
#boot-log .boot-line .warn { color: var(--amber); }
#boot-log .boot-line .info { color: var(--cyan); }
#boot-log .boot-line .label { color: var(--text-dim); }
.boot-skip {
  margin-top: 2rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-align: center;
  animation: blink 1.5s infinite;
}
@keyframes bootFadeIn {
  to { opacity: 1; }
}

/* --- BACKGROUND EFFECTS --- */
#matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
}
#scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}
#crt-flicker {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  animation: crtFlicker 0.1s infinite;
  opacity: 0;
}
@keyframes crtFlicker {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.015; background: rgba(0, 255, 65, 0.02); }
}

/* --- NAVIGATION --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: opacity 0.5s ease, transform 0.3s ease;
  padding: 0;
}
#navbar.visible {
  opacity: 1;
  pointer-events: all;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green) !important;
  letter-spacing: 2px;
  text-shadow: var(--glow-green);
}
.logo-bracket { color: var(--text-dim); }
.logo-slash { color: var(--cyan); }
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 0.3rem 0;
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  box-shadow: var(--glow-green);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green) !important;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-prefix {
  color: var(--green);
  margin-right: 2px;
}
.terminal-btn {
  background: transparent;
  border: 1px solid var(--green-dim);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 2px;
}
.terminal-btn:hover {
  background: rgba(0, 255, 65, 0.1);
  box-shadow: var(--glow-green);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open {
  display: flex;
}

/* --- TERMINAL WINDOW COMPONENT --- */
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.terminal-window:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.05);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title {
  font-size: 0.7rem;
  color: var(--text-dim);
  flex: 1;
}
.terminal-minimize {
  color: var(--text-dim);
  font-size: 0.7rem;
}
.terminal-body {
  padding: 1.5rem;
}

/* --- SECTION COMMON --- */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}
.section-header {
  margin-bottom: 3rem;
}
.section-prompt {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 1px;
}
.section-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  margin-top: 0.8rem;
  box-shadow: var(--glow-green);
}

/* --- HERO --- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
}
.hero-content {
  width: 100%;
  max-width: 800px;
}
.hero-terminal {
  border-color: var(--green-dark);
  box-shadow: 0 0 60px rgba(0, 255, 65, 0.08), inset 0 0 60px rgba(0, 255, 65, 0.02);
}
.ascii-name {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.ascii-line {
  display: block;
  animation: glitchLine 8s infinite;
}
.ascii-line:nth-child(2) { animation-delay: 0.1s; }
.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  min-height: 1.7em;
}
.prompt-symbol {
  color: var(--green);
  margin-right: 0.5rem;
}
.typed-text { color: var(--cyan); }
.cursor-blink {
  color: var(--green);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.meta-label {
  color: var(--text-secondary);
  margin-right: 0.3rem;
}
.meta-divider { color: var(--border); }
.status-online {
  color: var(--green);
  text-shadow: var(--glow-green);
  animation: blink 2s infinite;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border: 1px solid;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 1px;
  background: transparent;
}
.cta-primary {
  color: var(--green);
  border-color: var(--green-dim);
}
.cta-primary:hover {
  background: rgba(0, 255, 65, 0.1);
  box-shadow: var(--glow-green);
  color: var(--green);
}
.cta-secondary {
  color: var(--cyan);
  border-color: var(--cyan-dim);
}
.cta-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--glow-cyan);
}
.cta-bracket { color: var(--text-dim); }
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: float 2s ease-in-out infinite;
}
.scroll-text {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 0.5rem;
}
.scroll-arrow {
  color: var(--green-dim);
  font-size: 0.8rem;
  animation: scrollPulse 2s infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
.about-text {
  font-size: 0.9rem;
  line-height: 1.8;
}
.code-comment { color: var(--text-dim); font-style: italic; }
.code-keyword { color: var(--magenta); }
.highlight-green { color: var(--green); text-shadow: 0 0 8px rgba(0, 255, 65, 0.3); }
.highlight-cyan { color: var(--cyan); }
.highlight-magenta { color: var(--magenta); }
.highlight-amber { color: var(--amber); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  border-color: var(--green-dim);
  box-shadow: var(--glow-green);
}
.stat-card:hover .stat-number {
  text-shadow: var(--glow-green);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  display: block;
  transition: var(--transition);
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease;
}
.stat-card:hover .stat-bar {
  transform: scaleX(1);
}

/* --- EXPERIENCE TIMELINE --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--cyan), var(--magenta), transparent);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  transform: translateX(-5px);
  box-shadow: var(--glow-green);
  z-index: 2;
}
.timeline-marker::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green-dim);
  animation: markerPulse 2s infinite;
}
@keyframes markerPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0; }
}
.timeline-content {
  margin-left: 1rem;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.exp-role {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.5px;
}
.exp-date {
  font-size: 0.75rem;
  color: var(--amber);
}
.exp-company {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.exp-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--cyan);
  border-radius: 2px;
  letter-spacing: 0.5px;
}

/* --- INVESTMENTS --- */
.investments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.investment-card {
  position: relative;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: var(--transition);
  overflow: hidden;
}
.card-glow {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 65, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.investment-card:hover .card-glow { opacity: 1; }
.investment-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), var(--glow-green);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.card-icon {
  font-size: 1.5rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}
.card-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.card-type {
  font-size: 0.7rem;
  color: var(--text-dim);
}
.card-status {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 1px;
}
.status-active {
  color: var(--green);
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
}
.status-dev {
  color: var(--amber);
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.3);
}
.status-planned {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.card-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.card-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-key { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.stat-val { font-size: 0.8rem; font-weight: 600; }
.text-green { color: var(--green); }
.text-cyan { color: var(--cyan); }
.text-magenta { color: var(--magenta); }
.text-amber { color: var(--amber); }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* --- SKILLS --- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.skills-category {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.category-icon {
  margin-right: 0.5rem;
  color: var(--cyan);
}
.skill-item {
  margin-bottom: 1.2rem;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.skill-name {
  font-size: 0.8rem;
  color: var(--text-primary);
}
.skill-pct {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
}
.skill-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
  position: relative;
}
.skill-fill.animated {
  width: var(--target-width);
}
.skill-fill.cyan {
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), var(--cyan));
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}
.skill-fill.magenta {
  background: linear-gradient(90deg, rgba(255, 0, 128, 0.2), var(--magenta));
  box-shadow: 0 0 8px rgba(255, 0, 128, 0.3);
}
.skill-fill.amber {
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.2), var(--amber));
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.3);
}
.skills-tools {
  text-align: center;
}
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.tool-badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}
.tool-badge:hover {
  border-color: var(--green-dim);
  color: var(--green);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

/* --- BLOG --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.blog-card {
  transition: transform var(--transition);
  display: flex;
}
.blog-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-inner .terminal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-inner .blog-link {
  margin-top: auto;
}
.blog-card:hover {
  transform: translateY(-3px);
}
.blog-card .terminal-window:hover {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.08);
}
.blog-date {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.5rem;
}
.blog-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: block;
}
.blog-excerpt {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.blog-tag {
  font-size: 0.65rem;
  color: var(--magenta);
  padding: 0.15rem 0.4rem;
  background: rgba(255, 0, 128, 0.08);
  border: 1px solid rgba(255, 0, 128, 0.15);
  border-radius: 2px;
}
.blog-link {
  font-size: 0.8rem;
  color: var(--cyan) !important;
  display: inline-block;
  transition: var(--transition);
}
.blog-link:hover {
  color: var(--green) !important;
  text-shadow: var(--glow-green);
}

/* --- CONTACT --- */
.contact-content {
  max-width: 650px;
  margin: 0 auto;
}
.contact-intro {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  color: var(--text-primary) !important;
  border-radius: 4px;
  transition: var(--transition);
  border: 1px solid transparent;
}
.contact-link:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: var(--border-glow);
  color: var(--green) !important;
}
.contact-icon {
  font-size: 1.1rem;
  color: var(--cyan);
  width: 24px;
  text-align: center;
}
.contact-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  width: 70px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-value {
  font-size: 0.85rem;
  color: var(--cyan);
}
.contact-link:hover .contact-value { color: var(--green); }
.contact-footer {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --- FOOTER --- */
#footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease;
}
#footer.visible { opacity: 1; pointer-events: all; }
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.footer-logo {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 0.8rem;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: blink 2s infinite;
}
.footer-divider { color: var(--border); }

/* --- INTERACTIVE TERMINAL --- */
.terminal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.terminal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.interactive-terminal {
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  background: var(--bg-terminal);
  border: 1px solid var(--green-dim);
  border-radius: 6px;
  box-shadow: 0 0 60px rgba(0, 255, 65, 0.1), var(--glow-green);
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.terminal-overlay.open .interactive-terminal {
  transform: scale(1);
}
.interactive-terminal > .terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
  max-height: calc(80vh - 100px);
}
.terminal-welcome {
  color: var(--text-dim);
}
.terminal-welcome p {
  margin-bottom: 0.3rem;
}
.terminal-ascii {
  font-size: 0.5rem;
  line-height: 1.2;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 1rem;
}
.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.input-prompt {
  font-size: 0.8rem;
  color: var(--green);
  white-space: nowrap;
}
.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  caret-color: var(--green);
}
.cmd-output {
  margin-bottom: 1rem;
}
.cmd-line {
  color: var(--green);
  margin-bottom: 0.3rem;
}
.cmd-result {
  color: var(--text-secondary);
  padding-left: 0.5rem;
}
.cmd-result .highlight-green { color: var(--green); }
.cmd-result .highlight-cyan { color: var(--cyan); }
.cmd-result .highlight-magenta { color: var(--magenta); }
.cmd-result .highlight-amber { color: var(--amber); }
.cmd-error { color: var(--red); }

#terminal-close { cursor: pointer; }
#terminal-close:hover {
  box-shadow: 0 0 6px rgba(255, 95, 87, 0.5);
}

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- GLITCH EFFECT --- */
.glitch-hover {
  position: relative;
  display: inline-block;
}
.glitch-hover:hover {
  animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}
@keyframes glitchLine {
  0%, 95%, 100% { transform: translateX(0); opacity: 1; }
  96% { transform: translateX(-3px); opacity: 0.8; }
  97% { transform: translateX(3px); opacity: 0.9; }
  98% { transform: translateX(-1px); opacity: 0.85; }
  99% { transform: translateX(1px); opacity: 0.95; }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .terminal-btn { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .investments-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: 1fr; }

  .ascii-name { font-size: 0.55rem; }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.2rem; }
}

@media (max-width: 600px) {
  .hero-meta { flex-direction: column; gap: 0.3rem; }
  .meta-divider { display: none; }
  .hero-cta { flex-direction: column; }
  .cta-btn { width: 100%; }
  .exp-header { flex-direction: column; align-items: flex-start; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .card-stats { flex-direction: column; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-left, .footer-right { justify-content: center; }
  .terminal-body { padding: 1rem; }
  .interactive-terminal { max-height: 90vh; }

  .ascii-name {
    font-size: 0.42rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 400px) {
  .ascii-name { font-size: 0.35rem; }
  .stat-number { font-size: 1.5rem; }
}
