/* ─────────────────────────────────────────────────────────────
   Helen Liu Portfolio — styles.css
   Warm white/beige bg · dark navy + blue text · blue accents
───────────────────────────────────────────────────────────── */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --bg:           #fdfaf5;
  --bg-card:      #f0ebe0;
  --bg-nav:       rgba(253, 250, 245, 0.92);
  --navy:         #1a1a2e;
  --dark-blue:    #1e3a5f;
  --slate:        #5a6a80;
  --light-slate:  #8899aa;
  --accent:       #3a6ab4;
  --accent-hover: #2b5298;
  --accent-light: #eef3fb;
  --border:       #ddd5c5;
  --shadow:       0 10px 30px rgba(26,26,46,0.1);
  --shadow-sm:    0 4px 16px rgba(26,26,46,0.08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --nav-height:   70px;
  --max-width:    1000px;
  --ease:         cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition:   all 0.25s var(--ease);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
::selection { background: var(--accent-light); color: var(--accent); }

.skip-link {
  position: fixed; top: -100%; left: 1rem;
  background: var(--accent); color: white;
  padding: 8px 16px; border-radius: 4px; z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  /* Slide down on load */
  transform: translateY(-100%);
  opacity: 0;
}
#navbar.loaded {
  transform: translateY(0);
  opacity: 1;
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 60px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 2px;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-logo:hover { background: var(--accent-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  padding: 8px 10px;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 10px; right: 10px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-links span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-right: 2px;
}

.btn-resume {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.btn-resume:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Sidebars ────────────────────────────────────────────────── */
.sidebar-left,
.sidebar-right {
  position: fixed;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* Fade in on load — no delay so they appear immediately */
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sidebar-left.loaded,
.sidebar-right.loaded { opacity: 1; }

.sidebar-left  { left: clamp(24px, 3vw, 48px); }
.sidebar-right { right: clamp(24px, 3vw, 48px); }

/* Line below icons/email */
.sidebar-left::after,
.sidebar-right::after {
  content: '';
  display: block;
  width: 1px;
  height: 90px;
  background: var(--slate);
  opacity: 0.5;
}

/* Social icons */
.social-list { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.social-list a {
  color: var(--light-slate);
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.social-list a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}
.social-list svg { width: 19px; height: 19px; }

/* Email (rotated) */
.email-link {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--light-slate);
  transition: var(--transition);
  margin-bottom: 20px;
}
.email-link:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

/* ── Mobile Menu ────────────────────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,26,46,0.5);
  z-index: 150; opacity: 0;
  transition: opacity 0.3s;
}
.mobile-overlay.open { display: block; opacity: 1; }

.mobile-menu {
  position: fixed; top: 0; right: 0;
  width: min(80vw, 300px); height: 100vh;
  background: var(--bg-card);
  z-index: 200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 2rem;
  transform: translateX(110%);
  transition: transform 0.35s var(--ease);
  box-shadow: -8px 0 40px rgba(26,26,46,0.15);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  font-size: 1.1rem; color: var(--slate); cursor: pointer;
  transition: var(--transition);
}
.mobile-close:hover { color: var(--accent); }

.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: 0.5rem 0; }
.mobile-link {
  font-size: 0.95rem; font-weight: 500;
  color: var(--navy); display: block; padding: 6px 12px;
  border-radius: 4px; transition: var(--transition);
}
.mobile-link span {
  font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--accent);
  display: block; margin-bottom: 1px;
}
.mobile-link:hover { color: var(--accent); background: var(--accent-light); }

/* ── Layout ─────────────────────────────────────────────────── */
main { padding-top: var(--nav-height); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}

.section { padding: clamp(60px, 10vw, 100px) 0; }

/* ── Section Heading ────────────────────────────────────────── */
.section-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--dark-blue);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  white-space: nowrap;
}
.section-heading span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
}
.heading-line {
  flex: 1; height: 1px;
  background: var(--border);
  min-width: 40px;
}

/* ── Scroll fade-in ─────────────────────────────────────────── */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-section.visible { opacity: 1; transform: translateY(0); }

/* ── Page load animation ────────────────────────────────────── */
.load-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--delay, 0s);
}
.load-anim.loaded { opacity: 1; transform: translateY(0); }

/* ── Hero ───────────────────────────────────────────────────── */
.section-hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 60px 0;
}
/* flex children don't auto-stretch to max-width — force full width
   so margin: auto centering matches block-layout sections */
.section-hero .container { width: 100%; }

.overline {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.hero-name {
  /* Desktop cap and the fluid vw term are reduced by 10pt from the original.
     The lower bound is set independently: phones don't need the same reduction,
     and carrying it down there collapsed the hero below the body text. */
  font-size: clamp(1.9rem, 4.9vw, 3.67rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-tagline {
  /* Same treatment as .hero-name: 10pt off the desktop cap, but floored well above
     .hero-bio (1.05rem) so the tagline still outranks the paragraph beneath it. */
  font-size: clamp(1.35rem, 3.7vw, 2.37rem);
  font-weight: 700;
  color: var(--slate);
  line-height: 1.15;
  margin-bottom: 28px;
  max-width: 700px;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.btn-outline {
  display: inline-block;
  padding: 16px 28px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(58,106,180,0.2);
}

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--slate);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.75;
}
.about-text a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.about-text a:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.about-text strong { color: var(--dark-blue); }

.skills-label {
  font-size: 0.95rem;
  color: var(--navy);
  margin: 24px 0 12px;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
}
.skills-grid li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
}
.skills-grid li::before { content: '▹'; color: var(--accent); font-size: 0.75rem; }

/* Photo with bracket decoration */
.about-photo-col { display: flex; justify-content: center; }

.photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
}
.photo-box {
  position: relative;
  z-index: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: var(--transition);
}
/* height:auto is load-bearing — the <img> carries width/height attributes (which prevent
   layout shift while loading), and without it that height="800" is applied literally
   against a ~280px-wide box, stretching the portrait vertically. */
.photo-box img { width: 100%; height: auto; display: block; filter: grayscale(20%); transition: var(--transition); }
.photo-box:hover img { filter: none; }

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 4px;
}
.photo-placeholder small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--light-slate);
  text-align: center;
}

/* Bracket decoration box */
.photo-wrapper::after {
  content: '';
  position: absolute;
  top: 14px; left: 14px;
  width: 100%; height: 100%;
  border-radius: 6px;
  border: 2px solid var(--accent);
  z-index: 0;
  transition: var(--transition);
}
.photo-wrapper:hover .photo-box  { transform: translate(-4px, -4px); }
.photo-wrapper:hover::after       { transform: translate(4px, 4px); }

/* ── Experience Tabs ────────────────────────────────────────── */
.tabs-wrapper {
  display: flex;
  gap: 0;
  min-height: 360px;
}

.tab-list {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  border-left: 2px solid var(--border);
  position: relative;
}

.tab-btn {
  background: none;
  border: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  padding: 12px 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--light-slate);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}
.tab-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.tab-btn.active {
  border-left-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.tab-panels { flex: 1; padding-left: 32px; }
.tab-panel  { display: none; animation: panelFade 0.25s ease; }
.tab-panel.active { display: block; }
@keyframes panelFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.tab-panel h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 4px;
  line-height: 1.4;
}
.at { color: var(--accent); font-weight: 400; }
.job-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--light-slate);
  margin-bottom: 20px;
}
.job-bullets li {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}
.job-bullets li::before {
  content: '▹';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}
.job-bullets strong { color: var(--dark-blue); }

/* ── Education ──────────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  transition: var(--transition);
}
.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.edu-card h3 { font-size: 0.98rem; font-weight: 600; color: var(--dark-blue); }
.edu-degree  { font-size: 0.83rem; color: var(--accent); font-style: italic; margin-top: 2px; }
.edu-date    { font-family: var(--font-mono); font-size: 0.73rem; color: var(--light-slate); white-space: nowrap; flex-shrink: 0; }
.edu-bullets li {
  font-size: 0.87rem; color: var(--slate);
  padding-left: 14px; position: relative; margin-bottom: 3px;
}
.edu-bullets li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem; }
.edu-bullets strong { color: var(--dark-blue); }

/* ── Featured Projects ──────────────────────────────────────── */
.featured-projects { display: flex; flex-direction: column; gap: 80px; margin-bottom: 80px; }

.featured-project {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 0;
  position: relative;
}

/* Odd: image left, text right */
.featured-project .fp-image {
  grid-column: 1 / 8;
  grid-row: 1;
  position: relative;
  z-index: 1;
}
.featured-project .fp-content.fp-right {
  grid-column: 6 / 13;
  grid-row: 1;
  z-index: 2;
  text-align: right;
}

/* Even (reversed): image right, text left */
.featured-project.fp-reverse .fp-image {
  grid-column: 6 / 13;
  grid-row: 1;
}
.featured-project.fp-reverse .fp-content.fp-left {
  grid-column: 1 / 8;
  grid-row: 1;
  z-index: 2;
  text-align: left;
}

/* Project image placeholder */
.fp-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 0 28px 32px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  cursor: default;
}
/* Reversed card: image is on the right, overlap is on the left — push text right */
.featured-project.fp-reverse .fp-img-placeholder {
  align-items: flex-end;
  padding: 0 32px 28px 0;
}
.fp-img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(253, 250, 245, 0.35);
  transition: var(--transition);
}
.featured-project:hover .fp-img-placeholder::after { background: transparent; }

.fp-img-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  position: relative; z-index: 1;
}
.fp-img-placeholder strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  position: relative; z-index: 1;
}

.fp-img-1 { background: linear-gradient(135deg, #1e3a5f 0%, #0d5c6e 50%, #0a7c6e 100%); }
.fp-img-2 { background: linear-gradient(135deg, #1a1a4e 0%, #2d1b69 50%, #4a1a6e 100%); }
.fp-img-3 { background: linear-gradient(135deg, #1e2a4e 0%, #2d3a6e 40%, #4a5a8e 100%); }
.fp-img-4 { background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%); }

/* Project content card */
.fp-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.featured-project:hover .fp-content { box-shadow: var(--shadow), 0 0 0 1px var(--accent); }

.fp-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.fp-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 16px;
  line-height: 1.3;
}
.fp-title:hover { color: var(--accent); cursor: default; }

.fp-desc {
  background: var(--bg);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 18px;
}
.fp-desc p { font-size: 0.88rem; color: var(--slate); line-height: 1.65; }

.fp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.fp-content.fp-left .fp-tech { justify-content: flex-start; }
.fp-tech li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
}

.fp-links { display: flex; gap: 14px; justify-content: flex-end; }
.fp-content.fp-left .fp-links { justify-content: flex-start; }
.fp-links a { color: var(--light-slate); transition: var(--transition); }
.fp-links a:hover { color: var(--accent); transform: translateY(-2px); }

/* ── Other Projects Grid ────────────────────────────────────── */
.other-projects-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 8px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Only transition specific properties — avoids stale states from inline style cleanup */
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: default;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.pc-top { display: flex; justify-content: space-between; align-items: center; }
.folder-icon { color: var(--accent); width: 32px; height: 32px; }

.project-card h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--dark-blue);
  line-height: 1.3;
}
.project-card p {
  font-size: 0.86rem;
  color: var(--slate);
  line-height: 1.6;
  flex: 1;
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}
.tech-list li {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--light-slate);
}

/* ── Achievements sub-headings ──────────────────────────────── */
.achievements-subheading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--lightest-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.achievements-subheading:first-of-type { margin-top: 0; }

/* ── Awards — editorial rows ────────────────────────────────── */
.awards-list { display: flex; flex-direction: column; }
.award-icon { display: none; }

.award-item {
  display: flex;
  align-items: stretch;
  padding: 20px 0 20px 20px;
  border-bottom: 1px solid var(--border);
  background: none;
  border-radius: 0;
  gap: 0;
  position: relative;
  transition: padding-left 0.2s var(--ease);
}
.award-item:last-child { border-bottom: none; }
/* Left accent line */
.award-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  transition: background 0.2s var(--ease);
}
.award-item:hover::before { background: var(--accent); }
.award-item:hover { padding-left: 26px; }

/* Inner div: title + desc left, date right */
.award-item > div {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 32px;
  width: 100%;
}
.award-item h3 {
  grid-column: 1; grid-row: 1;
  font-size: 0.95rem; font-weight: 600;
  color: var(--dark-blue); line-height: 1.4;
  margin-bottom: 4px;
}
.award-item p {
  grid-column: 1; grid-row: 2;
  font-size: 0.84rem; color: var(--slate); line-height: 1.55;
}
.award-date {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--accent); white-space: nowrap;
  align-self: start; padding-top: 2px;
}

/* ── Certifications — horizontal credential rows ────────────── */
.cert-grid { display: flex; flex-direction: column; gap: 0; }
.cert-card {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 24px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  background: none;
  border-radius: 0;
  border-top: none; border-left: none; border-right: none;
  transition: background 0.2s var(--ease);
}
.cert-card:first-child { border-top: 1px solid var(--border); }
.cert-card:hover { background: var(--accent-light); }

.cert-issuer {
  grid-column: 1; grid-row: 1 / 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  width: 130px;
  min-height: 52px;
  flex-shrink: 0;
}
/* All logos same height, auto width, recolored to accent blue (#3a6ab4) */
.cert-logo[alt="REC Foundation"] { height: 44px; width: auto; max-width: 100px; }
.cert-logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 106px;
  object-fit: contain;
  /* brightness(0) makes all marks black, then colorize to accent blue */
  filter: brightness(0) saturate(100%) invert(38%) sepia(55%) saturate(560%) hue-rotate(191deg) brightness(97%);
}
.cert-card h3 {
  grid-column: 2; grid-row: 1;
  font-size: 0.92rem; font-weight: 600;
  color: var(--dark-blue);
}
.cert-card p {
  grid-column: 2; grid-row: 2;
  font-size: 0.81rem; color: var(--slate); line-height: 1.4;
}
.cert-date {
  grid-column: 3; grid-row: 1;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--light-slate); white-space: nowrap;
  align-self: start; padding-top: 2px;
}

/* ── Volunteering — timeline ────────────────────────────────── */
.vol-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 0;
}
/* Vertical timeline line */
.vol-grid::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.vol-card {
  position: relative;
  padding: 0 0 32px 36px;
  background: none;
  border: none;
  border-radius: 0;
  transition: var(--transition);
}
.vol-card:last-child { padding-bottom: 0; }
/* Timeline dot */
.vol-card::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--light-slate);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  z-index: 1;
}
.vol-card:hover::before {
  border-color: var(--accent);
  background: var(--accent);
}
.vol-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--dark-blue); margin-bottom: 4px; }
.vol-org     { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); margin-bottom: 8px; display: block; }
.vol-card p:last-of-type { font-size: 0.86rem; color: var(--slate); line-height: 1.6; }

/* ── Contact ────────────────────────────────────────────────── */
.contact-section { text-align: center; }
.contact-inner { max-width: 580px; margin: 0 auto; }
.contact-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.contact-body {
  font-size: 1rem; color: var(--slate);
  line-height: 1.7; margin-bottom: 32px;
}
.contact-details {
  display: flex; gap: 24px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--light-slate);
}
.contact-details a { color: var(--accent); }
.contact-details a:hover { color: var(--accent-hover); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 28px clamp(24px, 5vw, 60px);
  border-top: 1px solid var(--border);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--light-slate);
}
.footer-social a:hover { color: var(--accent); }
footer p { font-family: var(--font-mono); font-size: 0.78rem; color: var(--light-slate); }
footer strong { color: var(--slate); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sidebar-left, .sidebar-right { display: none; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-col { order: -1; justify-content: flex-start; }
  .photo-wrapper { max-width: 200px; }

  .featured-project,
  .featured-project.fp-reverse {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .featured-project .fp-image,
  .featured-project.fp-reverse .fp-image { width: 100%; }
  .fp-content.fp-right,
  .fp-content.fp-left {
    text-align: left;
    margin-top: -32px;
    margin-left: 24px;
    margin-right: 0;
  }
  .fp-tech, .fp-links { justify-content: flex-start; }

  .edu-grid  { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-resume { display: none; }
  .hamburger  { display: flex; }

  .tabs-wrapper { flex-direction: column; }
  .tab-list {
    flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-left: none; border-bottom: 2px solid var(--border);
    padding-bottom: 2px; min-width: unset;
  }
  .tab-btn {
    border-left: none; border-bottom: 2px solid transparent;
    margin-left: 0; margin-bottom: -2px; white-space: nowrap;
  }
  .tab-btn.active { border-left-color: transparent; border-bottom-color: var(--accent); }
  .tab-panels { padding: 24px 0 0 0; }

  .projects-grid { grid-template-columns: 1fr; }
  /* cert/awards/vol are already single-column — no change needed */
  .cert-card { grid-template-columns: 100px 1fr auto; column-gap: 16px; }

  .fp-content.fp-right,
  .fp-content.fp-left { margin-left: 0; margin-right: 0; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .contact-details { flex-direction: column; align-items: center; gap: 8px; }
  .edu-header { flex-direction: column; gap: 4px; }
}
