/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg: #1a1a1a;
  --fg: #e8e8e8;
  --fg-muted: #b8b8b8;
  --fg-faint: rgba(232, 232, 232, 0.10);
  --accent: #7aa2f7;
  --accent-dim: rgba(122, 162, 247, 0.55);
  --content-width: 760px;
  --bio-width: 480px;
  --photo-size: 200px;
  --transition: 150ms ease;
}

/* ============================================================
   Base
   ============================================================ */
html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 1200px;
  padding: 0 1.5rem;
}

::selection {
  background-color: var(--accent);
  color: var(--bg);
}

/* ============================================================
   Nav
   ============================================================ */
nav.container-fluid {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.75rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  height: auto;
  gap: 0;
}

nav .nav-link,
nav #home-btn,
nav #resume-btn {
  color: var(--fg);
  background-color: transparent;
  text-decoration: none;
  padding: 0.25rem 0;
  font-size: 1rem;
  transition: color var(--transition);
}

nav #home-btn {
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
  margin-right: 1.25rem;
}

nav #resume-btn {
  margin-right: auto;
}

nav .nav-link:hover, nav .nav-link:focus,
nav #home-btn:hover, nav #home-btn:focus,
nav #resume-btn:hover, nav #resume-btn:focus {
  color: var(--accent);
  background-color: transparent;
}

nav a > i {
  color: var(--fg-muted);
  background-color: transparent;
  font-size: 1.15rem;
  margin: 0 0 0 1.1rem;
  height: auto;
  transition: color var(--transition);
}

nav a:hover > i, nav a:focus > i {
  color: var(--accent);
}

/* ============================================================
   Main content layout
   ============================================================ */
main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: 5rem;
  width: 100%;
}

/* ============================================================
   Hero
   ============================================================ */
.intro {
  width: auto;
  text-align: center;
  margin: 0 0 4rem;
}

.intro h1 {
  display: inline-block;
  margin: 0;
  padding: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fg-faint);
}

/* ============================================================
   Bio block (photo + text)
   ============================================================ */
.main-content {
  padding: 0;
  width: 100%;
}

.main-content > div {
  align-items: flex-start;
  gap: 2.5rem;
  width: 100%;
}

#me {
  width: var(--photo-size);
  height: var(--photo-size);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  margin: 0;
}

.bio {
  margin: 0;
  max-width: var(--bio-width);
}

.bio p {
  margin: 0 0 1.25rem;
}

.bio p:first-child {
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.bio p:not(:first-child) {
  color: var(--fg-muted);
}

.bio p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.bio a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent-dim);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.bio a:hover, .bio a:focus {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.bio abbr[title] {
  text-decoration: none;
  cursor: help;
  border-bottom: 1px dotted rgba(232, 232, 232, 0.3);
}

/* ============================================================
   Mobile (<768px)
   ============================================================ */
@media (max-width: 767.98px) {
  body {
    padding: 0 1.25rem;
  }

  main {
    padding-top: 3rem;
  }

  .intro {
    margin-bottom: 2.75rem;
  }

  .main-content > div {
    gap: 0;
    text-align: left;
  }

  #me {
    width: 65%;
    height: auto;
    max-width: 280px;
    margin: 0 auto 2rem;
  }

  .bio {
    max-width: 100%;
  }
}

/* ============================================================
   Footer
   ============================================================ */
footer.container-fluid {
  margin-top: 6rem;
  padding: 1.75rem 0 2rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--fg-faint);
  width: 100%;
  text-align: left;
}

footer .d-flex {
  margin-bottom: 0.5rem;
  justify-content: flex-start !important;
}

footer i {
  color: var(--fg-muted);
  background-color: transparent;
  font-size: 1.1rem;
  margin: 0 1.1rem 0 0;
  height: auto;
  transition: color var(--transition);
}

footer a:hover > i, footer a:focus > i {
  color: var(--accent);
}

footer address {
  font-style: normal;
  display: inline;
}

footer address a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
}

footer address a:hover, footer address a:focus {
  color: var(--accent);
}

footer p {
  display: inline;
  margin: 0 0 0 0.5rem;
}

@media (max-width: 575.98px) {
  footer .d-flex {
    margin-bottom: 0.75rem;
  }

  footer p {
    display: block;
    margin: 0.4rem 0 0;
  }
}
