/* ═══════════════════════════════════════════════════
   cybercyriac.com — styles
   80s hacker terminal meets 2026 portfolio
   ═══════════════════════════════════════════════════ */

:root {
  /* --- Palette --- */
  --bg-deep:       #050505;
  --bg-dark:       #0a0a0a;
  --bg-panel:      #0d0d0d;
  --bg-surface:    #111111;
  --bg-elevated:   #1a1a1a;

  --orange:        #ff6a00;
  --orange-bright: #ff8c2a;
  --orange-dim:    #b34700;
  --orange-glow:   rgba(255, 106, 0, 0.25);
  --orange-glow-s: rgba(255, 106, 0, 0.08);

  --text-primary:  #d4d4d4;
  --text-dim:      #666666;
  --text-muted:    #3a3a3a;

  --accent-blue:   #4a9eff;
  --accent-red:    #ff4a4a;
  --accent-green:  #4aff7a;
  --accent-cyan:   #4af5ff;
  --accent-yellow: #ffd94a;

  /* --- Typography --- */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-display: 'Share Tech Mono', 'JetBrains Mono', monospace;

  /* --- Spacing --- */
  --section-pad: clamp(3rem, 8vh, 6rem) clamp(1rem, 5vw, 4rem);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════ */

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

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

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

::selection {
  background: var(--orange);
  color: var(--bg-deep);
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: var(--orange-bright);
  text-shadow: 0 0 8px var(--orange-glow);
}

/* ═══════════════════════════════════════════════════
   CRT OVERLAY EFFECTS
   ═══════════════════════════════════════════════════ */

.crt-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.02) 50%
  );
  background-size: 100% 4px;
  animation: scanline-scroll 8s linear infinite;
}

.vignette {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

@keyframes scanline-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* ═══════════════════════════════════════════════════
   BOOT SCREEN
   ═══════════════════════════════════════════════════ */

.boot-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-deep);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.boot-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.boot-text {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  color: var(--orange);
  white-space: pre;
  line-height: 1.5;
}

.boot-text pre {
  display: inline;
}

.boot-cursor {
  animation: blink-cursor 0.6s step-end infinite;
}

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

/* ═══════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════ */

.main-content {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.6s ease;
}

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

.section {
  padding: var(--section-pad);
  max-width: 1260px;
  margin: 0 auto;
  position: relative;
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */

.terminal-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-elevated);
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text-dim);
  white-space: nowrap;
}

.nav-prompt { color: var(--orange); font-weight: 500; }
.nav-separator { color: var(--text-muted); }
.nav-path { color: var(--accent-cyan); }
.nav-dollar { color: var(--text-dim); margin: 0 0.4rem; }
.nav-cmd { color: var(--text-muted); }

.blinking-cursor {
  animation: blink-cursor 1s step-end infinite;
}

.nav-links {
  display: flex;
  gap: 0.2rem;
}

.nav-link {
  color: var(--text-dim);
  padding: 0.3rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--orange);
  border-color: var(--orange-dim);
  background: var(--orange-glow-s);
  text-shadow: 0 0 10px var(--orange-glow);
}

.nav-link::before {
  content: '> ';
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-link:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */

.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 4rem;
}

.ascii-art-container {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-dim) transparent;
}

.ascii-art-container::-webkit-scrollbar {
  height: 4px;
}

.ascii-art-container::-webkit-scrollbar-track {
  background: transparent;
}

.ascii-art-container::-webkit-scrollbar-thumb {
  background: var(--orange-dim);
  border-radius: 2px;
}

.ascii-hero {
  display: inline-block;
  text-align: left;
  font-family: var(--font-mono);
  font-size: clamp(0.22rem, 0.85vw, 0.9rem);
  line-height: 1.2;
  color: var(--orange);
  text-shadow:
    0 0 10px var(--orange-glow),
    0 0 30px rgba(255, 106, 0, 0.15),
    0 0 60px rgba(255, 106, 0, 0.05);
  animation: ascii-flicker 4s ease-in-out infinite;
  white-space: pre;
  letter-spacing: 0.5px;
}

@keyframes ascii-flicker {
  0%, 100% { opacity: 1; }
  92%      { opacity: 1; }
  93%      { opacity: 0.8; }
  94%      { opacity: 1; }
  96%      { opacity: 0.9; }
  97%      { opacity: 1; }
}

.hero-subtitle {
  margin-bottom: 2rem;
}

.hero-subtitle .typewriter {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  color: var(--text-dim);
  letter-spacing: 2px;
  min-height: 1.6em;
}

.hero-tagline {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: var(--text-dim);
  line-height: 1.8;
  opacity: 0;
  animation: fade-in-up 1s ease forwards 2.5s;
}

.prompt-symbol {
  color: var(--orange);
  font-weight: 700;
  margin-right: 0.3rem;
}

.tagline-text {
  color: var(--text-primary);
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in-up 1s ease forwards 3.5s, float-down 2s ease-in-out infinite 4.5s;
}

.scroll-arrow {
  color: var(--orange-dim);
  animation: pulse-arrow 1.5s ease-in-out infinite;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-arrow {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════ */

.section-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-elevated);
}

.section-cmd {
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--text-dim);
}

.section-cmd .typed-cmd {
  color: var(--orange);
}

/* ═══════════════════════════════════════════════════
   ABOUT SECTION — TERMINAL WINDOW
   ═══════════════════════════════════════════════════ */

.terminal-window {
  background: var(--bg-panel);
  border: 1px solid var(--bg-elevated);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(255, 106, 0, 0.1);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-elevated);
}

.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green  { background: #28c940; }

.terminal-title {
  margin-left: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.5rem;
  position: relative;
}

.about-text {
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  line-height: 1.85;
}

.line-num {
  color: var(--text-muted);
  user-select: none;
  display: inline-block;
  width: 3ch;
  text-align: right;
  margin-right: 1.5ch;
  font-size: 0.8em;
}

.highlight {
  color: var(--orange);
  font-weight: 500;
}

.accent {
  color: var(--orange-bright);
}

.blue-accent {
  color: var(--accent-blue);
}

.red-accent {
  color: var(--accent-red);
}

.comment {
  color: var(--text-muted);
  font-style: italic;
}

.terminal-status-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--bg-elevated);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════════════════ */

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.xp-entry {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.xp-entry.visible {
  opacity: 1;
  transform: translateX(0);
}

.xp-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.xp-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--orange-dim);
  background: var(--bg-deep);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.xp-dot.pulse {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange-glow);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--orange-glow); }
  50%      { box-shadow: 0 0 20px var(--orange-glow), 0 0 40px rgba(255, 106, 0, 0.1); }
}

.xp-line {
  width: 2px;
  flex-grow: 1;
  background: linear-gradient(to bottom, var(--orange-dim), var(--bg-elevated));
  min-height: 40px;
}

.xp-content {
  padding-bottom: 2.5rem;
  flex-grow: 1;
}

.xp-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.xp-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}

.xp-tag.now {
  background: var(--orange);
  color: var(--bg-deep);
}

.xp-tag.proud {
  background: var(--accent-green);
  color: var(--bg-deep);
}

.xp-tag.long {
  background: var(--accent-cyan);
  color: var(--bg-deep);
}

.xp-tag.security {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.xp-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-primary);
  font-weight: 400;
}

.xp-sector {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.xp-description p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.prompt-mini {
  color: var(--orange-dim);
  margin-right: 0.3rem;
}

.xp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tech-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--bg-elevated);
  border-radius: 2px;
  color: var(--text-dim);
  background: var(--bg-surface);
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.tech-pill:hover {
  border-color: var(--orange-dim);
  color: var(--orange);
  box-shadow: 0 0 8px var(--orange-glow-s);
}

.tech-pill.glow {
  border-color: var(--orange-dim);
  color: var(--orange);
  background: rgba(255, 106, 0, 0.05);
}

.tech-pill.blue {
  border-color: rgba(74, 158, 255, 0.3);
  color: var(--accent-blue);
}

.tech-pill.red {
  border-color: rgba(255, 74, 74, 0.3);
  color: var(--accent-red);
}

/* ═══════════════════════════════════════════════════
   SKILLS SECTION
   ═══════════════════════════════════════════════════ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.5rem;
}

.skill-block {
  background: var(--bg-panel);
  border: 1px solid var(--bg-elevated);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-block:hover {
  border-color: rgba(255, 106, 0, 0.15);
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.03);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--bg-elevated);
}

.skill-header h3 {
  font-family: var(--font-display);
  color: var(--orange);
  font-size: 1rem;
  font-weight: 400;
}

.dir-icon {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-name {
  width: 100px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: right;
  flex-shrink: 0;
}

.skill-bar {
  flex-grow: 1;
  height: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-elevated);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  border-radius: 1px;
  position: relative;
  transition: width 1.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
}

.skill-fill.fav {
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  box-shadow: 0 0 10px var(--orange-glow);
}

.skill-fill.learning {
  background: linear-gradient(90deg, var(--bg-elevated), var(--text-muted));
}

.skill-note {
  font-size: 0.6rem;
  color: var(--bg-deep);
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.skill-fill.learning .skill-note {
  color: var(--text-dim);
}

.skill-tags, .skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-preferred {
  margin-bottom: 1rem;
}

.stack-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

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

.stack-plus {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════ */

.contact-container {
  max-width: 600px;
}

.contact-ascii {
  margin-bottom: 2rem;
}

.small-ascii {
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  color: var(--orange-dim);
  line-height: 1.4;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--bg-elevated);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.submit-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--orange);
  transition: left 0.3s ease;
  z-index: 0;
}

.submit-btn:hover::before {
  left: 0;
}

.submit-btn:hover {
  color: var(--bg-deep);
  box-shadow: 0 0 20px var(--orange-glow);
}

.submit-btn span {
  position: relative;
  z-index: 1;
}

.contact-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-elevated);
}

.contact-link-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.8rem;
}

.contact-icons {
  display: flex;
  gap: 1rem;
}

.contact-link {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

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

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.footer {
  padding: 2rem clamp(1rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-ascii {
  font-size: 0.6rem;
  color: var(--bg-elevated);
  margin-bottom: 1rem;
  overflow: hidden;
}

.footer-text {
  font-size: 0.75rem;
  line-height: 2;
  color: var(--text-muted);
}

.footer-copy {
  color: var(--text-dim);
}

.footer-uptime {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════ */

.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-section {
  opacity: 1;
  transform: none;
}

/* Staggered skill blocks */
.skill-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   GLITCH EFFECT (used sparingly)
   ═══════════════════════════════════════════════════ */

@keyframes glitch {
  0% {
    text-shadow: 2px 0 var(--accent-red), -2px 0 var(--accent-cyan);
    transform: translate(0);
  }
  20% {
    text-shadow: -2px 0 var(--accent-red), 2px 0 var(--accent-cyan);
    transform: translate(-1px, 1px);
  }
  40% {
    text-shadow: 2px 0 var(--accent-red), -2px 0 var(--accent-cyan);
    transform: translate(1px, -1px);
  }
  60% {
    text-shadow: -1px 0 var(--accent-red), 1px 0 var(--accent-cyan);
    transform: translate(0);
  }
  80% {
    text-shadow: 2px 0 var(--accent-red), -2px 0 var(--accent-cyan);
    transform: translate(-1px, 0);
  }
  100% {
    text-shadow: none;
    transform: translate(0);
  }
}

.glitch-hover:hover {
  animation: glitch 0.3s ease forwards;
}

/* ═══════════════════════════════════════════════════
   NOISE GRAIN TEXTURE
   ═══════════════════════════════════════════════════ */

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9996;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .terminal-nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  .nav-left {
    font-size: 0.75rem;
  }

  .nav-links {
    gap: 0;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .ascii-hero {
    font-size: clamp(0.18rem, 1.6vw, 0.45rem);
  }

  .xp-entry {
    gap: 1rem;
  }

  .skill-name {
    width: 80px;
    font-size: 0.7rem;
  }

  .terminal-status-bar {
    flex-direction: column;
    gap: 0.3rem;
  }

  .contact-ascii {
    display: none;
  }
}

@media (max-width: 480px) {
  .ascii-hero {
    font-size: clamp(0.12rem, 1.2vw, 0.3rem);
    letter-spacing: -0.3px;
  }

  :root {
    --section-pad: 2rem 1rem;
  }

  .xp-marker {
    display: none;
  }

  .xp-entry {
    padding-left: 0.5rem;
    border-left: 2px solid var(--bg-elevated);
  }

  .xp-entry.active-role {
    border-left-color: var(--orange);
  }
}

/* ═══════════════════════════════════════════════════
   LANGUAGE TOGGLE
   ═══════════════════════════════════════════════════ */

.lang-toggle {
  background: transparent;
  border: 1px solid var(--bg-elevated);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  letter-spacing: 1px;
  margin-left: 0.6rem;
  flex-shrink: 0;
}

.lang-toggle:hover {
  border-color: var(--orange-dim);
  color: var(--orange);
  box-shadow: 0 0 8px var(--orange-glow-s);
  text-shadow: 0 0 10px var(--orange-glow);
}

.lang-toggle.es-active {
  border-color: var(--orange-dim);
  color: var(--orange);
  background: rgba(255, 106, 0, 0.04);
}

/* ═══════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════ */

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