/* ════════════════════════════════════════════════════════════
    TOMAS STUTZ — PORTFOLIO
    Liquid Glass / Spatial UI Design System
   ════════════════════════════════════════════════════════════ */

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

:root {
  /* Color system */
  --bg-base:        #07070f;
  --bg-deep:        #04040a;

  /* Glass tokens — blur values lowered for performance */
  --glass-bg:       rgba(255, 255, 255, 0.055);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-border:   rgba(255, 255, 255, 0.10);
  --glass-border-h: rgba(255, 255, 255, 0.20);
  --glass-shadow:   0 6px 24px rgba(0, 0, 0, 0.45);
  --glass-blur:     blur(10px) saturate(140%);     /* was blur(20px) saturate(180%) */
  --glass-shine:    inset 0 1px 0 rgba(255, 255, 255, 0.10);

  /* Accent palette */
  --accent-purple:  #7c3aed;
  --accent-violet:  #8b5cf6;
  --accent-cyan:    #06b6d4;
  --accent-blue:    #3b82f6;
  --accent-indigo:  #6366f1;

  /* Text */
  --text-primary:   rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.60);
  --text-muted:     rgba(255, 255, 255, 0.35);

  /* Typography */
  --font-display:   'Outfit', sans-serif;
  --font-body:      'Space Grotesk', sans-serif;

  /* Spacing */
  --section-pad:    clamp(80px, 12vw, 140px);
  --container-max:  1200px;

  /* Motion */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── SELECTION ─────────────────────────────────────────── */
::selection {
  background: rgba(124, 58, 237, 0.4);
  color: #fff;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--accent-purple);
  border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════
    AURORA BACKGROUND
   ════════════════════════════════════════════════════════════ */
.aurora-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  /* blur reducido a 60px — era 80px. Scale sin animar para no forzar repaint constante */
  filter: blur(60px);
  mix-blend-mode: screen;
  opacity: 0.45;
  will-change: transform;
  /* Contener el repaint solo al orb */
  contain: layout style paint;
}

/* Solo 2 orbs activos — eliminados orb-3 y orb-4 */
.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -150px;
  left: -150px;
  /* Animación más lenta (menos frames) y sin scale (evita repaint de blur) */
  animation: orbFloat1 24s ease-in-out infinite;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 30%;
  right: -100px;
  animation: orbFloat2 30s ease-in-out infinite;
}

/* Keyframes simplificados: solo translate, sin scale (scale + blur = muy caro) */
@keyframes orbFloat1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%       { transform: translate3d(60px, 80px, 0); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%       { transform: translate3d(-60px, 60px, 0); }
}

/* Noise texture overlay */
.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
  opacity: 0.6;
}

/* ════════════════════════════════════════════════════════════
    CURSOR GLOW
   ════════════════════════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  /* Tamaño reducido — menos área a rasterizar */
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
  /* Ocultar en móvil — el cursor no existe */
}

/* ════════════════════════════════════════════════════════════
    GLASS UTILITY CLASSES
   ════════════════════════════════════════════════════════════ */
.glass-panel {
  background: var(--glass-bg);
  /* backdrop-filter solo donde el usuario puede verlo — contenido aislado */
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-shine);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  /* Aislar repaint a este elemento */
  contain: layout style;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--glass-border-h);
  background: var(--glass-bg-hover);
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  /* blur reducido — chips son elementos pequeños pero hay muchos */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.glass-chip:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Card shine overlay (follows mouse via JS) */
.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
    rgba(255,255,255,0.08) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tilt-card:hover .card-shine { opacity: 1; }

/* ════════════════════════════════════════════════════════════
    NAVIGATION
   ════════════════════════════════════════════════════════════ */
.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(90%, 860px);
  background: rgba(7, 7, 15, 0.75);
  /* Nav sí merece un blur decente — es solo 1 elemento fijo */
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.glass-nav.scrolled {
  background: rgba(7, 7, 15, 0.85);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 2px;
  letter-spacing: -0.5px;
}

.logo-bracket {
  color: var(--accent-violet);
  font-size: 1.2rem;
}

.logo-text {
  background: linear-gradient(135deg, #a78bfa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 2px;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent-violet);
  border-radius: 50%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  max-height: 300px;
  padding-bottom: 16px;
}

.mobile-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.mobile-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}

/* ════════════════════════════════════════════════════════════
    HERO SECTION
   ════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.hero-content {
  width: 100%;
  max-width: var(--container-max);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

/* Hero text */
.hero-text { display: flex; flex-direction: column; gap: 28px; }

.hero-badge {
  align-self: flex-start;
  gap: 10px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-line {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.title-name {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 40%, #67e8f9 80%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* Hero card (avatar) */
.hero-card {
  width: 320px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-radius: 28px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

.avatar-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 3px;
  /* Gradiente estático limpio — sin rotación de colores */
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #6366f1 100%);
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-base);
}

.hero-card-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.info-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 5px 12px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-purple), transparent);
}

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

/* ════════════════════════════════════════════════════════════
    SECTION COMMON
   ════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) 24px;
}

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-tag {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-violet);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, #a78bfa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reveal animation states */
.reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
    ABOUT SECTION
   ════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-main {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-bento {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-card {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
}

.bento-icon { font-size: 1.8rem; }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bento-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
    PROJECTS SECTION
   ════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  padding: 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.project-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.project-emoji {
  font-size: 2rem;
  line-height: 1;
}

.project-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

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

.tech-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50px;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-links {
  display: flex;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}

.project-link:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.09);
  transform: translateY(-1px);
}

.project-link-live:hover {
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.3);
}

/* ─── PROJECT BLOCKS (client / personal separators) ────── */
.projects-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projects-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.block-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 50px;
}

.block-label-client {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.block-label-personal {
  color: var(--accent-violet);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.block-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* 2-col grid for client projects */
.projects-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Client badge pill on card */
.client-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 50px;
  padding: 3px 8px;
}

.client-badge-utn {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.25);
}

#project-hotel:hover,
#project-barhaus:hover,
#project-cg:hover {
  border-color: rgba(251, 191, 36, 0.25);
}

#project-caan:hover {
  border-color: rgba(96, 165, 250, 0.25);
}

@media (max-width: 768px) {
  .projects-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════
    SKILLS SECTION
   ════════════════════════════════════════════════════════════ */
.skills-container { width: 100%; }

/* ── SKILLS CATEGORIES ── */
.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skills-category {
  padding: 32px;
}

.skills-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-base);
}

.skills-subcategory-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 32px 0 16px 0;
  color: var(--text-muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.skills-grid-small {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: 16px;
  transition: all 0.25s var(--ease-spring);
  cursor: default;
}

.skill-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-6px) scale(1.05);
}

.skill-item i {
  font-size: 2.4rem;
  transition: filter 0.25s ease;
}

.skill-item:hover i {
  filter: drop-shadow(0 0 8px currentColor);
}

.skill-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
}

.skill-item:hover span { color: var(--text-secondary); }

/* Learning banner */
.learning-banner {
  padding: 20px 32px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
}

.learning-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  overflow: hidden;
}

.learning-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-violet);
  flex-shrink: 0;
}

.learning-scroll {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.learning-scroll span {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  animation: marquee 20s linear infinite;
}

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

/* ════════════════════════════════════════════════════════════
    CONTACT SECTION
   ════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.contact-main {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-radius: 24px;
}

.contact-tagline {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 420px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-link:hover {
  color: var(--text-primary);
}

.contact-quote {
  padding: 44px 36px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.8;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  border: none;
}

.quote-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ════════════════════════════════════════════════════════════
    FOOTER
   ════════════════════════════════════════════════════════════ */
.glass-footer {
  position: relative;
  z-index: 2;
  padding: 28px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-name { color: var(--text-secondary); font-weight: 600; }
.footer-sep { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
    RESPONSIVE — TABLET (768px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero-card { width: 280px; }

  .hero-content {
    gap: 40px;
  }

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

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero-subtitle { text-align: center; }

  .hero-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    order: -1;
  }

  .avatar-ring { width: 140px; height: 140px; }
}

/* ════════════════════════════════════════════════════════════
    RESPONSIVE — MOBILE (480px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: flex; }

  .glass-nav {
    border-radius: 24px;
    top: 12px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-category {
    padding: 24px 20px;
  }
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skill-item { padding: 16px 8px; }
  .skill-item i { font-size: 2rem; }

  .about-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bento-card:last-child {
    grid-column: span 2;
  }

  .contact-main {
    padding: 28px;
  }

  .hero-title .title-name {
    font-size: clamp(3rem, 12vw, 4rem);
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-bento {
    grid-template-columns: 1fr;
  }

  .bento-card:last-child {
    grid-column: span 1;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-primary, .btn-ghost {
    justify-content: center;
  }

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

/* ════════════════════════════════════════════════════════════
    FOCUS ACCESSIBILITY
   ════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--accent-violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════════════════════
    REDUCED MOTION
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .aurora-orb,
  .badge-dot,
  .avatar-ring,
  .scroll-indicator,
  .learning-scroll span,
  .title-name {
    animation: none !important;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── PERFORMANCE: ocultar cursor glow en touch/mobile ──── */
@media (hover: none) {
  .cursor-glow { display: none !important; }
}

/* ─── PERFORMANCE MODE: clase JS activada si baja FPS ───── */
.perf-mode .aurora-orb {
  animation-duration: 60s !important;
  filter: blur(40px) !important;
  opacity: 0.3 !important;
}

.perf-mode .glass-panel,
.perf-mode .glass-chip {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(20, 20, 35, 0.85) !important;
}

.perf-mode .tilt-card {
  transform: none !important;
}

/* ════════════════════════════════════════════════════════════
    AI AGENTS SECTION
   ════════════════════════════════════════════════════════════ */
.ai-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
}

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

.ai-card {
  padding: 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ai-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.ai-logo-antigravity {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(124,58,237,0.15));
  color: #818cf8;
}
.ai-logo-claude {
  background: linear-gradient(135deg, rgba(217,119,6,0.25), rgba(245,158,11,0.15));
  color: #fbbf24;
}
.ai-logo-gpt {
  background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(5,150,105,0.15));
  color: #34d399;
}
.ai-logo-gemini {
  background: linear-gradient(135deg, rgba(26,115,232,0.25), rgba(26,115,232,0.15));
  color: #4285f4;
}
.ai-logo-workflow {
  background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(14,165,233,0.15));
  color: #22d3ee;
}

.ai-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.ai-card-role {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ai-card-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ai-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.10);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 50px;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

/* ─── CONTACT BRAND COLORS ON HOVER ────────────────────── */
#contact-linkedin:hover {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.4);
  background: rgba(10, 102, 194, 0.08);
}

#contact-instagram:hover {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.4);
  background: rgba(225, 48, 108, 0.08);
}
