/* ========== DESIGN TOKENS ========== */
:root {
  --bg1: #070A10;
  --bg2: #0B1020;
  --card: rgba(16, 24, 38, .62);
  --border: rgba(124, 92, 255, .22);
  --text: #EAF0FF;
  --muted: #A9B4CC;
  --accent: #7C5CFF;
  --accent2: #3DDCFF;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --ring: rgba(61, 220, 255, .35);
}

/* ========== RESET ========== */
* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(124, 92, 255, .26), transparent 60%),
    radial-gradient(700px 400px at 85% 25%, rgba(61, 220, 255, .18), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  height: auto
}

/* ========== SKIP LINK ========== */
.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 14px;
  top: 14px;
  width: auto;
  height: auto;
  z-index: 999;
  background: rgba(16, 24, 38, .9);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 10px 12px;
  border-radius: 12px;
  outline: 2px solid var(--ring);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 10, 16, .75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-logo span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
  color: var(--muted);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, .06)
}

/* Mobile menu */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(7, 10, 16, .95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 12px 20px;
  }

  .nav-links.open {
    display: flex
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px
  }

  .nav-toggle {
    display: block
  }
}

/* ========== LAYOUT ========== */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px;
  padding-top: 74px
}

/* ========== TOPBAR ========== */
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16, 24, 38, .55);
  border: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(124, 92, 255, .85);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(124, 92, 255, .85)
  }

  50% {
    box-shadow: 0 0 30px rgba(124, 92, 255, 1), 0 0 60px rgba(124, 92, 255, .4)
  }
}

/* ========== HERO BANNER (HTML/CSS) ========== */
.site-hero {
  margin-top: 14px
}

.hero-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  background:
    radial-gradient(600px 300px at 15% 30%, rgba(124, 92, 255, .15), transparent 60%),
    radial-gradient(500px 300px at 85% 40%, rgba(61, 220, 255, .10), transparent 60%),
    linear-gradient(135deg, rgba(16, 24, 38, .9) 0%, rgba(11, 16, 32, .95) 100%);
  padding: 0;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0px, transparent 1px, transparent 60px);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 1;
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.banner-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-icon {
  flex-shrink: 0
}

.banner-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name {
  font-weight: 900;
  font-size: 40px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tag {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}

.banner-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  letter-spacing: .2px;
}

.banner-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.btag {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  transition: border-color .2s ease, transform .15s ease;
}

.btag:hover {
  border-color: rgba(124, 92, 255, .35);
  transform: translateY(-1px)
}

.btag.accent {
  background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(61, 220, 255, .12));
  border-color: rgba(124, 92, 255, .35);
  color: var(--text);
}

/* ========== HERO GRID ========== */
.hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items: stretch;
}

.panel {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(420px 220px at 20% 0%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(420px 220px at 90% 10%, rgba(61, 220, 255, .12), transparent 60%);
  pointer-events: none;
}

.panel>* {
  position: relative
}

h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -.6px
}

.subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px
}

/* ========== BUTTONS ========== */
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.btn {
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(16, 24, 38, .55);
  transition: transform .12s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, .35);
  box-shadow: 0 8px 25px rgba(124, 92, 255, .12)
}

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

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px
}

.btn.primary {
  border-color: rgba(124, 92, 255, .55);
  background: linear-gradient(180deg, rgba(124, 92, 255, .32), rgba(16, 24, 38, .55));
  box-shadow: 0 10px 30px rgba(124, 92, 255, .15);
}

.btn.primary:hover {
  background: linear-gradient(180deg, rgba(124, 92, 255, .45), rgba(16, 24, 38, .55));
  box-shadow: 0 12px 35px rgba(124, 92, 255, .25);
}

.btn svg {
  width: 18px;
  height: 18px;
  opacity: .95
}

/* ========== KPIS ========== */
.kpis {
  display: grid;
  gap: 10px
}

.kpi {
  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 12, 20, .35);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color .2s ease;
}

.kpi:hover {
  border-color: rgba(61, 220, 255, .15)
}

.kpi strong {
  display: block;
  font-size: 13px
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.4
}

/* ========== SECTIONS ========== */
.section {
  margin-top: 18px
}

.section h2 {
  font-size: 18px;
  margin: 0 0 10px
}

/* ========== CARDS GRID ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px
}

.grid.grid-3 .card {
  grid-column: span 4
}

.card {
  grid-column: span 6;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .22);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 220, 255, .18);
  box-shadow: 0 16px 45px rgba(0, 0, 0, .3);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(61, 220, 255, .08));
  border: 1px solid rgba(124, 92, 255, .2);
  margin-bottom: 14px;
  color: var(--accent2);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px
}

/* ========== HOW I WORK (Steps) ========== */
.how {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px
}

.step {
  grid-column: span 4
}

.step .num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(61, 220, 255, .08));
  border: 1px solid rgba(124, 92, 255, .3);
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--accent2);
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), rgba(61, 220, 255, .2));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}

.tl-item:last-child {
  padding-bottom: 0
}

.tl-marker {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(16, 24, 38, .8);
  border: 2px solid var(--accent);
  z-index: 2;
}

.tl-marker.highlight {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 92, 255, .5);
}

.tl-marker.current {
  background: var(--accent2);
  border-color: var(--accent2);
  box-shadow: 0 0 16px rgba(61, 220, 255, .6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.tl-year {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent2);
  padding-top: 2px;
  white-space: nowrap;
}

.tl-content {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  padding: 16px;
  transition: border-color .2s ease;
}

.tl-content:hover {
  border-color: rgba(124, 92, 255, .2)
}

.tl-content h3 {
  margin: 0 0 6px;
  font-size: 15px
}

.tl-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6
}

.tl-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px
}

/* ========== EDUCATION ========== */
.education {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 20px;
  padding: 24px;
  transition: border-color .2s ease;
}

.education:hover {
  border-color: rgba(61, 220, 255, .18)
}

.edu-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(61, 220, 255, .08));
  border: 1px solid rgba(124, 92, 255, .2);
  color: var(--accent2);
  flex-shrink: 0;
}

.education h3 {
  margin: 0 0 4px;
  font-size: 16px
}

.education p {
  margin: 0;
  font-size: 14px
}

/* ========== BADGE WIP ========== */
.badge-wip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(61, 220, 255, .15), rgba(124, 92, 255, .15));
  border: 1px solid rgba(61, 220, 255, .3);
  color: var(--accent2);
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ========== PROJECTS ========== */
.projects {
  display: grid;
  gap: 12px
}

.proj {
  padding: 18px;
  border-radius: 18px;
  background: rgba(8, 12, 20, .28);
  border: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  transition: border-color .2s ease, transform .15s ease;
}

.proj:hover {
  border-color: rgba(124, 92, 255, .2);
  transform: translateY(-1px)
}

.proj a {
  color: var(--accent2);
  text-decoration: underline;
  text-decoration-color: rgba(61, 220, 255, .4);
  text-underline-offset: 3px
}

.proj a:hover {
  text-decoration-color: rgba(61, 220, 255, .8)
}

.proj-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease, margin .3s ease;
  opacity: 0;
  margin-top: 0;
}

.proj:hover .proj-detail,
.proj:focus-within .proj-detail {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}

.proj-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  border-left: 2px solid rgba(124, 92, 255, .3);
  padding-left: 12px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 24, 38, .35);
  transition: border-color .2s ease;
}

.tag:hover {
  border-color: rgba(124, 92, 255, .25)
}

/* ========== STACK (Visual Badges) ========== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stack-group {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 20px;
  padding: 20px;
  transition: border-color .2s ease;
}

.stack-group:hover {
  border-color: rgba(61, 220, 255, .15)
}

.stack-label {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent2);
}

.stack-label svg {
  opacity: .8
}

.stack-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.sbadge {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(8, 12, 20, .5);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
  transition: border-color .2s ease, transform .15s ease, background .2s ease;
}

.sbadge:hover {
  border-color: rgba(124, 92, 255, .3);
  transform: translateY(-1px);
  background: rgba(124, 92, 255, .08);
}

/* ========== CONTACT ========== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact .panel {
  padding: 20px
}

.muted {
  color: var(--muted)
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  background: rgba(16, 24, 38, .92);
  border: 1px solid rgba(124, 92, 255, .3);
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px)
}

/* ========== FOOTER ========== */
.footer {
  margin: 32px 0 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 8px
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 24, 38, .55);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--muted);
  transition: border-color .2s ease, color .2s ease, transform .15s ease, background .2s ease;
}

.social-link:hover {
  border-color: rgba(124, 92, 255, .35);
  color: var(--text);
  transform: translateY(-2px);
  background: rgba(124, 92, 255, .1);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr
  }

  h1 {
    font-size: 36px
  }

  .card {
    grid-column: span 12
  }

  .grid.grid-3 .card {
    grid-column: span 12
  }

  .contact {
    grid-template-columns: 1fr
  }

  .step {
    grid-column: span 12
  }

  .stack-grid {
    grid-template-columns: 1fr
  }

  .banner-content {
    padding: 28px 20px 24px
  }

  .brand-name {
    font-size: 32px
  }

  .banner-title {
    font-size: 15px
  }

  .tl-item {
    grid-template-columns: 60px 1fr
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 30px
  }

  .wrap {
    padding: 18px;
    padding-top: 68px
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start
  }

  .banner-content {
    padding: 24px 16px 20px
  }

  .brand-name {
    font-size: 28px
  }

  .banner-tags {
    gap: 6px
  }

  .btag {
    font-size: 12px;
    padding: 5px 10px
  }

  .timeline {
    padding-left: 32px
  }

  .tl-marker {
    left: -25px
  }

  .tl-item {
    grid-template-columns: 50px 1fr;
    gap: 8px
  }

  .education {
    flex-direction: column;
    text-align: center
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  .btn,
  .card,
  .reveal,
  .proj,
  .sbadge,
  .tl-content {
    transition: none
  }

  .reveal {
    opacity: 1;
    transform: none
  }

  .dot,
  .tl-marker.current {
    animation: none
  }
}