:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --text: #f0eeff;
  --muted: #8b8aa8;
  --border: rgba(108, 99, 255, 0.15);
  --card: rgba(255,255,255,0.03);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' 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: 999;
  opacity: 0.4;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.8);
  border-bottom: 0.5px solid var(--border);
  transition: border-color 0.3s ease;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent2); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 300;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
  padding: 1.5rem 2rem 2rem;
  z-index: 199;
  flex-direction: column;
  gap: 0;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.25s ease;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
}
.nav-drawer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.9rem 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--text); }

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 4rem;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-section { max-width: none; margin: 0; }

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 70%);
  top: 20%; right: 10%;
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.1);
  border: 0.5px solid rgba(108,99,255,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.4s forwards;
}
h1 .line2 {
  color: transparent;
  -webkit-text-stroke: 1px rgba(167,139,250,0.5);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.8s forwards;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #7c74ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.3);
}

.btn-outline {
  color: var(--text);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  border: 0.5px solid rgba(255,255,255,0.15);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}
.scroll-line {
  width: 40px;
  height: 0.5px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--accent2);
  animation: slideLine 2s ease infinite;
}
@keyframes slideLine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.section-wrap {
  padding: 6rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  line-height: 1.15;
}

.section-divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.25rem;
}
.about-text p strong { color: var(--text); font-weight: 500; }

.about-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 0.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--card);
}
.link-pill:hover {
  border-color: rgba(108,99,255,0.4);
  color: var(--text);
  background: rgba(108,99,255,0.08);
}
.link-pill svg { width: 13px; height: 13px; flex-shrink: 0; }

.skills-column h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.skill-group { margin-bottom: 1.75rem; }
.skill-group-title {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: all 0.2s ease;
  cursor: default;
}
.skill-tag:hover {
  border-color: rgba(108,99,255,0.4);
  color: var(--text);
  background: rgba(108,99,255,0.06);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 0.5px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(108,99,255,0.5);
  margin-left: -3.5px;
}
.timeline-date {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.timeline-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.timeline-org {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.timeline-desc {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 520px;
}
.timeline-link {
  color: var(--accent2);
  text-decoration: none;
}
.timeline-link:hover { text-decoration: underline; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(108,99,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.project-card:hover {
  border-color: rgba(108,99,255,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.project-card:hover::after { opacity: 1; }

.project-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(108,99,255,0.12);
  border: 0.5px solid rgba(108,99,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.project-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.project-tag {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(108,99,255,0.1);
  color: var(--accent2);
  border: 0.5px solid rgba(108,99,255,0.15);
}
.project-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--accent2);
  font-weight: 500;
  margin-top: 4px;
}
.project-live svg { width: 12px; height: 12px; }

.edu-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s ease;
}
.edu-card:hover { border-color: rgba(108,99,255,0.35); }
.edu-year {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 3px;
  min-width: 90px;
}
.edu-details h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.edu-school {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.edu-note {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 300;
  font-style: italic;
}

.wwoof-banner {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  transition: border-color 0.3s ease;
}
.wwoof-banner:hover { border-color: rgba(108,99,255,0.35); }
.wwoof-flags { font-size: 1.8rem; letter-spacing: 0.15rem; flex-shrink: 0; }
.wwoof-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.wwoof-text p { font-size: 0.85rem; color: var(--muted); font-weight: 300; }

#contact {
  text-align: center;
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.contact-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.25rem;
}
.contact-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.contact-sub {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 380px;
  margin: 0 auto 2.5rem;
}
.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

footer {
  border-top: 0.5px solid var(--border);
  padding: 1.75rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; }

.github-summary {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
}
.github-summary-link {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 500;
}
.github-summary-link:hover { text-decoration: underline; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: flex; }

  #hero { padding: 0 1.5rem; padding-top: var(--nav-h); min-height: 100svh; }
  .hero-glow, .hero-glow2 { display: none; }
  .scroll-hint { display: none; }

  .section-wrap { padding: 4rem 1.5rem; }
  .section-divider { margin: 0 1.5rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .edu-card { flex-direction: column; gap: 0.4rem; padding: 1.25rem 1.5rem; }
  .edu-year { min-width: auto; }
  .wwoof-banner { flex-direction: column; gap: 1rem; padding: 1.5rem; align-items: flex-start; }
  footer { flex-direction: column; gap: 1rem; padding: 1.5rem; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  .contact-actions { flex-direction: column; align-items: center; }
  .contact-actions .btn-primary, .contact-actions .btn-outline { width: 100%; max-width: 320px; text-align: center; }
  .projects-grid { grid-template-columns: 1fr; }
}
