/* ========================================
   9ES — Enno Spannagel | Homepage
   ======================================== */

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

:root {
  --bg: #07070a;
  --bg-elevated: #0e0e12;
  --bg-card: #111116;
  --bg-card-hover: #17171d;
  --text: #e8e6e1;
  --text-secondary: #a09e97;
  --text-dim: #6a6862;
  --accent: #c9962c;
  --accent-light: #e8b84a;
  --accent-dark: #a07820;
  --accent-glow: rgba(201, 150, 44, 0.12);
  --accent-glow-strong: rgba(201, 150, 44, 0.3);
  --border: rgba(255,255,255,0.06);
  --border-accent: rgba(201, 150, 44, 0.2);
  --font-display: 'Archivo', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-width: 1200px;
  --section-pad: 7rem 2rem;
}

html { scroll-behavior: smooth; }
html.menu-open {
  overflow: hidden;
}

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

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

a { color: inherit; }
img { max-width: 100%; display: block; }

/* Focus-Indikatoren für Keyboard-Navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 150, 44, 0.25);
}

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

/* ====== NAV ====== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  padding: 0.7rem 2.5rem;
  background: rgba(7,7,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex-shrink: 0;
  transition: stroke 0.3s;
}

/* Each icon gets a unique idle animation — like background processes */
.nav-links li:nth-child(1) .nav-icon { animation: iconPulse 4s ease-in-out infinite; }
.nav-links li:nth-child(2) .nav-icon { animation: iconFloat 5s ease-in-out infinite 0.5s; }
.nav-links li:nth-child(3) .nav-icon { animation: iconBlink 3s steps(2, end) infinite 1s; }
.nav-links li:nth-child(4) .nav-icon { animation: iconSpin 8s linear infinite; }
.nav-links li:nth-child(5) .nav-icon { animation: iconFloat 4.5s ease-in-out infinite 1.5s; }
.nav-links li:nth-child(6) .nav-icon { animation: iconLock 6s ease-in-out infinite 0.8s; }

@keyframes iconPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-2px); opacity: 1; }
}

@keyframes iconBlink {
  0%, 49% { opacity: 0.5; }
  50%, 100% { opacity: 1; }
}

@keyframes iconSpin {
  from { transform: rotate(0deg); opacity: 0.5; }
  50% { opacity: 0.8; }
  to { transform: rotate(360deg); opacity: 0.5; }
}

@keyframes iconLock {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  15% { transform: translateY(-1px); }
  20% { transform: translateY(0); opacity: 1; }
  25% { transform: translateY(-1px); }
  30%, 100% { transform: translateY(0); opacity: 0.5; }
}

.nav-links a:hover .nav-icon {
  stroke: var(--accent);
  animation: none;
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 110;
}

.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: all 0.3s;
  display: block;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ====== HERO ====== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 7rem;
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-glow {
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-logo {
  width: 160px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 50px var(--accent-glow-strong));
  will-change: transform;
  position: relative;
  z-index: 2;
  animation: logoGlitch 8s ease-in-out infinite;
}

@keyframes logoGlitch {
  0%, 94%, 100% { filter: drop-shadow(0 0 50px var(--accent-glow-strong)); transform: translate(0); }
  95% { filter: drop-shadow(3px 0 rgba(201,150,44,0.8)) drop-shadow(-3px 0 rgba(0,200,255,0.4)) brightness(1.3); transform: translate(2px, -1px); }
  96% { filter: drop-shadow(-2px 0 rgba(201,150,44,0.6)) drop-shadow(2px 0 rgba(255,0,100,0.3)) brightness(1.15); transform: translate(-3px, 1px); }
  97% { filter: drop-shadow(1px 0 rgba(201,150,44,0.7)) drop-shadow(-1px 0 rgba(0,255,200,0.3)) brightness(1.2); transform: translate(1px, -2px); }
  98% { filter: drop-shadow(0 0 50px var(--accent-glow-strong)); transform: translate(0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.hero h1 .accent { color: var(--accent); }
.hero h1 .light {
  font-weight: 400;
  font-size: 0.45em;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.5rem;
}

/* ====== TERMINAL ====== */
.hero-terminal {
  width: 100%;
  max-width: 620px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 2.5rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(201,150,44,0.05);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1rem 1.2rem;
  height: 180px;
  overflow-y: auto;
  font-family: var(--font-mono);
}

.terminal-body::-webkit-scrollbar {
  width: 5px;
}

.terminal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 3px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Firefox scrollbar */
.terminal-body {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dark) rgba(255, 255, 255, 0.03);
}

.terminal-about {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.3rem 0;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.terminal-about.visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-about img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-dark);
  object-fit: cover;
  flex-shrink: 0;
}

.terminal-about span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.terminal-jump {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.2rem 0.6rem;
  margin: 0.3rem 0 0.15rem 1.4rem;
  background: rgba(201, 150, 44, 0.1);
  color: var(--accent);
  border: 1px solid rgba(201, 150, 44, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-3px);
  animation: jumpIn 0.3s ease forwards;
}

.terminal-jump:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

@keyframes jumpIn {
  to { opacity: 1; transform: translateY(0); }
}

.terminal-line {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.terminal-line .prompt {
  color: var(--accent);
  user-select: none;
}

.terminal-line .prompt-sep {
  color: var(--text-dim);
  user-select: none;
}

.terminal-line .prompt-path {
  color: #5f87d7;
  user-select: none;
}

.terminal-line .prompt-dollar {
  color: var(--text-dim);
  margin-right: 0.4rem;
  user-select: none;
}

.terminal-line .cmd {
  color: #fff;
}

.terminal-line.accent-line {
  color: var(--accent-light);
  font-weight: 500;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
}

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

/* Hero Command Buttons */
.hero-commands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 620px;
  width: 100%;
  position: relative;
  z-index: 2;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-commands-hidden {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
}

.hero-commands-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-cmd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(201, 150, 44, 0.06);
  color: var(--accent);
  border: 1px solid rgba(201, 150, 44, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}

.hero-cmd::before {
  content: '$ ';
  opacity: 0.5;
}

.hero-cmd:hover {
  background: rgba(201, 150, 44, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(201, 150, 44, 0.15);
  color: var(--accent-light);
}

.hero-cmd:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.hero-cmd.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.hero-cmd-clear {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.hero-cmd-clear:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.hero-scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}

.hero-scroll-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  animation: chevronBounce 2s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ====== SECTIONS ====== */
.section {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  opacity: 0.6;
  flex-shrink: 0;
}

.section-label::before {
  content: '//';
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-mono);
  font-weight: 400;
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 3.5rem;
  font-size: 1rem;
}

/* Divider */
.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

/* ====== SERVICES ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: 2.4rem 2rem 3rem;
  position: relative;
  transition: all 0.4s ease;
  cursor: default;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

@keyframes scanLine {
  0% { top: -2px; }
  100% { top: 100%; }
}

/* Terminal command on hover */
.service-card::after {
  content: '> ' attr(data-cmd) ' _';
  position: absolute;
  bottom: 0.8rem;
  left: 2rem;
  right: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.4s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-card:hover {
  background: var(--bg-card-hover);
}

.service-card:hover::before {
  opacity: 0.6;
  animation: scanLine 1.5s ease-in-out infinite;
}
.service-card:hover::after { opacity: 0.5; }

.service-card:hover .service-icon svg {
  stroke: var(--accent-light);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 1.4rem;
  opacity: 0.4;
}

.service-icon {
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.service-icon svg {
  width: 28px; height: 28px;
  stroke: var(--text-dim);
  stroke-width: 1.5;
  fill: none;
  transition: all 0.4s ease;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ====== ABOUT ====== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image-float {
  float: left;
  width: 195px;
  height: auto;
  margin: 0 24px 0px 0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.about-text::after {
  content: "";
  display: block;
  clear: both;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.3rem;
  font-size: 1rem;
  display: block;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.about-text p:first-of-type {
  color: var(--text);
  font-size: 1.08rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

/* Terminal-style stat boxes */
.terminal-stat {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(201, 150, 44, 0.12);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.terminal-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.4;
}

.terminal-stat:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px rgba(201, 150, 44, 0.08);
}

.terminal-stat .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.terminal-stat .stat-label::before {
  content: '// ';
  color: var(--accent-dark);
}

.terminal-stat .stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* ====== KNOWLEDGE / SKILLS ====== */

/* Skills Tabs */
.skills-tabs {
  max-width: 720px;
}

.skills-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.skills-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.45rem 0.9rem;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}

.skills-tab-btn::before {
  content: '> ';
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.skills-tab-btn:hover {
  color: var(--text-secondary);
  border-color: var(--border-accent);
}

.skills-tab-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201, 150, 44, 0.06);
}

.skills-tab-btn.active::before {
  opacity: 1;
}

.skills-tab-pane {
  display: none;
}

.skills-tab-pane.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.skills-category {
  margin-bottom: 2.5rem;
}

.skills-cat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.skills-cat-title svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
  gap: 1rem;
}

.skill-item:last-child { border-bottom: none; }

.skill-item > span {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Skill bars */
.skill-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-item.animated .skill-fill {
  width: var(--level);
}

/* Skill tags */
.skills-applications {
  margin-top: 2.5rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(201, 150, 44, 0.06);
  color: var(--accent);
  border: 1px solid rgba(201, 150, 44, 0.12);
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s;
}

.skill-tag:hover {
  background: rgba(201, 150, 44, 0.12);
  border-color: rgba(201, 150, 44, 0.25);
}

/* ====== PORTFOLIO / REFERENCES ====== */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.ref-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  opacity: 0.4;
  transition: opacity 0.4s;
}

.ref-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(201, 150, 44, 0.08), 0 15px 40px rgba(0,0,0,0.25);
}

.ref-card:hover::before {
  opacity: 1;
}

.ref-card h3,
.ref-card p,
.ref-card .ref-tags {
  padding: 0 2rem;
}

.ref-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ref-card p {
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.ref-card .ref-tags {
  padding-bottom: 1.5rem;
}

.ref-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ref-tag {
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  background: rgba(201, 150, 44, 0.06);
  color: var(--accent);
  border: 1px solid rgba(201, 150, 44, 0.12);
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* Client logos list */
.client-logos {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.client-logos h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.client-name {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: border-color 0.3s, color 0.3s;
}

.client-name:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

/* Logo Marquee */
.logo-marquee {
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
  padding: 1.2rem 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}

.logo-marquee-track img {
  height: 24px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.5) invert(1);
  opacity: 0.35;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.logo-marquee-track img:hover {
  opacity: 0.7;
}

.logo-sep {
  color: var(--accent);
  opacity: 0.25;
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

/* ====== CONTACT ====== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.92rem;
}

a.contact-item:hover { color: var(--accent-light); }

.contact-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.3s;
}

a.contact-item:hover .contact-icon {
  border-color: var(--border-accent);
}

.contact-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.4rem;
  background: #25d366;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s;
  width: 100%;
  justify-content: center;
}

.contact-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.contact-whatsapp svg {
  width: 18px; height: 18px;
  fill: #fff;
}

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

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

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

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

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

.form-group select option { background: var(--bg-card); color: var(--text); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

/* Honeypot */
.ohnohoney { position: absolute; left: -9999px; opacity: 0; }


.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.3rem;
}

.form-submit:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 30px var(--accent-glow-strong);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-submit svg { width: 15px; height: 15px; }

/* Form sending overlay */
.form-sending {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: sendingFadeIn 0.3s ease;
  border-radius: 8px;
}

.form-sending-done {
  opacity: 0;
  transition: opacity 0.5s ease;
}

@keyframes sendingFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form-sending-inner {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  max-width: 320px;
  width: 100%;
}

.form-sending-prompt {
  color: var(--accent);
}

.form-sending-cmd {
  color: #fff;
}

.form-sending-log {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-sending-line {
  font-size: 0.72rem;
  color: var(--text-dim);
  animation: sendLineFade 0.3s ease;
}

@keyframes sendLineFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-sending-ok {
  color: #28c840;
  font-weight: 500;
}

.form-sending-err {
  color: #c44;
  font-weight: 500;
}

.form-status {
  font-size: 0.85rem;
  padding: 0.7rem;
  display: none;
}

.form-status.success {
  display: block;
  color: #2a7a3a;
  background: rgba(42, 122, 58, 0.1);
  border: 1px solid rgba(42, 122, 58, 0.2);
}

.form-status.error {
  display: block;
  color: #c44;
  background: rgba(204, 68, 68, 0.1);
  border: 1px solid rgba(204, 68, 68, 0.2);
}

/* ====== CLIENT PORTAL ====== */
.client-portal {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.client-portal-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.client-terminal {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
}

.client-terminal-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  opacity: 0.5;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.client-input-wrap {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.client-prompt {
  white-space: nowrap;
  user-select: none;
}

.client-cmd {
  color: #fff;
  white-space: pre;
}

.client-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  caret-color: var(--accent);
  padding: 0;
}

.client-input::placeholder {
  color: var(--text-dim);
  opacity: 0.4;
}

.client-output {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-height: 1.4em;
}

.client-output-line {
  animation: sendLineFade 0.3s ease;
}

.client-output .client-ok {
  color: #28c840;
}

.client-output .client-err {
  color: #c44;
}

.client-output .client-loading {
  color: var(--text-dim);
}

/* ====== CLIENT VIEWER ====== */
.client-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: var(--bg);
  flex-direction: column;
}

.client-viewer.open {
  display: flex;
  animation: sendingFadeIn 0.3s ease;
}

.client-viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: 56px;
}

.client-viewer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.client-viewer-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.client-viewer-newtab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  transition: all 0.3s;
}

.client-viewer-newtab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.client-viewer-newtab svg {
  width: 12px;
  height: 12px;
}

.client-viewer-close {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: all 0.3s;
}

.client-viewer-close:hover {
  border-color: #c44;
  color: #c44;
}

.client-viewer-close svg {
  width: 12px;
  height: 12px;
}

.client-viewer-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}

.client-viewer-bar {
  z-index: 10;
  position: relative;
}

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links {
  display: flex;
  gap: 1.8rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
}

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

/* ====== BACK TO TOP ====== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s, border-color 0.3s, color 0.3s, background 0.3s, box-shadow 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  animation: bttPulse 3s ease-in-out infinite;
}

@keyframes bttPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 150, 44, 0); }
  50% { box-shadow: 0 0 12px 2px rgba(201, 150, 44, 0.15); }
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 20px rgba(201, 150, 44, 0.2);
  animation: none;
}

.back-to-top .btt-cmd {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.back-to-top:hover .btt-cmd {
  opacity: 1;
}

.back-to-top svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  transition: transform 0.3s;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ====== FLOATING WHATSAPP ====== */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s, box-shadow 0.3s;
}

.floating-wa:hover {
  border-color: #25d366;
  color: #25d366;
  background: var(--bg);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.floating-wa svg {
  width: 16px;
  height: 16px;
  fill: #25d366;
  flex-shrink: 0;
}

.floating-wa .wa-cmd {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.floating-wa:hover .wa-cmd {
  opacity: 1;
}

/* ====== EASTER EGG ====== */
.easter-egg {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  z-index: 10000;
  box-shadow: 0 8px 30px rgba(201, 150, 44, 0.4);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.easter-egg.show {
  transform: translateX(-50%) translateY(0);
}

/* ====== PARALLAX CONTAINER ====== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

/* ====== ANIMATIONS ====== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.hidden.active {
  opacity: 1;
  transform: translateY(0);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-content,
  .contact-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .ref-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 4.5rem 1.5rem; }

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav.scrolled {
    padding: 0.7rem 1.5rem;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 100;
  }

  .nav-links.open { display: flex; }

  .nav-links.open::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: url('../img/logo-white.png') center/contain no-repeat;
    opacity: 0.5;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    gap: 0.6rem;
  }

  .nav-links .nav-icon {
    width: 20px;
    height: 20px;
  }

  .nav-hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }

  .hero { padding: 7rem 1.5rem 3rem; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero h1 .light { font-size: 0.5em; }
  .hero-logo { width: 120px; }
  .hero-terminal { max-width: 100%; }
  .terminal-body { font-size: 0.85rem; min-height: 130px; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .about-image-float {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
    width: 70%;
    max-width: 280px;
  }
  .terminal-line { font-size: 0.8rem; }
  .easter-egg { font-size: 0.7rem; padding: 0.6rem 1.2rem; }
}

/* ====== GEEK ENHANCEMENTS ====== */

/* Skill percentage labels */
.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  min-width: 30px;
  text-align: right;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

.skill-item.animated .skill-pct {
  opacity: 1;
}

/* Skill bars — wider, more visible */
.skill-bar {
  width: 100px;
}

/* Skills category — terminal command style */
.skills-cat-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.8rem;
}

.skills-cat-title svg {
  display: none;
}

.skills-cat-title::before {
  content: '>';
  color: var(--accent);
  margin-right: 0.3rem;
  font-weight: 700;
}

/* Blinking online dot */
.stat-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  margin-right: 4px;
  animation: onlinePulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(40, 200, 64, 0.4);
  vertical-align: middle;
}

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

/* Contact form terminal wrapper */
.contact-form-terminal {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.contact-form-terminal .contact-form {
  padding: 1.5rem;
  margin: 0;
}

.contact-form-terminal .form-group label {
  font-family: var(--font-mono);
}

.contact-form-terminal .form-group label::before {
  content: '> ';
  color: var(--accent);
}

.contact-form-terminal .form-group input,
.contact-form-terminal .form-group textarea,
.contact-form-terminal .form-group select {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.06);
}

.contact-form-terminal .form-group input:focus,
.contact-form-terminal .form-group textarea:focus,
.contact-form-terminal .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(201, 150, 44, 0.1);
}

/* Reference git hash */
.ref-hash {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.5;
  padding: 1.3rem 2rem 0;
  margin-top: 0;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Service numbers — hex style */
.service-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  opacity: 0.3;
}

/* Client list — package manager style */
.client-logos h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.client-logos h3::before {
  content: '$ ';
  color: var(--accent);
}

.client-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Section titles — subtle code touch */
.section-title {
  letter-spacing: -0.03em;
}

/* Ref tags — git tag style */
.ref-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  border-radius: 2px;
}

/* Footer code style */
.footer-eof {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: 0.25;
  text-align: center;
  padding-bottom: 0.5rem;
}

/* Skill tags — more terminal feel */
.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

/* Divider — code comment style */
.divider-line {
  position: relative;
}

.divider-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  opacity: 0.15;
  border-radius: 1px;
  rotate: 45deg;
}

/* ====== REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  .nav-icon { animation: none !important; opacity: 0.7; }
  .back-to-top.visible { animation: none; }
}

/* ====== PRINT ====== */
@media print {
  body { background: #fff; color: #000; }
  body::after { display: none; }
  .nav, .hero-canvas, .hero-bg-glow, .hero-grid-lines,
  .hero-scroll, .hero-cta, .easter-egg,
  .contact-form-terminal, .contact-whatsapp,
  .footer-links { display: none; }
  .hero { min-height: auto; padding: 2rem; }
  .hero-logo { filter: none; width: 80px; }
  .section { padding: 2rem 0; }
  .reveal, .reveal.hidden { opacity: 1; transform: none; }
  .service-card, .ref-card { opacity: 1; transform: none; break-inside: avoid; }
  .services-grid { gap: 1px; }
  a { color: #000; text-decoration: underline; }
  .contact-info a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
