:root{
  --panel-bg: rgba(9,10,12,0.6);
  --muted: #94a3b8;
  --accent: #60a5fa;
  --glass: rgba(255,255,255,0.04);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;}
body{
  background: linear-gradient(180deg,#071129 0%, #071129 60%, #071129 100%);
  color:#e6eef8;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

#canvas-container{position:fixed;inset:0;z-index:1}

.profile{
  position:fixed;left:24px;top:24px;z-index:2;width:340px;padding:20px;border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  box-shadow: 0 6px 30px rgba(2,6,23,0.6);backdrop-filter: blur(8px);
}
.profile__header h1{margin:0;font-size:1.4rem}
.muted{color:var(--muted);font-size:0.9rem}
.profile__section{margin-top:14px}
.profile__section h2{margin:0 0 6px 0;font-size:1.05rem}
.profile__section p{margin:0;color:#dbeafe;line-height:1.4}
.profile__section ul{margin:0;padding-left:1rem;color:#dbeafe}
.profile__footer{font-size:0.85rem; margin-top:16px}

/* Responsive: bottom bar on small screens */
@media (max-width:720px){
  .profile{left:12px;right:12px;bottom:12px;top:auto;width:auto;padding:12px;display:block}
  #canvas-container{filter: blur(0)}
}

/* Links */
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* Make sure canvas covers whole area */
canvas{display:block;pointer-events:auto}

/* Site header and pages */
.site-header{position:fixed;left:0;right:0;top:0;z-index:3;padding:12px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 18px}
.nav__brand{color:#e6eef8;font-weight:600;text-decoration:none}
.nav__links a{color:var(--muted);margin-left:12px;text-decoration:none}
.nav__links a:hover{color:var(--accent)}

.nav__links a.active{color:var(--accent);font-weight:600}

.home{display:flex;align-items:center;justify-content:flex-start;height:100vh;padding-left:80px;z-index:2;position:relative}
.hero.profile{max-width:640px;background:var(--panel-bg);padding:28px;border-radius:12px;margin-top:80px}
.profile__summary{margin-top:12px}
.profile__links{margin-top:14px}
.btn{display:inline-block;padding:8px 12px;border-radius:8px;background:var(--accent);color:#071129;margin-right:8px;text-decoration:none}

.page{padding:90px 24px 40px 24px;position:relative;z-index:2}
.card{max-width:900px;background:linear-gradient(180deg, rgba(8,10,15,0.85), rgba(10,12,20,0.75));padding:22px;border-radius:12px;box-shadow:0 10px 40px rgba(2,6,23,0.6);border:1px solid rgba(255,255,255,0.03)}

/* Sections spacing */
.page-section{padding:80px 24px 60px 24px}
.hero{padding:120px 24px 60px 24px;position:relative;z-index:2}
.hero__inner{max-width:720px;background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));padding:28px;border-radius:12px;box-shadow:0 12px 50px rgba(2,6,23,0.65)}
.hero__actions .btn{margin-right:10px}



/* Modal styles */
.modal{position:fixed;inset:0;z-index:10;opacity:0;pointer-events:none;transition:opacity 0.3s ease}
.modal.active{opacity:1;pointer-events:auto}
.modal__overlay{position:absolute;inset:0;background:rgba(0,0,0,0.6);backdrop-filter:blur(2px)}
.modal__content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:linear-gradient(180deg,rgba(10,15,30,0.95),rgba(15,20,35,0.95));border:1px solid rgba(255,255,255,0.05);border-radius:16px;max-width:800px;width:90vw;max-height:80vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,0.8);z-index:11}
.modal__header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid rgba(255,255,255,0.05)}
.modal__header h2{margin:0;font-size:1.6rem;color:#e6eef8}
.modal__close{background:none;border:none;color:#94a3b8;font-size:2rem;cursor:pointer;padding:0;width:40px;height:40px;display:flex;align-items:center;justify-content:center;transition:color 0.2s}
.modal__close:hover{color:#e6eef8}
.modal__body{padding:20px 24px;color:#dbeafe;line-height:1.6}
.modal__body h3{color:#e6eef8;margin-top:14px;margin-bottom:6px}
.modal__body p{margin:0 0 12px 0}
.modal__body ul{margin:12px 0;padding-left:1.5rem}
.modal__body li{margin-bottom:6px}

/* Hide page sections - only show in modal */
#profile, #experience, #research, #papers, #contact {display:none}
.page-section {display:none}
