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

:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --surface: #141414;
  --border: #222;
  --border2: #2a2a2a;
  --accent: #c8f75e;
  --accent-dim: #a8d440;
  --text: #f0f0f0;
  --muted: #666;
  --muted2: #444;
  --radius: 16px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s var(--ease);
}
#navbar.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--accent-dim) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 16px 32px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--text); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(200, 247, 94, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 40px;
  width: fit-content;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.1s forwards;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-name {
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -4px;
  margin-bottom: 32px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}

.hero-name span { display: block; }

.name-outline {
  -webkit-text-stroke: 2px var(--border2);
  color: transparent;
  transition: -webkit-text-stroke 0.3s;
}
.hero-name:hover .name-outline {
  -webkit-text-stroke-color: var(--accent);
}

.hero-sub {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.3s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.4s forwards;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  font-family: 'Syne', sans-serif;
}
.btn-main:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 247, 94, 0.2);
}
.btn-main span { transition: transform 0.2s; }
.btn-main:hover span { transform: translateX(4px); }

.btn-ghost {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}
.btn-ghost:hover { color: var(--text); }

.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.5s forwards;
}

.hero-chips span {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 0;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted2);
  animation: fadeIn 1s ease 1s both;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== ABOUT / BENTO ===== */
#about {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 16px;
}

.bento {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s var(--ease);
}
.bento:hover { border-color: var(--border2); }

.bento-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.bento-bio {
  grid-column: span 7;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-bio h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  flex: 1;
}
.bento-bio h2 em {
  font-style: normal;
  color: var(--accent);
}
.bento-body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.bento-avatar {
  grid-column: span 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  overflow: hidden;
  position: relative;
}

.initials-blob {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #90ee2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg);
  letter-spacing: -2px;
  box-shadow: 0 0 60px rgba(200, 247, 94, 0.15);
}

.bento-school {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.big-text {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--accent);
}
.bento-small {
  font-size: 0.8rem;
  color: var(--muted);
}

.bento-clubs {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tag-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.tag-list li {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
}

.bento-stat {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.stat-n {
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text);
}
.stat-l {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ===== SKILLS ===== */
#skills {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 56px;
}
.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}

.skills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skill-item {
  display: flex;
  gap: 24px;
  padding: 36px;
  background: var(--surface);
  transition: background 0.3s var(--ease);
}
.skill-item:hover { background: #1a1a1a; }

.skill-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted2);
  letter-spacing: 1px;
  padding-top: 4px;
  flex-shrink: 0;
}

.skill-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.skill-content p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ===== PROJECTS ===== */
#projects {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.project-row:last-child { border-bottom: none; }
.project-row::after {
  content: '↗';
  position: absolute;
  right: 40px;
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s var(--ease);
}
.project-row:hover { background: #141414; }
.project-row:hover::after { opacity: 1; transform: translateX(0); }

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-index {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted2);
  letter-spacing: 2px;
}
.project-tag {
  display: inline-block;
  background: rgba(200, 247, 94, 0.08);
  color: var(--accent);
  border: 1px solid rgba(200, 247, 94, 0.2);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  width: fit-content;
}

.project-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.project-info p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  max-width: 500px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-right: 40px;
}
.project-stack span {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== CONTACT ===== */
#contact {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 900px;
}

.contact-heading {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.95;
  margin: 16px 0 56px;
}
.contact-heading em {
  font-style: normal;
  color: var(--accent);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 16px;
  transition: all 0.3s var(--ease);
  letter-spacing: -0.5px;
}
.email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.email-link:hover .arrow-circle {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.arrow-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

/* ===== FOOTER ===== */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted2);
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .bento-bio   { grid-column: span 12; grid-row: span 1; }
  .bento-avatar{ grid-column: span 12; min-height: 200px; }
  .bento-school{ grid-column: span 4; }
  .bento-clubs { grid-column: span 8; }
  .bento-stat  { grid-column: span 12; flex-direction: row; align-items: baseline; gap: 12px; }

  .project-row { grid-template-columns: 1fr; gap: 16px; padding: 28px; }
  .project-row::after { display: none; }
  .project-stack { justify-content: flex-start; padding-right: 0; }

  .skills-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  #hero { padding: 100px 24px 60px; }
  .hero-name { letter-spacing: -3px; }
  .hero-scroll { display: none; }

  .container { padding: 0 20px; }
  #about, #skills, #projects, #contact { padding: 72px 0; }

  .bento-school { grid-column: span 12; }
  .bento-clubs  { grid-column: span 12; }

  .contact-heading { letter-spacing: -2px; }
  footer { padding: 20px; }
}
