/* LSD-inspired portfolio — trippy, fluid, immersive */

:root {
  --rainbow-1: #ff006e;
  --rainbow-2: #8338ec;
  --rainbow-3: #3a86ff;
  --rainbow-4: #06d6a0;
  --rainbow-5: #ffbe0b;
  --rainbow-6: #fb5607;
  --glow: rgba(255, 0, 110, 0.4);
  --bg-dark: #0a0a0f;
  --text-bright: #f0e6ff;
  --text-muted: rgba(240, 230, 255, 0.85);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-dark);
  color: var(--text-bright);
  min-height: 100vh;
  overflow-x: hidden;
}

#p5-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  background: rgba(6, 6, 14, 0.96);
  box-shadow:
    0 32px 120px rgba(0, 0, 0, 0.95),
    0 0 70px rgba(131, 56, 236, 0.35),
    0 0 90px rgba(6, 214, 160, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.content::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 740px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(131, 56, 236, 0.04) 30%,
    rgba(6, 214, 160, 0.03) 70%,
    transparent 100%);
  animation: aura 8s ease-in-out infinite;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: clamp(3rem, 10vw, 6rem) 0;
}

.name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--rainbow-1), var(--rainbow-2), var(--rainbow-3), var(--rainbow-4));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.8;
}

.glitch::before {
  color: var(--rainbow-4);
  animation: glitch1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  color: var(--rainbow-2);
  animation: glitch2 2.5s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

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

@keyframes glitch1 {
  0% { transform: translate(-2px, 0); }
  100% { transform: translate(2px, 0); }
}

@keyframes glitch2 {
  0% { transform: translate(2px, 0); }
  100% { transform: translate(-2px, 0); }
}

.tagline {
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.email-link {
  display: inline-block;
  color: var(--rainbow-4);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(6, 214, 160, 0.5);
  border-radius: 999px;
  transition: all 0.3s ease;
  animation: borderPulse 4s ease-in-out infinite;
}

.email-link:hover {
  background: rgba(6, 214, 160, 0.15);
  box-shadow: 0 0 20px var(--glow);
}

@keyframes borderPulse {
  0%, 100% { border-color: rgba(6, 214, 160, 0.5); }
  50% { border-color: rgba(131, 56, 236, 0.6); }
}

/* Sections */
.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--rainbow-1), var(--rainbow-4));
  border-radius: 2px;
  transition: height 0.4s ease;
}

.section:hover::before {
  height: 40%;
  transform: translateY(-50%);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--rainbow-2), var(--rainbow-5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.project-list,
.experience-list {
  list-style: none;
}

.project-list li,
.experience-list li {
  margin-bottom: 0.75rem;
}

.project-list a,
.experience-list a {
  color: var(--text-bright);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
  display: inline-block;
}

.project-list a:hover,
.experience-list a:hover {
  color: var(--rainbow-4);
  border-bottom-color: var(--rainbow-4);
  text-shadow: 0 0 12px var(--glow);
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--rainbow-4);
  text-decoration: none;
  margin-left: 1rem;
}

.footer a:hover {
  text-decoration: underline;
}
