/* =========================
   Base
========================= */

:root {
  --bg: #0b0d10;
  --surface: #12151a;
  --border: #252a32;
  --text: #f2f4f7;
  --muted: #9da5b1;
  --accent: #67e8f9;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* =========================
   Navigation
========================= */

nav {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;

  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;

  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
}

.site-home {
  margin-right: auto;
  color: var(--text);
  font-weight: 700;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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


/* =========================
   Main Layout
========================= */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: 0;
}

/* =========================
   Site Home / Brand
   ========================= */

.site-home {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-home-mark {
  font-weight: 700;
}

.site-home-name {
  opacity: 0.6;
}

.site-home:hover .site-home-name {
  opacity: 1;
}

/* =========================
   Hero
========================= */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-top: 7rem;
  padding-bottom: 7rem;
}

.hero > p:first-child {
  color: var(--accent);
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

.hero h2 {
  color: var(--muted);

  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;

  margin-bottom: 2rem;
}

.hero > p:last-child {
  max-width: 650px;

  color: var(--muted);
  font-size: 1.15rem;
}


/* =========================
   Content Sections
========================= */

section:not(.hero) h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

section:not(.hero) p {
  max-width: 750px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* =========================
   Expertise
   ========================= */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.expertise-item {
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.expertise-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.expertise-item p {
  margin: 0;
}


/* =========================
   Selected Work
   ========================= */

#work ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

#work li {
  position: relative;
  margin-bottom: 0.85rem;
  padding-left: 1.4rem;
}

#work li::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0.55;
}

#work li:last-child {
  margin-bottom: 0;
}

#work strong {
  font-weight: 600;
}


/* =========================
   Experience
   ========================= */

.experience-item {
  margin-top: 1.75rem;
}

.experience-item:first-of-type {
  margin-top: 0;
}

.experience-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.experience-item .role {
  margin: 0 0 0.5rem;
  opacity: 0.65;
  font-size: 0.9rem;
}

/* =========================
   Projects
   ========================= */

.project-item {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.project-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.project-type {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

.project-item > p:not(.project-type):not(.tech-line) {
  margin-bottom: 0;
}

.tech-line {
  margin: 1.25rem 0 0;
  padding: 0.5rem 0.65rem;
  background: #414141;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #f1f1f1;
  letter-spacing: 0.01em;
}

.tech-line span {
  margin: 0 0.3rem;
  opacity: 0.7;
}



/* =========================
   Entity
   ========================= */

.entity-list {
  margin: 1.5rem 0 0;
}

.entity-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.entity-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.entity-row dt {
  font-weight: 600;
  color: #aaa;
}

.entity-row dd {
  margin: 0;
}

@media (max-width: 600px) {
  .entity-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 700px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   Selection
========================= */

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


/* =========================
   Mobile
========================= */

@media (max-width: 700px) {

 nav {
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
}

  main {
    padding: 0 1.25rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero {
    min-height: 70vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }
}
/* =========================
   Footer
========================= */

footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;

  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner > :nth-child(2) {
  text-align: center;
}

.footer-inner > :last-child {
  text-align: right;
}

@media (max-width: 700px) {
  .footer-inner {
    padding: 1.5rem 1.25rem;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-inner > :last-child {
    text-align: center;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.show {
  opacity: 0.8;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 600px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}
