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

:root {
  --bg: #0a0a0f;
  --bg-alt: #111118;
  --surface: #1a1a24;
  --surface-hover: #22222e;
  --border: rgba(255,255,255,0.06);
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.3);
  --green: #00cec9;
  --pink: #fd79a8;
  --orange: #fdcb6e;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.accent { color: var(--accent-light); }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.875rem 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav--scrolled { padding: 0.5rem 0; }
.nav__inner {
  max-width: 960px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.nav__links { display: flex; gap: 1.75rem; }
.nav__link {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--accent-light); }

.nav__burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.nav__burger span {
  display: block; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text); border-radius: 2px; transition: 0.3s;
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 9px; }
.nav__burger span:nth-child(3) { top: 18px; }
.nav__burger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
  background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
  padding: 1rem 1.25rem; flex-direction: column; gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu__link {
  color: var(--text-muted); text-decoration: none;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 500; transition: all 0.2s;
}
.mobile-menu__link:hover { background: var(--surface); color: var(--text); }

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 6rem 1.25rem 3rem;
}
.hero__bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4;
}
.shape--1 {
  width: 500px; height: 500px; top: -10%; left: -10%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}
.shape--2 {
  width: 400px; height: 400px; bottom: -5%; right: -5%;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}
.shape--3 {
  width: 300px; height: 300px; top: 40%; right: 20%;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite 2s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__content { position: relative; z-index: 1; }

.hero__avatar {
  width: 120px; height: 120px; margin: 0 auto 2rem;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero__avatar-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--accent);
  animation: spin 6s linear infinite;
  border-top-color: transparent; border-left-color: transparent;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__avatar-letter {
  font-family: 'Inter', sans-serif;
  font-size: 3rem; font-weight: 800;
  color: var(--accent-light);
  background: var(--surface);
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1rem;
}
.hero__title .accent {
  background: linear-gradient(135deg, var(--accent-light), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem; color: var(--text-muted);
  min-height: 1.6em; margin-bottom: 2rem;
}
.hero__subtitle::after {
  content: '|'; animation: blink 0.8s step-end infinite;
  color: var(--accent-light); margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: all 0.3s; cursor: pointer; border: none;
}
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--surface); border-color: var(--accent);
}

.hero__scroll {
  position: absolute; bottom: 2rem; display: flex;
  flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.75rem;
}
.hero__scroll-mouse {
  width: 24px; height: 38px; border: 2px solid var(--text-muted);
  border-radius: 12px; display: flex; justify-content: center;
  padding-top: 6px;
}
.hero__scroll-wheel {
  width: 3px; height: 8px; background: var(--accent-light);
  border-radius: 3px; animation: scroll-wheel 1.5s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* === SECTIONS === */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; text-align: center;
  margin-bottom: 3rem; position: relative;
}
.section__title::after {
  content: ''; display: block;
  width: 50px; height: 4px; margin: 0.75rem auto 0;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  border-radius: 2px;
}

/* === ABOUT === */
.about__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__card--main { grid-column: 1 / -1; }
}
.about__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all 0.3s;
}
.about__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.about__card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.about__card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.about__card p { color: var(--text-muted); font-size: 0.95rem; }

/* === SKILLS === */
.skills__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .skills__grid { grid-template-columns: 1fr 1fr; }
}
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all 0.3s;
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.skill-card__icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.skill-card__name { font-weight: 600; margin-bottom: 0.75rem; }
.skill-card__bar {
  height: 8px; background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden;
}
.skill-card__fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === INTERESTS === */
.interests__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.interest-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; padding: 1.75rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  transition: all 0.3s; cursor: default;
}
.interest-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.interest-card--highlight {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--surface), rgba(0, 206, 201, 0.08));
}
.interest-card--highlight:hover {
  border-color: var(--green);
  box-shadow: 0 10px 40px rgba(0, 206, 201, 0.15);
}
.interest-card--highlight-roblox {
  border-color: var(--pink);
  background: linear-gradient(135deg, var(--surface), rgba(253, 121, 168, 0.08));
}
.interest-card--highlight-roblox:hover {
  border-color: var(--pink);
  box-shadow: 0 10px 40px rgba(253, 121, 168, 0.15);
}
.interest-card__emoji { font-size: 2.5rem; }
.interest-card__text { font-weight: 600; font-size: 0.95rem; color: var(--text); }

/* === CONTACT === */
.contact__grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem; max-width: 700px; margin: 0 auto;
}
@media (min-width: 640px) {
  .contact__grid { grid-template-columns: 1fr 1fr 1fr; }
}
.contact-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; padding: 2rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  transition: all 0.3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.contact-card__icon { font-size: 2rem; }
.contact-card__label { font-weight: 600; font-size: 0.95rem; }
.contact-card__value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; color: var(--text-muted);
}

/* === FOOTER === */
.footer {
  padding: 2rem 0; text-align: center;
  border-top: 1px solid var(--border);
}
.footer__text { font-size: 0.85rem; color: var(--text-muted); }

/* === FADE IN ANIMATION === */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* === PARTICLES CANVAS === */
#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
