:root {
  --bg: #0B0F17;
  --bg-alt: #0D1320;
  --cyan: #00F0FF;
  --cyan-soft: rgba(0, 240, 255, 0.12);
  --text-main: #E7EEF6;
  --text-muted: #93A1B5;
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(17, 24, 39, 0.6);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cyan-soft); color: var(--cyan); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), #0077a3);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.text-glow {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.55), 0 0 40px rgba(0, 240, 255, 0.25);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), #0077a3);
  color: #06131a;
  font-weight: 800;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.logo-text { font-weight: 700; font-size: 1.05rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.nav-link:hover { color: var(--text-main); }

.nav-link.active,
.nav-link.is-active {
  background: var(--cyan);
  color: #06131a;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 18px;
  gap: 4px;
}

.nav-mobile-link {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-mobile-link.is-active { color: var(--cyan); }

.nav-mobile.is-open { display: flex; }

/* LAYOUT */
.section { position: relative; padding: 96px 0; overflow: hidden; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 56px;
}

.section-subtitle.small { margin-bottom: 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* GLOW BACKDROPS */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  width: 480px; height: 480px;
  background: rgba(0, 240, 255, 0.16);
  top: -120px; left: -160px;
}
.bg-glow-2 {
  width: 420px; height: 420px;
  background: rgba(0, 150, 255, 0.12);
  bottom: -140px; right: -120px;
}

/* HERO */
.hero-section { padding-top: 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: 78vh;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 22px;
}

.hero-sub {
  font-size: 1.15rem;
  color: #C4CEDB;
  margin: 0 0 18px;
  max-width: 560px;
}

.hero-bio {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.6;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--cyan);
  color: #06131a;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(0, 240, 255, 0.55); }

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-main);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-block { width: 100%; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 160px;
  line-height: 1.4;
}

/* ORBIT VISUAL */
.hero-orbit {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(0, 240, 255, 0.25);
  border-radius: 50%;
}
.orbit-ring-1 { width: 340px; height: 340px; animation: spin 26s linear infinite; }
.orbit-ring-2 { width: 240px; height: 240px; animation: spin 18s linear infinite reverse; }

.orbit-core {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #12e6ff, #0090b3 70%);
  box-shadow: 0 0 60px rgba(0, 240, 255, 0.55), inset 0 0 30px rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: #06131a;
}

.orbit-tag {
  position: absolute;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.orbit-tag-cpp { top: 10%; right: 8%; color: var(--cyan); }
.orbit-tag-python { top: 42%; right: -4%; color: #FFD86B; }
.orbit-tag-java { bottom: 12%; left: 18%; color: #FF8A65; }
.orbit-tag-dsa { bottom: 4%; right: 22%; color: var(--text-main); }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* GLASS CARD */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.glass-card:hover { border-color: rgba(0, 240, 255, 0.35); transform: translateY(-4px); }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.card-title-lg { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; }
.card-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }

.card-meta { color: var(--cyan); font-size: 0.9rem; font-weight: 600; margin: 0 0 18px; }

.card-body { color: var(--text-muted); line-height: 1.65; font-size: 0.95rem; margin: 0; }

.check-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-left: 28px;
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.about-side { display: flex; flex-direction: column; gap: 24px; }
.side-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin: 0 0 10px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.skill-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cyan-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* CP PROFILES */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.cp-card { padding: 0; overflow: hidden; }
.cp-terminal {
  background: linear-gradient(135deg, #0a3d47, #06202a);
  padding: 26px 32px;
  border-bottom: 1px solid var(--border);
}
.cp-terminal-title { font-family: var(--font-mono); font-weight: 700; color: var(--cyan); margin: 0 0 10px; }
.cp-terminal-line { font-family: var(--font-mono); color: #B7E9F0; font-size: 0.88rem; margin: 2px 0; }

.cp-card > .card-title,
.cp-card > .card-body,
.cp-card > .tag-row,
.cp-card > .link-cta {
  padding-left: 32px;
  padding-right: 32px;
}
.cp-card > .card-title { margin-top: 24px; }
.cp-card > .link-cta { display: block; margin: 24px 32px 32px; }

.link-cta {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.92rem;
}
.link-cta:hover { text-decoration: underline; }

.subgrid-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.writeup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.contact-form { display: flex; flex-direction: column; }

.form-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 18px 0 8px;
}
.form-label:first-child { margin-top: 0; }

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.form-input::placeholder { color: #5C6B80; }
.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.form-textarea { min-height: 130px; resize: vertical; }

.btn[type="submit"] { margin-top: 28px; }

.form-status {
  margin: 14px 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-status.success { color: #52E3A4; }
.form-status.error { color: #FF6B6B; }

.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-info-card { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-orbit { height: 320px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .cp-grid { grid-template-columns: 1fr; }
  .writeup-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-ring { animation: none; }
  * { transition: none !important; }
}