/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: #eaeaea;
  background-color: #0f1115;
}

body {
  margin: 0;
  line-height: 1.6;
}

/* ---------- Layout ---------- */
.container {
  max-width: 960px;
  padding: 0 1.25rem;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  background: #0f1115;
  border-bottom: 1px solid #242a3a;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: #c9c9c9;
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.nav a:hover {
  color: #ffffff;
  background: #1a2030;
}

/* ---------- Main / Hero ---------- */
.site-main {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;        /* vertical alignment */
  gap: 4rem;
}


.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.5px;
  transform: translateY(-120px);
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
  color: #b9b9b9;
  max-width: 42rem;
  transform: translateY(-120px);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}


.hero-text {
  max-width: 520px;
}


/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .header-inner {
    height: auto;
    padding: 0.9rem 0;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-main {
    min-height: auto;
  }
}

/* ---------- Simple Pages ---------- */
.page {
  padding: 3.5rem 0;
}

.page h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  color: #ffffff;
  letter-spacing: -0.4px;
}

.lead {
  color: #b9b9b9;
  max-width: 55ch;
  margin: 0 0 2rem;
}

.card {
  background: #141824;
  border: 1px solid #242a3a;
  border-radius: 12px;
  padding: 1.25rem 1.25rem;
  margin: 0 0 1rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: #ffffff;
}

.card p,
.card li {
  color: #c9c9c9;
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.link-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
}

.link-list li {
  margin: 0.6rem 0;
}

.link-list a {
  color: #eaeaea;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link-list a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ---------- Projects ---------- */
.page-head {
  margin-bottom: 1.75rem;
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.project-card {
  background: #141824;
  border: 1px solid #242a3a;
  border-radius: 14px;
  padding: 1.25rem;

  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.project-top {
  flex: 1;
  min-width: 0;
}


.project-card h2 {
  margin: 0 0 0.6rem;
  color: #ffffff;
  font-size: 1.25rem;
  letter-spacing: -0.2px;
}

.project-desc {
  margin: 0 0 0.9rem;
  color: #c9c9c9;
  max-width: 70ch;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tag {
  font-size: 0.85rem;
  color: #c9c9c9;
  border: 1px solid #242a3a;
  background: #0f1115;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
}


.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid #2c3447;
  background: #141824;
  color: #eaeaea;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 8px;
}

.button:hover {
  background: #1a2030;
  border-color: #3a4660;
  color: #ffffff;
}

.button.primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f1115;
}

.button.primary:hover {
  background: #e8e8e8;
}

.button.disabled {
  background: #2a2f3f;
  border-color: #2a2f3f;
  color: #8b8f9e;
  cursor: not-allowed;
}

.button.disabled:hover {
  background: #2a2f3f;
  border-color: #2a2f3f;
  color: #8b8f9e;
}

.muted {
  color: #9aa0b2;
  font-size: 0.9rem;
}

.resume-actions {
  transform: translateY(-20px);
}

@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  * { box-sizing: border-box; }
  img { max-width: 100%; height: auto; display: block; }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .brand {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
  }

  .site-main {
    padding-top: 120px;
  }

  .hero {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px 28px;

    display: grid;
    place-items: center;
  }

  .hero-image {
    width: min(92vw, 420px);
    margin: 0 auto;
    justify-self: center;
  }

  .hero-image img {
    width: 100%;
    border-radius: 16px;
  }

  .hero-text {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    text-align: center;
    z-index: 2;

    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .hero-text h1 {
    margin: 0 0 6px;
    line-height: 1.05;
  }

  .hero-text p {
    margin: 0;
  }

  .hero-text h1,
  .hero-text p {
    text-shadow: 0 2px 14px rgba(0,0,0,0.70);
  }

  .hero::before, .hero::after,
  .hero-image::before, .hero-image::after,
  .hero-text::before, .hero-text::after {
    content: none !important;
    display: none !important;
  }

  .hero {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .hero-image {
    grid-column: 1 / -1;
    justify-self: center;
  }
}


