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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --text: #e0e0e0;
  --text-muted: #888888;
  --accent: #60a5fa;
  --accent-dim: rgba(96, 165, 250, 0.15);
  --border: #1e1e1e;
  --max-width: 720px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

/* Sections */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4rem;
}

.hero-greeting {
  color: var(--accent);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

#hero h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-location {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

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

.hero-links a {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.hero-links a:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  opacity: 1;
}

/* About */
.about-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

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

/* Experience Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

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

.timeline-header {
  margin-bottom: 1rem;
}

.timeline-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.timeline-role {
  display: block;
  color: var(--accent);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.timeline-date {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.timeline-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-item li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding-left: 1rem;
  position: relative;
}

.timeline-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

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

.skill-category {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.skill-category h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.skill-tags span {
  padding: 0.25rem 0.625rem;
  background: var(--accent-dim);
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--text);
}

/* Education */
.education-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.education-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-school {
  color: var(--accent);
  font-size: 0.9375rem;
}

.education-detail {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* Footer */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 600px) {
  #hero h1 {
    font-size: 2rem;
  }

  #hero h2 {
    font-size: 1.1rem;
  }

  .hero-links {
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.8125rem;
  }

  section {
    padding: 4rem 1rem 2rem;
  }

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