/* =========================================================
   DROP-IN LIGHT PORTFOLIO CSS (reference-style)
   Paste into index.css and remove conflicting old styles.
   ========================================================= */

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background:#f5f7fb; /* light outer background */
  font-family: Inter, system-ui;
 }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }


/* ---------- Theme tokens (LIGHT) ---------- */
:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0b1020;
  --muted: #4b5563;          /* gray-600 */
  --line: #e5e7eb;           /* gray-200 */
  --shadow: 0 18px 50px rgba(17,24,39,.12);
  --shadowSoft: 0 10px 30px rgba(17,24,39,.08);

  --pillDark: rgba(17,24,39,.92);
  --pillLine: rgba(255,255,255,.10);

  --btnDark: #111827;
  --btnDarkHover: #0b1220;

  --greenBg: #dcfce7;
  --greenLine: #86efac;
  --greenText: #166534;

  --radius: 16px;
  --radiusPill: 999px;

  --container: 1100px;
}

/* ---------- Page ---------- */
body{
  background: #fbfdff;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}
main{
  padding: 80px 40px;
}

/* Optional: hide canvas on light theme if you still have it */
#bgfx{ display:none; }

/* ---------- Utilities ---------- */
.container{ width: min(var(--container), 92%); margin-inline: auto; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

/* ---------- Header / Nav pill (like reference) ---------- */
.site-header{
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none; /* only nav is clickable */
}

.nav-pill{
  pointer-events: auto;
  width: min(980px, 92%);
  margin: 0 auto;

  display:flex;
  align-items:center;
  justify-content:space-between;

  background: var(--pillDark);
  border: 1px solid var(--pillLine);
  border-radius: var(--radiusPill);
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.brand{
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: var(--radiusPill);

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);

  text-decoration:none;
  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing: .02em;
}

.pill-links{
  display:flex;
  align-items:center;
  gap: 18px;
}

.pill-links a{
  color: rgba(255,255,255,.82);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
}
.pill-links a:hover{ color:#fff; }

.icon-only{
  opacity: .95;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.icon-only:hover{ background: rgba(255,255,255,.08); }
.page{
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
}
.btn.small{
  padding: 10px 14px;
  border-radius: var(--radiusPill);
  background: #fff;
  color: #111827;
  border: none;
  font-weight: 900;
  text-decoration:none;
}

/* ---------- Main spacing to account for fixed nav ---------- */
main#content{ padding-top: 0; }

/* ---------- Hero (centered, reference-style) ---------- */
.hero{
  padding: 140px 0 46px; /* space for fixed nav */
}

.hero-inner{
  text-align: center;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar{
  width: 90px;
  height: 90px;
  border-radius: var(--radiusPill);
  border: 6px solid #fff;
  box-shadow: var(--shadowSoft);
  object-fit: cover;
  background: #f3f4f6;
}

.hero-title{
  margin: 0;
  font-size: clamp(38px, 5.8vw, 55px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: #0b1020;
}

.accent{ color: #0b1020; } /* keep simple like reference */

.hero-lead{
  max-width: 60ch;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* CTA + availability pill */
.cta-row{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  border: 1px solid var(--line);
  background: #fff;
  color: #111827;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn.primary{
  background: var(--btnDark);
  color: #fff;
  border-color: var(--btnDark);
}
.btn.primary:hover{ background: var(--btnDarkHover); }

.btn.ghost{
  background: #fff;
  color: #111827;
  border: 1px solid var(--line);
}

.status-pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radiusPill);
  background: var(--greenBg);
  border: 1px solid var(--greenLine);
  color: var(--greenText);
  font-weight: 900;
  white-space: nowrap;
}

.status-pill .dot{
  width: 8px;
  height: 8px;
  border-radius: var(--radiusPill);
  background: #22c55e;
}

/* ---------- Marquee tech bar (clean) ---------- */
.marquee{
  width: min(760px, 92vw);
  margin-top: 26px;
  overflow: hidden;
  /* fade edges like reference */
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track{
  display:flex;
  gap: 26px;
  width: max-content;
  align-items:center;
  animation: marquee 16s linear infinite;
  opacity: .88;
}

.tech{
  font-weight: 900;
  color: #111827;
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: .02em;
}

@keyframes marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ---------- Sections / headings (basic) ---------- */
.section{
  padding: 64px 0;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 18px;
}

h2{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.03em;
}

/* ---------- Chips (filters) ---------- */
.chips{ display:flex; gap: 10px; flex-wrap:wrap; }
.chip{
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radiusPill);
  font-weight: 800;
  color: #111827;
  cursor: pointer;
}
.chip:hover{ background: #f9fafb; }
.chip.is-active{
  background: #111827;
  border-color: #111827;
  color: #fff;
}

/* ---------- Project grid/cards ---------- */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 10px 30px rgba(17,24,39,.06);
}

.card img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #f3f4f6;
}

.card-body{ padding: 16px; }
.card-body h3{ margin: 0 0 8px; font-size: 18px; letter-spacing: -0.02em; }
.card-body p{ margin: 0 0 12px; color: var(--muted); line-height: 1.6; }

.meta{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.meta span{
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--radiusPill);
  background: #f9fafb;
  color: #111827;
}

.actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Icon link (your svg links) */
.icon-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  text-decoration:none;
  font-weight: 800;
  color: #111827;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.icon-link:hover{ background: #f9fafb; }

.icon{
  width: 18px;
  height: 18px;
}

/* ---------- Timeline list (if you use tl-*) ---------- */
.tl-item{
  position: relative;
  padding-left: 22px;
  margin-bottom: 16px;
}

.tl-dot{
  position:absolute;
  left: 6px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #111827;
}

.tl-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17,24,39,.05);
}

.tl-card h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.tl-meta{
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.tl-bullets{
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}
.tl-bullets li{
  list-style: disc;
  margin: 6px 0;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: var(--radiusPill);
  border: 1px solid var(--line);
  background: #f9fafb;
  font-size: 12px;
  font-weight: 800;
  margin-left: 8px;
  color: #111827;
}

.sub{ color: var(--muted); margin: 8px 0 0; }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 28px;
}
.foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}
.foot-link{
  text-decoration:none;
  color: #111827;
  font-weight: 900;
}
.foot-link:hover{ text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill-links a:not(.btn){ display:none; } /* keep simple on smaller screens */
}

@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
  .hero{ padding: 130px 0 40px; }
  .hero-lead{ font-size: 16px; }
  .section-head{ flex-direction: column; align-items:flex-start; }
}

/* ---------- Reveal class fallback ---------- */
.reveal{ opacity: 1; transform: none; }

.marquee-track{
  display:flex;
  gap: 40px;
  width: max-content;
  align-items:center;
  animation: marquee 18s linear infinite;
}

.tech-logo{
  height: 32px;
  width: auto;
  object-fit: contain;
  opacity: .85;
  transition: transform .2s ease, opacity .2s ease;
}

.tech-logo:hover{
  transform: scale(1.1);
  opacity: 1;
}

.tech-logo{
  height: 40px;
  width: auto;
}

.about{
  padding-top: 80px;
}

.about-grid{
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-text h2{
  font-size:36px;
  margin-bottom:16px;
}

.about-text p{
  color:#4b5563;
  line-height:1.7;
  margin-bottom:16px;
  font-size:16px;
}

.about-buttons{
  margin-top:20px;
  display:flex;
  gap:12px;
}

.about-image{
  display:flex;
  justify-content:center;
}

.about-image img{
  width:260px;
  border-radius:20px;
  box-shadow:0 20px 40px rgba(0,0,0,.08);
}

@media (max-width:900px){

  .about-grid{
    grid-template-columns:1fr;
    gap:30px;
  }

  .about-image{
    order:-1;
  }

  .about-image img{
    width:180px;
  }

}

/* =========================================================
   EXPERIENCE + EDUCATION TIMELINE UPGRADE
   Drop this near the bottom of your CSS so it overrides older styles
   ========================================================= */

:root{
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --accent-line: #c7d2fe;
}

/* nicer section heading accent */
.section-head h2,
.about-text h2,
#contact h2{
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-head h2::after,
.about-text h2::after,
#contact h2::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #93c5fd);
}

/* timeline wrapper */
.timeline-list{
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  position: relative;
}

.timeline-list::before{
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #dbeafe, #cbd5e1);
}

/* item spacing */
.tl-item{
  position: relative;
  padding-left: 48px;
  margin-bottom: 22px;
}

.tl-item:last-child{
  margin-bottom: 0;
}

/* timeline dot */
.tl-dot{
  position: absolute;
  left: 8px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--accent-line);
  z-index: 2;
}

/* card */
.tl-card{
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 20px 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17,24,39,.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tl-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(17,24,39,.10);
  border-color: #d1d5db;
}

/* special featured role */
.featured-role .tl-card{
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #c7d2fe;
  box-shadow: 0 18px 40px rgba(79,70,229,.08);
}

.featured-role .tl-dot{
  background: #4338ca;
  box-shadow: 0 0 0 1px #a5b4fc;
}

/* top row inside card */
.tl-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tl-top h3{
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #0f172a;
  flex: 1 1 340px;
}

/* pill cluster */
.tl-pills{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* improved pills */
.pill{
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  margin-left: 0;
  white-space: nowrap;
}

/* featured first card pills */
.featured-role .pill{
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

/* meta line */
.tl-meta{
  color: #5b6472;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* bullets */
.tl-bullets{
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
}

.tl-bullets li{
  list-style: disc;
  margin: 8px 0;
  line-height: 1.65;
  font-size: 15.5px;
}

/* education text */
.sub{
  color: #4b5563;
  margin: 2px 0 0;
  line-height: 1.7;
  font-size: 15.5px;
}

#experience,
#education{
  background: transparent;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

/* spacing between those sections and rest of page */
#experience.section,
#education.section{
  padding-top: 56px;
  padding-bottom: 56px;
}

/* responsive */
@media (max-width: 768px){
  .timeline-list::before{
    left: 13px;
  }

  .tl-item{
    padding-left: 40px;
  }

  .tl-dot{
    left: 6px;
  }

  .tl-card{
    padding: 18px 16px;
    border-radius: 18px;
  }

  .tl-top h3{
    font-size: 18px;
  }

  .tl-pills{
    justify-content: flex-start;
  }

  #experience,
  #education{
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 22px;
  }
}

/* About social links */

.about-socials{
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  border-radius: 999px;

  border: 1px solid var(--line);
  background: #fff;

  font-weight: 800;
  font-size: 14px;

  text-decoration: none;
  color: #111827;

  transition: transform .15s ease,
              background .15s ease,
              box-shadow .15s ease;
}

.social-btn svg{
  width: 18px;
  height: 18px;
}

.social-btn:hover{
  transform: translateY(-2px);
  background: #f9fafb;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.hero{
  position: relative;
}

.hero::before{
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(79,70,229,.15) 0%, rgba(79,70,229,0) 70%);
  z-index: 0;
}

.hero-inner{
  position: relative;
  z-index: 1;
}