:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0f1720;
  --muted: #6b7280;
  --accent: #0a84ff;
  --accent-strong: #0066cc;
  --container: 1200px;
  --radius: 10px;
  --card-border: rgba(10,132,255,0.06);
  --glass: rgba(15,23,32,0.03);
  --max-width: 1200px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Dark mode via prefers-color-scheme */
@media (prefers-color-scheme: dark) {
  :root{
    --bg: #0b0f13;
    --surface: #091016;
    --text: #e6eef9;
    --muted: #9aa6b2;
    --accent: #4fb3ff;
    --accent-strong: #0a84ff;
    --card-border: rgba(255,255,255,0.04);
    --glass: rgba(255,255,255,0.02);
  }
}

/* Global */
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text);}
.container{max-width:var(--max-width);margin:0 auto;padding:48px 20px;}

/* Header */
.site-header{position:sticky;top:0;background:linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.35));backdrop-filter: blur(6px);border-bottom:1px solid rgba(15,23,32,0.04);z-index:40;}
@media (prefers-color-scheme: dark){
  .site-header{background:linear-gradient(180deg, rgba(9,16,22,0.6), rgba(9,16,22,0.35));border-bottom:1px solid rgba(255,255,255,0.03);}
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:20px 0;}
.brand .name{font-size:18px;margin:0;font-weight:700;letter-spacing:0.2px}
.brand .role{margin:0;color:var(--muted);font-size:13px}

/* Nav */

/* Hero */
.hero{display:flex;gap:28px;align-items:center;padding-top:60px;padding-bottom:60px}
.profile-photo{width:160px;height:160px;border-radius:12px;object-fit:cover;border:1px solid var(--card-border);flex:0 0 160px}
.hero-text h2{margin:0;font-size:32px;line-height:1.05;color:var(--text)}
.subtitle{margin:6px 0 14px;color:var(--muted);font-weight:600}
.lead{margin:0 0 18px;color:var(--muted);line-height:1.6;max-width:70ch}

/* Fix: Hero text contrast and background */
.hero{
  padding:56px 20px;
  border-radius:14px;
  background: linear-gradient(180deg, rgba(250,250,250,0.6), rgba(250,250,250,0.4));
  border:1px solid rgba(15,23,32,0.03);
}
@media (prefers-color-scheme: dark){
  .hero{
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border:1px solid rgba(255,255,255,0.03);
  }
}

/* Skills */
.skills-list{display:flex;flex-wrap:wrap;gap:10px;padding:0;margin:18px 0 0;list-style:none}
.skills-list li{background:linear-gradient(180deg, rgba(245,248,255,1), rgba(240,246,255,1));padding:8px 12px;border-radius:999px;color:var(--text);font-weight:600;font-size:13px;border:1px solid var(--card-border)}
@media (prefers-color-scheme: dark){
  .skills-list li{background: rgba(255,255,255,0.02);border:1px solid var(--card-border)}
}
/* Contact & Footer */
.contact p{margin:10px 0;color:var(--muted)}
.site-footer{border-top:1px solid rgba(15,23,32,0.04);padding:20px 0;text-align:center;color:var(--muted);font-size:13px}
@media (prefers-color-scheme: dark){
  .site-footer{border-top:1px solid rgba(255,255,255,0.03)}
}

/* Responsive */
@media (max-width:800px){
  .hero{flex-direction:column;align-items:flex-start;padding:28px;border-radius:10px}
  .profile-photo{width:120px;height:120px}
  .container{padding:28px 16px}
  .lead{max-width:unset}
}
/* =========================
   CSS-only modal (checkbox)
   ========================= */
.modal-toggle{position:absolute;left:-9999px;top:auto;width:1px;height:1px;opacity:0;pointer-events:none}

/* Modal base is hidden by default (opacity 0, visibility hidden, transform) */
.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .25s ease, transform .25s ease}
.modal-panel{width:min(720px,94vw);max-height:86vh;overflow-y:auto;flex-direction: column;background:var(--surface);border:1px solid var(--card-border);border-radius:12px;padding:22px;box-shadow:0 18px 40px rgba(2,6,23,0.35);transform:translateY(8px)}
.modal-backdrop{inset:0;background:rgba(2,6,23,0.45);opacity:0}

/* When checkbox is checked, show modal */
.modal-toggle:checked + .modal{pointer-events:auto;opacity:1;visibility:visible}
.modal-toggle:checked + .modal .modal-backdrop{opacity:1}

/* Modal internal */
.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.modal-header h3{margin:0;font-size:18px}
.modal-close{font-size:28px;line-height:1;color:var(--muted);cursor:pointer;padding:4px 8px;border-radius:8px}
.modal-close:hover{color:var(--text);background:var(--glass)}

.modal-body{color:var(--text);line-height:1.6;overflow-y: auto;  max-height: 70vh;  }
.modal-body a{color:var(--accent);text-decoration:none}
.modal-footer{text-align:right;margin-top:18px}
.btn{display:inline-block;padding:8px 14px;background:var(--accent);color:#fff;border-radius:8px;cursor:pointer;text-decoration:none;font-weight:600}

/* Make backdrop clickable to close (label handles that) */
.modal-backdrop{cursor:pointer}

