/* ============================================================
   ELENA TORRES VIDAL — Senior Software Engineer Portfolio
   styles.css — CSS3 puro, sin frameworks
   Paleta: Cyberpunk / Tech (fondo #0d1117, gradiente #8a2be2 -> #00ffff)
   Estilo: Glassmorphism (backdrop-filter blur, bordes translúcidos)
   ============================================================ */

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

:root {
  /* Colores base */
  --bg: #0d1117;
  --bg-elevated: #131a24;
  --bg-elevated-2: #182130;

  /* Texto */
  --text: #e6edf3;
  --text-soft: #9aa7b5;
  --text-faint: #5b6672;

  /* Acentos neón */
  --purple: #8a2be2;
  --cyan: #00ffff;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(138, 43, 226, 0.18), rgba(0, 255, 255, 0.18));

  /* Vidrio (glassmorphism) */
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 14px;

  /* Estado */
  --success: #34d399;
  --danger: #f5524b;

  /* Tipografía */
  --f-display: 'Rajdhani', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'Fira Code', monospace;

  /* Espaciado / layout */
  --pad: clamp(20px, 5vw, 72px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-w: 1200px;

  /* Sombras */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow-purple: 0 0 24px rgba(138, 43, 226, 0.35);
  --shadow-glow-cyan: 0 0 24px rgba(0, 255, 255, 0.25);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 12% 8%, rgba(138, 43, 226, 0.16), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(0, 255, 255, 0.1), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(138, 43, 226, 0.1), transparent 45%);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
}

::selection {
  background: var(--purple);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ------------------------------------------------------------
   2. UTILIDADES COMPARTIDAS
   ------------------------------------------------------------ */

/* Tarjeta de vidrio esmerilado reutilizable */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.section {
  padding: 120px 0 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gradient);
}

.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.section-title .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  color: var(--text-soft);
  font-size: 1rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient);
  color: #050608;
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.35);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text);
  border-color: var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.82rem;
}

/* Etiquetas de tecnología */
.tag {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 6px;
  padding: 4px 10px;
}

/* Animación de aparición al hacer scroll (activada por IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   3. KEYFRAMES DE ANIMACIÓN
   ------------------------------------------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes rotateBorder {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.35); }
  50% { box-shadow: 0 0 22px rgba(138, 43, 226, 0.55); }
}

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

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ------------------------------------------------------------
   4. NAVBAR
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  animation: fadeIn 0.8s ease both;
}

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.logo .dot {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* ------------------------------------------------------------
   5. HERO
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

/* Foto de perfil con borde de gradiente animado */
.avatar-ring {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.1s both, floatY 6s ease-in-out infinite;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from var(--angle), var(--purple), var(--cyan), var(--purple));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 5s linear infinite;
}

.avatar-photo {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: var(--bg-elevated);
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-eyebrow .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulseGlow 2s ease infinite;
}

.hero-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.8s ease 0.25s both;
}

.hero-name .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Título con efecto typewriter (controlado por script.js) */
.hero-role {
  font-family: var(--f-mono);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--text-soft);
  min-height: 1.6em;
  animation: fadeInUp 0.8s ease 0.35s both;
}

.hero-role .prefix {
  color: var(--text-faint);
}

.typewriter-text {
  color: var(--cyan);
  font-weight: 500;
}

.typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--cyan);
  margin-left: 3px;
  vertical-align: middle;
  animation: blinkCaret 0.9s step-end infinite;
}

.hero-desc {
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 1rem;
  animation: fadeInUp 0.8s ease 0.45s both;
}

/* Redes sociales con SVG nativo */
.hero-socials {
  display: flex;
  gap: 14px;
  animation: fadeInUp 0.8s ease 0.55s both;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-soft);
  backdrop-filter: blur(var(--glass-blur));
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 19px;
  height: 19px;
}

.social-icon:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.65s both;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  animation: fadeIn 1s ease 1s both;
}

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

/* ------------------------------------------------------------
   6. SOBRE MÍ
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 18px;
  font-size: 1rem;
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.stat-chip {
  padding: 16px 18px;
}

.stat-chip .num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.7rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-chip .lbl {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Ventana de código decorativa (ilustración de datos clave) */
.code-window {
  overflow: hidden;
}

.code-window-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.code-window-head .cdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.cdot.red { background: #f5524b; }
.cdot.yellow { background: #f5a524; }
.cdot.green { background: #34d399; }

.code-window-head .fname {
  margin-left: 10px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}

.code-window-body {
  padding: 22px 20px;
  font-family: var(--f-mono);
  font-size: 0.86rem;
  line-height: 1.85;
  overflow-x: auto;
}

.code-window-body .ln { color: var(--text-faint); margin-right: 16px; user-select: none; }
.code-window-body .k { color: #ff7ab6; }
.code-window-body .s { color: var(--success); }
.code-window-body .p { color: var(--text-soft); }
.code-window-body .c { color: var(--cyan); }
.code-window-body .m { color: var(--text-faint); font-style: italic; }

/* ------------------------------------------------------------
   7. SKILLS
   ------------------------------------------------------------ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  padding: 28px 26px;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.4);
  box-shadow: var(--shadow-glow-cyan);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.skill-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.skill-card-icon svg {
  width: 20px;
  height: 20px;
}

.skill-card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.skill-row {
  margin-bottom: 16px;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-bottom: 7px;
}

.skill-row-top .skill-pct {
  font-family: var(--f-mono);
  color: var(--cyan);
  font-size: 0.78rem;
}

.skill-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  background: var(--gradient);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.45);
}

/* Se activa vía JS (IntersectionObserver) al añadir .is-visible al contenedor padre */
.skills-grid.is-visible .skill-fill {
  width: var(--target-width);
}

/* ------------------------------------------------------------
   8. EXPERIENCIA — LÍNEA DE TIEMPO
   ------------------------------------------------------------ */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan), transparent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  padding-left: 74px;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
  z-index: 2;
}

.timeline-node::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Nodo iluminado al hacer scroll (clase añadida por IntersectionObserver) */
.timeline-item.is-active .timeline-node {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.55);
}

.timeline-item.is-active .timeline-node::after {
  background: var(--gradient);
  box-shadow: 0 0 10px var(--cyan);
}

.timeline-card {
  padding: 24px 26px;
}

.timeline-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.timeline-role {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.timeline-dates {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--cyan);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
}

.timeline-org {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.timeline-achievements li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.timeline-achievements li:last-child {
  margin-bottom: 0;
}

.timeline-achievements li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ------------------------------------------------------------
   9. PROYECTOS
   ------------------------------------------------------------ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: var(--shadow-glow-purple);
}

/* Imagen placeholder hecha 100% con CSS (sin archivos externos) */
.project-thumb {
  position: relative;
  height: 160px;
  background: var(--bg-elevated-2);
  background-image: linear-gradient(135deg, rgba(138, 43, 226, 0.35), rgba(0, 255, 255, 0.25)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-thumb .thumb-glyph {
  width: 54px;
  height: 54px;
  color: rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.5));
}

.project-thumb .thumb-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--success);
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 20px;
  padding: 3px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-thumb .thumb-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.project-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.project-desc {
  color: var(--text-soft);
  font-size: 0.92rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

/* ------------------------------------------------------------
   10. CONTACTO
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
}

.contact-info-card {
  padding: 32px 28px;
  height: fit-content;
}

.contact-info-card h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.contact-info-card > p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--glass-border);
  color: var(--text-soft);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.contact-channel:first-of-type {
  border-top: none;
}

.contact-channel:hover {
  color: var(--cyan);
  padding-left: 6px;
}

.contact-channel .cico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel .cico svg {
  width: 16px;
  height: 16px;
}

.contact-form {
  padding: 32px 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.94rem;
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 255, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.12);
}

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

.form-status {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  margin-top: 4px;
  min-height: 1.2em;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.form-status.is-visible {
  opacity: 1;
}

/* ------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  margin-top: 120px;
  padding: 36px var(--pad) 40px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

.site-footer b {
  color: var(--text-soft);
  font-weight: 500;
}

.footer-top-link {
  color: var(--cyan);
  transition: transform 0.3s ease;
  display: inline-block;
}

.footer-top-link:hover {
  transform: translateY(-3px);
}

/* ------------------------------------------------------------
   12. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px var(--pad) 24px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-toggle {
    display: flex;
  }

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

@media (max-width: 680px) {
  .section {
    padding-top: 90px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    padding-left: 54px;
  }

  .timeline-node {
    left: 6px;
    width: 22px;
    height: 22px;
  }

  .hero-actions,
  .hero-socials {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .avatar-ring {
    width: 130px;
    height: 130px;
  }

  .avatar-photo {
    width: 116px;
    height: 116px;
  }

  .stat-chip .num {
    font-size: 1.4rem;
  }
}
