/* ============================================================
   W-ADMIN.COM — Master Stylesheet v2
   "Potenciado por Andy — La IA más poderosa del desarrollo"
   Efectos: cursor trail · glassmorphism profundo · glow animado
            · 3D tilt · gradient borders · particle grid · parallax
   ============================================================ */

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --bg-deep: #050510;
  --bg-surface: #08081a;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(108, 60, 224, 0.35);
  --text-primary: #f0f0fa;
  --text-secondary: #9898b8;
  --text-muted: #6060a0;
  --gradient-brand: linear-gradient(135deg, #6C3CE0 0%, #00D4FF 50%, #A855F7 100%);
  --gradient-warm: linear-gradient(135deg, #FF2D78 0%, #6C3CE0 50%, #00D4FF 100%);
  --accent: #FF2D78;
  --accent-glow: 0 0 30px rgba(255, 45, 120, 0.5);
  --purple: #6C3CE0;
  --cyan: #00D4FF;
  --white: #f0f0fa;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 80px rgba(108, 60, 224, 0.2);
  --font-mono: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', monospace;
  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-width: 1200px;
  --nav-height: 72px;

  /* Cursor glow (set by JS) */
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  cursor: none;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ── Grid background pattern ──────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 60, 224, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 60, 224, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  z-index: 0;
  pointer-events: none;
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* ── Global cursor glow ───────────────────────────────────── */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(180px circle at var(--cursor-x) var(--cursor-y),
    rgba(108, 60, 224, 0.08) 0%,
    rgba(0, 212, 255, 0.03) 40%,
    transparent 70%);
  transition: opacity 0.3s;
}

/* ── Floating orbs ────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  animation: orb-float 20s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: 10%; left: -10%;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  top: 50%; right: -8%;
  animation-delay: -7s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: var(--accent);
  bottom: 5%; left: 30%;
  animation-delay: -14s;
  opacity: 0.08;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.15); }
  50% { transform: translate(-30px, 50px) scale(0.9); }
  75% { transform: translate(-50px, -20px) scale(1.1); }
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

a { color: var(--cyan); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--purple); }
p { color: var(--text-secondary); margin-bottom: 1rem; }

.gradient-text {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

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

.pink-text { color: var(--accent); }
.cyan-text { color: var(--cyan); }
.purple-text { color: var(--purple); }

/* ── Text reveal animation ────────────────────────────────── */
.char-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.char-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Shimmer text effect ──────────────────────────────────── */
.shimmer {
  background: linear-gradient(90deg,
    var(--purple) 0%, var(--cyan) 25%,
    var(--white) 50%, var(--cyan) 75%,
    var(--purple) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Cursor dot ───────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(108, 60, 224, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: rgba(0, 212, 255, 0.8);
  background: rgba(108, 60, 224, 0.08);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
  position: relative;
}

.nav-logo span {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 70%; }

.nav-cta {
  background: linear-gradient(135deg, rgba(108, 60, 224, 0.3), rgba(0, 212, 255, 0.2));
  border: 1px solid var(--border-glow) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
}
.nav-cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 30px rgba(108, 60, 224, 0.3);
  border-color: rgba(0, 212, 255, 0.5) !important;
}
.nav-cta::after { display: none !important; }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: all 0.3s ease; }

@media (max-width: 768px) {
  html { cursor: auto; }
  #cursor-glow { display: none; }
  .cursor-dot, .cursor-ring { display: none; }

  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    background: rgba(8, 8, 26, 0.97);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-left: 1px solid var(--border-subtle);
    transition: right 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 48px 36px;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.15rem; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 24px 100px;
}

#hero-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(108, 60, 224, 0.12);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.88rem;
  color: var(--cyan);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--cyan);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--cyan); }
  50% { opacity: 0.3; transform: scale(0.7); box-shadow: 0 0 3px var(--cyan); }
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
  line-height: 1.7;
}

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

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: none;
  transition: all 0.35s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
    rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, #6C3CE0 0%, #8B5CF6 50%, #00D4FF 100%);
  background-size: 200% 200%;
  color: var(--white);
  box-shadow: 0 4px 30px rgba(108, 60, 224, 0.35);
  animation: gradient-shift 4s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 50px rgba(108, 60, 224, 0.5);
  color: var(--white);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 60, 224, 0.2);
  color: var(--white);
}

.btn-lg { padding: 16px 42px; font-size: 1.08rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* Ripple on click */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Section Base ─────────────────────────────────────────── */
.section {
  padding: 120px 0;
  position: relative;
}
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border-glow), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 14px;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 50px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.section-header h2 { margin-bottom: 18px; }
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.12rem;
}

/* ── Cards ────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: gradient-shift 4s ease-in-out infinite;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: gradient-shift 4s ease-in-out infinite;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: transparent;
  transform: translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: var(--shadow-card), 0 0 60px rgba(108, 60, 224, 0.1);
}
.card:hover::before { opacity: 0.6; }
.card:hover::after { opacity: 1; }

.card-icon { font-size: 2.8rem; margin-bottom: 22px; display: block; transition: transform 0.4s ease; }
.card:hover .card-icon { transform: scale(1.1) translateY(-4px); }

.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Stats Row ────────────────────────────────────────────── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  text-align: center;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.stat-item { display: flex; flex-direction: column; align-items: center; transition: transform 0.3s ease; }
.stat-item:hover { transform: translateY(-4px); }

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  animation: gradient-shift 4s ease-in-out infinite;
}
.stat-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.02em; }

/* ── Andy Section ─────────────────────────────────────────── */
.andy-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(108, 60, 224, 0.05) 30%, rgba(0, 212, 255, 0.03) 70%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.andy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.andy-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.andy-avatar-wrapper {
  position: relative;
  width: 300px; height: 300px;
}

.andy-glow {
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple), var(--cyan), var(--accent), var(--purple));
  filter: blur(50px);
  opacity: 0.45;
  animation: spin-glow 10s linear infinite;
}

@keyframes spin-glow {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  to { transform: rotate(360deg) scale(1); }
}

.andy-avatar {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 28px;
  background: var(--gradient-brand);
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(108, 60, 224, 0.3);
}

.andy-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.andy-avatar-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 25px;
  font-size: 7rem;
}

/* Floating particles around avatar */
.andy-particles {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  animation: spin-glow 15s linear infinite reverse;
}

.andy-particles .ap {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  animation: ap-float 3s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}

@keyframes ap-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(2); opacity: 1; }
}

.andy-text h3 { margin-bottom: 22px; }
.andy-text .quote {
  font-size: 1.08rem;
  color: var(--text-secondary);
  font-style: italic;
  border-left: 3px solid var(--purple);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(108, 60, 224, 0.05);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}

.andy-skills-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: default;
  backdrop-filter: blur(5px);
}
.skill-tag:hover {
  background: rgba(108, 60, 224, 0.2);
  border-color: var(--border-glow);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 60, 224, 0.2);
}

/* ── Process Steps ────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.process-step {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  overflow: hidden;
}

.process-step:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.process-step::before {
  content: '0' counter(step);
  counter-increment: step;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.12;
  position: absolute;
  top: 8px; right: 16px;
  line-height: 1;
}

.process-steps { counter-reset: step 0; }

.process-step h4 { margin-bottom: 10px; position: relative; font-size: 1.15rem; }
.process-step p { font-size: 0.93rem; margin: 0; position: relative; }

/* ── Portfolio ────────────────────────────────────────────── */
.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-style: preserve-3d;
}

.portfolio-card:hover {
  transform: translateY(-8px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), 0 0 80px rgba(108, 60, 224, 0.12);
}

.portfolio-card-header {
  height: 200px;
  background: linear-gradient(135deg, rgba(108, 60, 224, 0.35), rgba(0, 212, 255, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.portfolio-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(108, 60, 224, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 4px);
}

.portfolio-card-body { padding: 26px; }
.portfolio-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }

.portfolio-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.portfolio-tag {
  font-size: 0.73rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(108, 60, 224, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(108, 60, 224, 0.25);
  letter-spacing: 0.02em;
}

/* ── Blog ─────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.blog-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
}

.blog-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: var(--shadow-card);
}

.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(108, 60, 224, 0.25), rgba(0, 212, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image { transform: scale(1.05); }

.blog-card-body { padding: 26px; }
.blog-card-body time { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.03em; }
.blog-card-body h3 { margin: 10px 0; font-size: 1.12rem; }
.blog-card-body p { font-size: 0.93rem; margin: 0; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  transition: all 0.3s ease;
  outline: none;
  backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--border-glow);
  background: rgba(108, 60, 224, 0.08);
  box-shadow: 0 0 0 4px rgba(108, 60, 224, 0.08);
}

.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--bg-surface); color: var(--white); }

.form-status {
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: var(--radius);
  display: none;
  line-height: 1.4;
}
.form-status.success { display: block; background: rgba(0, 255, 100, 0.08); border: 1px solid rgba(0, 255, 100, 0.3); color: #4cff4c; }
.form-status.error { display: block; background: rgba(255, 45, 120, 0.08); border: 1px solid rgba(255, 45, 120, 0.3); color: var(--accent); }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.contact-info-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateX(4px);
}
.contact-info-item .icon { font-size: 1.6rem; flex-shrink: 0; transition: transform 0.3s ease; }
.contact-info-item:hover .icon { transform: scale(1.2); }
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 3px; }
.contact-info-item p { font-size: 0.86rem; margin: 0; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: 100px 24px;
  background: radial-gradient(ellipse at center, rgba(108, 60, 224, 0.1) 0%, rgba(0, 212, 255, 0.04) 50%, transparent 70%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236C3CE0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { max-width: 520px; margin: 0 auto 32px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 14px; color: var(--text-muted); line-height: 1.6; }
.footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-secondary); font-size: 0.88rem; }
.footer-links a:hover { color: var(--cyan); padding-left: 4px; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  padding: 160px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108, 60, 224, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-header h1 { margin-bottom: 14px; }

.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; letter-spacing: 0.02em; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs span { color: var(--cyan); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Glitch effect on hover ───────────────────────────────── */
.glitch-hover {
  position: relative;
  transition: text-shadow 0.1s;
}
.glitch-hover:hover {
  text-shadow:
    2px 0 var(--accent),
    -2px 0 var(--cyan);
  animation: glitch-skew 0.3s ease-in-out;
}
@keyframes glitch-skew {
  0%, 100% { transform: skew(0deg); }
  25% { transform: skew(1deg); }
  75% { transform: skew(-1deg); }
}

/* ── Security Notice ──────────────────────────────────────── */
.security-notice {
  position: fixed;
  bottom: -120px;
  left: 20px;
  background: rgba(5, 5, 16, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.76rem;
  color: var(--text-muted);
  max-width: 300px;
  z-index: 998;
  transition: bottom 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  backdrop-filter: blur(20px);
  line-height: 1.5;
}
.security-notice.visible { bottom: 24px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .andy-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section::before { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .portfolio-cards { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 40px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .andy-avatar-wrapper { width: 240px; height: 240px; }
  .process-steps { grid-template-columns: 1fr; }

  .card, .portfolio-card, .blog-card { transform-style: flat; }
  .card:hover, .portfolio-card:hover, .blog-card:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 480px) {
  .hero { padding: 120px 16px 70px; }
  .page-header { padding: 130px 0 50px; }
  .card { padding: 28px 20px; }
  .stats-row { gap: 24px; }
  .stat-item { min-width: 120px; }
  .security-notice { left: 8px; right: 8px; max-width: none; }
}
