/* ══════════════════════════════════════════
   JORGE DANGE — PORTFOLIO CSS
   ══════════════════════════════════════════ */

/* ── RESET & ROOT ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
  --purple-light: #a78bfa;
  --blue: #6366f1;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --green: #10b981;
  --yellow: #f59e0b;

  --bg: #050510;
  --bg-2: #0a0a1a;
  --bg-3: #0f0f24;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.35);

  --text: #f1f0ff;
  --text-2: #a8a7c4;
  --text-3: #6b6a8e;

  --gradient: linear-gradient(135deg, var(--purple), var(--blue));
  --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.3));

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'Fira Code', monospace;

  --nav-h: 72px;
  --section-pad: 120px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 99px;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}

/* ── CANVAS ── */
#particleCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 18px;
  height: 18px;
  background: var(--purple-light);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.15s, width 0.2s, height 0.2s;
}

.cursor-trail {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(139, 92, 246, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  transform: translate(-50%, -50%) scale(1.6);
}

/* ── LOADER ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
}

.loader-code {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--purple-light);
  margin-bottom: 24px;
  min-height: 2.5rem;
}

.loader-bracket {
  color: var(--text-3);
}

.loader-text {
  color: var(--purple-light);
}

.loader-cursor {
  animation: blink 0.7s infinite;
  color: var(--purple);
}

.loader-bar {
  width: 240px;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 99px;
  width: 0%;
  transition: width 0.08s linear;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  z-index: 1000;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}

.nav.scrolled {
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-bracket {
  color: var(--purple-light);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--purple);
  transition: left var(--transition), right var(--transition);
  border-radius: 99px;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-link:hover::after {
  left: 14px;
  right: 14px;
}

.nav-cta {
  padding: 10px 22px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--nav-h) clamp(20px, 5vw, 80px) 60px;
  position: relative;
  overflow: hidden;
  gap: 40px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple), transparent);
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue), transparent);
  top: 20%;
  right: -100px;
  animation-delay: -3s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--cyan), transparent);
  bottom: -100px;
  left: 40%;
  animation-delay: -5s;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeSlideDown 0.8s 0.5s both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  animation: fadeSlideDown 0.8s 0.7s both;
}

.hero-greeting {
  display: block;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  font-weight: 400;
  margin-bottom: 8px;
}

.hero-name {
  display: block;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-name-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--purple-light);
  animation: fadeSlideDown 0.8s 0.9s both;
}

.c-kw,
.role-prefix {
  color: var(--purple-light);
}

.role-blink {
  animation: blink 1s infinite;
}

.hero-desc {
  margin-top: 20px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-2);
  line-height: 1.7;
  animation: fadeSlideDown 0.8s 1.1s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: fadeSlideDown 0.8s 1.3s both;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  width: fit-content;
  animation: fadeSlideDown 0.8s 1.5s both;
  backdrop-filter: blur(10px);
}

.stat-item {
  text-align: center;
  padding: 0 24px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.stat-plus {
  color: var(--purple);
  font-weight: 700;
  font-size: 1.2rem;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ── HERO VISUAL ── */
.hero-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: fadeSlideUp 1s 0.8s both;
}

.avatar-wrapper {
  position: relative;
  width: clamp(260px, 35vw, 380px);
  height: clamp(260px, 35vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: spinRing linear infinite;
}

.ring-1 {
  inset: 0;
  border-color: rgba(139, 92, 246, 0.3);
  border-top-color: var(--purple);
  animation-duration: 8s;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.ring-2 {
  inset: 20px;
  border-color: rgba(99, 102, 241, 0.2);
  border-bottom-color: var(--blue);
  animation-duration: 12s;
  animation-direction: reverse;
}

.ring-3 {
  inset: 40px;
  border-color: rgba(6, 182, 212, 0.15);
  border-right-color: var(--cyan);
  animation-duration: 16s;
}

.avatar-glow {
  position: absolute;
  inset: 60px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}

.avatar-core {
  position: absolute;
  inset: 55px;
  background: linear-gradient(145deg, var(--bg-3), var(--bg-2));
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-svg {
  width: 85%;
  height: 85%;
}

/* Real photo avatar */
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.5));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}

.avatar-photo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.75));
}

/* floating code cards */
.float-card {
  position: absolute;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.fc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fc-green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.fc-blue {
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
}

.fc-purple {
  background: #8b5cf6;
  box-shadow: 0 0 8px #8b5cf6;
}

.fc-1 {
  top: 10%;
  right: -20%;
  animation: floatCard 4s ease-in-out infinite;
}

.fc-2 {
  bottom: 20%;
  left: -20%;
  animation: floatCard 4s 1.5s ease-in-out infinite;
}

.fc-3 {
  bottom: 5%;
  right: -15%;
  animation: floatCard 4s 3s ease-in-out infinite;
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeSlideDown 0.8s 2s both;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--purple);
  border-radius: 99px;
  animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--spring);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: var(--border-glow);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.mt-20 {
  margin-top: 20px;
}

/* ── SECTIONS ── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 60px);
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--purple-light);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.text-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0);
}

/* ── ABOUT ── */
.about {
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-code-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.code-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.cc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.cc-dot.red {
  background: #ff5f57;
}

.cc-dot.yellow {
  background: #febc2e;
}

.cc-dot.green {
  background: #28c840;
}

.cc-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  margin-left: 6px;
}

.code-content {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-x: auto;
}

.c-kw {
  color: #c792ea;
}

.c-var {
  color: #82aaff;
}

.c-key {
  color: #f07178;
}

.c-str {
  color: #c3e88d;
}

.c-num {
  color: #f78c6c;
}

.c-fn {
  color: #82aaff;
}

.about-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.tag {
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
  transition: border-color var(--transition), color var(--transition);
}

.tag:hover {
  border-color: var(--border-glow);
  color: var(--text);
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.skill-category:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.tech-badges {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  grid-column: span 2;
  transition: border-color var(--transition);
}

.tech-badges:hover {
  border-color: var(--border-glow);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.skill-cat-icon {
  font-size: 1.6rem;
}

.skill-cat-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-2);
}

.skill-info span:first-child {
  font-weight: 500;
  color: var(--text);
}

.skill-pct {
  color: var(--purple-light);
  font-family: var(--font-mono);
}

.skill-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 99px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.skill-fill.animated {
  width: var(--w);
}

.badges-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--purple-light);
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), transform var(--spring);
  cursor: default;
}

.tech-badge:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-3px);
}

/* ── PROJECTS ── */
.projects {
  background: var(--bg-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
}

.project-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, hsl(var(--hue), 70%, 20%, 0.15), transparent 70%);
  pointer-events: none;
}

.project-content {
  padding: 28px;
  position: relative;
  z-index: 1;
}

.project-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tag {
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 99px;
  font-size: 0.74rem;
  color: var(--purple-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-stack span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.project-links {
  display: flex;
  gap: 12px;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.proj-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proj-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.proj-link.ghost {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.proj-link.ghost:hover {
  border-color: var(--border-glow);
  color: var(--text);
}

.project-illustration {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
}

.proj-svg {
  width: 100%;
  max-width: 300px;
}

/* ── TESTIMONIALS ── */
.testimonials {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  padding: 8px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 clamp(280px, 40vw, 380px);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.testi-stars {
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testi-text {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: 0.9rem;
}

.testi-author span {
  font-size: 0.78rem;
  color: var(--text-3);
}

.testi-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--border);
  transition: width var(--transition), background var(--transition);
  cursor: pointer;
}

.testi-dot.active {
  width: 24px;
  background: var(--purple);
}

/* ── CONTACT ── */
.contact {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.contact-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--purple-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  display: block;
}

.contact-value {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  display: block;
}

.contact-value:hover {
  color: var(--purple-light);
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--spring), background var(--transition);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}

.social-btn:hover {
  border-color: var(--border-glow);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-4px);
}

.social-btn:hover svg {
  stroke: var(--purple-light);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-success {
  padding: 14px 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  color: var(--green);
  font-weight: 500;
  text-align: center;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-top p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: right;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom span {
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════ KEYFRAMES ═══════════════ */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

@keyframes floatShape {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(20px, -30px) scale(1.05);
  }
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .project-illustration {
    display: none;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .tech-badges {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .avatar-wrapper {
    width: 220px;
    height: 220px;
  }

  .fc-1 {
    top: 0;
    right: -5%;
    font-size: 0.65rem;
  }

  .fc-2 {
    bottom: 5%;
    left: -5%;
    font-size: 0.65rem;
  }

  .fc-3 {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top p {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(5, 5, 16, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-trail {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 0;
  }

  .stat-item {
    padding: 0 14px;
  }

  .stat-num {
    font-size: 1.5rem;
  }
}