/* ===========================================================
   Aditya Chaudhary — Portfolio
   Dark, terminal/agent-themed single-page design
   =========================================================== */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #0a0a0a;
}

::selection { background: #c6f042; color: #0a0a0a; }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes scan { 0% { transform: translateY(-200px); } 100% { transform: translateY(110vh); } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

[data-reveal] {
  transform: translateY(34px);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
[data-reveal].is-revealed { transform: translateY(0); }

.page {
  position: relative;
  background: #0a0a0a;
  color: #f4f4ef;
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* global grid + scroll progress */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #c6f042;
  z-index: 60;
  box-shadow: 0 0 12px #c6f042;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f4f4ef;
}

.nav-brand-dot {
  width: 9px;
  height: 9px;
  background: #c6f042;
  display: inline-block;
  animation: pulse 1.6s infinite;
}

.nav-brand-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #9a9a92;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
.nav-link:hover { color: #c6f042; }

.nav-resume {
  text-decoration: none;
  color: #0a0a0a;
  background: #c6f042;
  padding: 9px 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(198, 240, 66, .06), transparent);
  animation: scan 8s linear infinite;
}

.hero-tick-top {
  position: absolute;
  top: 110px;
  left: 6vw;
  width: 12px;
  height: 12px;
  border-left: 1px solid #c6f042;
  border-top: 1px solid #c6f042;
}

.hero-tick-bottom {
  position: absolute;
  bottom: 120px;
  right: 6vw;
  width: 12px;
  height: 12px;
  border-right: 1px solid #c6f042;
  border-bottom: 1px solid #c6f042;
}

.hero-tag {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: #c6f042;
  margin-bottom: 26px;
}

.hero-title {
  margin: 0;
  font-size: clamp(48px, 9.5vw, 150px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f4f4ef;
}

.hero-caret {
  display: inline-block;
  width: 0.34em;
  height: 0.78em;
  background: #c6f042;
  margin-left: 0.14em;
  transform: translateY(0.08em);
  animation: blink 1.1s steps(1) infinite;
}

.hero-desc {
  margin: 38px 0 0;
  max-width: 660px;
  font-size: 16px;
  line-height: 1.75;
  color: #9a9a92;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.btn-fill {
  text-decoration: none;
  color: #0a0a0a;
  background: #c6f042;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.btn-ghost {
  text-decoration: none;
  color: #f4f4ef;
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 14px 26px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.hero-status {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #6f6f68;
}

.hero-status-prompt { color: #c6f042; }
.hero-status-caret { animation: blink 1s steps(1) infinite; }

.hero-status-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-clock { color: #9a9a92; }

.hero-scroll-hint { animation: bob 2s ease-in-out infinite; }

/* ============ MARQUEE ============ */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #0c0c0c;
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #3a3a35;
}

.marquee-track span { padding: 0 22px; }
.marquee-sep { color: #c6f042; }

/* ============ SECTION SCAFFOLD ============ */
.section {
  position: relative;
  z-index: 1;
  padding: 130px 6vw;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #c6f042;
  margin-bottom: 46px;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-lede {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.5;
  font-weight: 500;
  color: #f4f4ef;
  letter-spacing: -0.01em;
}

.about-lede-accent { color: #c6f042; }

.about-sub {
  margin: 32px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: #9a9a92;
  max-width: 620px;
}

.about-facts {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .1);
}

.about-fact {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
}
.about-fact:last-child { border-bottom: none; }

.about-fact-label { color: #6f6f68; }
.about-fact-accent { color: #c6f042; }

/* ============ EXPERIENCE ============ */
.exp-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 2px solid #c6f042;
  margin-bottom: 24px;
  transition: background .3s, transform .3s, border-color .3s;
  background: #0c0c0c;
}
.exp-card:last-child { margin-bottom: 0; }

.exp-date { font-size: 13px; color: #c6f042; margin-bottom: 8px; }
.exp-location { font-size: 12px; color: #6f6f68; line-height: 1.7; }

.exp-role {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}
.exp-role-suffix { color: #6f6f68; font-weight: 400; }

.exp-company { font-size: 14px; color: #9a9a92; margin: 6px 0 22px; }

.exp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exp-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #cfcfc7;
}

.exp-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #c6f042;
}

.exp-list-emph { color: #f4f4ef; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  font-size: 11px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #9a9a92;
}

/* ============ PROJECTS ============ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  border: 1px solid rgba(255, 255, 255, .1);
  background: #0c0c0c;
  transition: transform .3s, border-color .3s;
}

.project-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
}

.project-media {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #101010;
}

.project-media-dark { background: #0b0f1a; }

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.project-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, .55) 100%);
  pointer-events: none;
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  padding: 5px 11px;
  background: #c6f042;
  color: #0a0a0a;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.project-badge-outline {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(10, 10, 10, .45);
  color: #9a9a92;
  letter-spacing: 0.06em;
}

.project-badge-dark {
  background: #0a0a0a;
  color: #c6f042;
  font-weight: 700;
}

.project-body { padding: 28px 26px; }

.project-title { margin: 0; font-size: 21px; font-weight: 700; }
.project-title-sm { font-size: 22px; }
.project-subtitle { font-size: 13px; color: #9a9a92; margin: 6px 0 18px; }

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.project-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.65;
  color: #cfcfc7;
}

.project-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #c6f042;
}

.project-list-emph { color: #f4f4ef; }

.tag-sm {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #9a9a92;
}

.tag-row-sm {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  text-decoration: none;
  color: #c6f042;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: gap .25s;
}
.project-link:hover { gap: 14px; }
.project-link-fit { width: fit-content; }

.project-media-wide {
  position: relative;
  background: #e9e7e0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.project-media-wide img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: contain;
  display: block;
  padding: 14px;
  box-sizing: border-box;
}

.project-body-wide {
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============ STACK ============ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.stack-card {
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 28px;
  background: #0c0c0c;
  transition: border-color .3s;
}

.stack-card-label {
  font-size: 13px;
  color: #c6f042;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tag {
  font-size: 12px;
  padding: 6px 12px;
  background: #141414;
  color: #cfcfc7;
}

/* ============ EDUCATION ============ */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.education-card {
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 36px 32px;
  background: #0c0c0c;
  transition: border-color .3s;
}

.education-date { font-size: 13px; color: #c6f042; margin-bottom: 14px; }
.education-date-muted { color: #6f6f68; }

.education-title { margin: 0; font-size: 22px; font-weight: 700; }
.education-school { font-size: 14px; color: #9a9a92; margin: 6px 0 18px; }
.education-desc { margin: 0; font-size: 13px; line-height: 1.7; color: #8a8a82; }

/* ============ CONTACT ============ */
.contact-section { padding: 140px 6vw 120px; border-bottom: none; }

.contact-title {
  margin: 0;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contact-title-accent { color: #c6f042; }

.contact-desc {
  margin: 30px 0 44px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.75;
  color: #9a9a92;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 920px;
}

.contact-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .3s, border-color .3s;
}
.contact-card:hover {
  border-color: rgba(198, 240, 66, .5);
  background: rgba(198, 240, 66, .06);
}

.contact-card-fill {
  color: #0a0a0a;
  background: #c6f042;
  transition: transform .3s;
}
.contact-card-fill:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .14);
  background: #c6f042;
}

.contact-card-label { font-size: 11px; color: #6f6f68; letter-spacing: 0.12em; }
.contact-card-fill .contact-card-label { color: rgba(10, 10, 10, .6); }

.contact-card-value { font-size: 15px; color: #f4f4ef; }
.contact-card-fill .contact-card-value { font-weight: 700; color: #0a0a0a; }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 28px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #6f6f68;
  letter-spacing: 0.08em;
}

.footer-accent { color: #c6f042; }

/* ============ CARD HOVER (JS-driven state) ============ */
[data-card] { transition: background .3s, transform .3s, border-color .3s; }
[data-card].is-hovered {
  border-color: rgba(198, 240, 66, .5);
  transform: translateY(-4px);
}

/* ============ CURSOR RING ============ */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid #c6f042;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, border-color .25s;
  mix-blend-mode: difference;
}

.cursor-ring.is-active {
  width: 56px;
  height: 56px;
  background: rgba(198, 240, 66, .15);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { gap: 14px; font-size: 11px; }
  .nav-resume { padding: 8px 12px; }
  .about-grid,
  .exp-card,
  .projects-grid,
  .education-grid,
  .project-card-wide {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .nav { padding: 14px 5vw; flex-wrap: wrap; gap: 10px; }
  .nav-links { font-size: 10px; gap: 8px; }
}
