/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors */
  --black: #05050a;
  --deep: #0a0a14;
  --purple-dark: #1a0a2e;
  --purple: #6b21a8;
  --purple-mid: #9333ea;
  --purple-bright: #c026d3;
  --purple-glow: #e879f9;
  --purple-light: #f0abfc;
  --white: #f8f0ff;
  --grey: #4a3d5c;
  --green: #22c55e;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  /* Font sizes */
  --text-xs: 0.6rem;
  --text-sm: 0.7rem;
  --text-base: 0.75rem;
  --text-md: 0.85rem;
  --text-lg: 1rem;
  --text-xl: 1.2rem;
  --text-2xl: 1.8rem;
  --text-hero: clamp(4rem, 14vw, 11rem);
  --text-section: clamp(2rem, 5vw, 3.5rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.1s;
  --duration-normal: 0.3s;
  --duration-slow: 0.7s;

  /* Z-index layers */
  --z-base: 1;
  --z-content: 10;
  --z-nav: 500;
  --z-mobile-menu: 400;
  --z-cursor: 9998;
  --z-cursor-dot: 9999;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

/* Touch devices: show default cursor, hide custom cursor */
body.is-touch {
  cursor: auto;
}
body.is-touch .cursor,
body.is-touch .cursor-ring {
  display: none;
}
body.is-touch a,
body.is-touch button,
body.is-touch .skill-card,
body.is-touch .project-card,
body.is-touch .hamburger,
body.is-touch .lang-btn {
  cursor: pointer;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
  width: 12px; height: 12px;
  background: var(--purple-glow);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: var(--z-cursor-dot);
  transform: translate(-50%, -50%);
  transition: transform var(--duration-fast) ease, width var(--duration-normal) ease, height var(--duration-normal) ease, opacity var(--duration-normal) ease;
  box-shadow: 0 0 20px var(--purple-glow), 0 0 40px var(--purple-mid);
  mix-blend-mode: screen;
  will-change: transform, width, height, opacity;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--purple-mid);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width var(--duration-normal) ease, height var(--duration-normal) ease, opacity var(--duration-normal) ease;
  opacity: 0.6;
  will-change: transform, width, height, opacity;
}
body:hover .cursor { opacity: 1; }

/* ===== NOISE TEXTURE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-content);
  opacity: 0.4;
  contain: strict;
  will-change: opacity;
}

/* ===== GRID BACKGROUND ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 51, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: var(--z-base);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: linear-gradient(to bottom, rgba(5,5,10,0.95), transparent);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--purple-glow);
  text-shadow: 0 0 20px var(--purple-mid);
  letter-spacing: 0.2em;
  text-decoration: none;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin-right: auto;
}

.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: var(--text-base);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--duration-normal) ease, text-shadow var(--duration-normal) ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--purple-glow);
  transition: width var(--duration-normal) ease;
  box-shadow: 0 0 8px var(--purple-mid);
}

.nav-links a:hover {
  color: var(--purple-glow);
  text-shadow: 0 0 12px var(--purple-mid);
}

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

/* ===== LANG SWITCHER ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-divider {
  color: var(--grey);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--grey);
  font-family: 'Space Mono', monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color var(--duration-fast) ease, text-shadow var(--duration-fast) ease;
  position: relative;
}

.lang-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--purple-glow);
  transition: width var(--duration-normal) ease;
  box-shadow: 0 0 6px var(--purple-mid);
}

.lang-btn:hover {
  color: var(--purple-glow);
  text-shadow: 0 0 10px var(--purple-mid);
}

.lang-btn:hover::after { width: 100%; }

.lang-btn.active {
  color: var(--purple-glow);
  text-shadow: 0 0 12px var(--purple-mid);
}

.lang-btn.active::after { width: 100%; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 1px;
  background: var(--purple-glow);
  transition: all var(--duration-normal) ease;
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,10,0.97);
  z-index: var(--z-mobile-menu);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  backdrop-filter: blur(16px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--text-2xl);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color var(--duration-normal), text-shadow var(--duration-normal);
}
.mobile-menu a:hover {
  color: var(--purple-glow);
  text-shadow: 0 0 30px var(--purple-mid);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 60%, rgba(107,33,168,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 20% 50%, rgba(192,38,211,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 40%, rgba(147,51,234,0.1) 0%, transparent 60%);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite;
  will-change: transform;
}
.orb-1 {
  width: 300px; height: 300px;
  background: rgba(107,33,168,0.15);
  top: 10%; left: -5%;
  animation-duration: 9s;
}
.orb-2 {
  width: 200px; height: 200px;
  background: rgba(192,38,211,0.12);
  bottom: 20%; right: -3%;
  animation-duration: 11s;
  animation-delay: -3s;
}
.orb-3 {
  width: 150px; height: 150px;
  background: rgba(147,51,234,0.1);
  top: 60%; left: 30%;
  animation-duration: 7s;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

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

.hero-tag {
  font-size: var(--text-sm);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.8s ease both;
  animation-delay: 0.2s;
}

.hero-name {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--white) 0%, var(--purple-light) 40%, var(--purple-glow) 70%, var(--purple-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeSlideUp 0.8s ease both;
  animation-delay: 0.4s;
  position: relative;
}

.hero-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--purple-light) 40%, var(--purple-glow) 70%, var(--purple-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
}

.hero-subtitle {
  margin-top: 2rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--grey);
  letter-spacing: 0.1em;
  line-height: 1.8;
  animation: fadeSlideUp 0.8s ease both;
  animation-delay: 0.6s;
}

.hero-subtitle span { color: var(--purple-light); }

.hero-cta {
  margin-top: 3.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s ease both;
  animation-delay: 0.8s;
}

.btn-primary {
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-bright) 100%);
  color: var(--white);
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: var(--text-base);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
  box-shadow: 0 0 30px rgba(147,51,234,0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--purple) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(147,51,234,0.7); }
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  padding: 0.9rem 2.5rem;
  background: transparent;
  color: var(--purple-glow);
  border: 1px solid rgba(232,121,249,0.3);
  font-family: 'Space Mono', monospace;
  font-size: var(--text-base);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all var(--duration-normal) ease;
}

.btn-ghost:hover {
  border-color: var(--purple-glow);
  background: rgba(232,121,249,0.08);
  box-shadow: 0 0 30px rgba(232,121,249,0.2);
  text-shadow: 0 0 10px var(--purple-glow);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeSlideUp 0.8s ease both 1.2s;
  opacity: 0.5;
}

.scroll-indicator span {
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  color: var(--grey);
  text-transform: uppercase;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ===== SECTIONS ===== */
section {
  padding: var(--space-3xl) 2rem;
  position: relative;
  z-index: var(--z-content);
}

.section-header {
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-header--about {
  margin-bottom: 2rem;
}

.section-header--center {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--purple-mid);
  margin-bottom: 0.8rem;
  display: block;
}

.section-header--center .section-number {
  text-align: center;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--text-section);
  font-weight: 900;
  background: linear-gradient(135deg, var(--white) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.section-line {
  margin-top: 1.5rem;
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--purple-mid), var(--purple-bright));
  box-shadow: 0 0 15px var(--purple-mid);
}

.section-line--center {
  margin: 1.5rem auto 0;
}

.container { max-width: 1200px; margin: 0 auto; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 400px;
}

.about-frame {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(147,51,234,0.3);
  position: relative;
  background: linear-gradient(135deg, rgba(26,10,46,0.8) 0%, rgba(5,5,10,0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-frame::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: linear-gradient(135deg, var(--purple-mid), transparent, var(--purple-bright));
  z-index: -1;
  opacity: 0.5;
}

.about-avatar {
  font-family: 'Orbitron', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-glow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(232,121,249,0.5));
  animation: glitchPulse 4s ease-in-out infinite;
}

@keyframes glitchPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(232,121,249,0.4)); }
  50% { filter: drop-shadow(0 0 40px rgba(232,121,249,0.8)) drop-shadow(0 0 80px rgba(147,51,234,0.4)); }
}

.corner-decoration {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--purple-glow);
  border-style: solid;
}
.corner-decoration.tl { top: -5px; left: -5px; border-width: 2px 0 0 2px; }
.corner-decoration.tr { top: -5px; right: -5px; border-width: 2px 2px 0 0; }
.corner-decoration.bl { bottom: -5px; left: -5px; border-width: 0 0 2px 2px; }
.corner-decoration.br { bottom: -5px; right: -5px; border-width: 0 2px 2px 0; }

.about-offset-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 1px solid rgba(192,38,211,0.2);
  z-index: -1;
}

.about-text p {
  color: var(--grey);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: var(--text-md);
}
.about-text p span { color: var(--purple-light); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(147,51,234,0.3);
  background: rgba(26,10,46,0.5);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  color: var(--purple-light);
  margin-bottom: 2rem;
}

.status-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s ease-in-out infinite;
}

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

/* ===== SKILLS SECTION ===== */
.skills-section { background: linear-gradient(to bottom, transparent, rgba(26,10,46,0.3), transparent); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.skill-card {
  padding: 2rem;
  border: 1px solid rgba(147,51,234,0.15);
  background: rgba(10,10,20,0.6);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.skill-card[data-delay="100"] { transition-delay: 0.1s; }
.skill-card[data-delay="200"] { transition-delay: 0.2s; }
.skill-card[data-delay="300"] { transition-delay: 0.3s; }

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107,33,168,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--purple-mid), var(--purple-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  box-shadow: 0 0 15px var(--purple-mid);
}

.skill-card:hover { border-color: rgba(147,51,234,0.4); transform: translateY(-4px); }
.skill-card:hover::before { opacity: 1; }
.skill-card:hover::after { transform: scaleX(1); }

.skill-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.skill-name {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.skill-desc {
  font-size: var(--text-base);
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.skill-bar {
  height: 2px;
  background: rgba(147,51,234,0.15);
  position: relative;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(to right, var(--purple), var(--purple-glow));
  box-shadow: 0 0 10px var(--purple-mid);
  width: 0;
  transition: width 1.5s ease;
}

.skill-fill.animated { width: var(--target-width); }

.skill-percent {
  font-size: var(--text-xs);
  color: var(--purple-mid);
  letter-spacing: 0.2em;
  margin-top: 0.5rem;
  display: block;
  text-align: right;
}

/* ===== PROJECTS SECTION ===== */
.projects-section { background: linear-gradient(to bottom, transparent, rgba(10,10,20,0.5), transparent); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  border: 1px solid rgba(147,51,234,0.15);
  background: rgba(10,10,20,0.7);
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(232,121,249,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(107,33,168,0.3);
}

.project-thumb {
  height: 50%;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.project-thumb-bg--1 {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1258 50%, #0a0a14 100%);
}

.project-thumb-bg--2 {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #0a0a14 100%);
}

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

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,10,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-thumb-overlay { opacity: 1; }

.project-thumb-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(232,121,249,0.8));
}

.project-num {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  color: rgba(232,121,249,0.6);
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.25rem 0.7rem;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(147,51,234,0.3);
  color: var(--purple-light);
  background: rgba(107,33,168,0.1);
}

.tag--beta {
  border-color: rgba(234,179,8,0.5);
  color: #fde047;
  background: rgba(234,179,8,0.08);
}

.project-title {
  font-family: 'Orbitron', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.project-desc {
  font-size: 0.78rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-note {
  font-size: var(--text-sm);
  color: rgba(253,224,71,0.6);
  margin-bottom: 1.2rem;
  margin-top: -0.8rem;
  line-height: 1.6;
}

.project-link {
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-glow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--duration-normal) ease, text-shadow var(--duration-normal) ease;
}

.project-link:hover { gap: 1rem; text-shadow: 0 0 10px var(--purple-glow); }
.project-link::after { content: '\2192'; }

/* ===== CONTACT SECTION ===== */
.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  color: var(--grey);
  line-height: 1.9;
  font-size: var(--text-md);
  margin-bottom: var(--space-xl);
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-item {
  padding: 1rem 2rem;
  border: 1px solid rgba(147,51,234,0.2);
  background: rgba(10,10,20,0.6);
  color: var(--white);
  text-decoration: none;
  font-size: var(--text-base);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--duration-normal) ease;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107,33,168,0.2), rgba(192,38,211,0.1));
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.contact-item:hover {
  border-color: rgba(232,121,249,0.4);
  color: var(--purple-glow);
  text-shadow: 0 0 10px rgba(232,121,249,0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(107,33,168,0.3);
}

.contact-item:hover::before { opacity: 1; }

/* ===== FOOTER ===== */
footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(147,51,234,0.1);
  position: relative;
  z-index: var(--z-content);
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--grey);
  letter-spacing: 0.2em;
}

.footer-text span { color: var(--purple-mid); }

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) ease, transform var(--duration-slow) ease;
}

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

/* ===== GLITCH EFFECT ===== */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--purple-light) 40%, var(--purple-glow) 70%, var(--purple-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glitch::before {
  animation: glitch1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch::after {
  animation: glitch2 4s infinite;
  clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
  0%, 85%, 100% { transform: none; opacity: 0; }
  86% { transform: translateX(-4px); opacity: 0.7; }
  88% { transform: translateX(4px); opacity: 0.5; }
  90% { transform: translateX(0); opacity: 0; }
}

@keyframes glitch2 {
  0%, 88%, 100% { transform: none; opacity: 0; }
  89% { transform: translateX(4px); opacity: 0.7; }
  91% { transform: translateX(-4px); opacity: 0.5; }
  93% { transform: translateX(0); opacity: 0; }
}

/* ===== PARTICLE CANVAS ===== */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-base);
  opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
  }
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .lang-switcher { margin-left: 1rem; gap: 0.25rem; }
  .lang-divider { display: none; }
  .lang-btn { padding: 0.2rem 0.4rem; font-size: 0.55rem; }
  .hamburger { display: flex; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-visual { max-width: 280px; margin: 0 auto; }

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

  section { padding: var(--space-3xl) 1.5rem; }

  .hero { padding: 5rem 1.5rem 3rem; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 280px; text-align: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-links { flex-direction: column; align-items: center; }
  .contact-item { width: 100%; max-width: 300px; justify-content: center; }
}