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

:root {
  --bg: #0f1117;
  --bg-alt: #13161f;
  --bg-card: #1a1d27;
  --bg-nav: #0f1117ee;
  --accent: #4f8ef7;
  --accent-hover: #6aa3ff;
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --border: #2a2d3a;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

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

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.nav-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

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

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

/* HERO */
#hero {
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 2.5rem;
}

.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--accent);
  margin-bottom: 0.9rem;
}

.hero-content h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.availability {
  display: inline-block;
  font-size: 0.75rem;
  color: #4ade80;
  background: #0d2318;
  border: 1px solid #166534;
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 1.1rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* SECTIONS */
section {
  padding: 5rem 1.5rem;
}

#about,
#projects,
#education {
  background: var(--bg-alt);
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  display: inline-block;
}

h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 36px;
  background: var(--accent);
  margin-top: 0.4rem;
  border-radius: 2px;
}

p {
  color: var(--text-muted);
  line-height: 1.75;
}

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

.timeline-item {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

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

.role {
  font-size: 0.875rem;
  color: var(--accent);
  max-width: none;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.date {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
}

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

.bullets li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.card p {
  font-size: 0.875rem;
  max-width: none;
}

.card .bullets {
  margin-top: 0;
}

.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: #1e2535;
  color: var(--accent);
  border: 1px solid #2a3550;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
}

.skill-group h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.skill-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-group li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.skill-group li::before {
  content: "– ";
  color: var(--border);
}

/* EDUCATION */
.edu-block {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.edu-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.edu-gpa {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: none;
}

.coursework {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

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

/* CONTACT */
.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-links a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

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

/* RESPONSIVE */
@media (max-width: 640px) {
  nav ul {
    gap: 1rem;
  }

  .timeline-header,
  .edu-header {
    flex-direction: column;
  }

  .timeline-meta {
    align-items: flex-start;
  }

  .hero-links {
    flex-direction: column;
    align-items: center;
  }
}
