:root {
  --neon-cyan: #00f5ff;
  --neon-purple: #bf00ff;
  --neon-pink: #ff006e;
  --neon-green: #00ff88;
  --dark-bg: #030308;
  --glass: rgba(255,255,255,0.03);
  --glass-border: rgba(255,255,255,0.08);
  --text-primary: #e8e8ff;
  --text-dim: rgba(232,232,255,0.5);
  --font-display: 'Orbitron', monospace;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Syne', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  cursor: none;
  overflow-x: hidden;
}

/* CURSOR */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--neon-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
}

#cursor-trail {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 24px;
  height: 24px;
  background: var(--neon-pink);
}

body:has(a:hover) #cursor-trail,
body:has(button:hover) #cursor-trail {
  width: 60px;
  height: 60px;
  border-color: var(--neon-pink);
}

/* BG CANVAS */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 2s linear infinite;
  background-size: 200%;
}

.loader-bar-wrap {
  width: 300px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  width: 0%;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.3em;
}

/* INTRO */
#intro-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.profile-container {
  position: relative;
  width: 200px;
  height: 200px;
  cursor: pointer;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(0, 245, 255, 0.4);
  animation: breathe 4s ease-in-out infinite, float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #1a0533, #0a1a2e, #001a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.3) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
  z-index: 1;
}

.profile-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.6);
  animation: ring-spin 8s linear infinite;
}

.profile-ring::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--neon-cyan);
}

.intro-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  color: var(--neon-cyan);
  text-shadow: 0 0 30px var(--neon-cyan), 0 0 60px rgba(0, 245, 255, 0.5);
  text-align: center;
}

.intro-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

.click-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(0, 245, 255, 0.5);
  letter-spacing: 0.2em;
  animation: blink 2s ease-in-out infinite;
  margin-top: 10px;
}

/* PORTFOLIO WRAPPER */
#main-portfolio {
  position: relative;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

#main-portfolio.visible {
  opacity: 1;
  pointer-events: all;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 3, 8, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transform: translateY(-100%);
}

nav.nav-visible {
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
  letter-spacing: 0.2em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--neon-cyan);
  transform: scaleX(0);
  transition: transform 0.3s;
  box-shadow: 0 0 8px var(--neon-cyan);
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--neon-cyan);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* SECTIONS */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5vw;
  overflow: hidden;
}

.section-label {
  position: absolute;
  top: 40px;
  left: 5vw;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-purple);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.6;
}

.section-number {
  position: absolute;
  top: 30px;
  right: 5vw;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  user-select: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 30px;
}

.section-title .accent {
  display: block;
  color: var(--neon-cyan);
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

/* HERO */
#hero {
  min-height: 100vh;
  flex-direction: column;
  text-align: center;
  gap: 20px;
  padding-top: 120px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-green);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  opacity: 0;
}

.hero-title .line1 {
  display: block;
  background: linear-gradient(90deg, var(--neon-cyan), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .line2 {
  display: block;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  color: var(--text-dim);
  letter-spacing: 0.3em;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  opacity: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  position: relative;
  padding: 14px 40px;
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon-cyan);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  color: #000;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.btn-primary:hover::before {
  transform: translateX(0);
}

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

.btn-secondary {
  padding: 14px 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-secondary:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  box-shadow: 0 0 30px rgba(191, 0, 255, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

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

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

/* ABOUT */
#about {
  background: linear-gradient(180deg, transparent, rgba(10, 5, 30, 0.8), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.about-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  padding: 40px;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
}

.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  perspective: 1000px;
  background: linear-gradient(135deg, #1a0533, #0a1a2e);
}

.cube {
  width: 85%;
  height: 85%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 12s infinite linear;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 20px rgba(0, 245, 255, 0.3);
  opacity: 0.95;
  backface-visibility: visible;
  animation: neonBorder 8s infinite;
}

.face.front {
  transform: translateZ(50%);
}

.face.back {
  transform: rotateY(180deg) translateZ(50%);
}

.face.right {
  transform: rotateY(90deg) translateZ(50%);
}

.face.left {
  transform: rotateY(-90deg) translateZ(50%);
}

.face.top {
  transform: rotateX(90deg) translateZ(50%);
}

.face.bottom {
  transform: rotateX(-90deg) translateZ(50%);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes neonBorder {
  0% {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 20px rgba(0, 245, 255, 0.3);
  }
  25% {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple), inset 0 0 20px rgba(191, 0, 255, 0.3);
  }
  50% {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink), inset 0 0 20px rgba(255, 0, 110, 0.3);
  }
  75% {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green), inset 0 0 20px rgba(0, 255, 136, 0.3);
  }
  100% {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 20px rgba(0, 245, 255, 0.3);
  }
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.stat-item {
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.1);
  padding: 15px;
  border-radius: 2px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px var(--neon-cyan);
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* SKILLS CAROUSEL */
#skills {
  flex-direction: column;
  gap: 50px;
  overflow: hidden;
}

.carousel-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  cursor: grab;
}

.carousel-wrapper:active { cursor: grabbing; }

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}

.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--dark-bg) 30%, transparent);
}

.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--dark-bg) 30%, transparent);
}

/* SIN animation CSS — JS mueve el track con transform */
.carousel-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}

.skill-chip {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.skill-chip:hover { transform: translateY(-10px) scale(1.07); }

.skill-chip::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.055), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.skill-chip-logo {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

.skill-chip-logo svg {
  width: 44px; height: 44px;
  transition: filter 0.3s ease;
}

.skill-chip-name {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: color 0.3s ease;
}
/* PROJECTS */
#projects {
  flex-direction: column;
  gap: 60px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1400px;
}

.project-card {
  flex: 1 1 550px;
  max-width: 650px;
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s;
}

.project-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 245, 255, 0.1);
}

.project-preview {
  height: 380px;
  position: relative;
  overflow: hidden;
}

.project-preview-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-preview-bg {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(3, 3, 8, 0.95));
}

.project-tags {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  letter-spacing: 0.1em;
  border-radius: 2px;
  backdrop-filter: blur(10px);
}

/* project-links y project-link-btn eliminados */

.project-body {
  padding: 25px;
}

.project-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--neon-cyan);
  letter-spacing: 0.3em;
  margin-bottom: 8px;
  opacity: 0.6;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.project-footer {
  padding: 0 25px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.stack-dot {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* EXPERIENCE */
#experience {
  flex-direction: column;
  gap: 60px;
}

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  max-width: 1100px;
}

.value-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  padding: 35px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 245, 255, 0.07);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--vc);
  box-shadow: 0 0 15px var(--vc);
}

.value-card:nth-child(1) {
  --vc: var(--neon-cyan);
}

.value-card:nth-child(2) {
  --vc: var(--neon-purple);
}

.value-card:nth-child(3) {
  --vc: var(--neon-pink);
}

.value-card:nth-child(4) {
  --vc: var(--neon-green);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
  display: block;
}

.value-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--vc, var(--neon-cyan));
}

.value-desc {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.85;
  color: var(--text-dim);
}

.formation-card {
  grid-column: 1 / -1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  padding: 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.formation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
}

.formation-year {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0, 245, 255, 0.15);
  line-height: 1;
}

.formation-badge {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 5px 12px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--neon-cyan);
  letter-spacing: 0.15em;
  border-radius: 2px;
  background: rgba(0, 245, 255, 0.05);
}

.formation-degree {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.formation-school {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-purple);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.formation-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.formation-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.f-skill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 4px 12px;
  border: 1px solid rgba(191, 0, 255, 0.2);
  color: var(--neon-purple);
  letter-spacing: 0.1em;
  border-radius: 2px;
  background: rgba(191, 0, 255, 0.05);
}

/* CONTACT */
#contact {
  flex-direction: column;
  gap: 50px;
  min-height: 70vh;
}

.contact-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 700px;
  text-align: center;
}

.contact-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  line-height: 1.9;
}

.gmail-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 50px;
  background: transparent;
  border: 1px solid rgba(234, 67, 53, 0.5);
  color: #ea4335;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.gmail-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ea4335;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gmail-btn:hover {
  color: #fff;
  box-shadow: 0 0 50px rgba(234, 67, 53, 0.4);
}

.gmail-btn:hover::before {
  transform: translateX(0);
}

.gmail-btn > * {
  position: relative;
  z-index: 1;
}

.gmail-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.contact-alts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.alt-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alt-link:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.04);
}

.alt-link svg {
  width: 16px;
  height: 16px;
}

/* FOOTER (simplificado) */
footer {
  position: relative;
  padding: 60px 5vw 40px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  overflow: hidden;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2em;
}

/* REVEAL */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-up"] {
  transform: translateY(50px);
}

[data-reveal="fade-left"] {
  transform: translateX(50px);
}

[data-reveal="fade-right"] {
  transform: translateX(-50px);
}

[data-reveal="scale"] {
  transform: scale(0.85);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

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

/* KEYFRAMES */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    filter: blur(0);
  }
  50% {
    transform: scale(1.04);
    filter: blur(0.5px);
  }
}

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

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes ring-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes text-flicker {
  0%, 95%, 100% {
    opacity: 1;
  }
  96%, 98% {
    opacity: 0.8;
  }
  97% {
    opacity: 0.4;
  }
}

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

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes scroll-line {
  0% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  50% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  50.001% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .exp-grid {
    grid-template-columns: 1fr;
  }
  .formation-card {
    flex-direction: column;
    gap: 20px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  nav {
    padding: 15px 20px;
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 80px 5vw;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 3rem;
  }
}

.alt-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alt-link:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.04);
}

.alt-link svg {
  width: 16px;
  height: 16px;
}

/* FOOTER (simplificado) */
footer {
  position: relative;
  padding: 60px 5vw 40px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  overflow: hidden;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2em;
}

/* REVEAL */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-up"] {
  transform: translateY(50px);
}

[data-reveal="fade-left"] {
  transform: translateX(50px);
}

[data-reveal="fade-right"] {
  transform: translateX(-50px);
}

[data-reveal="scale"] {
  transform: scale(0.85);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

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

/* KEYFRAMES */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    filter: blur(0);
  }
  50% {
    transform: scale(1.04);
    filter: blur(0.5px);
  }
}

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

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes ring-spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes text-flicker {
  0%, 95%, 100% {
    opacity: 1;
  }
  96%, 98% {
    opacity: 0.8;
  }
  97% {
    opacity: 0.4;
  }
}

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

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes scroll-line {
  0% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  50% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  50.001% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .exp-grid {
    grid-template-columns: 1fr;
  }
  .formation-card {
    flex-direction: column;
    gap: 20px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  nav {
    padding: 15px 20px;
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 80px 5vw;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 3rem;
  }
}

/* Progress bar */
#pb {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f5ff, #bf00ff);
  z-index: 999;
  transition: width 0.1s;
  box-shadow: 0 0 10px #00f5ff;
  width: 0%;
}

/* ── SLIDER & LIGHTBOX ── */

.has-slider {
  position: relative;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: zoom-in;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
  opacity: 0;
}

.has-slider:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--neon-cyan);
  border-color: transparent;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.pointer-none { pointer-events: none; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,245,255,0.2);
  animation: lightboxIn 0.3s ease-out;
  object-fit: contain; /* ensures images fit well fullscreen */
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  font-family: var(--font-display);
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
  color: var(--neon-pink);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 20px;
  opacity: 0.5;
  transition: 0.3s;
}

.lightbox-btn:hover {
  opacity: 1;
  color: var(--neon-cyan);
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
