/* ---------- Theme ---------- */
:root{
  --emerald: #064e3b; /* emerald-500 */
  --emerald-dark: #065f46; /* emerald-600 */
  --emerald-very-dark: #022c22; /* emerald-700 */
  --bg: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --border: #e2e8f0; /* slate-200 */
}

* { box-sizing: border-box; }
html, body{
  margin:0; padding:0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height:1.6;
}

/* ---------- Layout ---------- */
.container{
  width:100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site-header{
  position: sticky; top:0; z-index:50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar{
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.title{
  font-weight:700; letter-spacing:.2px;
}

.nav-links{
  display:flex; gap:1rem;
}
.nav-links a{
  text-decoration:none; color: var(--muted); padding:.4rem .6rem; border-radius:.6rem;
  transition: all .2s ease;
}
.nav-links a:hover, .nav-links a.active{
  color: var(--emerald-very-dark); background: #ecfdf5;
}

/* Mobile nav (CSS only) */
#nav-toggle{ display:none; }
.nav-toggle-label{ display:none; cursor:pointer; padding:.5rem; border-radius:.6rem; }
.nav-toggle-label span{ display:block; width:24px; height:2px; background:var(--text); margin:5px 0; }

@media (max-width: 720px){
  .nav-links{ display:none; position:absolute; top:64px; right:0; left:0; background:#ffffff; border-bottom:1px solid var(--border); padding: .75rem 1rem; }
  #nav-toggle:checked + .nav-toggle-label + .nav-links{ display:flex; flex-direction:column; }
  .nav-toggle-label{ display:block; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 3rem 0 2rem 0;
}
.hero .content{
  display:grid; grid-template-columns: 1.2fr .8fr; gap:2rem; align-items:center;
}
.hero h1{
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height:1.15; margin:0 0 .6rem 0;
}
.subtitle{ 
  color: var(--muted); 
  margin-bottom: 1rem;
  text-align: left;
}

.btn-row{ display:flex; gap:.75rem; flex-wrap:wrap; }
.btn{
  display:inline-block; text-decoration:none; font-weight:600;
  border-radius:999px; padding:.7rem 1rem; border:1px solid var(--emerald);
}
.btn.primary{ background: var(--emerald); color:white; border-color: transparent; }
.btn.primary:hover{ background: var(--emerald-dark); }
.btn.ghost{ color: var(--emerald-very-dark); background:#ecfdf5; border-color:#bbf7d0; }
.btn.ghost:hover{ background:#d1fae5; }

.img-me {
  width: 220px; height: 220px; border-radius: 24px; object-fit: cover;
  
  justify-self:center;
}

@media (max-width: 920px){
  .hero .content{ grid-template-columns: 1fr; text-align:center; }
}

/* ---------- Sections ---------- */
section{ padding: 2rem 0; }
.section-title{
  font-size:1.5rem; font-weight:800; letter-spacing:.2px; margin-bottom:1rem;
  display:flex; align-items:center; gap:.5rem;
}
.section-title .bar{
  width:8px; height:20px; background: var(--emerald); border-radius: 4px;
}

.card{
  border:1px solid var(--border); border-radius: 16px; padding:1.25rem; background:white;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.04);
}

.pub-list{ display:grid; gap: .75rem; }
.pub-item{
  padding: .75rem 1rem; border:1px dashed #dbeafe; border-radius:12px; background: #f8fafc;
}
.pub-item .title{ font-weight:700; }
.pub-item .meta{ color: var(--muted); font-size:.95rem; }

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--border); padding: 2rem 0; color: var(--muted);
}
.socials{ display:flex; gap:.75rem; flex-wrap:wrap; }
.socials a{ color: var(--muted); text-decoration:none; }
.socials a:hover{ color: var(--emerald-dark); }

/* ---------- Page specific ---------- */
.page-header{
  background: #ffffff;
  border-bottom:1px solid var(--border);
  padding: 2rem 0;
}
.page-header h1{ margin:0; font-size: 1.8rem; }
.kicker{ color: var(--emerald-very-dark); font-weight:700; text-transform:uppercase; letter-spacing:.1em; font-size:.75rem; }
.lead{ color: var(--muted); }

/* Publications page */
.filter-note{ font-size:.95rem; color: var(--muted); }
.details{ margin-top:.25rem; }
details{ background:white; border:1px solid var(--border); border-radius:12px; padding:.5rem .75rem; }
details summary{ cursor:pointer; font-weight:600; color: var(--emerald-very-dark); }
details pre{ overflow:auto; background:#0b1020; color:#e2e8f0; padding:.75rem; border-radius:10px; font-size:.85rem; }

.experience-title {
  font-size: 1.3rem;
  font-weight: bold;
}

.experience-header {
  font-size: 1.5rem;
  font-weight: bold;
  color: grey;
  margin: 2px;
}

.internship-header {
  justify-self: start;
  align-self: start;
}

.experience-subtitle {
  color: gray; 
  font-size: 0.9rem;
}

.experience-work {
  font-size: 1.1rem;
}

.experience {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  justify-content: center;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media screen and (max-width: 600px) {
  /* Styles applied when the screen width is 600px or less */
  .experience {
    grid-template-columns: 1fr;
  }

  section {
    padding: 0.5rem;
    margin: 0.2rem;
  }
}