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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-hover: #1c1c1c;
  --border: #222;
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #ff6b9d;
  --accent-dim: rgba(255, 107, 157, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navigation ── */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(10, 10, 10, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 22px;
  width: auto;
  filter: invert(1);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.logo:hover img {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

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

.nav-links a.active {
  color: var(--text);
}

/* ── Hero ── */

#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

#flower-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#flower-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  pointer-events: none;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

/* Hero entrance animation */
.hero-fade {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.8s ease forwards;
  animation-delay: calc(var(--delay, 0) * 0.2s + 0.3s);
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

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

/* ── Sections ── */

section:not(#hero) {
  padding: 7rem 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* ...existing code... */
.section-inner h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem 0;
  padding: 0; /* keep same section padding, don't shift the heading */
}

.section-inner h2::after {
  content: "";
  display: block;
  flex: 1;
  height: 1px;
  background: var(--border); /* choose subtle color that fits your theme */
  border-radius: 1px;
  margin-left: 0.5rem;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

/* ── Scroll-triggered fade-in ── */

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Staggered children reveal ── */

.timeline-item,
.project-card,
.skill-group,
.extra-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ── Bio ── */

.bio {
  max-width: 600px;
}

.bio-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.bio-text:last-child {
  margin-bottom: 0;
}

/* ── Timeline (Experience) ── */

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 107, 157, 0.4);
  border: 2px solid var(--bg);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.timeline-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.company {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-body ul {
  list-style: none;
  padding: 0;
}

.timeline-body li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-body li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #333;
}

/* ── Project Cards ── */

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

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

/* spotlight glow that follows the mouse */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    350px circle at var(--mouse-x, -200px) var(--mouse-y, -200px),
    rgba(255, 107, 157, 0.1),
    transparent 70%
  );
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #333;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* view all on GitHub CTA */
.github-cta-wrap {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.github-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s, color 0.25s;
}

.github-cta:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.15);
}

.github-cta svg {
  flex-shrink: 0;
  animation: githubPulse 3s ease-in-out infinite;
}

.github-cta:hover svg {
  animation: none;
}

@keyframes githubPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── Tags (shared) ── */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags span {
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.tags span:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* project links */
.project-links {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.project-links a {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 107, 157, 0.15);
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s, transform 0.2s;
}

.project-links a:hover {
  background: rgba(255, 107, 157, 0.25);
  transform: translateY(-1px);
}

/* ── Skills ── */

.skills-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.skill-group h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

/* ── Extra Section ── */

.extra-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  max-width: 540px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.extra-card:hover {
  transform: translateY(-4px);
  border-color: #333;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.extra-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
}

.extra-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.extra-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.extra-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.extra-link:hover {
  opacity: 0.75;
}

/* ── DJ Layout ── */

.dj-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.dj-layout .extra-card {
  flex-shrink: 0;
}

/* ── DJ Board ── */

.dj-board-section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dj-board-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

#dj-board-container {
  width: 100%;
  height: 440px;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}

#dj-board-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#connect {
  padding-top: 2rem;
}

/* ── Connect ── */

.connect-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.connect-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.25s, transform 0.25s;
}

.connect-item:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.connect-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}

.connect-item:hover .connect-icon {
  border-color: var(--accent);
}

.connect-item span {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

/* ── Footer ── */

footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.75rem;
  color: #444;
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */

/* ── Hamburger button (hidden on desktop) ── */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
  }

  .nav-links a::after {
    display: none;
  }

  .timeline {
    padding-left: 1.25rem;
  }

  .timeline-item::before {
    left: -1.6rem;
  }

  .extra-card {
    flex-direction: column;
    gap: 1rem;
  }

  .dj-layout {
    flex-direction: column;
  }

  .dj-layout .extra-card {
    max-width: none;
    width: 100%;
  }

  #dj-board-container {
    height: 270px;
  }
}
