@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b1020;
  --panel: #111a30;
  --muted: #0f172a;
  --text: #eef2ff;
  --sub: #a8b3cc;
  --accent: #f97373;
  --accent2: #8b9cff;
  --border: rgba(255, 255, 255, 0.11);
  --max: 1120px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.narrow {
  max-width: 820px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.round-photo {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.logo {
  width: 50px;
  height: 50px;
}
.profile {
  width: 366px;
  height: 366px;
}
.role-headline {
  font-size: xxx-large;
}
.about-panel {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}
.about-panel > .container {
  width: 100%;
  margin: 0;
}
.about-panel .code-window {
  justify-self: end;
}
.space-reduce-headline {
  display: flex;
  flex-wrap: wrap;
}
.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font:
    700 1.7rem "Space Grotesk",
    sans-serif;
  letter-spacing: -0.08em;
}
.brand span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--sub);
  font-size: 0.92rem;
}
.nav-links a:hover,
.text-link:hover {
  color: var(--text);
}
.nav-cta {
  border: 1px solid var(--border);
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--text);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  border-radius: 8px;
  padding: 5px 10px;
}
.section {
  padding-block: 94px;
}
.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  padding-top: 80px;
  padding-bottom: 90px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 15px;
}
.status-dot,
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.17;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  margin: 0 0 24px;
}
h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 20px;
}
h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.accent {
  color: var(--accent);
}
.hero-summary,
.section-lead {
  font-size: 1.1rem;
  color: var(--sub);
  max-width: 650px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button-primary {
  background: var(--accent);
  color: #190f18;
}
.button-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}
.quick-facts {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.quick-facts div {
  display: flex;
  flex-direction: column;
}
.quick-facts strong {
  font-size: 0.94rem;
}
.quick-facts span {
  font-size: 0.78rem;
  color: var(--sub);
}
.hero-visual {
  position: relative;
  min-height: 350px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.code-window {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  height: fit-content;
  /* left: calc(100% - 340px);
  top: 80%;
  width:300px;
  */

  background: #10192b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.window-bar {
  height: 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
}
.window-bar > span {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: #f97373;
}
.window-bar > span:nth-child(2) {
  background: #fbbf24;
}
.window-bar > span:nth-child(3) {
  background: #4ade80;
}
.window-bar p {
  font-size: 0.75rem;
  color: var(--sub);
  margin-left: auto;
}
pre {
  padding: 18px 22px;
  margin: 0;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #dbeafe;
}
.code-purple {
  color: #c4b5fd;
}
.code-green {
  color: #86efac;
}
.code-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  color: var(--sub);
  font-size: 0.75rem;
}
.pulse {
  width: 6px;
  height: 6px;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(139, 156, 255, 0.3);
  border-radius: 50%;
  z-index: -1;
}
.orbit-one {
  width: 330px;
  height: 330px;
}
.orbit-two {
  width: 430px;
  height: 430px;
  border-color: rgba(249, 115, 115, 0.18);
}
.section-muted {
  background: var(--muted);
  border-block: 1px solid rgba(255, 255, 255, 0.035);
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.skill-card,
.project-card {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
.skill-card {
  padding: 22px;
}
.skill-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(249, 115, 115, 0.12);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}
.skill-card p,
.project-body p,
.timeline-item p,
.timeline-item li {
  color: var(--sub);
  font-size: 0.93rem;
}
.small-note {
  font-size: 0.8rem;
  color: #8290ad;
  margin-top: 22px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.project-top {
  height: 120px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #fff;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.project-angular {
  background: linear-gradient(130deg, #8f202d, #f97373 65%, #fca5a5);
}
.project-blue {
  background: linear-gradient(130deg, #1d3d86, #5686df);
}
.project-violet {
  background: linear-gradient(130deg, #4c1d95, #a78bfa);
}
.project-green {
  background: linear-gradient(130deg, #065f46, #34d399);
}
.project-mark {
  font:
    600 2rem "Space Grotesk",
    sans-serif;
  opacity: 0.75;
}
.project-body {
  padding: 23px;
}
.project-body p {
  margin: 0 0 18px;
}
.tags,
.learning-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tags span,
.learning-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: #cbd5e1;
  font-size: 0.75rem;
}
.project-note {
  font-size: 0.78rem !important;
  color: #8290ad !important;
  margin: 18px 0 0 !important;
}
.timeline {
  margin-top: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  margin-left: 8px;
}
.timeline-item {
  position: relative;
  padding: 0 0 35px 30px;
}
.timeline-dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(249, 115, 115, 0.12);
}
.timeline-item h3 span {
  color: var(--sub);
  font-weight: 500;
}
.timeline-date {
  font-size: 0.82rem !important;
  color: var(--accent) !important;
  margin: 0 0 10px;
}
.timeline-item ul {
  padding-left: 20px;
}
.timeline-item li {
  margin: 6px 0;
}
.learning-list {
  margin-top: 25px;
}
.learning-list span {
  font-size: 0.88rem;
  padding: 8px 13px;
}
.contact-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(
    120deg,
    rgba(249, 115, 115, 0.08),
    rgba(139, 156, 255, 0.08)
  );
}
.contact-panel p:not(.eyebrow) {
  color: var(--sub);
  max-width: 530px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 190px;
}
.text-link {
  font-size: 0.86rem;
  color: var(--sub);
  overflow-wrap: anywhere;
}
.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--sub);
  font-size: 0.82rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: white;
  color: black;
  padding: 8px;
}
.skip-link:focus {
  left: 10px;
  z-index: 99;
}
@media (max-width: 960px) {
  .profile {
    width: 360px;
    height: 360px;
  }
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-top: 70px;
  }
  .profile {
    width: 366px;
    height: 366px;
  }
  .hero-visual {
    min-height: 330px;
  }
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-panel .code-window {
    justify-self: start;
    width: 100%;
    max-width: 430px;
  }
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }
  .profile {
    width: 260px;
    height: 260px;
  }
  .section {
    padding-block: 68px;
  }
  .nav {
    height: 65px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 65px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #111a30;
    border: 1px solid var(--border);
    border-radius: 12px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px;
  }
  .nav-cta {
    border: 0;
  }
  .hero {
    min-height: auto;
    padding-top: 60px;
  }
  .hero-summary,
  .section-lead {
    font-size: 1rem;
  }
  .quick-facts {
    gap: 18px;
  }
  .hero-visual {
    min-height: 290px;
  }
  .orbit-one {
    width: 260px;
    height: 260px;
  }
  .orbit-two {
    width: 320px;
    height: 320px;
  }
  .about-panel {
    width: min(var(--max), calc(100% - 28px));
  }
  .about-panel .code-window {
    max-width: none;
  }
  pre {
    font-size: 0.78rem;
    padding: 15px;
  }
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    padding: 20px;
  }
  .project-top {
    height: 100px;
  }
  .contact-panel {
    padding: 25px;
  }
  .footer-inner {
    flex-direction: column;
  }
}

.project-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.project-card-link .project-card {
  height: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card-link:hover .project-card {
  transform: translateY(-4px);
}

.project-card-link:focus-visible {
  outline: 2px solid #f97373;
  outline-offset: 4px;
  border-radius: 16px;
}

.project-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 160px;
  padding: 30px;
  border-style: dashed;
}
.project-more h3,
.project-more p {
  margin: 0;
}
.project-more p {
  color: var(--sub);
  font-size: 0.93rem;
}
.project-more-count {
  font: 600 2.4rem "Space Grotesk", sans-serif;
  color: var(--accent);
}
.project-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-style: dashed;
  text-align: center;
}
.project-more h3 {
  margin: 0;
  font-size: 1.3rem;
}
.project-more-plus {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 300 3rem/1 "Space Grotesk", sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}
.project-card-link:hover .project-more-plus {
  background: var(--accent);
  color: #fff;
}
.project-more .project-more-count {
  margin: 0;
  color: var(--sub);
  font-size: 0.93rem;
}
.back-arrow {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.back-arrow:hover,
.back-arrow:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.page-eyebrow .eyebrow {
  margin: 0;
}
.page-title {
  margin: 4px 0 12px;
  font: 700 clamp(2.4rem, 6vw, 4rem) / 1.05 "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}
.page-title .accent {
  color: var(--accent);
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.pill {
  padding: 8px 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pill:hover {
  border-color: var(--accent);
}
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.project-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.project-card-link[hidden] {
  display: none;
}
.badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 3px 12px;
  border: 1px solid rgba(249, 115, 115, 0.45);
  border-radius: 999px;
  background: rgba(249, 115, 115, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Project cards */
.pc {
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.pc-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.pc-thumb-empty {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  font: 700 2.4rem "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
}
.pc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 6px 4px;
}
.pc-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pc-heading h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}
.pc-body > p {
  margin: 10px 0 14px;
  color: var(--sub);
  font-size: 0.93rem;
}
.pc-body .tags {
  margin-bottom: 18px;
}
.pc-cta {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}
.project-card-link:hover .pc-cta span {
  display: inline-block;
  transform: translateX(4px);
}

/* Project details */
.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--sub);
  font-size: 0.9rem;
}
.back-link:hover {
  color: var(--text);
}
.pd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.pd-title {
  margin: 0;
  font: 700 clamp(1.8rem, 4vw, 2.6rem) / 1.15 "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}
.pd-short {
  margin: 10px 0 16px;
  color: var(--sub);
  font-size: 1.05rem;
}
.pd-tags span {
  background: rgba(249, 115, 115, 0.1);
  border-color: rgba(249, 115, 115, 0.35);
}
.pd-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}
.pd-stage {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.pd-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.pd-stage-empty {
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 16 / 10;
  color: #fff;
  text-align: center;
}
.pd-stage-empty span {
  font: 700 4rem "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
}
.pd-stage-empty p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}
.pd-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.pd-nav {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.pd-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pd-thumbs {
  display: flex;
  flex: 1;
  gap: 10px;
  overflow-x: auto;
}
.pd-thumb {
  flex: 0 0 110px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: none;
  overflow: hidden;
  cursor: pointer;
}
.pd-thumb.active {
  border-color: var(--accent);
}
.pd-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.pd-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  padding: 24px;
}
.pd-wide {
  margin-top: 24px;
}
.pd-panel h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.pd-panel h2:not(:first-child) {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.pd-panel p {
  margin: 0;
  color: var(--sub);
  font-size: 0.93rem;
}
.pd-panel .pd-status {
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.85rem;
}
.feature-list,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--sub);
  font-size: 0.93rem;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.detail-list li {
  padding-left: 16px;
  position: relative;
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(249, 115, 115, 0.14);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.detail-group {
  margin: 14px 0 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sub);
}
.detail-group:first-of-type {
  margin-top: 0;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tech-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--sub);
  font-size: 0.75rem;
  line-height: 1.3;
}
.tech-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid;
  border-radius: 12px;
  font: 700 1.4rem "Space Grotesk", sans-serif;
}
@media (max-width: 960px) {
  .project-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 850px) {
  .pd-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .project-grid-3 {
    grid-template-columns: 1fr;
  }
  .pd-thumb {
    flex-basis: 84px;
  }
}
