*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0f14;
  --surface: #13161f;
  --border: #1e2330;
  --border2: #2a3045;
  --text: #e2e8f0;
  --muted: #6b7a99;
  --green: #ff2d78;
  --cyan: #22d3ee;
  --purple: #a78bfa;
  --orange: #fb923c;
  --pink: #f472b6;
  --yellow: #facc15;
}

/* ── LIGHT MODE ── */
body.light {
  --bg: #fdf6f9;
  --surface: #ffffff;
  --border: #f0d8e4;
  --border2: #e8c6d6;
  --text: #1a0a10;
  --muted: #8a6070;
  --green: #e8005a;
  --cyan: #0891b2;
  --purple: #7c3aed;
  --orange: #c2410c;
  --yellow: #a16207;
}

body.light::before {
  background-image:
    linear-gradient(rgba(232, 0, 90, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 0, 90, 0.04) 1px, transparent 1px);
}

body.light .orb-1 {
  background: rgba(255, 45, 120, 0.08);
}

body.light .orb-2 {
  background: rgba(8, 145, 178, 0.06);
}
/* Tell the browser this is meant to print on one page */

/* ── TOGGLE BUTTON ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  user-select: none;
}

.theme-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

.toggle-track {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--border2);
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}

body.light .toggle-track {
  background: var(--green);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.25s,
    background 0.25s;
}

body.light .toggle-thumb {
  transform: translateX(12px);
  background: white;
}

.toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.4s;
}

body.light .toggle-icon {
  transform: rotate(180deg);
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: "JetBrains Mono", monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── GRID BG ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 45, 120, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 120, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── GLOW ORBS ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 45, 120, 0.06);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(34, 211, 238, 0.05);
  bottom: 0;
  right: -100px;
}

/* ── LAYOUT ── */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* ── TOP BAR ── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  animation: fadeDown 0.6s ease both;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 45, 120, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(255, 45, 120, 0);
  }
}

.top-bar-right {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.top-bar-right span {
  color: var(--green);
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.7s ease 0.1s both;
}

/* ── TERMINAL ILLUSTRATION ── */
.terminal-wrap {
  flex-shrink: 0;
  position: relative;
}

.terminal-wrap svg {
  filter: drop-shadow(0 0 24px rgba(255, 45, 120, 0.18))
    drop-shadow(0 0 6px rgba(34, 211, 238, 0.1));
}

.cursor-blink {
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.line-1 {
  animation: typein 0.4s ease 0.8s both;
}

.line-2 {
  animation: typein 0.4s ease 1.2s both;
}

.line-3 {
  animation: typein 0.4s ease 1.6s both;
}

.line-4 {
  animation: typein 0.4s ease 2s both;
}

.line-5 {
  animation: typein 0.4s ease 2.4s both;
}

@keyframes typein {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 760px) {
  .terminal-wrap {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr auto;
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--green);
}

h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
}

h1 .accent {
  color: var(--green);
}

.hero-tagline {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42ch;
}

.hero-tagline .hi {
  color: var(--cyan);
}

/* ── CONTACT CHIPS ── */
.contact-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(255, 45, 120, 0.05);
}

.chip svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
  margin-bottom: 2.5rem;
  opacity: 0.4;
}

/* ── SECTION ── */
section {
  margin-bottom: 3rem;
  animation: fadeUp 0.7s ease both;
}

section:nth-child(2) {
  animation-delay: 0.15s;
}

section:nth-child(3) {
  animation-delay: 0.25s;
}

section:nth-child(4) {
  animation-delay: 0.35s;
}

section:nth-child(5) {
  animation-delay: 0.45s;
}

section:nth-child(6) {
  animation-delay: 0.55s;
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.sec-label-text {
  font-family: "Syne", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.sec-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── SKILLS ── */
.skills-outer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s;
}

.skill-group:hover {
  border-color: var(--border2);
}

.sg-title {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.sg-title.t-green {
  color: var(--green);
}

.sg-title.t-cyan {
  color: var(--cyan);
}

.sg-title.t-purple {
  color: var(--purple);
}

.sg-title.t-orange {
  color: var(--orange);
}

.sg-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 400;
  border: 1px solid;
}

.tag.g {
  color: var(--green);
  border-color: rgba(255, 45, 120, 0.25);
  background: rgba(255, 45, 120, 0.07);
}

.tag.c {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.07);
}

.tag.p {
  color: var(--purple);
  border-color: rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.07);
}

.tag.o {
  color: var(--orange);
  border-color: rgba(251, 146, 60, 0.25);
  background: rgba(251, 146, 60, 0.07);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 45, 120, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: rgba(255, 45, 120, 0.4);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 45, 120, 0.1);
}

.project-card:hover::after {
  opacity: 1;
}

.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.pc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.pc-arrow {
  font-size: 0.75rem;
  color: var(--muted);
  transition:
    color 0.2s,
    transform 0.2s;
}

.project-card:hover .pc-arrow {
  color: var(--green);
  transform: translate(2px, -2px);
}

.pc-name {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

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

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* ── EXPERIENCE ── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.exp-item:first-child {
  border-top: 1px solid var(--border);
}

.exp-date {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
  text-align: right;
}

.exp-date .badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 45, 120, 0.1);
  color: var(--green);
  border: 1px solid rgba(255, 45, 120, 0.2);
  border-radius: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.exp-title {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.exp-company {
  font-size: 0.72rem;
  color: var(--cyan);
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}

.exp-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.7;
}

.exp-desc li {
  margin-left: 1rem;
  margin-bottom: 0.2rem;
  position: relative;
}

.exp-desc li::marker {
  color: var(--green);
}

/* ── ABOUT / BIO ── */
.bio-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  position: relative;
  overflow: hidden;
}

.bio-block::before {
  content: "/* about */";
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 0.65rem;
  color: var(--border2);
  letter-spacing: 0.06em;
}

.bio-text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 64ch;
}

.bio-text .hl-green {
  color: var(--green);
}

.bio-text .hl-cyan {
  color: var(--cyan);
}

.bio-text .hl-purple {
  color: var(--purple);
}

.bio-text .hl-yellow {
  color: var(--yellow);
}

/* ── EDUCATION ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}

.edu-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.edu-title {
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.edu-sub {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FOOTER ── */
.resume-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-code {
  font-size: 0.65rem;
  color: var(--border2);
  letter-spacing: 0.08em;
}

.footer-code .fn {
  color: var(--purple);
}

.footer-code .str {
  color: var(--orange);
}

.footer-code .kw {
  color: var(--cyan);
}

.footer-code .num {
  color: var(--green);
}

.footer-links {
  display: flex;
  gap: 0.6rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.65rem;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.06em;
}

.footer-link:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(255, 45, 120, 0.05);
}

.footer-link svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .contact-chips {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .chip {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-outer {
    grid-template-columns: 1fr 1fr;
  }

  .exp-item {
    grid-template-columns: 1fr;
  }

  .exp-date {
    text-align: left;
    margin-bottom: 0.5rem;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .footer-code {
    display: none;
  }
}

@media (max-width: 400px) {
  .skills-outer {
    grid-template-columns: 1fr;
  }
}

/* ── FLOATING BG ICONS ── */
.bg-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-icon {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  opacity: 0.055;
  color: var(--green);
  user-select: none;
  animation: floatIcon linear infinite;
  white-space: nowrap;
}

body.light .bg-icon {
  opacity: 0.07;
}

@keyframes floatIcon {
  0% {
    transform: translateY(0px) rotate(var(--r));
  }

  50% {
    transform: translateY(-18px) rotate(var(--r));
  }

  100% {
    transform: translateY(0px) rotate(var(--r));
  }
}

/* ── PRINT ── */
@media print {
  body {
    background: white;
    color: black;
  }

  body::before,
  .orb {
    display: none;
  }

  .project-card,
  .skill-group,
  .bio-block,
  .edu-card {
    background: #f8f8f8;
    border-color: #ddd;
    color: black;
  }

  * {
    animation: none !important;
  }
}
