/* ---------- Fonts & base ---------- */
:root{
  --bg: #fbfbfd;
  --panel: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --accent: #2563eb;
  --border: #e6e9ee;
  --skill-bg: #0a0a0a;
  --skill-text: #f0f0f0;
}

body.dark{
  --bg: #0b1220;
  --panel: #0f1724;
  --muted: #94a3b8;
  --text: #e6eef9;
  --accent: #60a5fa;
  --border: #162033;
  --skill-bg: #f0f0f0;
  --skill-text: #0a0a0a;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Poppins","Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition:background .35s ease, color .35s ease;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- page grid ---------- */
.page{
  max-width:1100px;
  margin:28px auto;
  display:grid;
  grid-template-columns: 1fr;
  gap:20px;
  padding:24px;
  position:relative;
}

/* theme button */
.theme-btn{
  position:fixed;
  top:20px;
  right:24px;
  width:46px;
  height:46px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--panel);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:var(--text);
  transition:all .25s ease;
  z-index:60;
  font-size: 25px;
}
.theme-btn:hover{transform:translateY(-2px)}

/* ---------- left column (profile) ---------- */
.left-col{display:block}
.profile-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:14px;
  padding:13px 10px;
  text-align:center;
  box-shadow: 0 6px 20px rgba(11,15,25,0.04);
}

.profile-card p {
  font-family: "Space Grotesk", sans-serif;
}
.avatar{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius: 50%;
  margin-bottom:18px;
  display:inline-block;
}
.name{
  margin:0;
  font-size:22px;
  font-weight:700;
  letter-spacing:0.2px;
}
.role{margin:6px 0;color:var(--muted);font-weight:600; font-style: italic;}
.meta{margin-top:12px;text-align:left;display:block}
.meta-row{display:flex;gap:10px;align-items:center;margin:8px 0;color:var(--muted)}
.meta-row i{width:18px;text-align:center;color:var(--muted)}
.meta-row a{color:var(--text);text-decoration:none}
.bio{margin-top:14px;color:var(--muted);line-height:1.45}

/* socials */
.socials{display:flex;justify-content:center;gap:14px;margin-top:16px;}
.socials a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:transparent;border:1px solid var(--border);color:var(--text);text-decoration:none;transition: background 0.2s, transform 0.2s;}
.socials a i{font-size:16px}

.socials a:hover {
  transform: translateX(4px);
}

body.dark .socials a:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ---------- right column (content) ---------- */
.right-col{display:block}

/* Each block (card) */
.block{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:20px;
  margin-bottom:18px;
  box-shadow: 0 6px 20px rgba(11,15,25,0.03);
  font-family: "Space Grotesk", sans-serif;
  transition: background 0.2s, transform 0.2s;
}
.block h2{margin:0 0 12px 0;font-size:18px}
.block p{margin:0;color:var(--muted);line-height:1.6}

.block:hover {
  transform: translateX(4px);
}

body.dark .block:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* work items */
.work-item{padding:8px 0;border-top:1px dashed rgba(0,0,0,0.04)}
.work-item:first-of-type{border-top:0;padding-top:0}
.work-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.work-head h3{margin:0;font-size:15px}
.job-role{margin:4px 0;color:var(--muted);font-weight:600}
.period{color:var(--muted);font-size:13px}
.duties{margin:8px 0 0 18px;color:var(--muted);line-height:1.5}

/* projects grid */
.project-grid{display:grid;grid-template-columns:1fr;gap:12px}
.project{padding:12px;border-radius:10px;background:rgba(255,255,255,0.02)}
.project h4{margin:0 0 6px 0;font-size:15px}
.tags{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}
.tags span{background:transparent;border:1px solid var(--border);padding:6px 10px;border-radius:999px;font-size:12px;color:var(--muted);transition: background 0.2s, transform 0.2s;}

.tags span:hover {
  transform: translateX(4px);
}

/* skills */
.skill-list{display:flex;flex-wrap:wrap;gap:6px;}
.skill-list span{padding:3px 9px;border-radius:999px;background:var(--skill-bg);border:0px solid var(--border);color:var(--skill-text);font-size:13px;transition: transform 0.2s;}

.blocks {
  margin-bottom: 2rem; margin-top: 2rem;
}

.skill-list span:hover {
  transform: scale(1.1);
}

/* --- Floating Command Menu --- */
.menu-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg);
  color: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 8px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: background 0.3s, transform 0.2s;
} 

.menu-btn i {
  color: var(--text);
  display: flex;
  align-items: center;
}

.menu-btn:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.05);
}

/* Menu Panel */
.menu-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 24px;
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 12px !important;
}
.menu-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
body.dark .menu-panel {
  background: rgba(30, 30, 47, 0.95);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.menu-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.menu-header button {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
}

.search-container {
  display: flex;
  align-items: center;
  background: rgba(200, 200, 200, 0.2);
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 15px;
}
.search-container i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--text);
}
.search-container input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  background: transparent;
  color: var(--text);
}

.menu-item {
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  transition: background 0.2s, transform 0.2s;
}
.menu-item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}

/* Dark Mode Toggle Top Right */
.dark-toggle-fixed {
  position: fixed;
  top: 20px; 
  right: 20px;       
  z-index: 1100; 
  display: flex; 
  align-items: center;
  justify-content: center;  /* keeps it above all other elements */
}

.dark-toggle-fixed button {
  padding: 10px;
  font-size: 20px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex; 
  align-items: center;
  transition: background 0.3s, transform 0.2s;
}


.dark-toggle-fixed button:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.05);
}


/* footer */
.site-footer{text-align:center;color:var(--muted);padding:8px 0;margin-top:6px}

/* ---------- RESPONSIVE: two-column layout on wide screens ---------- */
@media (min-width: 900px){
  .page{
    grid-template-columns: 360px 1fr;
    align-items:start;
  }
  .left-col{position:sticky;top:28px;height:fit-content}
  .project-grid{grid-template-columns:repeat(2,1fr)}
}
