:root{
  --bg:#0b1020;
  --card:rgba(255,255,255,.04);
  --border:rgba(255,255,255,.08);
  --text:#e7edf6;
  --muted:#9aa4b2;
  --accent:#7dd3fc;
  --accent-strong:#60a5fa;
  --radius-lg:18px;
  --radius-md:12px;
  --shadow:0 10px 30px rgba(0,0,0,.6);
  --max-width:1120px;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color-scheme:dark;
}

*{box-sizing:border-box}
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--text);
  background: linear-gradient(180deg, rgba(7,12,29,1), rgba(11,16,32,1) 70%);
  overflow-x: hidden;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(40vw 30vw at 10% 20%, rgba(124,58,237,0.14), transparent 40%),
    radial-gradient(50vw 36vw at 75% 10%, rgba(34,211,238,0.12), transparent 45%),
    radial-gradient(36vw 26vw at 40% 80%, rgba(59,130,246,0.10), transparent 48%),
    radial-gradient(28vw 18vw at 85% 70%, rgba(236,72,153,0.06), transparent 60%);
  filter: blur(60px) saturate(110%);
  mix-blend-mode: screen;
  opacity: 0.95;
}

body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 23%, rgba(255,255,255,0.9) 1px, transparent 1.5px),
    radial-gradient(circle at 77% 64%, rgba(255,255,255,0.8) 1px, transparent 1.6px),
    radial-gradient(circle at 33% 81%, rgba(255,255,255,0.6) 0.8px, transparent 1.4px),
    radial-gradient(circle at 58% 14%, rgba(255,255,255,0.7) 0.9px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.7) 0.9px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,0.5) 0.7px, transparent 1.2px);
  background-size:
    300px 300px,
    420px 420px,
    560px 560px,
    380px 380px,
    140px 140px,
    220px 220px,
    90px 90px;
  background-position:
    13px 29px,
    211px 97px,
    87px 341px,
    173px 61px,
    0 0,
    120px 200px,
    45px 78px;
  opacity: 0.95;
  filter: brightness(105%) contrast(110%);
  mix-blend-mode: screen;
}


.tutoring-box {
    background: linear-gradient(135deg, #2b2f77, #1b9aaa);
    border-radius: 18px;
    padding: 1.8rem 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.tutoring-title {
    font-family: 'Forte', cursive;
    font-size: 48px;
    color: #ffffff;
    margin-top: 0;
}

.tutoring-box p,
.tutoring-box li {
    color: #f2f6ff;
}

.site{
  max-width:var(--max-width);
  margin:32px auto;
  padding:20px;
  position: relative;
  z-index: 0;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
h2{margin:0 0 20px 0}

/* ================= HERO ================= */
.hero{
  background:linear-gradient(180deg,rgba(255,255,255,.04),transparent);
  padding:24px;
  border-radius:var(--radius-lg);
  margin-bottom:56px;
}

html {
  scroll-behavior: smooth;
}


.hero-card{
  display:flex;
  gap:24px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:22px;
}
.avatar-img{
  width:230px;height:240px;
  border-radius:16px;
  object-fit:cover;
  box-shadow:var(--shadow);
}
.avatar-fallback{
  width:130px;height:130px;
  border-radius:16px;
  background:linear-gradient(135deg,#0ea5a5,#60a5fa);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:32px;color:#03131e;
}
.role{color:var(--muted);margin-bottom:10px}

/* ================= SOCIAL LINKS ================= */
.social-links{
  display:flex;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}
.social-links a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  font-weight:600;
}

/* ================= SECTIONS ================= */
.section{margin-bottom:64px}

/* ================= TIMELINE ================= */
.timeline {
  position: relative;
  padding-left: 28px;
}

.avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-credit {
  margin-top: 0.3em;
  font-size: 0.75em;
  color: #ffffff;
  font-style: italic;
}


.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.15);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  cursor: pointer;
}

.timeline-item.visible {
  opacity: 1;
  transform: none;
}

.hero-cta {
  margin-top: 1rem;
  background: linear-gradient(135deg, #2b2f77, #1b9aaa);
  border-radius: 18px;
  padding: 0.2rem 0.3rem;
  margin: 1rem 0.9;
  box-shadow: 0 10px 30px linear-gradient(135deg, #2b2f77, #1b9aaa);
}

.tutoring-button {
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: linear-gradient(135deg, #2b2f77, #1b9aaa);
  color: white;
  text-decoration: none;
}



.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1;
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 16px 16px 36px;
  position: relative;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeline-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.timeline-item.publication .timeline-header img {
  width:100px;
  height:100px;
  object-fit:contain;
}

.meta{font-size:15px;color:var(--muted)}
.timeline-card p{margin:8px 0 0}

/* ================= TIMELINE EXPANDABLE ================= */
.timeline-expand {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 0;
  margin-top: 8px;
}
.timeline-expand.open {
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 2000px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
}

.expand-body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.expand-body p{
  font-size:15px;
  line-height:1.7;
  color:var(--text);
  margin:10px 0 14px;
  letter-spacing:0.1px;
}

.expand-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.expand-gallery img {
  width: 100%;
  height: 100%;         /* fill the grid cell */
  object-fit: contain;   /* maintain aspect ratio */
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0,0,0,.6);
  background: rgba(0,0,0,.2);
}

/* Make each image cell match the tallest image */
.expand-gallery::after {
  content: "";
  display: block;
  grid-column: 1 / -1;
  width: 0;
  padding-top: 0; /* trick to let the grid auto-size */
}

/* ================= PUBLICATIONS ================= */
.pub{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:14px;
  margin-bottom:14px;
}
.pub-title{font-weight:600}
.pub-meta{font-size:13px;color:var(--muted)}

/* ================= CONTACT ================= */
form input,
form textarea {
    color: #ffffff;
}

form input::placeholder,
form textarea::placeholder {
    color: #ffffff;
    opacity: 0.7;
}

.contact-item span {
    color: #ffffff;
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 380px;
  gap:20px;
}
@media(max-width:900px){
  .contact-grid{grid-template-columns:1fr}
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:18px;
}
.contact-item{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}

.contact-item strong{font-weight:600; color: #ffffff}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:10px;
  background:linear-gradient(90deg,var(--accent),var(--accent-strong));
  color:#04203a;
  border:none;
  cursor:pointer;
  font-weight:600;
}
.btn.ghost{
  background:transparent;
  border:1px solid var(--border);
  color:var(--accent);
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keywords span {
  background: rgba(125, 211, 252, 0.2);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
}

form input, form textarea{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:transparent;
  color:inherit;
}
form textarea{min-height:120px}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce){
  .timeline-item{opacity:1;transform:none;transition:none}
}

@media(max-width:700px){
  .hero-card{flex-direction:column;align-items:center;text-align:center}
}

#presentation ul {
  list-style-type: disc;
  margin-left: 20px;
}

#presentations .timeline-card p em {
  color: var(--muted);
  font-size: 14px;
}

#presentations li {
  margin-bottom: 10px;
}

/* ================= STORE SEPARATOR ================= */
.store-separator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px 0;
  position: relative;
}

.separator-wrapper {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: var(--max-width);
}

.separator-line {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  margin: 0 auto 12px auto;
}

.separator-text {
  font-family: 'Forte', cursive;
  font-size: 2em;
  color: var(--accent);
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .expand-gallery {
    grid-template-columns: 1fr;
  }
}

