* { box-sizing: border-box; }

:root {
  --bg: #ff000057;
  --bg-soft: #000dff;
  --card: #1e2130;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaf0;
  --muted: #a0a4b8;
  --accent: #06fbca;
  --accent-2: #7c9cff;
  --radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'SN Pro', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(19, 55, 236, 0.4) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'SN Pro', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }
.gradient-text {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* glow following cursor */
.cursor-glow {
  position: fixed;
  width: 480px; height: 480px;
  left: 0; top: 0;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.15s ease-out;
}

/* NAV */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  backdrop-filter: blur(12px);
  background: rgba(18, 20, 28, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__logo { font-size: 1.6rem; font-weight: 800; }
.nav__links { display: flex; gap: 26px; align-items: center; font-size: 0.95rem; }
.nav__links a { color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
}
.nav__cta:hover { background: var(--accent); color: #10121a !important; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  z-index: 1;
}
.hero__badge {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.35);
  background: rgba(200, 255, 0, 0.07);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.05;
  font-weight: 800;
}
#typed::after {
  content: '|';
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
  font-weight: 400;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__lead {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn--primary {
  background: var(--accent);
  color: #12141c;
  box-shadow: 0 8px 30px rgba(200, 255, 0, 0.25);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(200, 255, 0, 0.35); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn--lg { padding: 16px 36px; font-size: 1.1rem; }

.hero__stats { display: flex; gap: 46px; margin-top: 56px; flex-wrap: wrap; justify-content: center; }
.stat b { display: block; font-size: 2.1rem; color: var(--accent); }
.stat span { font-size: 0.85rem; color: var(--muted); }
.hero__scroll {
  position: absolute;
  bottom: 26px;
  font-size: 1.3rem;
  color: var(--muted);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(8px); } }

/* SECTIONS */
.section { max-width: 1080px; margin: 0 auto; padding: 90px 22px; position: relative; z-index: 1; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 40px; }
.section__title .num { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.7em; margin-right: 10px; }

/* ABOUT */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about__text p { color: var(--muted); line-height: 1.75; font-size: 1.05rem; }
.about__text b { color: var(--text); }
.about__facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.about__facts li { background: var(--card); border: 1px solid var(--line); padding: 12px 16px; border-radius: 12px; }
.about__card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s;
}
.about__card:hover { transform: translateY(-6px) rotate(-0.5deg); }
.about__avatar { width: 100%; height: 220px; object-fit: contain; background: radial-gradient(circle at 50% 30%, #262a3d, #16182400); display: block; }
.about__card-body { padding: 18px; display: grid; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.about__card-body code { color: #9fe870; }

/* SKILLS */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.skill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.3s, border-color 0.3s;
}
.skill:hover { transform: translateY(-6px); border-color: rgba(200, 255, 0, 0.4); }
.skill__icon { font-size: 1.9rem; }
.skill h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.skill p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.bar { height: 7px; background: #2a2e40; border-radius: 99px; margin-top: 18px; overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.skill.shown .bar i { width: var(--v); }

/* PROJECTS */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4); }
.project__preview {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
}
.project__preview--1 { background: linear-gradient(135deg, #2b3566, #151a33); }
.project__preview--2 { background: linear-gradient(135deg, #35623f, #14251a); }
.project__preview--3 { background: linear-gradient(135deg, #66422b, #2b1a15); }
.project__preview--4 { background: linear-gradient(135deg, #2b5f66, #14252b); }
.project__body { padding: 20px 22px 24px; }
.project__body h3 { margin: 0 0 8px; font-size: 1.15rem; }
.project__body p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tags span {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.3);
  padding: 4px 10px;
  border-radius: 99px;
}

/* CONTACT */
.section--contact { text-align: center; }
.contact__lead { max-width: 540px; margin: 0 auto 30px; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.contact__links { display: flex; gap: 24px; justify-content: center; margin-top: 30px; }
.contact__links a { color: var(--muted); border-bottom: 1px dashed var(--muted); padding-bottom: 3px; transition: 0.2s; }
.contact__links a:hover { color: var(--accent); border-color: var(--accent); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 26px 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    background: rgba(18, 20, 28, 0.97);
    padding: 26px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.3s;
  }
  .nav__links.open { transform: none; }
  .nav__burger { display: block; }
  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__stats { gap: 28px; }
}
