:root{
  --bg:#141516;
  --panel:#1b1c1d;
  --ink:#e9ecf1;
  --ink-dim:#b9c0cc;
  --accent:#8fb6ff;
  --card-edge:#2a2c2f;
  --glow: rgba(143,182,255,.18);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--ink);
  background:radial-gradient(1200px 600px at 20% -10%, #192028 0%, #141516 60%) no-repeat fixed;
  display:flex; flex-direction:column; align-items:center;
}

/* Header */
header{width:min(1000px,92vw); margin:24px auto 4px}
header h1{margin:0 0 6px; font-size:clamp(1.6rem,3vw,2.4rem); font-weight:700; letter-spacing:.2px}
header p{margin:0; color:var(--ink-dim); opacity:.9}
header a{color:var(--accent); text-decoration:none}
header a:hover{text-decoration:underline}

/* Carousel shell */
.carousel{
  width:min(1000px,92vw);
  margin:16px auto 8px;
  position:relative;
  perspective:1100px;
}
.stage{
  position:relative;
  height:380px;
  transform-style:preserve-3d;
  overflow:visible;
  touch-action:none;
}

/* Card */
.card{
  position:absolute; inset:0;
  width:min(540px,86vw);
  height:340px;
  margin:auto;
  border-radius:22px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #1f2226 0%, #16181a 100%);
  border:1px solid var(--card-edge);
  box-shadow:0 26px 64px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
  padding:24px;
  display:flex; flex-direction:column;
  transform-style:preserve-3d;
  transition:transform .55s cubic-bezier(.22,.61,.36,1), opacity .35s ease, filter .35s ease;
}
.card::after{
  content:"";
  position:absolute; inset:0;
  border-radius:22px;
  pointer-events:none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 -60px 80px rgba(0,0,0,.35) inset;
}

.card h2{
  margin:0 0 8px;
  font-size:clamp(1.1rem,2vw,1.4rem);
  font-weight:700;
  letter-spacing:.2px;
  text-shadow:0 1px 0 rgba(0,0,0,.3);
}

.rule{
  width:100%; height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  margin:10px 0 14px;
}

.items{margin:0; padding:0; list-style:none; font-size:1.05rem; line-height:1.95}
.items li{display:flex; align-items:center; gap:12px; letter-spacing:.15px}
.items img{width:28px; height:28px; object-fit:contain; filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}
.badge{
  margin-left:auto; font-size:.82rem; color:var(--ink-dim);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  padding:.15rem .5rem; border-radius:999px;
}

.hint{opacity:.75; text-align:center; margin:8px 0 0; font-size:.95rem; color:var(--ink-dim)}

/* Controls */
.control{
  position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px; border-radius:12px;
  border:2px solid rgba(143,182,255,.7);
  background:rgba(143,182,255,.04);
  color:var(--ink);
  font-size:20px; cursor:pointer;
  display:grid; place-items:center;
  transition:background .2s ease, box-shadow .2s ease, transform .1s ease;
  user-select:none; z-index:999; backdrop-filter: blur(2px);
  outline:none;
}
.control:hover{background:var(--glow); box-shadow:0 0 0 6px rgba(143,182,255,.12)}
.control:active{transform:translateY(-50%) scale(.98)}
.control:focus-visible{box-shadow:0 0 0 4px var(--glow)}
.prev{left:-2px}
.next{right:-2px}

/* Motion & responsive */
@media (prefers-reduced-motion: reduce){ .card{transition:none} }
@media (max-width:640px){
  .stage{height:340px}
  .card{height:310px; width:92vw; padding:20px}
  .control{display:none} /* swipe only */
}

/* ---------- Top Nav ---------- */
.top-nav{
  width:min(1000px,92vw);
  display:flex; gap:18px;
  margin:4px auto 8px;
}
.top-nav a{
  color:var(--ink-dim); text-decoration:none; padding:6px 10px;
  border-radius:10px; transition:background .2s ease, color .2s ease;
}
.top-nav a:hover{ color:var(--ink); background:rgba(255,255,255,.04); }

/* ---------- Sections ---------- */
.section{
  width:min(1000px,92vw);
  margin:28px auto;
}
.section-title{
  margin:0 0 14px;
  font-size:clamp(1.2rem,2.2vw,1.6rem);
  font-weight:700; letter-spacing:.2px;
}

/* ---------- About ---------- */
.about-card{
  display:grid; grid-template-columns: 160px 1fr; gap:20px;
  background:linear-gradient(180deg, #1c2023 0%, #151719 100%);
  border:1px solid var(--card-edge);
  border-radius:22px; padding:20px;
  box-shadow:0 18px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.headshot{
  width:160px; height:160px; border-radius:16px; object-fit:cover;
  box-shadow:0 8px 22px rgba(0,0,0,.35);
}
.about-copy h2{ margin:0 0 8px; font-size:1.25rem }
.about-copy p{ margin:0 0 10px; color:var(--ink) }
.about-list{ margin:0; padding-left:18px; color:var(--ink-dim); line-height:1.8 }
.about-ctas{ margin-top:14px; display:flex; gap:10px }

/* Buttons (reused in projects) */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:.55rem .9rem; border-radius:999px;
  color:var(--ink); background:rgba(143,182,255,.12);
  border:1px solid rgba(143,182,255,.5);
  text-decoration:none; font-weight:600; letter-spacing:.2px;
  transition:transform .1s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ background:rgba(143,182,255,.18); box-shadow:0 0 0 6px rgba(143,182,255,.10) }
.btn:active{ transform:scale(.98) }
.btn.ghost{
  background:transparent; border-color:rgba(255,255,255,.25); color:var(--ink);
}
.btn.ghost:hover{ background:rgba(255,255,255,.05) }

/* ---------- Projects ---------- */
.projects-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:18px;
}
.project{
  display:flex; flex-direction:column; overflow:hidden;
  border-radius:18px; border:1px solid var(--card-edge);
  background:linear-gradient(180deg, #1c2023 0%, #151719 100%);
  box-shadow:0 18px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02) inset;
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.project:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
  border-color:rgba(255,255,255,.1);
}
.project-media{
  aspect-ratio: 16/9; background:#0f1112; overflow:hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* always fills the box consistently */
  object-position: center; /* always centers the image vertically */
  display: block;
  object-position: 50% 0%; /* center with slight upward bias */
}
.project-body{ padding:14px 14px 16px; display:flex; flex-direction:column; gap:10px }
.project-body h3{ margin:0; font-size:1.05rem }
.project-body p{ margin:0; color:var(--ink-dim) }
.tags{ display:flex; flex-wrap:wrap; gap:8px; margin:2px 0 2px; padding:0; list-style:none }
.tags li{
  font-size:.82rem; color:var(--ink-dim);
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  padding:.2rem .5rem; border-radius:999px;
}
.actions{ display:flex; gap:10px; margin-top:auto }

/* ---------- Responsive tweaks ---------- */
@media (max-width:720px){
  .about-card{ grid-template-columns: 1fr; }
  .headshot{ width:120px; height:120px; }
}

/* ---------- Report / PDF viewer ---------- */
.report-header{
  position: sticky; top: 8px; z-index: 50;
  width: min(1100px, 92vw); margin: 12px auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px; border: 1px solid var(--card-edge);
  background: linear-gradient(180deg, #1c2023 0%, #151719 100%);
  box-shadow: 0 12px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.report-title{ text-align: center; font-weight: 700; letter-spacing: .2px; }

.pdf-container{
  width: min(1100px, 92vw);
  margin: 8px auto 24px;
}

.pdf-frame{
  width: 100%;
  height: calc(100vh - 120px);       /* fill the viewport under the header */
  border: 1px solid var(--card-edge);
  border-radius: 16px;
  background: #0f1112;
  box-shadow: 0 18px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02) inset;
}

.pdf-fallback{
  text-align: center;
  color: var(--ink-dim);
  margin-top: 10px;
}

@media (max-width: 720px){
  .report-header{ grid-template-columns: auto 1fr auto; }
  .pdf-frame{ height: calc(100vh - 140px); }
}

/* --- Footer --- */
.site-footer{
  width:100%;
  margin-top:64px;                      /* space above footer */
  border-top:1px solid var(--card-edge);
  background:linear-gradient(180deg,#17191c 0%, #111214 100%);
  box-shadow:0 -8px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.footer-inner{
  width:min(1000px,92vw);
  margin:0 auto;
  padding:18px 0 34px;                  /* vertical padding inside footer */
  display:flex; flex-wrap:wrap;
  align-items:center; justify-content:space-between;
  gap:12px;
  color:var(--ink-dim);
}
.footer-left{ font-weight:600; color:var(--ink) }
.footer-right{ opacity:.9 }

.footer-links{ display:flex; gap:10px; flex-wrap:wrap }
.footer-links a{
  color:var(--ink-dim); text-decoration:none;
  padding:6px 10px; border-radius:10px;
  transition:background .2s ease, color .2s ease;
}
.footer-links a:hover{ color:var(--ink); background:rgba(255,255,255,.06) }

/* Add a little extra gap after the last content section (Projects) */
.section:last-of-type{ margin-bottom:48px; }

/* Title row with GPA chip */
.title-row{ display:flex; align-items:center; gap:10px; }

.chip{
  display:inline-flex; align-items:center;
  padding:.18rem .55rem; border-radius:999px;
  font-size:.82rem; font-weight:600; letter-spacing:.2px;
  line-height:1;
  border:1px solid rgba(255,255,255,.14);
  color:var(--ink-dim);
  background:rgba(255,255,255,.04);
}
.chip-accent{
  color:var(--ink);
  border-color: rgba(143,182,255,.45);
  background: rgba(143,182,255,.12);
}

/* Title + GPA chip alignment */
.title-row{
  display:inline-flex;          /* keep it tight with the heading */
  align-items: baseline;        /* align on the text baseline */
  gap:10px;
}

.title-row h2{
  margin:0;
  line-height:1;                /* remove extra vertical space */
}

/* subtle nudge so the pill sits perfectly with the cap height */
.title-row .chip{
  display:inline-flex; align-items:center;
  line-height:1;
  padding:.18rem .55rem;
  position: relative;
  top:-2px;                     /* adjust -1 to -3px to taste */
}

/* ---------- Internships / Experience (fixed) ---------- */

/* grid with a minimum card width so text doesn't get squeezed */
.exp-list{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap:18px;
}

/* card as a flex row: logo + body */
.exp{
  display:flex; align-items:flex-start; gap:14px;
  padding:14px;
  border-radius:18px;
  border:1px solid var(--card-edge);
  background:linear-gradient(180deg, #1c2023 0%, #151719 100%);
  box-shadow:0 18px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.02) inset;
}

/* fixed-size logo column */
.exp-logo{
  flex:0 0 64px;
  width:64px; height:64px; border-radius:14px; object-fit:cover;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 8px 22px rgba(0,0,0,.35);
}

/* text column expands and can actually use the width */
.exp-body{
  flex:1 1 auto; min-width:0;
  display:flex; flex-direction:column; gap:8px;
}

/* top row: title on left, dates on right */
.exp-top{
  display:flex; flex-wrap:wrap; gap:10px;
  align-items:baseline; justify-content:space-between;
}

.exp-role{ margin:0; font-size:1.02rem; font-weight:700; letter-spacing:.2px; }
.exp-dates{ color:var(--ink-dim); font-size:.92rem; }

.exp-summary{ margin:0; color:var(--ink-dim); }

/* bullets & wrapping behave like normal text (no weird word-per-line) */
.exp-points{ margin:0; padding-left:18px; line-height:1.7; }
.exp-points li{ margin:2px 0; }
.exp-body, .exp-body *{
  white-space:normal; word-break:normal; overflow-wrap:break-word;
}

/* tags */
.tags{
  display:flex; flex-wrap:wrap; gap:8px; margin:2px 0 0; padding:0; list-style:none;
}
.tags li{
  font-size:.82rem; color:var(--ink-dim);
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  padding:.2rem .5rem; border-radius:999px;
}

/* responsive: allow single column on small screens */
@media (max-width:720px){
  .exp-list{ grid-template-columns: 1fr; }
}


.exp-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards across */
  gap: 1.75rem;
}

/* Tablet → 2 columns */
@media (max-width: 900px) {
  .exp-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile → 1 column */
@media (max-width: 600px) {
  .exp-list {
    grid-template-columns: 1fr;
  }
}

.exp {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: auto; /* remove forced equal height */
}

.exp-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.exp-points {
  display: none; /* hidden until expanded */
  margin-top: 0.25rem;
  line-height: 1.45;
}

.exp.show-details .exp-points {
  display: block;
}

.exp {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.exp-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.exp-summary {
  margin-bottom: 1rem;
}

.exp-points {
  display: none; /* we are not using bullet lists now */
}

/* This pushes tags to bottom so all cards align */
.tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.exp-summary {
  min-height: 66px; /* adjust until all 3 line up clean */
  line-height: 1.45;
  margin-bottom: 1.2rem;
}

.exp-role {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 32px; /* forces a single row visually */
  overflow: hidden;
}
