:root {
  --bg: #070a12;
  --card: #101520;
  --card2: #0d121d;
  --text: #f4f7ff;
  --muted: #9ba7bc;
  --line: #273143;
  --accent: #4f8cff;
  --accent2: #7b61ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

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

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

body {
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at 50% -10%, rgba(55, 100, 255, .12), transparent 35%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden
}

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

button {
  font: inherit;
  color: inherit
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 clamp(20px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 10, 18, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff
}

.navbar nav {
  display: flex;
  gap: 26px
}

.navbar nav a {
  font-size: .9rem;
  color: var(--muted);
  transition: .2s
}

.navbar nav a:hover {
  color: #fff
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.3rem
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 105px 0
}

.narrow {
  width: min(1000px, calc(100% - 40px))
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 45px
}

.section-number {
  font-size: .72rem;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 8px
}

.eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  color: #62a0ff;
  margin-bottom: 8px
}

.section-heading h2,
.contact-box h2,
.coding-panel h2 {
  font: 700 clamp(2rem, 5vw, 3.5rem)/1.05 "Space Grotesk", sans-serif
}

.gradient-text {
  background: linear-gradient(90deg, #6f75ff, #25c7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  position: relative
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1
}

.hero h1 {
  font: 700 clamp(3rem, 7vw, 6.3rem)/.98 "Space Grotesk", sans-serif;
  margin: 12px 0
}

.hero h2 {
  font: 600 clamp(1.4rem, 3vw, 2.2rem) "Space Grotesk"
}

.hero-description {
  max-width: 650px;
  color: var(--muted);
  margin: 22px 0;
  font-size: 1.03rem
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4cff9a;
  box-shadow: 0 0 12px #4cff9a;
  margin-right: 7px
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: .2s
}

.btn-primary {
  background: linear-gradient(135deg, #4f8cff, #715cff);
  border: 0
}

.btn-secondary {
  background: var(--card)
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1)
}

.hero-socials {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: .9rem
}

.hero-socials a:hover {
  color: #fff
}

.hero-card {
  background: #0b101a;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden
}

.terminal-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line)
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #546177
}

.hero-card pre {
  padding: 25px;
  overflow: auto;
  font-size: .88rem;
  color: #d9e0ee
}

.code-purple {
  color: #b78cff
}

.code-key {
  color: #66b7ff
}

.code-green {
  color: #8ee7ad
}

.caret {
  color: #62a0ff
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 55px
}

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

.about-text p {
  margin-bottom: 18px
}

.text-link {
  display: inline-block;
  color: #6ca2ff;
  font-weight: 700;
  margin-top: 10px
}

.education-mini {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  display: grid;
  gap: 4px
}

.education-mini span {
  color: #6ca2ff;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800
}

.education-mini strong {
  font-family: "Space Grotesk"
}

.education-mini small {
  color: var(--muted)
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.stat {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px
}

.stat strong {
  display: block;
  font: 700 1.8rem "Space Grotesk"
}

.stat span {
  color: var(--muted);
  font-size: .82rem
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  transition: .2s
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: #4166a5
}

.skill-icon {
  font-weight: 800;
  color: #6da4ff;
  font-size: 1.2rem;
  margin-bottom: 20px
}

.skill-card h3 {
  font: 600 1rem "Space Grotesk"
}

.skill-card p {
  color: var(--muted);
  font-size: .78rem;
  margin-top: 4px
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px
}

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-width: 0;
  overflow: hidden;
  display: flex
}

.project-body {
  width: 100%;
  min-height: 270px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.project-label {
  display: inline-block;
  align-self: flex-start;
  color: #38c9ff;
  font-size: .68rem;
  letter-spacing: .12em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.2
}

.project-card h3 {
  font: 700 clamp(1.4rem, 2.5vw, 1.9rem)/1.2 "Space Grotesk", sans-serif;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
  margin-bottom: 10px
}

.project-card p {
  color: var(--muted);
  font-size: .9rem;
  max-width: 650px
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  color: #aab5c9;
  font-size: .72rem
}

.project-link {
  margin-top: auto;
  padding-top: 24px;
  font-weight: 800;
  font-size: .88rem
}

.project-link:hover {
  color: #6ca2ff
}

.projects-grid .project-card:nth-child(n+5) {
  display: none
}

.projects-grid.show-all .project-card:nth-child(n+5) {
  display: flex
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px
}

.show-more-btn {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 11px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700
}

.show-more-btn:hover {
  border-color: #5e82c7
}

.timeline {
  border-left: 1px solid var(--line);
  margin-left: 8px;
  padding-left: 28px
}

.timeline-item {
  position: relative;
  margin-bottom: 34px
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5b8cff;
  box-shadow: 0 0 14px #5b8cff
}

.timeline-date {
  font-size: .7rem;
  color: #6ca2ff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800
}

.timeline-item h3 {
  font-family: "Space Grotesk"
}

.timeline-item p {
  color: var(--muted);
  font-size: .88rem
}

.coding-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 35px
}

.profile-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.profile-links a {
  min-width: 130px;
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card2)
}

.profile-links a:hover {
  border-color: #5d82c8
}

.profile-links b {
  color: #6ca2ff
}

.contact-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(78, 117, 255, .12), rgba(35, 200, 255, .05));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 70px 30px
}

.contact-box>p:not(.eyebrow) {
  color: var(--muted);
  max-width: 620px;
  margin: 15px auto
}

.contact-actions {
  justify-content: center
}

footer {
  border-top: 1px solid var(--line);
  padding: 35px max(20px, 6vw);
  color: var(--muted)
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 25px
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap
}

.footer-links a:hover {
  color: #fff
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: .75rem
}

.reveal {
  opacity: 1
}

@media(max-width:900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px
  }

  .hero-card {
    max-width: 700px
  }

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

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

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

  .navbar nav {
    gap: 16px
  }
}

@media(max-width:700px) {
  html {
    scroll-padding-top: 76px
  }

  .navbar {
    height: 66px;
    padding: 0 16px
  }

  .navbar nav {
    position: absolute;
    top: 65px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: rgba(13, 18, 29, .98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow)
  }

  .navbar.nav-open nav {
    display: flex
  }

  .navbar nav a {
    padding: 13px 14px;
    border-radius: 9px
  }

  .navbar nav a:hover {
    background: #182131
  }

  .theme-toggle {
    margin-left: auto;
    margin-right: 8px
  }

  .menu-toggle {
    display: block
  }

  .section,
  .narrow {
    width: min(100% - 28px, 1000px);
    padding: 78px 0
  }

  .hero {
    padding-top: 55px
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.7rem)
  }

  .hero-socials {
    flex-wrap: wrap;
    gap: 14px
  }

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

  .project-body {
    min-height: 250px;
    padding: 23px
  }

  .project-card h3 {
    font-size: 1.55rem;
    line-height: 1.18
  }

  .tags {
    margin-top: 17px
  }

  .project-link {
    padding-top: 20px
  }

  .section-heading {
    margin-bottom: 30px
  }

  .section-heading h2 {
    font-size: 2.2rem
  }

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

  .coding-panel {
    padding: 25px
  }

  .profile-links {
    width: 100%
  }

  .profile-links a {
    flex: 1;
    min-width: 0
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column
  }

  .footer-links {
    gap: 13px
  }

  .contact-box {
    padding: 50px 20px
  }
}

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

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

  .hero-card pre {
    font-size: .72rem;
    padding: 18px
  }

  .btn {
    width: 100%
  }

  .hero-actions {
    width: 100%
  }

  .profile-links {
    display: grid;
    grid-template-columns: 1fr
  }

  .project-body {
    min-height: 270px
  }
}

.nav-actions {
  display: flex;
  align-items: center
}

.light-theme {
  --bg: #f5f7fb;
  --card: #fff;
  --card2: #f0f3f9;
  --text: #101522;
  --muted: #596579;
  --line: #dbe1eb
}

.light-theme .navbar {
  background: rgba(245, 247, 251, .86)
}

.light-theme .hero-card {
  background: #fff
}

.light-theme .hero-card pre {
  color: #273248
}

.light-theme .project-card h3,
.light-theme .skill-card h3 {
  color: #111827
}
