:root {
  --bg: #0a0a0f;
  --card: rgba(17, 17, 24, 0.84);
  --card-solid: #111118;
  --cyan: #00f5ff;
  --blue: #3b82f6;
  --text: #ffffff;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: 0 0 40px rgba(0, 245, 255, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.wrap {
  overflow: hidden;
}

/* ============================
   SCROLL PROGRESS BAR
   ============================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
}

/* ============================
   MOUSE SPOTLIGHT
   ============================ */
.mouse-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.07), transparent 70%);
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ============================
   SECTION BASE
   ============================ */
.section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 104px 0;
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 80px 16px 60px;
  overflow: hidden;
  text-align: center;
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 245, 255, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0, 245, 255, 0.04);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.hero-badge-text {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 7.8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero-name .line2 {
  color: var(--cyan);
}

.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 640px;
}

.hero-desc {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-desc em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 22px;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--cyan);
  color: #001316;
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(0, 245, 255, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(0, 245, 255, 0.54);
  border-radius: var(--radius);
  padding: 0 22px;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(0, 245, 255, 0.04);
  color: var(--cyan);
  transition: transform 180ms ease, background 180ms ease;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(0, 245, 255, 0.1);
}

/* ============================
   SCROLL TICKER
   ============================ */
.scroll-ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: rgba(17, 17, 24, 0.5);
}

#ticker {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.ticker-item span {
  margin-left: 24px;
  color: var(--cyan);
  opacity: 0.5;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================
   SECTION HEADERS
   ============================ */
.sec-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.sec-title {
  margin: 0 0 36px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.sec-title em {
  color: var(--cyan);
  font-style: normal;
}

/* ============================
   ABOUT
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.about-text strong {
  color: var(--text);
}

.about-stats {
  display: flex;
  justify-content: center;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.stat-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  background: var(--card);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.stat-cell:hover {
  border-color: rgba(0, 245, 255, 0.46);
  box-shadow: var(--shadow);
}

.stat-n {
  font-family: "JetBrains Mono", monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-l {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================
   SKILLS
   ============================ */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.skill-chip {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.skill-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.chip-ml {
  border-color: rgba(167, 139, 250, 0.35);
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.07);
}

.chip-ml:hover {
  border-color: rgba(167, 139, 250, 0.7);
}

.chip-data {
  border-color: rgba(103, 232, 249, 0.35);
  color: #67e8f9;
  background: rgba(103, 232, 249, 0.07);
}

.chip-data:hover {
  border-color: rgba(103, 232, 249, 0.7);
}

.chip-llm {
  border-color: rgba(110, 231, 183, 0.35);
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.07);
}

.chip-llm:hover {
  border-color: rgba(110, 231, 183, 0.7);
}

.chip-deploy {
  border-color: rgba(252, 211, 77, 0.35);
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.07);
}

.chip-deploy:hover {
  border-color: rgba(252, 211, 77, 0.7);
}

.chip-lang {
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.07);
}

.chip-lang:hover {
  border-color: rgba(96, 165, 250, 0.7);
}

/* ============================
   PROJECTS
   ============================ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proj-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.proj-card:hover {
  border-color: rgba(0, 245, 255, 0.46);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.proj-idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 12px;
  opacity: 0.7;
}

.proj-name {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.proj-desc {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.proj-tag {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(0, 245, 255, 0.06);
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 255, 0.18);
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  transition: gap 180ms ease;
}

.proj-link:hover {
  gap: 10px;
}

/* ============================
   EXPERIENCE
   ============================ */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.exp-row:hover {
  border-color: rgba(0, 245, 255, 0.46);
  box-shadow: var(--shadow);
}

.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-co {
  font-weight: 700;
  font-size: 1rem;
}

.exp-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 4px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.exp-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-role {
  font-weight: 600;
  font-size: 1rem;
  color: var(--cyan);
}

.exp-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-bullets li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================
   SERVICES
   ============================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.svc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--card);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.svc-card:hover {
  border-color: rgba(0, 245, 255, 0.46);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.svc-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: rgba(0, 245, 255, 0.04);
}

.svc-name {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.svc-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================
   CONTACT
   ============================ */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-headline {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
}

.contact-headline span {
  color: var(--cyan);
}

.contact-sub {
  margin: 0;
  font-size: 1.04rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--card);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-item:hover {
  border-color: rgba(0, 245, 255, 0.46);
  box-shadow: var(--shadow);
}

.contact-item-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(0, 245, 255, 0.06);
  color: var(--cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-item-val {
  font-weight: 500;
}

.contact-item-val a {
  color: var(--cyan);
  transition: opacity 180ms ease;
}

.contact-item-val a:hover {
  opacity: 0.8;
}

/* ============================
   FOOTER
   ============================ */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-name {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 180ms ease;
}

.footer-social a:hover {
  color: var(--cyan);
}

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

/* ============================
   KEYFRAMES
   ============================ */
@keyframes blink {
  50% { opacity: 0; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1040px) {
  .proj-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .exp-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-name {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .section {
    padding: 78px 0;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .section,
  .footer-bar {
    width: min(100% - 24px, var(--max));
  }

  .proj-grid,
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    justify-content: center;
  }

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

  .skills-cloud {
    gap: 8px;
  }

  .skill-chip {
    font-size: 0.82rem;
    padding: 6px 12px;
  }
}
