:root {
  --bg: #070b1a;
  --bg2: #0e1330;
  --neon: #6cf7ff;
  --pink: #f44dff;
  --lime: #9eff7a;
  --text: #edf2ff;
  --glass: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1c2861 0%, var(--bg) 40%, #02030a 100%);
  overflow-x: hidden;
}

#particle-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.45;
}

.nav-wrap {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem auto;
  padding: 0.8rem 1rem;
  width: min(1100px, 94%);
  z-index: 10;
}

.brand {
  text-decoration: none;
  color: white;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}
.brand span { color: var(--neon); }
nav { display: flex; gap: .9rem; flex-wrap: wrap; }
nav a { color: #d6e5ff; text-decoration: none; font-size: .9rem; }
nav a:hover { color: var(--neon); }

.section { width: min(1100px, 94%); margin: 2rem auto; padding: 1.3rem; }
h1, h2, h3 { font-family: 'Orbitron', sans-serif; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 1rem; }
.section-lead { color: #c9d7ff; margin-top: -0.2rem; margin-bottom: 1rem; }

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 3rem;
}
.hero h1 span {
  color: var(--neon);
  text-shadow: 0 0 18px rgba(108, 247, 255, 0.7);
}
.eyebrow { color: var(--lime); letter-spacing: 1px; }
.cta-row { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.2rem 0; }
.btn { padding: .65rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn.primary { background: linear-gradient(90deg, var(--neon), var(--pink)); color: #050714; }
.btn.ghost { color: white; border: 1px solid #6a7ab2; }
.target-roles { display: flex; flex-wrap: wrap; gap: .5rem; }
.target-roles span {
  border: 1px solid rgba(108, 247, 255, 0.4);
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .8rem;
}

.hero-card img {
  width: 100%;
  border-radius: 14px;
  height: 240px;
  object-fit: cover;
}
.hero-card ul { padding-left: 1rem; }
.hero-card li { margin: .4rem 0; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(188, 208, 255, 0.22);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.timeline, .project-grid, .edu-grid, .crazy-grid {
  display: grid;
  gap: 1rem;
}
.project-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.edu-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.crazy-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.project-card, .timeline-item, .edu-grid article, .ml-sim, .chat-bot { padding: 1rem; }
.project-card a { color: var(--neon); }
.more-projects { margin-top: 1rem; color: #d6e5ff; }
.more-projects a { color: var(--neon); }

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}
.achievement-grid article {
  background: rgba(18, 26, 63, 0.72);
  border: 1px solid rgba(108, 247, 255, 0.25);
  border-radius: 12px;
  padding: 0.9rem;
}
.achievement-grid h3 {
  font-size: 1rem;
  margin-top: 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.proof-card {
  margin: 0;
  overflow: hidden;
}
.proof-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(188, 208, 255, 0.22);
}
.proof-card figcaption {
  padding: .8rem;
  color: #dce7ff;
  font-size: .9rem;
}
.proof-note {
  margin-top: .9rem;
  color: #b6c9ff;
  font-size: .92rem;
}


.skill-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem;
  margin-top: 1rem;
}
.skill-categories article {
  background: rgba(16, 23, 58, 0.75);
  border: 1px solid rgba(158, 255, 122, 0.22);
  border-radius: 12px;
  padding: .85rem;
}
.skill-categories h3 {
  margin-top: 0;
  font-size: 1rem;
  color: #d9f7ff;
}
.skill-categories p {
  margin-bottom: 0;
  color: #c8d8ff;
  font-size: .92rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips button {
  background: #1b2248;
  color: #dbf5ff;
  border: 1px solid #3850b7;
  border-radius: 999px;
  padding: .45rem .8rem;
  cursor: pointer;
}
.chips button.active { background: linear-gradient(90deg, #4f5bf4, #e54cff); }
.xp { font-weight: 700; color: var(--lime); }

.ml-sim label { display: block; margin: .6rem 0; }
input[type="range"] { width: 100%; }
.risk-bar { height: 12px; background: #222a54; border-radius: 20px; overflow: hidden; }
#riskFill { height: 100%; width: 0%; background: linear-gradient(90deg, #56ff79, #ffea63, #ff5d7c); transition: width .35s ease; }

.chat-log {
  min-height: 130px;
  max-height: 210px;
  overflow: auto;
  background: rgba(13, 18, 41, 0.8);
  border-radius: 10px;
  padding: .7rem;
  margin-bottom: .7rem;
}
.chat-msg { margin: .4rem 0; font-size: .95rem; }
.chat-msg strong { color: var(--neon); }
.chat-input-row { display: flex; gap: .5rem; }
.chat-input-row input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #4d5c93;
  background: #111a3f;
  color: white;
  padding: .55rem;
}
.chat-input-row button {
  border: none;
  border-radius: 8px;
  padding: .55rem .85rem;
  background: var(--pink);
  color: white;
  cursor: pointer;
}

.contact-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.contact-links a { color: var(--neon); text-decoration: none; }
footer { text-align: center; padding: 1rem 0 2rem; color: #9cb0e2; }

.reveal { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.party-mode { animation: hue-shift 1.6s linear infinite; }
@keyframes hue-shift { from { filter: hue-rotate(0deg);} to { filter: hue-rotate(360deg);} }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  nav { justify-content: center; }
  .nav-wrap { justify-content: center; gap: .8rem; }
}
