/* =========================================================
   COLOR SYSTEM
   ---------------------------------------------------------
   Change these values once and the whole site updates.
   ========================================================= */
:root {
  --primary: #FFCC00;
  --secondary: #1F4E79;
  --navy-footer: #19324d;
  --bg: #f8f9fa;
  --text: #2b2b2b;
  --subtext: #6c757d;
  --line: #e7dfcb;
  --card: #ffffff;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(19, 27, 35, 0.08);
  --radius: 22px;
}

/* =========================================================
   BASE
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1rem; color: var(--subtext); }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h2 { font-size: clamp(3.4rem, 7vw, 5.8rem); }
h3 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h4 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h6 { font-size: 1.45rem; }

.subtitle {
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: none;
}

.wrapper {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}
.narrow {
  width: min(860px, calc(100% - 64px));
  margin: 0 auto;
}

/* =========================================================
   REUSABLE HOVER HIGHLIGHT
   ---------------------------------------------------------
   Used for:
   - navigation
   - text links
   - about actions
   - portfolio filter tags
   - project titles
   ========================================================= */
#top nav a,
.text-link,
.button-1,
.button-2,
.filter-chip,
.title-link {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

#top nav a::after,
.text-link::after,
.button-1::after,
.button-2::after,
.filter-chip::after,
.title-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 4px;
  background: rgba(255, 204, 0, 0.35);
  transition: background 0.2s ease;
}

#top nav a:hover,
#top nav a.is-active,
.text-link:hover,
.button-1:hover,
.button-2:hover,
.filter-chip:hover,
.filter-chip.is-active,
.title-link:hover {
  background: var(--primary);
  color: var(--text);
}

#top nav a:hover::after,
#top nav a.is-active::after,
.text-link:hover::after,
.button-1:hover::after,
.button-2:hover::after,
.filter-chip:hover::after,
.filter-chip.is-active::after,
.title-link:hover::after {
  background: var(--primary);
}

/* =========================================================
   HEADER
   ========================================================= */
#top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 249, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { margin: 0; }
.logo a,
.footer-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.footer-icon { width: 48px; height: 48px; }

#top nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
#top nav a {
  padding: 4px 2px;
  font-size: 1.1rem;
}

/* =========================================================
   HERO
   ---------------------------------------------------------
   The hero uses the photo as a full-width background, but
   the text sits in a dedicated left column so it does not
   overlap your portrait.
   ========================================================= */
#banner {
  position: relative;
  min-height: 860px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}

/* Background image layer */
#banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/header-image.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 28% center;
  transform: scale(1.04);
  transform-origin: center;
}

/* Dark overlay only where the text needs contrast */
#banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.64) 24%,
    rgba(0, 0, 0, 0.36) 44%,
    rgba(0, 0, 0, 0.12) 62%,
    rgba(0, 0, 0, 0.02) 100%
  );
}

.banner-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  min-height: 860px;
}

/* Text block in the left column */
.hero-copy {
  grid-column: 1;
  max-width: 520px;
  padding: 120px 0;
}

#banner h2 {
  max-width: 500px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(4rem, 7vw, 6.2rem);
  line-height: 0.96;
  text-align: left;
  text-transform: none;
}
#banner p.subtitle {
  max-width: 400px;
  margin: 0 0 34px 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  line-height: 1.45;
  text-align: left;
  letter-spacing: -0.01em;
}

/* Buttons align to the left so the hero feels editorial */
.buttons {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
}
#banner .button-1,
#banner .button-2 {
  color: var(--white);
}
#banner .button-1::after,
#banner .button-2::after {
  background: var(--primary);
}
#banner .button-1:hover,
#banner .button-2:hover {
  background: var(--primary);
  color: #000;
}

/* =========================================================
   SECTION SPACING / GENERAL LAYOUT
   Keep padding height tight
   ========================================================= */
.text-section,
.portfolio-section,
.page-section {
  padding: 78px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: start;
}
.image-panel img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.about-copy {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.list-checkmarks {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.list-checkmarks li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}
.list-checkmarks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 11px;
  height: 11px;
  background: var(--primary);
  border-radius: 50%;
}
.about-actions {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
.prose-block p + p {
  margin-top: 1rem;
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio-shell > .subtitle,
.portfolio-shell > h3 {
  text-align: center;
}
.portfolio-shell > h3 {
  margin-bottom: 1.5rem;
}
.filter-row {
  display: flex;
  gap: 16px 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 56px;
  max-width: 1000px;
}
.filter-chip {
  border: 0;
  background: none;
  padding: 0 0 2px;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.portfolio-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.portfolio-card {
  background: var(--card);
}
.portfolio-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.portfolio-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.portfolio-thumb:hover img {
  transform: scale(1.04);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.52) 100%);
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #000;
  color: var(--primary);
  font-weight: 800;
}
.more-link::after { content: '→'; }
.portfolio-card-body {
  padding-top: 22px;
}
.portfolio-card-title {
  margin-bottom: 0.8rem;
  font-size: 1.85rem;
}
.portfolio-card-text {
  max-width: 55ch;
  font-size: 1.02rem;
}
/* Small project tags are intentionally simple and do not use the hover highlight. */
.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.project-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--subtext);
  font-size: 0.82rem;
  font-weight: 700;
  background: #fff;
}

/* =========================================================
   RESUME
   ---------------------------------------------------------
   Two-column layout:
   - left: awards and certificates
   - right: education, experience, volunteer work
   ========================================================= */
.resume-page .page-section {
  padding-top: 60px;
}
.resume-shell {
  display: grid;
  gap: 44px;
}
.resume-header {
  max-width: 760px;
}
.resume-summary {
  max-width: 720px;
  font-size: 1.05rem;
}
.resume-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 32px;
  align-items: start;
}
.resume-column {
  display: grid;
  gap: 24px;
}
.resume-block {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.resume-block h4 {
  margin-bottom: 1rem;
}
.resume-item + .resume-item {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 1rem;
  padding-top: 1rem;
}
.resume-role {
  font-weight: 800;
  color: var(--text);
}
.resume-org,
.resume-meta {
  color: var(--subtext);
}
.resume-org {
  margin-top: 0.2rem;
}
.resume-meta {
  font-size: 0.95rem;
  margin: 0.15rem 0 0.55rem 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 56px 0 72px;
  background: var(--navy-footer);
  color: var(--white);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-note {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,0.88);
}
.footer-right {
  display: flex;
  gap: 18px;
}
.footer-link {
  position: relative;
  display: inline-block;
  color: var(--white);
  font-weight: 800;
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 4px;
  background: rgba(255, 204, 0, 0.45);
}
.footer-link:hover {
  background: var(--primary);
  color: #000;
}
.footer-link:hover::after {
  background: var(--primary);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media only screen and (min-width: 1440px) {
  #banner::before {
    background-position: 24% center;
  }
}

@media (max-width: 1199px) {
  #banner {
    min-height: 760px;
  }
  .banner-content {
    min-height: 760px;
    grid-template-columns: 1fr 1fr;
  }
  #banner::before {
    background-position: 38% center;
  }
  .hero-copy {
    max-width: 470px;
    padding: 96px 0;
  }
  #banner h2 {
    max-width: 460px;
  }
  #banner p.subtitle {
    max-width: 380px;
  }
}

@media (max-width: 980px) {
  .about-grid,
  .portfolio-list,
  .resume-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    gap: 40px;
  }
  #banner {
    min-height: 720px;
  }
  .banner-content {
    min-height: 720px;
    grid-template-columns: 1fr;
  }
  #banner::before {
    background-position: 48% center;
  }
  #banner::after {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.80) 0%,
      rgba(0, 0, 0, 0.62) 42%,
      rgba(0, 0, 0, 0.22) 100%
    );
  }
  .hero-copy {
    max-width: 440px;
    padding: 84px 0;
  }
  #banner h2 {
    max-width: 430px;
  }
  #banner p.subtitle {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrapper,
  .narrow {
    width: min(100% - 32px, 1240px);
  }

  .header-inner {
    min-height: 84px;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }
  #top nav ul {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  #banner {
    min-height: 560px;
  }
  .banner-content {
    min-height: 560px;
  }
  #banner::before {
    background-position: 56% center;
    transform: scale(1.08);
  }
  #banner::after {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.62) 54%,
      rgba(0, 0, 0, 0.24) 100%
    );
  }
  .hero-copy {
    max-width: 300px;
    padding: 64px 0;
  }
  #banner h2 {
    max-width: 300px;
    font-size: 3.2rem;
  }
  #banner p.subtitle {
    max-width: 280px;
    font-size: 1.15rem;
    margin-bottom: 26px;
  }
  .buttons {
    gap: 18px;
  }

  .text-section,
  .portfolio-section,
  .page-section {
    padding: 78px 0;
  }

  .filter-row {
    justify-content: flex-start;
  }

  .footer-inner,
  .footer-left {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   CALL TO ACTION - CONTACT
   ========================================================= */
.cta-section {
  text-align: center;
  /* keep padding height tight */
  padding: 40px 0; 
  background: #f8f9fa; /* off-white */
}

.cta-section h3 {
  margin-bottom: 10px;
}

.cta-section p {
  color: #6C757D;
  margin-bottom: 10px;
}

.cta-buttons a {
  margin: 10px;
}

/* About → Portfolio (reduce top of portfolio) */
.portfolio-section {
  padding-top: 40px;
}

/* Portfolio → CTA (reduce both) */
.portfolio-section {
  padding-bottom: 40px;
}

.cta-section {
  padding-top: 40px;
}
/* Note item in Edu section */
.edu-note {
  opacity: 0.7;
  font-size: 0.3em;
}