@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');

:root {
  --bg: #faf9f6;
  --card-bg: #ffffff;
  --ink: #1a1a18;
  --ink-soft: #5b5954;
  --ink-faint: #8a8780;
  --border: #e6e2da;
  --accent: #b5533c;
  --accent-soft: rgba(181, 83, 60, 0.08);
  --accent-soft-strong: rgba(181, 83, 60, 0.14);
  --measure: 640px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif 4', serif;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

p {
  color: var(--ink-soft);
  margin: 0 0 1rem 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  margin: 0;
  padding: 0;
}

.section-heading {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading .cursor {
  color: var(--accent);
}

/********************************** Navigation *********************************/

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.08);
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.navbar-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
}

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

.nav-link {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-link.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

@media screen and (max-width: 700px) {
  .navbar-toggler {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-link {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
  }

  .nav-link.active {
    border-left-color: var(--accent);
    border-bottom-color: var(--border);
  }
}

/********************************** Hero / Greeting *********************************/

.hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  max-width: var(--measure);
  padding: 4.5rem 0 3rem 0;
}

.hero-photo {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.hero-photo:hover {
  box-shadow: 0 10px 30px rgba(181, 83, 60, 0.18);
}

.hero-intro {
  font-size: 1.75rem;
  line-height: 1.4;
  max-width: var(--measure);
}

@media screen and (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
  }

  .hero-intro {
    font-size: 1.4rem;
  }
}

/********************************** Home / About *********************************/

#home {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

#home p {
  max-width: var(--measure);
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem 0;
}

.technology-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.technology-icon:hover {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-4px);
}

.github-note {
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  max-width: var(--measure);
}

/********************************** Experience / Timeline *********************************/

#experience {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.timeline {
  border-left: 2px solid var(--border);
  max-width: 760px;
  margin-top: 2rem;
}

.timeline-item {
  position: relative;
  list-style: none;
  padding: 0 0 2.25rem 2rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline-item:hover::before {
  background-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft-strong);
}

.timeline-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.job-role {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.job-company {
  font-family: 'Inter', sans-serif;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.job-description {
  margin: 0;
  max-width: var(--measure);
}

/********************************** Education *********************************/

#education {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--border);
}

.education-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.education-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.education-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.education-logo {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.education-institution {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.education-degree {
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 1.25rem;
}

.graduation-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-soft);
}

/********************************** Projects *********************************/

#projects {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.project-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.project-description {
  font-size: 14.5px;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: 20px;
  padding: 4px 12px;
}

.project-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  text-align: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-link:hover {
  background-color: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.project-link svg {
  width: 13px;
  height: 13px;
}

/********************************** Contact *********************************/

#contact {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  text-align: center;
}

#contact.container {
  max-width: 560px;
}

#contact p {
  margin-left: auto;
  margin-right: auto;
}

.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  margin: 1.5rem 0 2rem 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.email-link:hover {
  transform: translateY(-6px);
  background-color: var(--accent-soft-strong);
}

#email-icon {
  width: 30px;
  height: 30px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-icon-link {
  display: inline-flex;
}

.contact-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.25s ease;
}

#github-icon {
  border-radius: 6px;
}

.contact-icon:hover {
  transform: translateY(-6px);
}

/********************************** Footer *********************************/

#copyright {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
}

#copyright p {
  color: var(--ink-faint);
  font-size: 12px;
  margin: 0;
}

#copyright a {
  color: var(--ink-faint);
  text-decoration: underline;
}

#copyright a:hover {
  color: var(--accent);
}
