:root {
  --bg: #0b0710;
  --panel: rgba(255,255,255,0.03);
  --muted: #bfc0c8;
  --text: #eef0f6;
  --accent-1: #2b076e;
  --accent-2: #6441a5;
  --accent-purple-1: rgba(120, 60, 200, 0.95);
  --accent-purple-2: rgba(90, 40, 160, 0.95);
  --accent-glow: rgba(156, 102, 255, 0.18);
  --card-bg-top: rgba(255,255,255,0.02);
  --card-bg-bottom: rgba(255,255,255,0.01);
  --glass: rgba(255,255,255,0.03);
  --brand-green: #093f03;
  --brand-green-light: #92d121;
  --radius: 14px;
  --gap: 20px;
  --transition: 300ms cubic-bezier(.2,.9,.3,1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --site-footer-height: 80px;
  --header-height: 72px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#about-page .muted { color: var(--muted); }
#about-page .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; }

/* ========== Base / Reset ========== */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; -ms-overflow-style: none; scrollbar-width: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { overflow-x: hidden; } 
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg,#06040a 0%, #2b076e 90%);
  color: var(--text);
  line-height: 1.45;
  font-size: 16px;
}

/* Make all hyperlinks use the brand/green colors by default */
a { color: var(--brand-green); text-decoration: none; }
a:hover, a:focus { color: var(--brand-green-light); text-decoration: underline; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  min-height: 72px;
  display: block;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(10,6,14,1), rgba(10,6,14,1));
  border-bottom: 2px solid rgba(255,255,255,0.03);
}

/* header inner / page-container row for brand + nav */
.page-container.header-row {
  width: 100%;
  max-width: 100%;
  padding: 12px 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* mobile menu button (hidden desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 6px;
  border-radius: 8px;
  flex: 0 0 auto;
  cursor: pointer;
}

/* brand block */
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 340px;
  justify-content: flex-start;
  color: inherit;
  text-decoration: none;
}
.brand:hover,
.brand:focus-visible {
  opacity: 0.9;               
  text-decoration: none;
}
.brand-favicon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.brand-title { font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* centered top nav */
.top-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 20px;
  align-items: center;
  width: max-content;
  pointer-events: auto;
}
.top-nav .nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}
.top-nav .nav-link:hover {
  color: var(--text);
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* ========== Mobile Menu ========== */
#mobile-menu {
  position: absolute;
  width: 220px;
  max-width: calc(100vw - 48px);
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 12px 40px rgba(6,6,12,0.6);
  transform-origin: top left;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(.2,.9,.3,1);
  z-index: 1200;
  outline: none;
  display: none;
}
#mobile-menu.open { display: block; opacity: 1; transform: translateY(0) scale(1); }
#mobile-menu[hidden] { display: none !important; opacity: 0 !important; pointer-events: none; }

/* mobile menu link */
#mobile-menu .mobile-link {
  display: block;
  padding: 10px 8px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease;
}
#mobile-menu .mobile-link:hover,
#mobile-menu .mobile-link:focus {
  color: var(--text);
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

/* ========== Footer ========== */
.site-footer {
  width: 100%;
  border-top: 2px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding: 20px 0;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(10,6,14,0.7), rgba(10,6,14,0.95));
  position: fixed;
  bottom: 0;
  flex-shrink: 0;
  z-index: 140;
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.footer-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-icon { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; }
.footer-right { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-right a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 180ms ease, transform 180ms ease;
}
.footer-right a:hover { color: var(--text); transform: translateY(-2px); }

/* ========== Snap Behavior ========== */
#about-page.page-container { box-sizing: border-box; }
#about-page .snap-container {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  scrollbar-width: none;
  flex-direction: column;
  height: calc(100vh - var(--header-height, 72px) - var(--site-footer-height, 80px));
  display: block;
}
#about-page .snap-container::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Each section takes most of the viewport */
#about-page .snap-section {
  scroll-snap-align: start;
  flex: 1 0 auto;
  min-height: calc(100vh - var(--header-height, 72px) - var(--site-footer-height, 80px));
  height: calc(100vh - var(--header-height, 72px) - var(--site-footer-height, 80px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;           
  box-sizing: border-box;
  scroll-snap-align: center;
  overflow: hidden;
}

/* inner wide max-width for content */
#about-page .card { max-width: 1300px; width: 100%; }

/* ========== Deep-card Look ========== */
#about-page .deep-card {
  position: relative;
  border-radius: 14px;
  padding: 28px;
  background: linear-gradient(180deg, var(--card-bg-top), var(--card-bg-bottom));
  border: 1px solid rgba(255,255,255,0.03);
  overflow: visible;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.01) inset,
    0 18px 40px rgba(4,4,8,0.45),
    0 6px 18px rgba(0,0,0,0.55);
  transition: transform 280ms cubic-bezier(.2,.9,.3,1), box-shadow 280ms linear;
}
#about-page .deep-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 1px;
  border-radius: 12px;
  background: linear-gradient(0deg, rgba(255,255,255,0.012), rgba(0,0,0,0.02));
  mix-blend-mode: overlay;
  z-index: 0;
}
#about-page .deep-card > * { position: relative; z-index: 2; }
#about-page .deep-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(6,6,12,0.55),
    0 10px 30px rgba(0,0,0,0.55);
}

/* ========== Intro ========== */
#about-page .about-hero__inner { display: block; position: relative; overflow: visible; }
#about-page .about-hero__spotlight {
  position: absolute;
  right: 6%;
  top: 10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(146,209,33,0.06) 0%, rgba(120,60,180,0.035) 35%, transparent 60%);
  filter: blur(30px);
  mix-blend-mode: screen;
  transform: translateZ(0);
  z-index: 1;
}
#about-page .about-hero__title { font-size: 34px; line-height: 1.04; margin: 0 0 8px; color: #fff; }
#about-page .about-hero__lead { color: var(--muted); margin: 0 0 14px; }
#about-page .hero-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(146,209,33,0.06);
  color: var(--brand-green-light);
  border: 1px solid rgba(146,209,33,0.09);
  font-weight: 700;
  margin-bottom: 10px;
  width: fit-content;
}

/* ========== Buttons ========== */
#about-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
  will-change: transform, box-shadow;
}
#about-page .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,7,20,0.6); }
#about-page .btn-primary { background: linear-gradient(90deg, var(--accent-purple-1), var(--accent-purple-2)); color: #fff; border: 0; box-shadow: 0 10px 30px rgba(80, 40, 120, 0.14); }
#about-page .btn-outline { background: rgba(255,255,255,0.02); color: var(--muted); }

/* ========== Layout ========== */
#about-page .about-what .card,
#about-page .about-projects .card,
#about-page .about-cta .card { max-width: 1100px; }
#about-page .project-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
#about-page .project-item { padding: 14px; border-radius: 10px; background: rgba(255,255,255,0.01); border: 1px solid rgba(255,255,255,0.02); }
#about-page .project-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
#about-page .project-tag { font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.01); border: 1px solid rgba(255,255,255,0.02); }

/* two-column grid (main + right stack) */
#about-page .grid-two-column {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 1300px;
}
#about-page .stack-right { display: flex; flex-direction: column; gap: 16px; }

/* ========== What I Do ========== */
#about-page .about-what .deep-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(6,6,12,0.55),
    0 10px 30px rgba(0,0,0,0.55);
}
#about-page .about-what-subgrid {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 18px auto 0; 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  padding: 0 10px;
}
#about-page section[data-section="what"] {
  display: flex !important;
  flex-direction: column;
  justify-content: center;   
  align-items: center;       
  min-height: 100%;         
  box-sizing: border-box;
  padding-top: 0;           
  padding-bottom: 0;
}

/* ensure the internal .about-what block keeps its centered max-width */
#about-page .about-what {
  margin-left: auto;
  margin-right: auto;
}

/* slightly slimmer padding for these long cards so they look 'skinnier' */
#about-page .about-what-subgrid .deep-card {
  padding: 22px;
  border-radius: 12px;
  min-height: 220px; 
}

/* titles and paragraph polish inside the subgrid cards */
#about-page .about-what-subgrid .card-title {
  margin-bottom: 10px;
  font-size: 16px;
}

/* small tweak: ensure these cards reveal on the same logic as others */
#about-page .about-what-subgrid[data-anim="reveal"] .deep-card { will-change: transform, opacity; }

/* scaling for large cards */
#about-page .about-card--skills,
#about-page .about-card--projects {
  transform: scale(var(--scale-factor)) !important;
  margin: auto;
}
#about-page .about-card--skills *,
#about-page .about-card--projects * {
  font-size: calc(1rem * var(--scale-factor));
  line-height: calc(1.4 * var(--scale-factor));
}

/* what I do text color */
#about-page .about-card--philosophy p,
#about-page .about-card--bio p,
#about-page .about-card--future p { color: var(--muted); }

/* ========== Skills ========== */
#about-page .about-card--skills .skill-row { display:flex; gap:16px; }
#about-page .skill-col { flex: 1; }
#about-page .skill-heading { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
#about-page .skill-extra { padding: 16px 0 0; }
#about-page .skill-row > .skill-col:nth-child(2) { text-align: right; }
#about-page .about-card--skills { width: 850px; }

/* skill list visuals */
#about-page .skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
#about-page .skill-list li {
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.02);
  color: var(--muted);
}

/* Systems I built */
#about-page .skill-extra { text-align: center; margin-top: 16px; }
#about-page .skill-extra .skill-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0 auto; max-width: 80%; }
#about-page .skill-extra .skill-list li::marker { content: none; }
#about-page .skill-extra .skill-list li::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-green-light);
  margin-top: 8px;
}

/* ========== Contact CTA ========== */
#about-page .about-card--cta {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding: 28px 34px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--card-bg-top), var(--card-bg-bottom));
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 26px 70px rgba(6,6,12,0.62);
  box-sizing: border-box;
}

/* title + desc */
#about-page .about-card--cta .cta-title { margin: 0; font-size: 22px; font-weight: 800; color: #fff; line-height: 1.1; }
#about-page .about-card--cta .cta-desc { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; flex: 1 1 auto; }

/* actions: horizontal row beneath/next to text (desktop) */
#about-page .about-card--cta .cta-actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex: 0 0 auto;
  min-width: fit-content;
}

/* make CTA buttons natural width */
#about-page .about-card--cta .cta-actions .btn { padding: 10px 16px; font-weight: 700; border-radius: 10px; text-decoration: none; transition: var(--transition); width: auto; flex: 0 0 auto; }

/* ========== Progress Rail ========== */
#about-progress {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  display: block;
}
#about-progress .about-progress__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
#about-progress .progress-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: transform 200ms ease, color 200ms ease;
}
#about-progress .progress-link .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.03);
  transition: background 220ms ease, transform 220ms ease;
}
#about-progress .progress-link .label { font-size: 12px; color: var(--muted); display: inline-block; }
#about-progress .progress-link.active { transform: translateX(6px); color: #fff; }
#about-progress .progress-link.active .dot { background: var(--brand-green-light); transform: scale(1.15); box-shadow: 0 6px 18px rgba(146,209,33,0.12); }

/* ========== Animations ========== */
#about-page [data-anim="reveal"] {
  opacity: 0;
  transform: translateY(12px);
  transition: transform 420ms cubic-bezier(.2,.85,.3,1), opacity 420ms ease;
  will-change: transform, opacity;
}
#about-page [data-anim="reveal"].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* interactions */
#about-page .project-item:hover { transform: translateY(-6px); transition: transform 220ms ease; }

/* small typographic polish */
#about-page .card-title { font-size: 15px; margin: 0 0 8px; font-weight: 700; color: #fff; }
#about-page h2, #about-page h3 { color: #fff; }

/* small utilities */
#about-page .muted { color: var(--muted); }
#about-page .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace; }

/* restore button bounce (ensures hover microinteraction) */
.btn { transition: var(--transition); will-change: transform, box-shadow; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,7,20,0.6); }
.btn-primary:hover { transform: translateY(-4px); }

/* ========== Safety Resets ========== */
#contact:target, .right-col:target {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin: 0 !important;
  width: auto !important;
  box-shadow: none !important;
}

/* ========== Hide Scrollbars ========== */
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
html, body { -ms-overflow-style: none; scrollbar-width: none; }

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
  #about-page .deep-card:hover { transform: none; box-shadow: none; }
  #about-page [data-anim="reveal"], #about-page .project-item { transition: none; transform: none; opacity: 1; }
}

/* ========== Responsive Mobile Rules ========== */
/* Small-screen tweaks */
@media (max-width: 520px) {
  .brand-title { font-size: 16px; }
  .brand-favicon { width: 40px; height: 40px; }
  .headline { font-size: 22px; }
  #about-page .about-hero__title { font-size: 22px; }
  #about-page .card { padding: 14px; }
}

/* Typical mobile phones */
@media (max-width: 800px) {
  #about-progress { display: none; }
  #about-page .snap-container { height: auto; overflow-y: visible; }
  #about-page .snap-section { min-height: auto; padding: 28px 14px; height: auto !important; }

  /* grid -> single column */
  #about-page .grid-two-column { grid-template-columns: 1fr; }

  /* hero cleanup */
  #about-page .about-hero__spotlight { display: none; }

  /* header / nav / mobile menu behaviors */
  .top-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .page-container.header-row { padding-left: 12px; padding-right: 16px; overflow: visible !important; }

  /* mobile #mobile-menu becomes inline panel */
  #mobile-menu {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 8px 0 0 0 !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)) !important;
    border-top: 1px solid rgba(255,255,255,0.02) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    display: none !important;
  }
  #mobile-menu.open { display: block !important; }

  /* alternative top mobile nav element (if used) */
  nav#mobile-menu-top { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 0; overflow: hidden; max-height: 0; transition: max-height 260ms ease, padding 180ms ease, background 180ms ease; background: transparent; border-bottom: none; z-index: 999; }
  nav#mobile-menu-top.open { padding: 0 14px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-bottom: 1px solid rgba(255,255,255,0.02); max-height: 300px; padding-bottom: 165px; pointer-events: auto; }
  nav#mobile-menu-top .mobile-top-list { list-style: none; margin: 0; padding: 14px 0; display: block; flex-direction: column; gap: 6px; }
  nav#mobile-menu-top .mobile-top-list li { margin: 0; }
  .mobile-top-link { display: block; padding: 12px 10px; border-radius: 10px; text-decoration: none; color: var(--text) !important; font-weight: 700; background: transparent !important; }
  nav#mobile-menu-top.open .mobile-top-link:hover,
  nav#mobile-menu-top.open .mobile-top-link:focus { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)) !important; color: #ffffff !important; text-decoration: none; }

  /* defensive: prevent header clipping expanded menu */
  .site-header, .page-container.header-row { overflow: visible !important; }

  /* footer / background defensive rules on mobile */
  main, .page-container, .site-footer, .footer-inner { background: transparent !important; background-color: transparent !important; }
  .site-footer { color: var(--muted); background: linear-gradient(180deg, rgba(255,255,255,0.00), rgba(255,255,255,0.00)) !important; position: relative; }
  ::-webkit-scrollbar { background: transparent; }
  body, html { overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  .site-footer * { background: transparent !important; }
  body, #about-page, .page-container { padding-bottom: calc(80px + var(--safe-bottom)); }

  /* about-page specific mobile adjustments */
  #about-page .about-grid__wrap { grid-template-columns: 1fr; padding: 0 12px; }
  #about-page .about-right { order: 2; }
  #about-page .about-left { order: 1; }
  #about-page .about-hero__inner { padding: 18px; }
  #about-page .skill-row { flex-direction: column; }
  #about-page .about-hero__title { font-size: 24px; }
  #about-page .deep-card { padding: 18px; border-radius: 12px; }
  #about-page .btn { padding: 8px 10px; }

  #about-page .about-what-subgrid { grid-template-columns: 1fr; padding: 0; gap: 14px; margin-top: 14px; }
  #about-page .about-what-subgrid .deep-card { min-height: auto; padding: 16px; }
  #about-page .about-what > .about-card--bio,
  #about-page .about-what .about-card--bio { margin-bottom: 14px; padding: 16px; }

  #about-page .about-card--projects .project-list { display: block; margin: 0; }
  #about-page .about-card--projects .project-item { margin: 0 0 14px 0; }

  #about-page .about-card--skills,
  #about-page .about-card--projects { transform: none !important; }

}



