:root{
  --bg: #0b0c10;
  --card: #111217;
  --elev: #151822;
  --text: #e8eaed;
  --muted: #b3b8c2;
  --brand: #6c8cff;
  --brand-600: #5576ff;
  --stroke: #1f2230;
  --success: #22c55e;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,#0a0b0f 0%, #0b0c10 60%, #0b0c10 100%);
  line-height:1.6;
}

.container{
  width:min(1100px, 92vw);
  margin-inline:auto;
}

.section{
  padding:80px 0;
}

.section-title{
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  margin:0 0 24px;
  letter-spacing:.3px;
}

/* Header / Navbar */
.site-header{
  position:sticky; top:0; z-index:50;
  background:transparent;
  border-bottom:1px solid transparent;
  transition: all .25s ease;
  backdrop-filter: blur(6px);
}
.site-header.scrolled{
  background: rgba(10,12,16,.7);
  border-color: var(--stroke);
}
.nav-container{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  color:var(--text); text-decoration:none; font-weight:700; letter-spacing:.2px;
}
.brand-logo{
  width:22px; height:22px; display:inline-grid; place-items:center;
  background:linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color:#fff; border-radius:6px; box-shadow: var(--shadow); font-size:.9rem;
}
.brand-name{font-size:1.05rem}

.nav ul{display:flex; gap:20px; list-style:none; margin:0; padding:0}
.nav a{
  color:var(--muted); text-decoration:none; font-weight:600; font-size:.95rem;
  padding:10px 12px; border-radius:10px; transition:color .2s, background .2s;
}
.nav a:hover{ color:#fff; background: #141720; }
.nav a.active{ color:#fff; background: #192037; }

/* Mobile nav */
.nav-toggle{
  display:none; background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle .line{
  display:block; width:24px; height:2px; background:#d1d5db; margin:5px 0; border-radius:2px;
}
@media (max-width: 820px){
  .nav-toggle{display:block}
  .nav{position:fixed; inset:60px 14px auto 14px; background:#0e1118; border:1px solid var(--stroke); border-radius:14px; padding:10px; display:none;}
  .nav.open{display:block}
  .nav ul{flex-direction:column}
}

/* Hero */
.hero{padding:96px 0}
.hero-grid{
  display:grid; grid-template-columns: 1.1fr .9fr; gap:32px; align-items:center;
}
.eyebrow{color:var(--muted); text-transform:uppercase; letter-spacing:.2em; margin:0 0 8px; font-size:.8rem}
.hero-text h1{
  margin:0 0 8px;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
}
.subtitle{margin:0 0 14px; font-weight:700; color:#c9cffc}
.desc{margin:0 0 22px; color:#c6cad4; max-width:55ch}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap}
.hero-photo{
  width:100%;
  border-radius:20px; overflow:hidden; border:1px solid var(--stroke);
  background:linear-gradient(180deg,#0e1220,#0b0c10);
  box-shadow: var(--shadow);
}
.hero-photo img{display:block; width:100%; height:100%; object-fit:cover}

@media (max-width: 920px){
  .hero-grid{grid-template-columns: 1fr; }
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; border-radius:12px; font-weight:700; text-decoration:none; cursor:pointer;
  border:1px solid transparent; transition: transform .08s ease, background .2s ease, border .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn.primary{ background:linear-gradient(135deg, var(--brand), var(--brand-600)); color:#fff; }
.btn.primary:hover{ filter:saturate(1.1) brightness(1.05); }
.btn.ghost{ background:#131722; color:#e5e7eb; border-color:#1f2840; }
.btn.ghost:hover{ background:#17203a; }
.btn.small{ padding:9px 12px; font-size:.92rem }

/* About */
.about-grid{
  display:grid; grid-template-columns: 1.2fr .8fr; gap:28px; align-items:start;
}
.about-text{color:#d7dbe6}
.skills{
  display:flex; flex-wrap:wrap; gap:10px; padding:0; margin:18px 0 0; list-style:none;
}
.skills li{
  padding:8px 12px; border:1px solid #25304b; border-radius:999px; font-size:.9rem; color:#dbe3ff; background:#121728;
}
.social-card{
  background:linear-gradient(180deg,#0e1220,#0c0f16);
  border:1px solid var(--stroke); border-radius:16px; padding:18px; box-shadow: var(--shadow);
}
.social-card h3{margin:0 0 8px}
.social-links{display:flex; gap:12px; margin-top:10px}
.social-links a{
  width:42px; height:42px; display:inline-grid; place-items:center; border-radius:10px; background:#141a2b; border:1px solid #1f2840;
}
.social-links a:hover{ background:#17203a }
.social-links svg{width:22px; height:22px; fill:#cbd5e1}

@media (max-width: 920px){
  .about-grid{grid-template-columns: 1fr}
}

/* Projects */
.projects{padding-top:20px}
.project-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:18px;
}
@media (max-width: 1020px){ .project-grid{grid-template-columns: repeat(2, 1fr)} }
@media (max-width: 640px){ .project-grid{grid-template-columns: 1fr} }

.card{
  background:linear-gradient(180deg,#0e1220,#0b0c10);
  border:1px solid var(--stroke); border-radius:16px; overflow:hidden; display:flex; flex-direction:column;
  transform: translateY(6px); opacity:0; transition: transform .5s ease, opacity .5s ease;
}
.card.revealed{ transform:none; opacity:1 }
.card-media img{ width:100%; height:190px; object-fit:cover; display:block }
.card-body{ padding:16px }
.card-body h3{ margin:0 0 6px; font-size:1.2rem }
.card-body p{ margin:0 0 12px; color:#cfd6e6 }
.tags{ display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:0 0 12px }
.tags li{
  font-size:.85rem; padding:6px 10px; border-radius:999px; color:#cfe4ff; background:#0f1730; border:1px solid #1f2b52;
}
.card-actions{ display:flex; gap:10px; margin-top:auto }

/* Contact */
.contact-form{
  background:linear-gradient(180deg,#0e1220,#0b0c10);
  border:1px solid var(--stroke); border-radius:16px; padding:18px; box-shadow: var(--shadow);
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:12px }
@media (max-width:700px){ .form-row{ grid-template-columns: 1fr } }
.form-field{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px }
label{ font-weight:600 }
input, textarea{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid #25304b; background:#0f1320; color:#e8ecf6;
}
input::placeholder, textarea::placeholder{ color:#7f8aaa }
input:focus, textarea:focus{ outline:2px solid #2b3a66; border-color:#2b3a66 }
.error{ color:#fca5a5; font-size:.85rem; min-height:1.2em }
.form-note{ color:#8b93a7; font-size:.95rem; margin-top:10px }

/* Footer */
.site-footer{ padding:28px 0; border-top:1px solid var(--stroke); background:#0b0c10 }
.footer-inner{ display:flex; align-items:center; justify-content:center }
.footer-inner p{ margin:0; color:#a8b0c3 }

