/* ═══════════════════════════════════════════════════════════
   danfilburt.dev — Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg: #0d0f14;
  --bg2: #12151c;
  --bg3: #181c26;
  --panel: #1e2230;
  --border: #2a2f3e;
  --dim: #3a4055;
  --muted: #636d8a;
  --text: #c9d1e8;
  --light: #e8ecf8;
  --cyan: #7ee8f8;
  --green: #7df5a5;
  --yellow: #f8e07e;
  --orange: #f8a94e;
  --pink: #f87eb8;
  --purple: #c07ef8;
  --blue: #7eaaf8;
  --red: #f87e7e;
  --accent: #7ee8f8;
  --glow: 0 0 18px rgba(126, 232, 248, 0.28);
  --glow-sm: 0 0 8px rgba(126, 232, 248, 0.18);
  --r: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
  --bg: #f8fbfd;
  --bg2: #ffffff;
  --bg3: #f1f4f8;
  --panel: rgba(255, 255, 255, 0.85);
  --border: rgba(45, 55, 72, 0.12);
  /* More defined boundaries */
  --dim: #4a5568;
  /* Darkened secondary text */
  --muted: #718096;
  --text: #1a202c;
  /* More contrastive dark */
  --light: #2d3748;
  --cyan: #0056b3;
  /* Stronger blue for better visibility */
  --green: #228b22;
  --yellow: #f59e0b;
  --orange: #c05621;
  --pink: #d53f8c;
  --purple: #6a0dad;
  --blue: #2b6cb0;
  --red: #e53e3e;
  --accent: #3182ce;
  --glow: 0 0 30px rgba(0, 86, 179, 0.05);
  --glow-sm: 0 0 10px rgba(0, 86, 179, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: rgba(126, 232, 248, 0.22);
  color: var(--light);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--dim);
  border-radius: 3px;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .5;
}

/* ── SCANLINE ── */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(126, 232, 248, .012), transparent);
  pointer-events: none;
  z-index: 9998;
  animation: scanline 8s linear infinite;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 54px;
  background: rgba(13, 15, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: var(--muted);
}

.nav-logo span.file {
  color: var(--cyan);
  font-weight: 600;
}

.nav-logo .dot {
  color: var(--green);
  animation: blink 1.2s step-end infinite;
}

.nav-tabs {
  display: flex;
  gap: 2px;
}

.nav-tab {
  padding: 6px 16px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  font-family: 'Fira Code', monospace;
}

.nav-tab:hover,
.nav-tab.active {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}

.nav-tab.active {
  color: var(--cyan);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
  margin-left: 10px;
}

.theme-toggle:hover {
  background: var(--panel);
  color: var(--cyan);
  border-color: var(--cyan);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

body.light-mode .theme-toggle .icon-sun {
  display: block;
}

body.light-mode .theme-toggle .icon-moon {
  display: none;
}

body.light-mode .theme-toggle {
  color: var(--yellow);
}

body.light-mode nav {
  background: rgba(245, 247, 250, 0.65);
}

body.light-mode .hero-glow {
  opacity: 0.1;
}

body.light-mode .float-snippet {
  opacity: 0.6;
}

body.light-mode .terminal-window,
body.light-mode .code-card {
  box-shadow: 0 10px 40px rgba(45, 55, 72, 0.08);
  border-color: rgba(45, 55, 72, 0.05);
}

body.light-mode .port-card,
body.light-mode .skill-card,
body.light-mode .service-card {
  box-shadow: 0 4px 12px rgba(45, 55, 72, 0.03);
}

body.light-mode .port-card:hover,
body.light-mode .skill-card:hover,
body.light-mode .service-card:hover {
  box-shadow: 0 12px 30px rgba(45, 55, 72, 0.08);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 232, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 232, 248, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(126, 232, 248, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Terminal */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6), var(--glow);
  overflow: hidden;
  animation: slideUp .8s cubic-bezier(.16, 1, .3, 1) both;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.t-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.t-btn.r {
  background: #ff5f57;
}

.t-btn.y {
  background: #febc2e;
}

.t-btn.g {
  background: #28c840;
}

.t-file {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
}

.terminal-body {
  padding: 24px 28px;
  font-size: 13px;
  line-height: 1.9;
}

.t-line {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.t-prompt {
  color: var(--green);
  margin-right: 6px;
  user-select: none;
}

.t-cmd {
  color: var(--cyan);
}

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

.t-out {
  color: var(--text);
  padding-left: 18px;
  display: block;
}

.t-out .kw {
  color: var(--purple);
}

.t-out .str {
  color: var(--yellow);
}

.t-out .fn {
  color: var(--blue);
}

.t-out .num {
  color: var(--orange);
}

.t-out .var {
  color: var(--cyan);
}

.t-out .op {
  color: var(--muted);
}

.t-blank {
  height: 10px;
}

/* Hero text */
.hero-text {
  animation: slideUp .8s .15s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  margin-bottom: 20px;
  background: rgba(126, 232, 248, 0.08);
  border: 1px solid rgba(126, 232, 248, 0.2);
  border-radius: 20px;
  font-size: 11px;
  color: var(--cyan);
  font-family: 'Fira Code', monospace;
}

.hero-badge::before {
  content: '●';
  font-size: 8px;
  color: var(--green);
  animation: blink 1.5s ease infinite;
}

.hero-name {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--light);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

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

.hero-role {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  font-family: 'Fira Code', monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-role::before {
  content: '//';
  color: var(--dim);
}

.hero-tagline {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  border-left: 2px solid var(--cyan);
  padding-left: 16px;
}

.hero-tagline strong {
  color: var(--light);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink .8s step-end infinite;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r);
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
  border: 1px solid;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
  font-weight: 600;
}

.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── SECTION COMMON ── */
section {
  padding: 100px 40px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: .05em;
}

.section-label::before {
  content: '//';
  color: var(--dim);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--light);
  letter-spacing: -1px;
  line-height: 1.2;
}

.section-title .hl {
  color: var(--cyan);
}

/* ── ABOUT ── */
#about {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-text p strong {
  color: var(--text);
}

/* About highlights */
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 10px;
}

.about-highlight .hl-val {
  color: var(--cyan);
  font-weight: 600;
}

/* Code card */
.code-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.code-card-title {
  font-size: 11px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
}

.code-card-lang {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(126, 232, 248, 0.1);
  color: var(--cyan);
  font-family: 'Fira Code', monospace;
}

.code-body {
  padding: 20px 22px;
  font-size: 12.5px;
  line-height: 2;
}

.ln {
  display: flex;
  gap: 20px;
}

.ln-num {
  color: var(--dim);
  user-select: none;
  min-width: 18px;
  text-align: right;
}

.ln-code {
  flex: 1;
}

.k {
  color: var(--purple);
}

.s {
  color: var(--yellow);
}

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

.n {
  color: var(--orange);
}

.p {
  color: var(--muted);
}

.c {
  color: var(--green);
}

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

.prop {
  color: var(--cyan);
}

.val {
  color: var(--text);
}

/* ── SKILLS ── */
#skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: all .25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform .3s;
}

.skill-card:hover {
  border-color: var(--dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.skill-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 8px;
  font-family: 'Fira Code', monospace;
}

.skill-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 14px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* Skill progress bar */
.skill-bar-wrap {
  margin-top: 14px;
  margin-bottom: 4px;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--dim);
  margin-bottom: 5px;
}

.skill-bar-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  /* GSAP handles animation */
}

.skill-bar-fill.cyan {
  background: linear-gradient(90deg, var(--cyan), #a8f0fe);
}

.skill-bar-fill.purple {
  background: linear-gradient(90deg, var(--purple), #d8aaff);
}

.skill-bar-fill.green {
  background: linear-gradient(90deg, var(--green), #b0ffd0);
}

.skill-bar-fill.orange {
  background: linear-gradient(90deg, var(--orange), #ffc87e);
}

.skill-bar-fill.pink {
  background: linear-gradient(90deg, var(--pink), #ffa8d0);
}

.skill-bar-fill.yellow {
  background: linear-gradient(90deg, var(--yellow), #fff0a0);
}

/* Tags */
.tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Fira Code', monospace;
  border: 1px solid;
  letter-spacing: .03em;
}

.tag-cyan {
  color: var(--cyan);
  border-color: rgba(126, 232, 248, .2);
  background: rgba(126, 232, 248, .06);
}

.tag-green {
  color: var(--green);
  border-color: rgba(125, 245, 165, .2);
  background: rgba(125, 245, 165, .06);
}

.tag-orange {
  color: var(--orange);
  border-color: rgba(248, 169, 78, .2);
  background: rgba(248, 169, 78, .06);
}

.tag-purple {
  color: var(--purple);
  border-color: rgba(192, 126, 248, .2);
  background: rgba(192, 126, 248, .06);
}

.tag-pink {
  color: var(--pink);
  border-color: rgba(248, 126, 184, .2);
  background: rgba(248, 126, 184, .06);
}

.tag-yellow {
  color: var(--yellow);
  border-color: rgba(248, 224, 126, .2);
  background: rgba(248, 224, 126, .06);
}

.tag-blue {
  color: var(--blue);
  border-color: rgba(126, 170, 248, .2);
  background: rgba(126, 170, 248, .06);
}

.tag-proevento {
  background: linear-gradient(90deg, #0cebeb, #20e3b2, #29ffc6);
  color: #052c3c;
  border-color: rgba(0, 0, 0, 0.1);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-proevento::before {
  content: '✦';
  font-size: 10px;
}

/* ── SERVICES ── */
#services {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all .25s;
}

.service-card:hover {
  border-color: rgba(126, 232, 248, .35);
  box-shadow: 0 0 30px rgba(126, 232, 248, .06);
}

.service-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  user-select: none;
  transition: color .25s;
}

.service-card:hover .service-num {
  color: var(--dim);
}

.service-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-family: 'Fira Code', monospace;
}

.service-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  font-family: 'Space Grotesk', sans-serif;
}

.service-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-item {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-item::before {
  content: '→';
  color: var(--cyan);
  flex-shrink: 0;
}

/* ── PORTFOLIO ── */
#portfolio {
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.port-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
}

.port-card:hover {
  border-color: rgba(126, 232, 248, .4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .6), 0 0 0 1px rgba(126, 232, 248, .1);
}

/* The Window (O Buraco) - Premium Mockup Style */
.port-preview {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--bg3);
  /* Darker "inside" background */
  border-bottom: 1px solid var(--border);
}

/* The Page (Simulando Rolagem + Zoom) */
.port-screenshot {
  position: absolute;
  top: 12px;
  /* Slight gap from top */
  left: 12px;
  width: calc(100% - 24px);
  height: auto;
  display: block;
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  filter: brightness(0.85);
  transform: scale(1) translateY(0);
  transition: filter 0.5s ease;
  pointer-events: none;
  /* GSAP will handle the transform */
}

/* Hover effects (GSAP targets these) */
.port-card:hover .port-screenshot {
  filter: brightness(1.1);
}

/* Refined Overlay */
.port-preview-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 10;
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.port-card:hover .port-preview-overlay {
  opacity: 1;
}

.port-open-hint {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--light);
  background: rgba(126, 232, 248, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--cyan);
  box-shadow: 0 4px 15px rgba(126, 232, 248, 0.2);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.port-card:hover .port-open-hint {
  transform: translateY(0);
}

.port-body {
  padding: 18px 20px;
}

.port-category {
  font-size: 10px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.port-category::before {
  content: '//';
  color: var(--dim);
}

.port-title {
  font-size: 14px;
  color: var(--light);
  font-weight: 600;
  margin-bottom: 6px;
}

.port-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── CONTACT ── */
#contact {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text .hero-tagline {
  margin-top: 20px;
}

.contact-links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fira Code', monospace;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

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

.contact-link-row span.cli {
  color: var(--cyan);
}

.contact-link-row span.val {
  color: var(--text);
}

.contact-link-row:hover span.val {
  color: var(--cyan);
}

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

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

.form-label {
  font-size: 11px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
}

.form-label span {
  color: var(--cyan);
}

.form-input,
.form-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--glow-sm);
}

.form-textarea {
  min-height: 100px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--dim);
}

/* ── FOOTER ── */
footer {
  padding: 30px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-family: 'Fira Code', monospace;
}

footer .footer-right {
  display: flex;
  gap: 24px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

footer a:hover {
  color: var(--cyan);
}

/* ── FLOATING CODE SNIPPETS ── */
.float-snippet {
  position: absolute;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  animation: floatCode 20s linear infinite;
  opacity: 0;
}

/* ── STATUS BAR ── */
.statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 24px;
  background: var(--cyan);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--bg);
  font-weight: 500;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb-sep {
  opacity: .4;
}

.statusbar .right {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

/* ── TYPING ANIMATION ── */
.typing-container {
  display: inline-block;
}

.typed-text {
  border-right: 2px solid var(--cyan);
  padding-right: 2px;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── ANIMATIONS ── */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatCode {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: .3;
  }

  100% {
    opacity: 0;
    transform: translateY(-60px) translateX(20px);
  }
}

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

  100% {
    transform: translateY(100vh);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {

  .hero-inner,
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

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

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 0 20px;
  }

  .nav-tabs {
    display: none;
  }

  section {
    padding: 60px 20px;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }

  .statusbar .right {
    display: none;
  }
}