/* ── Force light mode ────────────────────────────────────── */
:root {
  color-scheme: light;
}

/* ── Side padding (home + project pages) ─────────────────── */
.section-padded {
  padding-left: 8rem;
  padding-right: 8rem;
}

@media (max-width: 768px) {
  .section-padded {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ── General ─────────────────────────────────────────────── */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tag {
  font-size: smaller;
}

.footer {
  margin-top: auto;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar-bordered {
  border-bottom: 1px solid #ededed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 2.5rem;
}

.navbar-bordered .navbar-item,
.navbar-bordered .navbar-link {
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.navbar.is-white .navbar-item.is-active,
.navbar.is-white .navbar-link.is-active {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #3273dc;
}

.navbar.is-white .navbar-item:hover,
.navbar.is-white .navbar-link:hover {
  background-color: #f8f8f8;
  color: #3273dc;
}

.navbar.is-white .navbar-brand .navbar-item {
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #363636;
}

.navbar-bordered .navbar-item,
.navbar-bordered .navbar-link {
  font-size: 1rem;
}

.navbar.is-white .navbar-dropdown .navbar-item:hover {
  background-color: #f0f4ff;
  color: #3273dc;
}

.hero-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: block;
  margin: 0 auto;
}

.hero-photo-mobile {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: block;
  margin: 0 auto;
}

/* ── Home — skill boxes ──────────────────────────────────── */
.skill-box {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.skill-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ── Home — project cards ────────────────────────────────── */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-card .card-content {
  flex: 1;
}

/* ── Resume — section titles ─────────────────────────────── */
.resume-section-title {
  color: #363636;
}

/* ── Resume — org logos ──────────────────────────────────── */
.org-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  padding: 3px;
  display: block;
}

.org-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* ── Resume — job entries ────────────────────────────────── */
.resume-job {
  padding-left: 1rem;
  border-left: 3px solid #e8e8e8;
}

.resume-bullets {
  list-style: disc;
  margin-left: 1.4rem;
  margin-top: 0.5rem;
}

.resume-bullets li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
  font-size: 1rem;
}

/* ── Project doc — feature boxes ────────────────────────── */
.feature-box {
  transition: box-shadow 0.15s ease;
}

.feature-box:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ── Project doc — sticky sidebar ───────────────────────── */
.sticky-sidebar {
  position: sticky;
  top: 1.5rem;
}

/* ── Project doc — TOC ───────────────────────────────────── */
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  border-bottom: 1px solid #f0f0f0;
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  display: block;
  padding: 0.4rem 0.25rem;
  font-size: 1rem;
  color: #4a4a4a;
  transition: color 0.1s;
}

.toc-list a:hover {
  color: #3273dc;
}

/* ── Project doc — screenshot & video placeholders ──────── */
.screenshot-placeholder {
  border: 2px dashed #dbdbdb;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  color: #bbb;
  min-height: 200px;
  cursor: default;
}

.screenshot-placeholder .placeholder-label {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

.video-placeholder {
  border: 2px dashed #dbdbdb;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #bbb;
  aspect-ratio: 16 / 9;
  cursor: default;
  width: 100%;
}

.video-placeholder .placeholder-label {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
}

/* ── Hero body: remove side padding when section-padded handles it ── */
.section-padded.hero .hero-body {
  padding-left: 0;
  padding-right: 0;
}

/* ── Navbar sub-items (e.g. Documentation / App Demo) ───── */
.nav-sub-item {
  padding-left: 2.5rem !important;
  font-size: 0.95rem;
}

.nav-sub-marker {
  color: #b5b5b5;
  margin-right: 0.4rem;
  font-size: 0.9rem;
}

/* ── Launch App button (project hero) ───────────────────── */
.launch-btn {
  font-size: 1rem;
  padding: 0.5em 1em;
}

@media (max-width: 768px) {
  .launch-btn {
    font-size: 0.8rem;
    padding: 0.35em 0.75em;
  }
}

/* ── Breadcrumb on dark/primary hero ────────────────────── */
.hero.is-primary .breadcrumb a,
.hero.is-dark .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.hero.is-primary .breadcrumb li.is-active a,
.hero.is-dark .breadcrumb li.is-active a {
  color: #fff;
}

.hero.is-primary .breadcrumb ul::before,
.hero.is-primary .breadcrumb li + li::before,
.hero.is-dark .breadcrumb ul::before,
.hero.is-dark .breadcrumb li + li::before {
  color: rgba(255, 255, 255, 0.5);
}
