:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15,23,42,0.10);
  --soft: #f8fafc;
  --soft2: #f1f5f9;
  --accent: #2563eb;
  --accent2:#0ea5e9;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(2,6,23,0.08);
  --shadow2: 0 12px 26px rgba(2,6,23,0.06);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container{
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.dot{ color: #94a3b8; padding: 0 6px; }

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

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 72px;
}

.logo{
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
}

.nav{
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav a{
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
}

.nav a:hover{
  color: var(--text);
  background: var(--soft2);
  text-decoration: none;
}

.topbar-cta{
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle{
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

/* Mobile menu */
.mobile-nav{
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 20px 18px 20px;
  background: rgba(255,255,255,0.95);
}
.mobile-nav.open{ display: grid; gap: 8px; }
.mobile-nav a{
  color: var(--muted);
  font-weight: 700;
  padding: 10px 10px;
  border-radius: 12px;
}
.mobile-nav a:hover{ background: var(--soft2); color: var(--text); text-decoration: none; }

/* Hero */
.hero{
  padding: 56px 0 24px 0;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr 0.45fr 0.60fr; /* text | photo | highlights */
  gap: 22px;
  align-items: start;
}

.eyebrow{
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  margin: 0 0 12px 0;
}

h1{
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.lead{
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 16px 0;
  max-width: 70ch;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px 0;
}

.hero-links{
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

/* Profile photo */
.hero-photo{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px;
}

.hero-photo img{
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: white;
}

/* Cards */
.hero-card, .project, .about-card, .skill{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, var(--soft));
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}

.hero-card{
  padding: 18px 18px;
}

.card-title{
  margin: 0 0 10px 0;
  font-size: 16px;
}

.small-title{
  margin: 0 0 10px 0;
  font-size: 15px;
}

.ticks{
  margin: 10px 0 0 18px;
  padding: 0;
}
.ticks li{
  margin: 8px 0;
  color: var(--muted);
}

/* Sections */
.section{
  padding: 44px 0;
}

.section-alt{
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

h2{
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.01em;
}

/* Projects */
.grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project{
  padding: 18px 18px;
  box-shadow: var(--shadow);
}

.project-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project h3{
  margin: 0;
  font-size: 18px;
}

.project p{
  margin: 10px 0 0 0;
  color: var(--muted);
}

.tag{
  font-size: 12px;
  font-weight: 800;
  color: #0b1b3a;
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.20);
  padding: 6px 10px;
  border-radius: 999px;
}

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chips span{
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft2);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
}

.project-actions{
  display: flex;
  gap: 14px;
  margin-top: 12px;
  align-items: center;
}

.link{
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.link[aria-disabled="true"]{
  opacity: 0.55;
  pointer-events: none;
}

/* About */
.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.about-card{
  padding: 18px 18px;
}

/* Skills */
.skill-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.skill{
  padding: 18px 18px;
}
.skill h3{
  margin: 0 0 6px 0;
  font-size: 16px;
}
.skill p{
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 14px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow2);
}
.btn:hover{ filter: brightness(1.02); text-decoration: none; }

.btn-outline{
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-outline:hover{
  background: var(--soft2);
}

/* Footer */
.footer{
  padding: 26px 0;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .skill-grid{ grid-template-columns: 1fr; }
  h1{ font-size: 36px; }
  .lead{ font-size: 16px; }
  .contact{ flex-direction: column; align-items: flex-start; }
  .hero-photo{ justify-content: flex-start; }
  .hero-photo img{ width: 180px; height: 180px; }
}

@media (max-width: 760px){
  .nav{ display: none; }
  .topbar-cta{ display: none; }
  .nav-toggle{ display: inline-flex; }
}