:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a26;
  --text: #e8e8ed;
  --text-muted: #8888a0;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-light);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 8rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-greeting {
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
  font-weight: 500;
}

.hero-tagline {
  max-width: 480px;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Hero Image */
.hero-image {
  position: relative;
  flex-shrink: 0;
}

.image-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 3px solid var(--accent);
  background: var(--bg-elevated);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.image-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(99, 102, 241, 0.3);
  animation: spin 20s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.floating-badge {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: float 3s ease-in-out infinite;
}

.badge-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 15%;
  left: -30px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
  font-family: var(--mono);
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--bg-card);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--text);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlight-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.highlight-card:hover {
  border-color: var(--accent);
}

.highlight-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.highlight-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 2rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

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

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
  padding-top: 1.5rem;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
}

.timeline-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  min-height: 40px;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-card {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.timeline-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.timeline-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-light);
}

.timeline-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-light);
  font-weight: 600;
}

.timeline-badge.current {
  background: var(--accent);
  color: white;
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.timeline-org {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-card p strong {
  color: var(--text);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.timeline-tags li {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.skill-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.skill-bar span {
  width: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.bar {
  flex: 1;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 1s ease;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pills span {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}

.skill-pills span:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Contact CTA */
.section-cta {
  padding-bottom: 4rem;
}

.cta-box {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  overflow: hidden;
}

.cta-image img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.cta-content h2 {
  font-size: 1.8rem;
  margin: 0.5rem 0;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

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

/* Resume */
.resume-box {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
}

.resume-content {
  flex: 1;
}

.resume-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.resume-highlights {
  list-style: none;
  margin-bottom: 2rem;
}

.resume-highlights li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.resume-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.download-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.resume-preview {
  flex-shrink: 0;
}

.resume-doc {
  width: 200px;
  height: 260px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transform: rotate(3deg);
  transition: transform 0.3s;
}

.resume-doc:hover {
  transform: rotate(0deg) scale(1.02);
}

.resume-doc-header {
  width: 60%;
  height: 10px;
  background: var(--gradient);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.resume-doc-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  width: 90%;
}

.resume-doc-line.long {
  width: 100%;
}

.resume-doc-line.short {
  width: 55%;
}

.resume-doc-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.resume-doc-label {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Moments page */
.page-main {
  padding-top: 5rem;
}

.moments-hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

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

.moment-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.moment-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.moment-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.moment-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--accent-light);
}

.moment-content h2 {
  font-size: 1.8rem;
  margin: 0.5rem 0;
}

.moment-meta {
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.moment-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.moment-content p strong {
  color: var(--text);
}

.moment-content .timeline-tags {
  margin-top: 1.5rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    padding-top: 6rem;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    margin-bottom: 1rem;
  }

  .image-frame {
    width: 220px;
    height: 220px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .resume-box {
    flex-direction: column;
    text-align: center;
  }

  .resume-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .resume-highlights {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .moment-card {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 2rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

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