:root{
  --bg:#0b0d12;
  --bg2:#0f1320;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --text:#e9eefc;
  --muted:#b5bfdc;
  --accent:#7c9dff;
  --accent2:#a78bfa;
  --ring: rgba(124,157,255,.35);

  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.40);
  --shadow2: 0 10px 30px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(124,157,255,.18), transparent 55%),
    radial-gradient(700px 500px at 90% 0%, rgba(167,139,250,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.65;
}

a{color:var(--accent);text-decoration:none}
a:hover{opacity:.92;text-decoration:underline}

.container{max-width:1080px;margin:0 auto;padding:0 22px}

/*  Topbar */
.topbar{
  position:sticky;top:0;z-index:10;
  background:rgba(11,13,18,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;gap:14px;flex-wrap:wrap
}
.brand{
  font-family:Sora, Inter, system-ui;
  font-weight:700;
  letter-spacing:.2px;
  color:var(--text)
}
nav{display:flex;gap:14px;flex-wrap:wrap}
nav a{color:rgba(233,238,252,.85)}
nav a:hover{color:var(--text)}
.links{display:flex;gap:12px;flex-wrap:wrap}

/* Hero */
.hero{padding:86px 0 54px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap:34px;
  align-items:center;
}

h1,h2,h3{
  font-family:Sora, Inter, system-ui;
  letter-spacing:-.4px;
}
h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;   /* lighter */
  letter-spacing: -0.3px;
}

.accent{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.subtitle{
  color: rgba(233,238,252,.75);
  margin:10px 0 10px;
  font-weight:500;
}
.lead{
  color: rgba(233,238,252,.82);
  max-width: 62ch;
  margin: 0;
}

/* Buttons */
.cta{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color:#0b0d12;
  font-weight:700;
  box-shadow: 0 14px 35px rgba(124,157,255,.18);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover{transform: translateY(-2px); filter:saturate(1.05)}
.btn.ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow:none;
  border:1px solid rgba(255,255,255,.14);
}
.btn.ghost:hover{transform: translateY(-2px)}

/* Hero image (square) */
.hero-image{
  display:flex;
  justify-content:flex-end;
}
.hero-image img{
  width: 250px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

/* Sections */
.section{padding:64px 0}
.section.alt{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
h2{margin:0 0 12px; font-size:1.55rem}
p{color:rgba(233,238,252,.84)}

/* Pills */
.pill-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.pill{
  padding:7px 11px;border-radius:999px;
  background: rgba(124,157,255,.10);
  border:1px solid rgba(124,157,255,.20);
  color:rgba(233,238,252,.92);
  font-size:.92rem;
}

/* Cards */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow2);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-6px);
  border-color: rgba(124,157,255,.35);
  background: rgba(255,255,255,.08);
}
.card h3{margin:0 0 6px}
.meta{color:rgba(233,238,252,.62);margin:0 0 10px}
.card-links{display:flex;gap:12px;margin-top:10px;flex-wrap:wrap}
.card-links a{font-weight:600}


/* Ruchi style */
.stack { display: grid; gap: 14px; margin-top: 18px; }

.entry{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.entry-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.entry h3{ margin: 0; }
.entry-date{ color: rgba(233,238,252,.65); font-weight:600; }
.entry-sub{ margin-top: 6px; color: rgba(233,238,252,.78); font-weight:600; }
.entry-desc{ margin: 10px 0 0; }

.entry-bullets{
  margin: 10px 0 0 18px;
  color: rgba(233,238,252,.84);
}

.entry-links{
  display:flex;
  gap:12px;
  margin-top: 10px;
  flex-wrap:wrap;
}
.entry-links a{ font-weight: 650; }

/* Footer */
.footer{
  padding:26px 0;
  border-top:1px solid rgba(255,255,255,.08);
  color: rgba(233,238,252,.65);
}

/* Responsive */
@media (max-width: 980px){
  .hero{padding:70px 0 40px}
  .hero-grid{grid-template-columns:1fr}
  .hero-image{justify-content:flex-start}
  .hero-image img{width:210px;height:270px;margin-top:18px}
  .grid{grid-template-columns:1fr}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto}
  .btn, .card{transition:none}
}
.section, .card{ opacity: 0; transform: translateY(12px); }
.reveal { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

@media (prefers-reduced-motion: reduce){
  .section, .card, .hero-image img { opacity: 1; transform:none; }
  .reveal { transition:none; }
}

.hero-image{
  position: relative;
}
.hero-image::before{
  content:"";
  position:absolute;
  width:260px;height:260px;
  right:20px; top:40px;
  background: radial-gradient(circle, rgba(124,157,255,.28), transparent 60%);
  filter: blur(10px);
  z-index:-1;
}
@media (max-width: 980px){
  .hero-image::before{ left:0; right:auto; top:20px; }
}
/* Project image tiles */
.project-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.project-tile{
  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: transform .2s ease, border-color .2s ease;
  text-align: left;
}

.project-tile img{
  width: 100%;
  height: 230px;
  object-fit: cover;
  display:block;
  transform: scale(1);
  transition: transform .35s ease;
}

.project-tile:hover{
  transform: translateY(-6px);
  border-color: rgba(124,157,255,.35);
}

.project-tile{
  display: flex;
  flex-direction: column;
}

.project-tile:hover img{
  transform: scale(1.08);
}

.tile-text{
  padding: 12px 14px;
}

.tile-title{
  font-family: Sora, Inter, system-ui;
  font-weight: 750;
  font-size: 1rem;
  color: var(--text);
}

.tile-sub{
  margin-top: 4px;
  font-size: .9rem;
  font-weight: 650;
  color: rgba(233,238,252,.65);
}



/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}
.modal.open{ display:block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
}

.modal-card{
  position: relative;
  width: min(760px, calc(100vw - 40px));
  margin: 8vh auto;
  background: rgba(15,19,32,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  padding: 18px;
  backdrop-filter: blur(16px);
  transform: translateY(10px);
  animation: modalIn .18s ease forwards;
}

@keyframes modalIn{
  to { transform: translateY(0); }
}

.modal-close{
  position:absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.modal-tags{
  color: rgba(233,238,252,.70);
  font-weight: 700;
  margin-top: 6px;
}
.modal-desc{ margin: 12px 0 0; }

.modal-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.modal-links a{
  display:inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 750;
}

/* Responsive */
@media (max-width: 980px){
  .project-grid{ grid-template-columns: 1fr; }
  .project-tile img{ height: 220px; }
}

/* Cursor Animation */
.cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent);
  opacity: 1;
  transition: opacity 0.4s ease; /*transition must be here */
}

.cursor.blink {
  animation: blink 1s steps(1) infinite;
}

.cursor.hide {
  animation: none;
  opacity: 0;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* publication */
/* Publications */
.pub-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.pub-card{
  display: block;
  text-decoration: none;
  color: inherit;
}

.pub-image{
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.pub-image img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}

/* Hover zoom */
.pub-card:hover .pub-image img{
  transform: scale(1.08);
}

.pub-text{
  margin-top: 10px;
}

.pub-title{
  font-family: Sora, Inter, system-ui;
  font-weight: 650;
}

.pub-meta{
  margin-top: 4px;
  color: rgba(233,238,252,.65);
  font-size: .92rem;
}

/* Mobile */
@media (max-width: 980px){
  .pub-grid{
    grid-template-columns: 1fr;
  }
  .pub-image img{
    height: 220px;
  }
}

