:root{
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #97a3b3;
  --accent: #7c5cff;
  --glass: rgba(255,255,255,0.03);
  --max-width: 1000px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(circle at 10% 10%, rgba(124,92,255,0.12), transparent 10%),
    linear-gradient(180deg,#071021 0%, var(--bg) 100%);
  color:#e6eef8;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.container{
  max-width:var(--max-width);
  margin:32px auto;
  padding:24px;
}

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:28px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:inherit;
}
.avatar{
  width:64px;
  height:64px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--accent),#4bd0ff);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:20px;
  color:white;
  box-shadow:0 6px 18px rgba(12,15,20,0.6);
}

nav a{
  color:var(--muted);
  text-decoration:none;
  margin-left:16px;
  font-size:15px;
}
nav a:hover{ color: #fff; }

main{
  display:grid;
  grid-template-columns: 1fr;
  gap:22px;
}

.hero{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  padding:22px;
  border-radius:12px;
  display:flex;
  gap:20px;
  align-items:center;
}

.hero-left{
  flex:1;
}
h1{
  margin:0 0 8px 0;
  font-size:28px;
  letter-spacing:-0.4px;
}
.tagline{ color:var(--muted); margin:0 0 14px 0; }
.cta{
  display:inline-block;
  background:var(--accent);
  color:white;
  padding:10px 14px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
}

.hero-right{
  width:160px;
  text-align:center;
}
.hero-photo{
  width:128px;height:128px;border-radius:16px;
  background:linear-gradient(180deg, #213a63, #19324f);
  display:inline-block;
  border:1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(10,14,20,0.6);
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Cards grid */
.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
}
.card{
  background:var(--card);
  border-radius:12px;
  padding:16px;
  box-shadow: 0 6px 18px rgba(2,6,12,0.6);
}
.card h3{ margin:0 0 10px 0; font-size:16px; }
.muted{ color:var(--muted); font-size:14px; }

/* Projects */
.projects-list{
  display:grid;
  gap:12px;
}
.project{
  background:var(--glass);
  padding:12px;
  border-radius:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.project .meta{ color:var(--muted); font-size:14px; }

/* Project detail page additions */
.project-hero{
  background:linear-gradient(180deg, rgba(124,92,255,0.06), rgba(11,18,32,0.6));
  border-radius:12px;
  padding:18px;
  display:flex;
  gap:18px;
  align-items:center;
  margin-bottom:18px;
}
.project-hero .thumb{
  width:160px;
  height:100px;
  border-radius:8px;
  overflow:hidden;
  background:#0b1220;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,0.04);
}
.project-hero img{ width:100%; height:100%; object-fit:cover; display:block; }
.project-content{ display:grid; gap:12px; }
.back-link{ color:var(--muted); text-decoration:none; font-size:14px; display:inline-block; margin-bottom:8px; }
.project-meta{ display:flex; gap:12px; color:var(--muted); font-size:14px; }

/* Skills */
.skills{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.skill{
  background:linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding:8px 10px;
  border-radius:8px;
  font-size:13px;
  color:var(--muted);
}

/* Contact / footer */
footer{
  margin-top:18px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
}

/* Responsive */
@media (max-width:800px){
  .grid{ grid-template-columns: 1fr; }
  .hero{ flex-direction:column; align-items:flex-start; }
  .hero-right{ width:100%; display:flex; justify-content:flex-start; }
  header{ flex-direction:column; align-items:flex-start; gap:10px; }
  nav a{ margin-left:0; margin-right:12px; font-size:14px; }
  .project-hero{ flex-direction:column; align-items:flex-start; }
  .project-hero .thumb{ width:100%; height:160px; }
}