
:root{
  --bg: #0b1220;
  --panel: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --brand: #22d3ee;
  --accent: #a78bfa;
  --ring: rgba(34,211,238,.35);
  --code: #0b1220;
}
:root.light{
  --bg: #ffffff;
  --panel: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --brand: #0891b2;
  --accent: #7c3aed;
  --ring: rgba(8,145,178,.25);
  --code: #f8fafc;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;overflow-x:hidden}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color:var(--text);
  background: radial-gradient(1200px 500px at 80% -10%, rgba(124,58,237,.12), transparent 60%),
              radial-gradient(1000px 400px at 10% 0%, rgba(34,211,238,.10), transparent 60%),
              var(--bg);
  line-height:1.6;
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1080px;margin:0 auto;padding:24px}
.nav{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(to bottom, rgba(0,0,0,.25), transparent), var(--bg);
  backdrop-filter:saturate(120%) blur(6px);
  border-bottom:1px solid rgba(148,163,184,.15);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 24px}
.nav .links{display:flex;align-items:center}
.nav .links a{margin-left:16px;font-weight:600}
.theme-toggle{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border:1px solid rgba(148,163,184,.25);
  border-radius:999px;background:var(--panel);cursor:pointer;
  color:var(--text);font-weight:500;
}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 16px;border:1px solid rgba(148,163,184,.25);
  border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.02));
  box-shadow:0 0 0 0 var(--ring), 0 8px 20px rgba(0,0,0,.25);
}
.btn:hover{box-shadow:0 0 0 6px var(--ring), 0 8px 20px rgba(0,0,0,.25)}
.btn-icon{
  width:16px;
  height:16px;
  vertical-align:middle;
  margin-right:4px;
}
.hero{
  padding:80px 24px 48px;
  display:block;
  max-width:800px;
}
.hero-content{
  display:flex;
  align-items:center;
  gap:24px;
  margin-bottom:20px;
}
.profile-photo{
  flex-shrink:0;
}
.profile-img{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid var(--brand);
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-img:hover{
  transform:scale(1.05);
  box-shadow:0 0 0 4px var(--ring), 0 12px 32px rgba(0,0,0,.35);
}
.name-header{
  margin:0;
  animation:fadeInUp 0.8s ease-out;
}
.name{
  font-size:52px;
  font-weight:800;
  line-height:1.1;
  margin:0 0 8px;
  background:linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:none;
  position:relative;
}
.name::after{
  content:'';
  position:absolute;
  bottom:-4px;
  left:0;
  width:60px;
  height:3px;
  background:linear-gradient(135deg, var(--brand), var(--accent));
  border-radius:2px;
  opacity:0.6;
  transition:width 0.3s ease;
}
.name:hover::after{
  width:120px;
}
.title{
  font-size:32px;
  font-weight:600;
  line-height:1.2;
  margin:0;
  color:var(--text);
  opacity:0.9;
}
.hero p{font-size:18px;color:var(--muted);margin:0 0 24px}
.card{
  background:var(--panel);border:1px solid rgba(148,163,184,.15);
  border-radius:16px;padding:20px;
}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.section{padding:32px 24px}
.section h2{font-size:28px;margin:0 0 12px}
.kv{display:flex;flex-wrap:wrap;gap:12px}
.tag{
  border:1px solid rgba(148,163,184,.25);border-radius:999px;padding:6px 10px;
  font-size:13px;background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.02));
}
.timeline{display:grid;gap:14px}
.item{display:grid;grid-template-columns:140px 1fr;gap:16px}
.item time{color:var(--muted);font-size:14px}
.item .role{font-weight:700}
.badges{display:flex;flex-wrap:wrap;gap:10px}
.education-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:20px}
.education-card{
  position:relative;
  transition:all 0.3s ease;
  cursor:pointer;
  overflow:hidden;
}
.education-card.interactive:hover{
  transform:translateY(-8px);
  box-shadow:0 0 0 6px var(--ring), 0 20px 40px rgba(0,0,0,.35);
}
.education-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:16px;
}
.university-info h3{
  margin:0 0 8px;
  font-size:20px;
  font-weight:700;
  color:var(--brand);
}
.degree{
  margin:0 0 8px;
  font-size:16px;
  font-weight:600;
  color:var(--text);
}
.gpa{
  display:inline-block;
  padding:4px 12px;
  background:linear-gradient(135deg, var(--brand), var(--accent));
  color:white;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
}
.education-icon{
  font-size:32px;
  opacity:0.8;
  transition:transform 0.3s ease;
}
.education-card:hover .education-icon{
  transform:scale(1.2) rotate(10deg);
}
.education-details{
  border-top:1px solid rgba(148,163,184,.15);
  padding-top:16px;
}
.timeline-marker{
  display:inline-block;
  padding:6px 12px;
  background:var(--panel);
  border:1px solid rgba(148,163,184,.25);
  border-radius:20px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
}
.coursework h4{
  margin:0 0 8px;
  font-size:14px;
  color:var(--muted);
  font-weight:600;
}
.course-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.experience-timeline{display:grid;gap:16px}
.company-group{
  cursor:pointer;
  transition:all 0.3s ease;
  overflow:hidden;
}
.company-group:hover{
  transform:translateY(-2px);
  box-shadow:0 0 0 3px var(--ring), 0 12px 28px rgba(0,0,0,.25);
}
.company-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:4px 0;
  gap:12px;
}
.company-name{
  margin:0;
  font-size:20px;
  font-weight:700;
  color:var(--brand);
}
.company-duration{
  font-size:14px;
  color:var(--muted);
  font-weight:500;
}
.expand-icon{
  font-size:18px;
  color:var(--muted);
  transition:transform 0.3s ease;
}
.company-group.expanded .expand-icon{
  transform:rotate(180deg);
}
.roles-content{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.4s ease, padding 0.3s ease;
  padding:0;
}
.company-group.expanded .roles-content{
  max-height:800px;
  padding:16px 0 0;
}
.role-item{
  margin-bottom:20px;
  padding-left:24px;
  border-left:2px solid var(--brand);
  position:relative;
}
.role-item::before{
  content:'';
  position:absolute;
  left:-5px;
  top:8px;
  width:8px;
  height:8px;
  background:var(--brand);
  border-radius:50%;
}
.role-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:8px;
  flex-wrap:wrap;
}
.role-title{
  font-weight:700;
  font-size:16px;
  color:var(--text);
}
.role-duration{
  font-size:13px;
  color:var(--muted);
  font-weight:500;
}
.role-details{
  margin:0;
  padding-left:0;
}
.role-details li{
  margin-bottom:6px;
  color:var(--text);
  opacity:0.9;
}
.footer{padding:32px 24px;color:var(--muted);border-top:1px solid rgba(148,163,184,.15)}
.code{background:var(--code);border:1px solid rgba(148,163,184,.15);border-radius:12px;padding:14px;overflow:auto}
@media (max-width: 900px){
  .name{font-size:42px}
  .title{font-size:26px}
  .grid{grid-template-columns:1fr}
  .item{grid-template-columns:1fr}
}
@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
@media (max-width: 900px) and (min-width: 601px){
  .hero-content{gap:32px}
}
@media (max-width: 600px){
  .name{font-size:36px}
  .title{font-size:22px}
  .hero{padding:60px 16px 40px}
  .hero-content{flex-direction:column;gap:16px;text-align:center}
  .name::after{left:50%;transform:translateX(-50%)}
  .profile-img{width:100px;height:100px;border-width:3px}
  .kv{justify-content:center}
  .container{padding:16px}
  .section{padding:24px 16px}
  .nav-inner{padding:8px 16px;justify-content:space-between;align-items:center}
  .nav .links{justify-content:center;flex-wrap:wrap;gap:8px}
  .nav .links a{margin-left:0;font-size:13px;padding:4px 8px}
  .theme-toggle{
    padding:4px 8px;
    font-size:16px;
    border-radius:20px;
    background:var(--panel);
    border:1px solid rgba(148,163,184,.25);
    color:var(--text);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    flex-shrink:0;
    align-self:center;
    margin-top:2px;
  }
  .theme-toggle .theme-text{display:none}
  .education-grid{grid-template-columns:1fr}
  .education-header{flex-direction:row;gap:8px;align-items:flex-start}
  .university-info{flex:1;min-width:0}
  .education-icon{flex-shrink:0;align-self:flex-start;margin-top:4px}
  .role-header{flex-direction:column;align-items:flex-start;gap:4px}
  .company-header{flex-direction:row;align-items:flex-start;gap:8px;flex-wrap:nowrap}
  .company-info{flex:1;min-width:0}
  .expand-icon{flex-shrink:0;margin-top:2px}
  .grid{grid-template-columns:1fr;gap:12px}
  .kv{gap:8px}
  .btn{padding:10px 12px;font-size:14px}
}
@media (max-width: 375px){
  .name{font-size:32px}
  .title{font-size:20px}
  .hero{padding:40px 12px 32px}
  .profile-img{width:80px;height:80px;border-width:2px}
  .container{padding:12px}
  .section{padding:20px 12px}
  .nav-inner{padding:8px 12px}
  .nav .links a{font-size:13px}
  .theme-toggle{padding:4px 6px;font-size:16px}
}
