/* ===================================================================
 * Lightfield Theme — monochrome, ray-traced minimalism
 * Loads AFTER default/layout/media-queries so it wins ties.
 * Pairs with js/orbs.js (light beams + ray-traced sphere + reveals).
 * =================================================================== */

:root {
  --bg-0: #060606;
  --card: rgba(255, 255, 255, 0.024);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text-hi: #f4f4f5;
  --text-mid: rgba(255, 255, 255, 0.64);
  --text-low: rgba(255, 255, 255, 0.36);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', 'opensans-regular', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

/* ---------------- base ---------------- */

html {
  background: var(--bg-0);
}
body {
  /* Must stay transparent: an opaque body background paints ABOVE the
     negative-z-index canvas and would hide the light field entirely. */
  background: transparent;
  font-family: var(--font-body);
  color: var(--text-mid);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text-hi);
}
p {
  color: var(--text-mid);
}
a, a:visited {
  color: var(--text-hi);
}
a:hover, a:focus {
  color: #fff;
}
::selection {
  background: #f4f4f5;
  color: #060606;
}
::-moz-selection {
  background: #f4f4f5;
  color: #060606;
}
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #060606;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* ---------------- injected chrome (js/orbs.js) ---------------- */

#orb-field {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  pointer-events: none;
}
#film-grain {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
#bg-vignette {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(135% 115% at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.62) 100%);
}
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.045) 0%, transparent 60%);
  will-change: transform;
}
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  background: #f4f4f5;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------------- scroll reveal ----------------
   Hidden state only applies when orbs.js has booted (html.orbjs),
   so content is never lost if JS dies. */

.orbjs .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.65, 0.2, 1),
    filter 0.9s ease;
  will-change: opacity, transform, filter;
}
.orbjs .reveal.in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------------- navigation ---------------- */

ul#nav li a {
  color: var(--text-low);
  font-family: var(--font-body);
  font-weight: 500;
}
ul#nav li a:hover {
  color: #fff;
}
ul#nav li.current a {
  color: #fff;
}

@media screen and (min-width: 769px) {
  #nav-wrap {
    width: auto;
    left: 50%;
    top: 16px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    padding: 2px 14px;
    border-radius: 999px;
    background: rgba(6, 6, 6, 0.5);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
  #nav-wrap.opaque {
    background-color: rgba(6, 6, 6, 0.78);
  }
}

/* ---------------- hero / header ---------------- */

header {
  background: transparent;
}
header .banner-text h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
  color: #fff;
  padding-bottom: 8px;
}
header .banner-text h3 {
  font-family: var(--font-body);
  color: var(--text-mid);
  text-shadow: none;
  width: 66%;
  font-size: 16.5px;
  line-height: 1.95;
  font-weight: 400;
}
header .banner-text hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* clean YC badge — no pill, no pulse */
.hero-badge {
  display: inline-block;
  margin-bottom: 34px;
}
.hero-badge .yc-mark {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin: -2px 11px 0 0;
  border-radius: 4px;
  background: #f26625;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
.hero-badge .yc-text {
  display: inline-block;
  vertical-align: middle;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* staged entrance for hero children */
.orbjs header .banner-text > * {
  -webkit-animation: hero-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation: hero-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.orbjs header .banner-text > *:nth-child(2) { -webkit-animation-delay: 0.12s; animation-delay: 0.12s; }
.orbjs header .banner-text > *:nth-child(3) { -webkit-animation-delay: 0.24s; animation-delay: 0.24s; }
.orbjs header .banner-text > *:nth-child(4) { -webkit-animation-delay: 0.34s; animation-delay: 0.34s; }
.orbjs header .banner-text > *:nth-child(5) { -webkit-animation-delay: 0.44s; animation-delay: 0.44s; }

header .social {
  text-shadow: none;
}
header .social li {
  margin: 0 9px;
}
header .social li a {
  display: inline-block;
  width: 52px;
  height: 52px;
  line-height: 52px;
  font-size: 20px;
  text-align: center;
  border-radius: 50%;
  color: var(--text-mid);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}
header .social li a:hover {
  color: #060606;
  background: #f4f4f5;
  border-color: #f4f4f5;
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.14);
}

header .scrolldown a {
  color: var(--text-low);
  -webkit-animation: floaty 2.6s ease-in-out infinite;
  animation: floaty 2.6s ease-in-out infinite;
}
header .scrolldown a:hover {
  color: #fff;
}

/* ---------------- about ---------------- */

#about {
  background: transparent;
}
#about h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: 0.2px;
  color: var(--text-hi);
}
#about .contact-details h2 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-low);
}
#about p {
  color: var(--text-mid);
}
#about p.address span {
  color: var(--text-mid);
}
#about .profile-pic {
  padding: 3px;
  background: transparent;
  border: 1px solid var(--line-strong);
  -webkit-filter: grayscale(1) contrast(1.04);
  filter: grayscale(1) contrast(1.04);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.08);
}
#about .download .button,
#about .download .button:visited {
  background: transparent;
  color: var(--text-hi);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: none;
  transition: all 0.3s ease;
}
#about .download .button:hover,
#about .download .button:focus {
  background: #f4f4f5;
  color: #060606;
  border-color: #f4f4f5;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 255, 255, 0.12);
}

/* ---------------- resume section shell ---------------- */

#resume {
  background: transparent;
}
#resume .section-block {
  border-bottom: none;
  margin-bottom: 72px;
  padding-bottom: 0;
}
#resume .section-head {
  margin-bottom: 46px;
}
#resume h1 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 6px;
}
#resume h1 span {
  border-bottom: none;
  padding-bottom: 0;
  color: var(--text-hi);
}
#resume .section-head:after {
  content: '';
  display: block;
  width: 64px;
  height: 1px;
  margin-top: 16px;
  background: var(--line-strong);
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: 0 50%;
  transform-origin: 0 50%;
  transition: -webkit-transform 0.9s 0.25s cubic-bezier(0.2, 0.65, 0.2, 1);
  transition: transform 0.9s 0.25s cubic-bezier(0.2, 0.65, 0.2, 1);
}
#resume .section-head.in-view:after,
html:not(.orbjs) #resume .section-head:after {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/* ---------------- cards ---------------- */

.glass-card {
  position: relative;
  border-radius: 10px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--card);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 34%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* specular edge — light catching the top of the card */
.glass-card:before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10px;
  right: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  pointer-events: none;
}
.glass-card:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 255, 255, 0.05);
}
#resume .glass-card h3 {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color: var(--text-hi);
  margin-bottom: 0;
}
.card-head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 8px;
}
.date-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.4px;
  white-space: nowrap;
  color: var(--text-low);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
#resume .role-line {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 16px;
}
#resume .role-line .loc {
  color: var(--text-low);
  font-weight: 400;
}
#resume ul.points {
  margin: 0;
  padding: 0;
  list-style: none;
}
#resume ul.points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.75;
}
#resume ul.points li:last-child {
  margin-bottom: 0;
}
#resume ul.points li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* tech pills */
.tag-row {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tech-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--text-low);
  padding: 7px 11px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}
.glass-card:hover .tech-pill {
  border-color: rgba(255, 255, 255, 0.18);
}
.tech-pill:hover {
  color: #060606;
  background: #f4f4f5;
  border-color: #f4f4f5;
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

/* ---------------- experience timeline ---------------- */

.timeline {
  position: relative;
  padding-left: 46px;
}
.timeline:before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.16) 5%,
    rgba(255, 255, 255, 0.16) 95%,
    transparent
  );
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -41px;
  top: 30px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}
.timeline-item.in-view .timeline-dot:after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-animation: dot-pulse 3s ease-out infinite;
  animation: dot-pulse 3s ease-out infinite;
}

/* ---------------- education + projects ---------------- */

.edu-wrap {
  max-width: 720px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-card h3 {
  margin-bottom: 14px;
}

/* ---------------- footer ---------------- */

footer {
  background: transparent;
  color: var(--text-low);
}
footer .social-links li a {
  color: var(--text-low);
  transition: all 0.3s ease;
}
footer .social-links li a:hover {
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.6);
}
footer .copyright li,
footer .copyright li a {
  color: var(--text-low);
}
#go-top a {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text-mid);
  transition: all 0.3s ease;
}
#go-top a:hover {
  background: #f4f4f5;
  color: #060606;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.16);
}

/* ---------------- keyframes ---------------- */

@-webkit-keyframes hero-rise {
  from { opacity: 0; -webkit-transform: translateY(24px); }
  to { opacity: 1; -webkit-transform: translateY(0); }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@-webkit-keyframes floaty {
  0%, 100% { -webkit-transform: translateY(0); }
  50% { -webkit-transform: translateY(9px); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}
@-webkit-keyframes dot-pulse {
  from { -webkit-transform: scale(1); opacity: 0.7; }
  to { -webkit-transform: scale(2.2); opacity: 0; }
}
@keyframes dot-pulse {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(2.2); opacity: 0; }
}

/* ---------------- responsive ---------------- */

@media screen and (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  header .banner-text h3 {
    width: 92%;
  }
  .hero-badge .yc-text {
    font-size: 10.5px;
    letter-spacing: 1.5px;
  }
  .hero-badge .yc-mark {
    width: 19px;
    height: 19px;
    line-height: 19px;
    font-size: 12px;
  }
  .timeline {
    padding-left: 32px;
  }
  .timeline:before {
    left: 6px;
  }
  .timeline-dot {
    left: -31px;
    top: 26px;
  }
  .glass-card {
    padding: 22px 20px;
    border-radius: 8px;
  }
  #resume .glass-card h3 {
    font-size: 18px;
  }
  #resume ul.points li {
    font-size: 14.5px;
  }
  #about h2 {
    font-size: 26px;
  }
}

/* mobile nav (media-queries.css takes over layout below 768px) — reskin the
   hamburger + dropdown panel to match the theme */
@media only screen and (max-width: 767px) {
  #nav-wrap > a {
    background-color: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  #nav-wrap:target > ul#nav {
    background: rgba(8, 8, 8, 0.97);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
  }
  ul#nav li {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.12);
  }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .orbjs .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  #resume .section-head:after {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    transition: none;
  }
  .orbjs header .banner-text > *,
  header .scrolldown a,
  .timeline-item.in-view .timeline-dot:after {
    -webkit-animation: none;
    animation: none;
  }
}
