/* =========================
   THEME
========================= */
:root{
  --bg:#0b1220;
  --bg2:#0f1a2e;
  --panel:rgba(255,255,255,0.06);
  --panel2:rgba(255,255,255,0.04);
  --line:rgba(255,255,255,0.12);
  --text:#eef3ff;
  --muted:#b9c6de;
  --brand:#66d6ff;
  --brand2:#98ffb7;
  --shadow:0 20px 60px rgba(0,0,0,0.45);
}

.light{
  --bg:#f6f7fb;
  --bg2:#ffffff;
  --panel:rgba(16,21,29,0.06);
  --panel2:rgba(16,21,29,0.04);
  --line:rgba(16,21,29,0.14);
  --text:#10151d;
  --muted:#4d5b6b;
  --brand:#0aa6ff;
  --brand2:#17c26b;
  --shadow:0 18px 50px rgba(16,21,29,0.12);
}

/* =========================
   BASE
========================= */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(102,214,255,0.18), transparent 60%),
    radial-gradient(900px 400px at 80% 10%, rgba(152,255,183,0.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}
.section{padding:84px 0}
.container{width:min(1100px, 92%); margin:0 auto}
a{color:inherit}
button{font:inherit}

/* =========================
   HEADER
========================= */
.header{
  position:sticky; top:0; z-index:50;
  background: rgba(10,18,32,0.70);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.light .header{ background: rgba(246,247,251,0.75); }

.header-inner{
  width:min(1100px, 92%);
  margin:0 auto;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.logo{
  text-decoration:none;
  font-weight:900;
  letter-spacing:0.4px;
  font-size:18px;
}
.dot{color:var(--brand)}

.nav{display:flex; align-items:center; gap:10px}
.nav-link{
  text-decoration:none;
  color: var(--muted);
  font-weight:800;
  font-size:13px;
  padding:10px 12px;
  border-radius:12px;
}
.nav-link.active{
  color: var(--text);
  background: rgba(102,214,255,0.12);
  border:1px solid rgba(102,214,255,0.25);
}

.hamburger{
  display:none;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
  border-radius:12px;
  border:1px solid var(--line);
}
.hamburger span{
  display:block;
  width:24px;
  height:2px;
  background: var(--text);
  margin:5px 0;
  opacity:0.9;
}

.drawer{
  display:none;
  width:min(1100px, 92%);
  margin:0 auto;
  padding: 0 0 14px;
}
.drawer.open{display:grid; gap:10px}
.drawer-link{
  text-decoration:none;
  color: var(--muted);
  font-weight:900;
  padding:12px 14px;
  border-radius:14px;
  background: var(--panel2);
  border:1px solid var(--line);
}

/* =========================
   TYPOGRAPHY
========================= */
.section-head{margin-bottom:26px}
.section-head h2{font-size:32px; letter-spacing:-0.3px}
.section-head p{margin-top:10px; color:var(--muted); line-height:1.7; max-width:820px}

.kicker{
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:12px;
  font-weight:900;
  color: var(--brand2);
  margin-bottom:10px;
}

.muted{color:var(--muted)}
.body{color:var(--muted); line-height:1.7; margin-top:10px}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:900;
  border:1px solid var(--line);
  background: transparent;
  cursor:pointer;
  max-width:100%;
}
.btn.small{padding:10px 12px; border-radius:12px; font-size:13px}
.btn.primary{
  border:none;
  color:#07101e;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
.btn.ghost{
  background: var(--panel2);
}
.btn:active{transform:translateY(1px)}

/* =========================
   HERO
========================= */
.hero{padding-top:64px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:26px;
  align-items:stretch;
}
.hero-title{
  font-size:44px;
  line-height:1.08;
  letter-spacing:-1px;
}
.hero-sub{
  margin-top:12px;
  font-size:16px;
  line-height:1.7;
  color: var(--muted);
}
.hero-cta{
  margin-top:18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero-social{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.social-btn{
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  padding:10px 12px;
  border-radius:14px;
  background: var(--panel2);
  border:1px solid var(--line);
}

.profile-card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:14px;
}
.profile-top{
  display:grid;
  grid-template-columns: 160px 1fr; /* was 140px */
  gap:16px;
  align-items:center;
}

.profile-img{
  width:160px;   /* was 140px */
  height:160px;  /* was 140px */
  border-radius:22px;
  object-fit:cover;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.06);
}

.profile-name{font-size:16px}
.profile-loc{color:var(--muted); margin-top:6px; font-size:13px}

.badge-row{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.badge{
  font-size:12px;
  font-weight:900;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(102,214,255,0.10);
  border:1px solid rgba(102,214,255,0.18);
}

.quick-cards{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.qcard{
  background: var(--panel2);
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px;
}
.qnum{font-weight:900; font-size:16px}
.qlabel{margin-top:6px; color:var(--muted); font-size:12px; font-weight:800}

.scroll-down{
  display:inline-block;
  margin-top:12px;
  text-decoration:none;
  font-weight:900;
  color: var(--muted);
  padding:12px 14px;
  border-radius:14px;
  border:1px dashed var(--line);
  background: rgba(255,255,255,0.02);
}

/* =========================
   LAYOUT HELPERS
========================= */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}
.panel{
  background: var(--panel2);
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
}
.panel h3{font-size:18px}

.list{padding-left:18px; color:var(--muted); line-height:1.9; margin-top:10px}

.chip-row{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.chip{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-weight:900;
  font-size:12px;
}

/* =========================
   SKILLS
========================= */
.skill{margin-top:12px}
.skill-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color: var(--muted);
  font-weight:900;
  font-size:13px;
}
.track{
  margin-top:8px;
  height:12px;
  border-radius:999px;
  background: rgba(255,255,255,0.06);
  border:1px solid var(--line);
  overflow:hidden;
}
.fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
}

/* =========================
   CARDS (Education/Experience)
========================= */
.cards{
  display:grid;
  gap:14px;
}
.card{
  background: var(--panel2);
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
}
.card h3{font-size:18px}
.mini-metrics{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.mm{
  font-size:12px;
  font-weight:900;
  color: rgba(255,255,255,0.78);
  padding:8px 10px;
  border-radius:999px;
  background: rgba(152,255,183,0.10);
  border:1px solid rgba(152,255,183,0.18);
}
.light .mm{ color: rgba(16,21,29,0.78); }

/* =========================
   PROJECT GRID
========================= */
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.pbox{
  border:none;
  text-align:left;
  cursor:pointer;
  background: var(--panel2);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  transition: transform 180ms ease, border-color 180ms ease;
  color: var(--text);
}
.pbox:hover{
  transform: translateY(-4px);
  border-color: rgba(102,214,255,0.35);
}
.pbox:focus{
  outline: 2px solid rgba(102,214,255,0.35);
  outline-offset: 2px;
}
.thumb{
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:1px;
  color: rgba(255,255,255,0.65);
  background:
    radial-gradient(300px 120px at 20% 30%, rgba(102,214,255,0.18), transparent 60%),
    radial-gradient(300px 120px at 80% 50%, rgba(152,255,183,0.12), transparent 55%),
    rgba(255,255,255,0.03);
}
.pinfo{padding:14px}
.pinfo h3{font-size:16px}
.pinfo p{margin-top:6px; color:var(--muted); line-height:1.5; font-size:13px}

/* =========================
   CONTACT
========================= */
.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:18px;
  align-items:start;
}
.field{display:grid; gap:8px; margin-top:12px}
.field:first-child{margin-top:0}
label{font-weight:900; font-size:12px; color:var(--muted)}
input, textarea{
  width:100%;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius:14px;
  padding:12px 12px;
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(102,214,255,0.55)}
.hint{margin-top:10px; min-height:18px; color:var(--muted); font-size:13px}

.kv{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.k{color:var(--muted); font-weight:900; font-size:12px}
.v{font-weight:900; font-size:13px; word-break: break-word}

.btn-row{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* =========================
   FOOTER
========================= */
.footer{
  margin-top:22px;
  border-top:1px solid var(--line);
  padding-top:18px;
  color: rgba(255,255,255,0.55);
  text-align:center;
  font-size:13px;
}
.light .footer{color: rgba(16,21,29,0.55);}

/* =========================
   MODAL
========================= */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background: rgba(0,0,0,0.55);
  z-index:100;
}
.modal.open{display:flex}
.modal-card{
  width:min(700px, 100%);
  max-height: 85vh;
  overflow:auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow: var(--shadow);
}
.modal-close{
  float:right;
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  font-size:22px;
  font-weight:900;
}
.mTech{
  margin-top:10px;
  font-weight:900;
  color: rgba(255,255,255,0.78);
}
.light .mTech{color: rgba(16,21,29,0.75);}

/* =========================
   REVEAL
========================= */
.reveal{opacity:0; transform: translateY(14px); transition: 650ms ease}
.reveal.show{opacity:1; transform: translateY(0)}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .nav{display:none}
  .hamburger{display:block}
  .hero-grid{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .grid{grid-template-columns: repeat(2, 1fr)}
  .contact-grid{grid-template-columns:1fr}
}

@media (max-width: 520px){
  .hero-title{font-size:34px}
  .hero-cta{flex-direction:column; align-items:stretch}
  .btn{width:100%}
  .grid{grid-template-columns:1fr}
  .quick-cards{grid-template-columns:1fr}
  .kv{grid-template-columns: 1fr}
  .btn-row{flex-direction:column}
  .btn-row .btn{width:100%}
}
