
:root{
  --bg: #0b1220;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted-2: rgba(255,255,255,0.55);

  --brand: #7c3aed;     /* violet */
  --brand-2: #22c55e;   /* green  */
  --accent: #38bdf8;    /* sky    */

  --shadow: 0 18px 50px rgba(0,0,0,0.40);
  --shadow-soft: 0 10px 26px rgba(0,0,0,0.22);

  --radius: 16px;
  --radius-lg: 22px;
  --container: 1100px;

  --ring: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(124,58,237,0.22), transparent 50%),
    radial-gradient(900px 500px at 90% 10%, rgba(56,189,248,0.18), transparent 55%),
    radial-gradient(800px 500px at 40% 100%, rgba(34,197,94,0.14), transparent 55%),
    var(--bg);
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: 0.95; }

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

/* Focus (accessibility) */
:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

/* =========================
   Header / Navbar
========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo{
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 18px;
}
.logo span{ color: var(--accent); }

.nav-links{
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.nav-links a{
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  transition: 180ms ease;
}
.nav-links a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Mobile toggle */
.nav-toggle{
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 18px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 99px;
  opacity: 0.9;
}

/* =========================
   Hero
========================= */
.hero{
  padding: 64px 0 30px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
}

.eyebrow{
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.1;
  letter-spacing: -1px;
}

.gradient-text{
  background: linear-gradient(90deg, var(--accent), #a78bfa 40%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 60ch;
}

.pill-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.pill{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 600;
}

.cta-row{
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 180ms ease;
  cursor: pointer;
  user-select: none;
}

.btn.primary{
  background: linear-gradient(135deg, rgba(56,189,248,0.95), rgba(124,58,237,0.95));
  color: #08101f;
  box-shadow: 0 18px 40px rgba(124,58,237,0.25);
}
.btn.primary:hover{ transform: translateY(-1px); }

.btn.ghost{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}
.btn.ghost:hover{
  background: rgba(255,255,255,0.09);
  transform: translateY(-1px);
}

/* Hero profile card */
.profile-card{
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  padding: 18px;
}

.profile-top{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.avatar{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56,189,248,0.9), rgba(124,58,237,0.9));
  color: #06101f;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.profile-meta .name{
  font-weight: 800;
}
.profile-meta .role{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.profile-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 0;
}

.stat{
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 10px;
  text-align: center;
}
.stat-num{
  font-weight: 900;
  letter-spacing: -0.2px;
}
.stat-label{
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 2px;
}

.profile-actions{
  display: flex;
  gap: 10px;
}
.mini-link{
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-weight: 700;
}
.mini-link:hover{
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* =========================
   Tabs Section
========================= */
.tabs-section{
  padding: 40px 0 68px;
}

.tabs-header{
  margin-bottom: 14px;
}
.section-title{
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.5px;
}
.section-subtitle{
  margin: 6px 0 0;
  color: var(--muted);
}

.tabs{
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  margin: 18px 0 14px;
}

.tab{
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 180ms ease;
}

.tab:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.tab.active{
  color: #08101f;
  background: linear-gradient(135deg, rgba(56,189,248,0.95), rgba(124,58,237,0.95));
  box-shadow: 0 14px 30px rgba(56,189,248,0.10);
}

.surface{
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.tab-content h3{
  margin: 0 0 10px;
  font-size: 22px;
}

p{ margin: 0 0 12px; color: var(--muted); }

.muted{ color: var(--muted-2); }

/* Tab panels */
.content{ display: none; }
.content.active{ display: block; }

/* About highlights */
.highlights{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.highlight-card{
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 14px;
}
.highlight-card h4{
  margin: 0 0 8px;
  font-size: 15px;
}
.highlight-card ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

/* Experience cards */
.timeline{
  display: grid;
  gap: 14px;
}

.card{
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px;
}
.card-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.card h4{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.card ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.78);
}
.tag{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.18);
  color: rgba(255,255,255,0.88);
}

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

.p-card{
  display: block;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px;
  transition: 180ms ease;
}
.p-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
}
.p-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.p-card h4{
  margin: 0;
  font-size: 16px;
}
.chip{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124,58,237,0.14);
  border: 1px solid rgba(124,58,237,0.20);
  color: rgba(255,255,255,0.85);
}
.p-card p{
  margin-top: 8px;
  margin-bottom: 12px;
}
.p-link{
  color: rgba(56,189,248,0.95);
  font-weight: 800;
}

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-card{
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px;
}
.contact-card h4{ margin: 0 0 6px; }
.contact-card a{ color: rgba(56,189,248,0.95); font-weight: 800; }
.link-row{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  background: rgba(11,18,32,0.45);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .profile-card{
    max-width: 520px;
  }
  .project-grid{
    grid-template-columns: 1fr;
  }
  .highlights{
    grid-template-columns: 1fr;
  }
  .contact-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .nav-toggle{ display: inline-grid; place-items: center; }
  .nav-links{
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(11,18,32,0.92);
    border: 1px solid rgba(255,255,255,0.10);
    display: none;
  }
  .nav-links.open{ display: flex; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto; }
}
