:root{
  --bg:#f9fbfc;
  --border:#e9eef3;
  --ink:#2a3140;
  --muted:#667085;
  --brand:#7cc7d6;   /* pastel teal */
  --accent:#c7b5f3;  /* pastel lilac */
  --shadow:0 8px 24px rgba(30,38,54,.08);
}

/* ===== Base ===== */
*{box-sizing:border-box}
html,body{margin:0}
body{
  font-family: Inter, system-ui, sans-serif;
  color:var(--ink);
  line-height:1.6;
  background:
    radial-gradient(900px 500px at 8% 12%, #eef3ff, transparent),
    radial-gradient(900px 500px at 92% 85%, #ffe9dc, transparent),
    var(--bg);
}
a{color:inherit;text-decoration:none}

/* Container slightly hugging the left */
/* Container slightly hugging the left */
.container{
  max-width:1280px;
  margin:0 auto;
  padding-left:24px;
  padding-right:24px;   /* was 60px */
}


/* ===== Header ===== */
/* Header styles */
.site-header {
  width: 100%;
  padding: 20px 32px;
  position: fixed;       /* stays at top */
  top: 0; left: 0;
  background: transparent; /* blend with background */
  border: none;            /* remove line */
  z-index: 100;
}


.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;              /* added so header matches container gutters */
  display: flex;
  justify-content: flex-end;
  align-items: center;
}


.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-weight: 500;
  color: var(--ink);      /* matches your main text color */
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);   /* subtle lilac hover */
}


/* ===== Hero ===== */
.hero{
  padding-top: clamp(90px, 12vh, 160px);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr;   /* single column; timeline is below */
  gap:32px;
}

/* LEFT block: photo + name/text */
.hero-left{
  display:grid;
  grid-template-columns: 200px minmax(480px, 900px);
  gap:24px;
  align-items:start;
  justify-content:center;   /* NEW: centers the whole grid */
  justify-items:center;     /* centers content inside each column */
}

.hero-text{
  text-align:center;
  margin: 0 auto;
}
.summary{
  margin:20px auto;
  text-align:center;
}

/* Photo */
/* Photo */
.hero-photo{
  display:flex;
  justify-content:flex-start;
  margin-left:0;                /* was -10px */
}

.pfp{border-radius:50%;object-fit:cover;display:block}
.pfp-lg{
  width:240px;height:240px;
  border:6px solid #fff;
  box-shadow:0 0 0 8px rgba(124,199,214,.18), 0 12px 28px rgba(0,0,0,.08);
  background:#eef3f7;
}

/* Text */
.hero-text{text-align:left;max-width:900px}
.eyebrow{color:var(--muted);font-weight:600;letter-spacing:.5px;margin:0 0 6px}
.display{
  font-size:56px;
  line-height:1.1;
  font-weight:800;
  white-space:nowrap;    /* keep name on one line */
  margin:0 0 16px;       /* space beneath name */
}

/* Summary paragraphs */
/* Summary paragraphs — centered and comfortable */
.summary{
  color:var(--muted);
  max-width:70ch;
  margin: 20px auto;                /* ⬅ centers the block itself */
  text-align:justify;                /* ⬅ was justify */
  line-height:1.75;
}

/* Buttons */
.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.btn{
  padding:10px 14px;border-radius:12px;border:1px solid var(--border);
  background:#fff;box-shadow:var(--shadow);font-weight:600
}
.btn.primary{
  background:linear-gradient(135deg,var(--brand),var(--accent));
  color:#173246;border:none
}

/* ===== Old right timeline (hidden) ===== */
.timeline{ display:none; }

/* REPLACE your current .exp-timeline + ::before + .dot rules with this */

.exp-timeline{
  margin-top: 72px;                 /* space above the timeline */
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0 16px;                /* ← no top padding */
}

.exp-timeline::before{
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;                           /* line sits at the top of the timeline */
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

/* Make each item a hover/focus target */
.exp-item{
  flex:1;
  position:relative;
  text-align:center;
  padding:0 10px;
  cursor:pointer;
  outline:none;
}

/* Dot + highlight on hover/focus */
.exp-item .dot{
  position:absolute;
  left:50%; top:0;
  transform:translate(-50%,-50%);
  width:18px; height:18px;
  border-radius:50%;
  background:#fff;
  border:4px solid var(--brand);
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  transition:transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.exp-item:hover .dot,
.exp-item:focus-within .dot{
  transform:translate(-50%,-50%) scale(1.08);
  background: var(--accent);      /* lite purple fill */
  border-color: var(--accent);
  box-shadow:0 0 0 6px rgba(199,181,243,.22), 0 10px 24px rgba(0,0,0,.10);
}

/* Title/date spacing */
.exp-item .info h3{ margin:40px 0 0; font-size:14px; font-weight:700; }
.exp-item .info small{ display:block; color:var(--muted); font-size:12px; margin-top:6px; }

/* Wrap so popup can anchor below the heading block */
.info-wrap{ position:relative; display:inline-block; }

.exp-item .popup ul li {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;   /* gives it breathing room */
}

/* Popup — DROPS DOWN below the heading (no diamond) */
.exp-item .popup{
  position:absolute;
  top: calc(100% + 10px);          /* BELOW the h3/small */
  left:50%;
  transform: translateX(-50%);
  width: min(360px, 78vw);
  background: var(--accent);       /* lite purple */
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  padding:14px 18px;
  border-radius:14px;
  text-align:left;
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  z-index:12;
  color: var(--ink);
}
.exp-item .popup::after{ display:none; } /* remove diamond */

/* Popup content */
.exp-item .popup h4{
  margin:0 0 8px; font-size:12px; letter-spacing:.4px;
  text-transform:uppercase; color:#2a3140;
}
.exp-item .popup ul{
  margin:0; padding-left:18px; font-size:14px; line-height:1.6; color:#2a3140;
}

/* Dot highlight */
.exp-item:hover .dot,
.exp-item:focus-within .dot,
.exp-item.active .dot{
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(199,181,243,.22), 0 10px 24px rgba(0,0,0,.10);
}

/* Popup shown */
.exp-item:hover .popup,
.exp-item:focus-within .popup,
.exp-item.active .popup{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
  transition-delay: 0s;
}


/* Mobile: hide popups (hover-less) */
@media (max-width:980px){
  .exp-item .popup{ display:none !important; }
}

/* ≤980px: stack hero + make timeline vertical */
@media (max-width:980px){
  /* hero stacks and centers */
  .hero-left{
    grid-template-columns:1fr;
    text-align:center;
    justify-items:center;
  }
  .hero-text{ text-align:center; }
  .summary{ margin:16px auto; }
  .cta{ justify-content:center; }

  /* timeline becomes vertical */
  .exp-timeline{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    padding-top:16px;
  }
  .exp-timeline::before{ display:none; }        /* hide horizontal line */

  .exp-item{
    text-align:left;
    width:100%;
    padding-left:28px;
  }

  /* dot on the left for vertical layout */
  .exp-item .dot{
    position:relative;
    left:0;
    top:18px;
    transform:translateY(-50%);
    margin:0 0 6px;                              /* small spacing under dot */
  }

  .exp-item .info h3{ 
    margin: 0 0 2px; /* Adjust 4px to your liking for vertical spacing */
    font-size:14px; 
    font-weight:700; 
}

  .exp-item p{ max-width:none; }
}

/* ≤600px: shrink name + photo */
@media (max-width:600px){
  .display{ font-size:42px; }
  .pfp-lg{ width:140px; height:140px; }
}

.projects-section {
  margin-top: 100px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}

/* Featured project layout */
.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 80px;
  align-items: center;
}

.featured-project img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.featured-project .description {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;   /* optional: add breathing room */
}


.project-details .tag {
  color: #7a4fcf;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.project-details h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.project-details .description {
  margin-bottom: 16px;
  color: var(--muted);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.tech-stack span {
  background: #f0f3f9;
  color: var(--ink);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
}

.project-details .links a {
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.project-details .links a:hover {
  color: var(--accent);
}
/* project other */
/* Other projects grid */
/* Other projects grid — vertical cards in rows */
.other-projects {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr); /* 3 per row on large screens */
}

@media (max-width: 1100px) {
  .other-projects {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 700px) {
  .other-projects {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

/* Gradient accent bar */
.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(30,38,54,.12);
}

.project-card h4 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink);
}

.project-card p {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}

/* Tech stack chips */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tech-stack span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124,199,214,.15); /* pastel teal tint */
  color: var(--ink);
  border: 1px solid rgba(124,199,214,.25);
}

.tech-stack span:nth-child(even) {
  background: rgba(199,181,243,.15); /* pastel lilac tint */
  border-color: rgba(199,181,243,.25);
}

.project-card a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.project-card a:hover {
  color: var(--accent);
}

/* contact section */

.contact-section {
  margin-top: 120px;
  text-align: center;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

.contact-text a {
  font-weight: 600;
  text-decoration: none;
}

.contact-text a.email {
  color: #7a4fcf;   /* darker purple */
}

.contact-text a.email:hover {
  text-decoration: underline;
}

.contact-text a.linkedin {
  color: #7a4fcf;   /* pastel lilac */
}

.contact-text a.linkedin:hover {
  text-decoration: underline;
}

/* --- FULL-BLEED FOOTER FIX (override any inherited width limits) --- */
.site-footer {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  text-align: center;
  font-size: 14px;
  margin-top: 100px;
  padding: 32px 24px;
  box-sizing: border-box;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

.site-footer {
  /* ... existing styles ... */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.site-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
