:root{
  --bg:#0b0f17;
  --card:#111827;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#7c3aed;
  --accent2:#3b82f6;
  --border:rgba(255,255,255,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

html{scroll-behavior:smooth;}

body{
  background: radial-gradient(800px 400px at 20% 10%, rgba(124,58,237,0.25), transparent 60%),
              radial-gradient(700px 350px at 80% 20%, rgba(59,130,246,0.18), transparent 55%),
              var(--bg);
  color:var(--text);
  min-height:100vh;
  line-height:1.6;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none;}

.container{
  max-width:1100px;
  margin:auto;
  padding:28px;
}

/* Nav */
nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  position:sticky;
  top:0;
  z-index:10;
  background: linear-gradient(to bottom, rgba(11,15,23,0.92), rgba(11,15,23,0.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 0 -28px;
  padding-left:28px;
  padding-right:28px;
}

.logo{
  font-weight:700;
  letter-spacing:0.5px;
  font-size:18px;
}

.nav-links{
  display:flex;
  gap:18px;
  color:var(--muted);
  font-size:14px;
}

.nav-links a{
  padding:8px 10px;
  border-radius:10px;
}

.nav-links a:hover{
  color:var(--text);
  background:rgba(255,255,255,0.04);
}

.nav-links a.active{
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Cards */
.card{
  background:rgba(17,24,39,0.75);
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

/* Animations */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms ease;
  will-change: opacity, transform;
}

.reveal.show{
  opacity:1;
  transform: translateY(0);
}

.floaty{
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap:26px;
  margin-top:26px;
  align-items:stretch;
}

h1{
  font-size:44px;
  line-height:1.15;
  margin-bottom:10px;
}

.subtitle{
  color:var(--muted);
  font-size:16px;
  margin-bottom:18px;
}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
  margin-bottom:14px;
  width:fit-content;
}

/* Buttons */
.btns{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  font-size:14px;
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.btn:hover{
  transform:translateY(-2px);
  border-color:rgba(124,58,237,0.65);
  background:rgba(255,255,255,0.03);
}

.btn.primary{
  background:linear-gradient(135deg, rgba(124,58,237,0.95), rgba(59,130,246,0.9));
  border:none;
}

.btn.primary:hover{
  filter:brightness(1.06);
}

.btn:active{
  transform:translateY(0);
}

/* Side */
.side h3{
  font-size:16px;
  margin-bottom:10px;
}

.skills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.skill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
  transition: transform .18s ease, border-color .18s ease;
}

.skill:hover{
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.55);
}

section{
  margin-top:22px;
}

.section-title{
  font-size:16px;
  margin-bottom:10px;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:10px;
}

.section-title:after{
  content:"";
  height:1px;
  flex:1;
  background:rgba(255,255,255,0.08);
}

.about{
  color:var(--muted);
  font-size:15px;
}

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

.proj{
  position:relative;
  overflow:hidden;
  transition: transform .2s ease, border-color .2s ease;
  min-height: 160px;
}

.proj:hover{
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.55);
}

.proj .top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:10px;
}

.proj h4{
  font-size:15px;
}

.tagrow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 12px;
}

.tag{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:6px 8px;
  border-radius:999px;
  background: rgba(255,255,255,0.02);
}

.proj p{
  color:var(--muted);
  font-size:14px;
  margin-bottom:10px;
}

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

.mini{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--border);
  font-size:13px;
  color:var(--text);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  background: rgba(255,255,255,0.02);
}

.mini:hover{
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.55);
  background: rgba(255,255,255,0.04);
}

/* Footer */
footer{
  margin-top:40px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
  padding:18px 0;
}

@media(max-width:1000px){
  .grid{grid-template-columns: repeat(2, 1fr);}
}

@media(max-width:900px){
  .hero{grid-template-columns:1fr;}
  h1{font-size:36px;}
  nav{position:relative;}
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .reveal{transition:none;}
  .floaty{animation:none;}
}
