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

:root {
  --bg:          #030309;
  --surface:     #0b0b1e;
  --card:        #0f0f24;
  --border:      rgba(120, 120, 200, 0.1);
  --border-glow: rgba(0, 228, 255, 0.28);

  --cyan:       #00e4ff;
  --cyan-dim:   rgba(0, 228, 255, 0.1);
  --violet:     #7c3aed;
  --violet-dim: rgba(124, 58, 237, 0.12);
  --pink:       #e879f9;

  --text:       #ddddf0;
  --text-sub:   #8080a8;
  --muted:      #40405a;

  --glow-c: 0 0 22px rgba(0,228,255,0.45), 0 0 70px rgba(0,228,255,0.1);
  --glow-v: 0 0 22px rgba(124,58,237,0.45), 0 0 70px rgba(124,58,237,0.1);

  --nav-h: 68px;
  --pad:   clamp(24px, 7vw, 96px);
  --r: 18px;

  --ff-head: 'Syne', sans-serif;
  --ff-body: 'Figtree', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:  0.28s var(--ease);
  --ts: 0.65s var(--ease);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.65;
  cursor: none;
  overflow-x: hidden;
}

::selection { background: var(--cyan-dim); color: var(--cyan); }

/* =====================================================
   CUSTOM CURSOR
===================================================== */
#cur-dot, #cur-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

#cur-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  box-shadow: var(--glow-c);
  transition: width .15s, height .15s, background .15s;
}

#cur-ring {
  width: 34px; height: 34px;
  border: 1.5px solid var(--cyan);
  opacity: .55;
  transition: width .28s, height .28s, border-color .28s, opacity .28s;
}

body.c-hover #cur-dot  { width: 11px; height: 11px; background: var(--violet); box-shadow: var(--glow-v); }
body.c-hover #cur-ring { width: 52px; height: 52px; border-color: var(--violet); opacity: .35; }

/* =====================================================
   CANVAS BACKGROUND
===================================================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =====================================================
   NAVIGATION
===================================================== */
#navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(3, 3, 9, 0.75);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  transition: var(--t);
}

#navbar.scrolled {
  background: rgba(3, 3, 9, 0.96);
  border-bottom-color: rgba(0,228,255,0.15);
}

.nav-logo {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  text-decoration: none;
  background: linear-gradient(110deg, var(--cyan) 0%, #a78bfa 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  padding: 6px 15px;
  border-radius: 8px;
  transition: var(--t);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  width: 0; height: 1.5px;
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width var(--t);
  border-radius: 2px;
}

.nav-links a:hover { color: var(--text); background: var(--cyan-dim); }
.nav-links a:hover::after { width: 55%; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}

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

/* =====================================================
   SHARED SECTION STYLES
===================================================== */
section {
  position: relative;
  z-index: 1;
  padding: clamp(70px,10vw,120px) var(--pad);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: var(--cyan);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}

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

/* =====================================================
   SCROLL-REVEAL ANIMATIONS
===================================================== */
.r         { opacity: 0; transform: translateY(44px);    transition: opacity var(--ts), transform var(--ts); }
.r-left    { opacity: 0; transform: translateX(-55px);   transition: opacity var(--ts), transform var(--ts); }
.r-right   { opacity: 0; transform: translateX(55px);    transition: opacity var(--ts), transform var(--ts); }
.r-scale   { opacity: 0; transform: scale(.88);          transition: opacity var(--ts), transform var(--ts); }
.r.vis, .r-left.vis, .r-right.vis, .r-scale.vis { opacity: 1; transform: none; }

/* =====================================================
   HERO
===================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 50px);
  padding-bottom: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Availability badge --- */
.avail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: #4ade80;
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.2);
  border-radius: 30px;
  padding: 5px 13px;
  width: fit-content;
  margin-bottom: 28px;
  opacity: 0;
  animation: riseUp .7s var(--ease) .15s forwards;
}

.avail::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: ping 2s ease infinite;
}

@keyframes ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  60%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* --- Greeting row --- */
.hero-greet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: .9rem;
  color: var(--cyan);
  letter-spacing: .08em;
  margin-bottom: 14px;
  opacity: 0;
  animation: riseUp .7s var(--ease) .3s forwards;
}

.blink-cur {
  display: inline-block;
  width: 9px; height: 18px;
  background: var(--cyan);
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}

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

/* --- Big name --- */
.hero-name {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
  margin-bottom: 16px;
  opacity: 0;
  animation: riseUp .8s var(--ease) .45s forwards;
}

.grad-text {
  background: linear-gradient(120deg, #ffffff 0%, var(--cyan) 45%, #a78bfa 80%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glitch layer */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-t);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glitch::before { animation: gl1 5s infinite; clip-path: polygon(0 28%,100% 28%,100% 52%,0 52%); }
.glitch::after  { animation: gl2 5s infinite; clip-path: polygon(0 62%,100% 62%,100% 78%,0 78%); }

@keyframes gl1 {
  0%,82%,100% { opacity:0; transform:translateX(0); }
  84%  { opacity:1; transform:translateX(-4px); filter:hue-rotate(180deg); }
  86%  { opacity:0; transform:translateX(4px);  }
  88%  { opacity:.7;transform:translateX(-2px); }
  90%  { opacity:0; }
}

@keyframes gl2 {
  0%,83%,100% { opacity:0; transform:translateX(0); }
  85%  { opacity:1; transform:translateX(4px);  filter:hue-rotate(90deg); }
  87%  { opacity:0; transform:translateX(-4px); }
  89%  { opacity:.5;transform:translateX(2px);  }
  91%  { opacity:0; }
}

/* --- Role line --- */
.hero-role {
  font-family: var(--ff-head);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 24px;
  opacity: 0;
  animation: riseUp .7s var(--ease) .6s forwards;
}

.hero-role em { color: var(--violet); font-style: italic; font-weight: 700; }

/* --- Description --- */
.hero-desc {
  max-width: 580px;
  font-size: clamp(.9rem, 1.5vw, 1.02rem);
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 38px;
  opacity: 0;
  animation: riseUp .7s var(--ease) .72s forwards;
}

.hero-desc strong { color: var(--text); font-weight: 600; }

/* --- Tech stack row --- */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 48px;
  opacity: 0;
  animation: riseUp .7s var(--ease) .85s forwards;
}

.badge {
  font-family: var(--ff-mono);
  font-size: .7rem;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--text-sub);
  background: var(--surface);
  transition: var(--t);
  letter-spacing: .04em;
  cursor: default;
}

.badge:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: var(--glow-c);
}

/* --- CTA buttons --- */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseUp .7s var(--ease) 1s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  background: linear-gradient(130deg, var(--cyan), var(--violet));
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .93rem;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, var(--violet), var(--cyan));
  opacity: 0;
  transition: opacity var(--t);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,228,255,.28); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  background: transparent;
  color: var(--text);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--t);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
  transform: translateY(-2px);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.8s forwards;
}

.scroll-cue span {
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scAnim 2s ease infinite;
}

@keyframes scAnim {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: .65; }
}

/* =====================================================
   PORTFOLIO SECTION
===================================================== */
#portafolio {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-sub {
  font-size: .93rem;
  color: var(--text-sub);
  max-width: 460px;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 26px;
}

/* --- Project card --- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .1s ease, box-shadow .3s ease, border-color .3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-shine {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  pointer-events: none;
  z-index: 5;
}

/* Mockup browser area */
.card-mock {
  height: 210px;
  position: relative;
  overflow: hidden;
}

.m1 { background: linear-gradient(135deg, #0d1117, #162032); }
.m2 { background: linear-gradient(135deg, #0f0a1e, #1a0c30); }
.m3 { background: linear-gradient(135deg, #0a1828, #0e2a50); }

.mock-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.mock-bar {
  padding: 10px 14px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.dots { display: flex; gap: 4px; }
.dots i { display: block; width: 7px; height: 7px; border-radius: 50%; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }

.url-bar {
  flex: 1;
  height: 17px;
  background: rgba(255,255,255,.04);
  border-radius: 3px;
  margin-left: 6px;
}

.mock-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mb { height: 8px; border-radius: 3px; background: rgba(255,255,255,.05); }
.mb.c  { background: rgba(0,228,255,.18); width: 55%; }
.mb.v  { background: rgba(124,58,237,.2); width: 38%; }
.mb.w80{ width: 80%; }
.mb.w60{ width: 60%; }
.mb.w40{ width: 42%; }

.mock-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}

.mb-block {
  background: rgba(255,255,255,.035);
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.04);
}

.mb-block.hc { background: rgba(0,228,255,.05); border-color: rgba(0,228,255,.1); }
.mb-block.hv { background: rgba(124,58,237,.07); border-color: rgba(124,58,237,.13); }

/* Card body */
.card-body { padding: 22px; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag {
  font-family: var(--ff-mono);
  font-size: .67rem;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-sub);
  letter-spacing: .04em;
}

.tag.tc  { border-color: rgba(0,228,255,.25);   color: var(--cyan);  background: var(--cyan-dim);   }
.tag.tv  { border-color: rgba(124,58,237,.25);  color: #a78bfa;      background: var(--violet-dim); }
.tag.tp  { border-color: rgba(232,121,249,.25); color: var(--pink);  background: rgba(232,121,249,.08); }

.card-title {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: -.025em;
}

.card-desc {
  font-size: .855rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-btns {
  display: flex;
  gap: 9px;
}

.btn-card {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: .8rem;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--t);
}

.btn-demo {
  background: linear-gradient(130deg, var(--cyan), var(--violet));
  color: #fff;
}

.btn-demo:hover {
  opacity: .88;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0,228,255,.22);
}

.btn-code {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.btn-code:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* =====================================================
   CONTACT SECTION
===================================================== */
#contacto {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 70px;
  align-items: start;
}

.contact-side h3 {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.contact-side p {
  font-size: .88rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 30px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-sub);
}

.c-item svg { color: var(--cyan); flex-shrink: 0; }

/* Form */
.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.fg label {
  font-family: var(--ff-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fg input,
.fg textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 17px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: .9rem;
  outline: none;
  resize: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.fg input:focus,
.fg textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,228,255,.1);
}

.fg.valid   input,
.fg.valid   textarea { border-color: rgba(0,228,255,.45); }
.fg.invalid input,
.fg.invalid textarea { border-color: rgba(248,113,113,.45); }

.f-hint {
  font-size: .73rem;
  min-height: 16px;
  color: var(--muted);
  font-family: var(--ff-mono);
  transition: color var(--t);
}

.fg.valid   .f-hint { color: var(--cyan); }
.fg.invalid .f-hint { color: #f87171; }

.btn-send {
  padding: 15px 32px;
  background: linear-gradient(130deg, var(--cyan), var(--violet));
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .97rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  letter-spacing: .01em;
  width: 100%;
}

.btn-send::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, var(--violet), var(--cyan));
  opacity: 0;
  transition: opacity var(--t);
}

.btn-send:hover::before { opacity: 1; }
.btn-send span { position: relative; z-index: 1; }
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(0,228,255,.28); }
.btn-send:active { transform: translateY(0); }

/* =====================================================
   SOCIAL SECTION
===================================================== */
#redes {
  border-top: 1px solid var(--border);
  padding-top: 90px;
  padding-bottom: 90px;
}

.redes-header { text-align: center; margin-bottom: 60px; }
.redes-header .section-eyebrow { justify-content: center; }
.redes-header p { color: var(--text-sub); font-size: .9rem; margin: 0 auto; max-width: 380px; }

.social-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(22px, 5vw, 62px);
  max-width: 860px;
  margin: 0 auto;
}

.s-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  transition: transform var(--t);
}

.s-link:hover { transform: translateY(-5px); }

.s-icon {
  width: 70px; height: 70px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}

.s-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sc, var(--cyan));
  opacity: 0;
  transition: opacity var(--t);
}

.s-icon svg {
  position: relative;
  z-index: 1;
  color: var(--text-sub);
  transition: color var(--t), transform var(--t);
}

.s-link:hover .s-icon              { border-color: var(--sc, var(--cyan)); box-shadow: 0 0 28px rgba(var(--sc-rgb, 0,228,255),.28); }
.s-link:hover .s-icon::before      { opacity: .13; }
.s-link:hover .s-icon svg          { color: var(--sc, var(--cyan)); transform: scale(1.18); }

.s-handle {
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .07em;
  transition: color var(--t);
}

.s-link:hover .s-handle { color: var(--text-sub); }

/* =====================================================
   FOOTER
===================================================== */
footer {
  text-align: center;
  padding: 28px var(--pad);
  border-top: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

footer a { color: var(--cyan); text-decoration: none; }

/* =====================================================
   TOAST
===================================================== */
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 13px 20px;
  background: var(--card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  font-size: .85rem;
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateY(80px);
  opacity: 0;
  transition: var(--ts);
  z-index: 8000;
}

#toast.show { transform: translateY(0); opacity: 1; }
.t-ico { color: var(--cyan); flex-shrink: 0; }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(3,3,9,.97);
    padding: 18px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .port-grid         { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; gap: 40px; }

  #cur-dot, #cur-ring { display: none; }
  body { cursor: auto; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .social-row { gap: 20px; }
}
