:root {
  --bg: #12141A;
  --bg-raised: #191C24;
  --line: #262A35;
  --text: #EDEDEF;
  --text-dim: #8B93A7;
  --accent: #00C2A8;
  --accent-2: #F2A93B;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  justify-content: space-between;
  align-items: center;
  position: relative;
}


.bgfx {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(0, 194, 168, 0.10), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(242, 169, 59, 0.08), transparent 35%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, black, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black, black 60%, transparent 100%);
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(18, 20, 26, 0.75);
  border-bottom: 1px solid var(--line);
}

nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav ul a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color .2s;
}

nav ul a:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
}

.nav-cta:hover {
  background: var(--accent);
  color: #0A0B0E;
}

/* HERO */
.hero {
  position: relative;
  padding: 150px 0 70px;
  background-image:
    linear-gradient(90deg, var(--bg) 65%, rgba(18, 20, 26, 0.55) 75%, rgba(18, 20, 26, 0) 100%),
    url('profile.png');
  background-repeat: no-repeat, no-repeat;
  background-position: left center, right center;
  background-size: fixed, cover;
}

.hero-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.hero-main {
  flex: 1;
  min-width: 300px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(0, 194, 168, 0.35);
  background: rgba(0, 194, 168, 0.07);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 760px;
}

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

.hero p.sub {
  margin-top: 22px;
  max-width: 620px;
  font-size: 16.5px;
  color: var(--text-dim);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.contact-strip a:hover {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .15s, background .2s, border-color .2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #0A0B0E;
}

.btn-primary:hover {
  background: #0FE0C2;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-dim);
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  color: var(--text);
}

.stat span {
  font-size: 13px;
  color: var(--text-dim);
}

/* SECTION HEADERS */
section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 44px;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 600;
  margin-top: 10px;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 600px;
  font-size: 15px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.skill-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-block;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* EXPERIENCE - timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.job {
  position: relative;
  padding-bottom: 44px;
}

.job:last-child {
  padding-bottom: 0;
}

.job::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.job-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.job-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.job-company {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.job-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
  white-space: nowrap;
}

.job-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.job-bullets li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}

.job-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.job-bullets b {
  color: var(--text);
  font-weight: 600;
}

/* APP CARDS */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .2s;
}

.app-card:hover {
  border-color: rgba(0, 194, 168, 0.4);
  transform: translateY(-3px);
}

.app-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0A0B0E;
}

.app-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.app-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  word-break: break-all;
}

.app-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  flex: 1;
}

.app-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.app-links a {
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
}

.app-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* EDUCATION */
.edu-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.edu-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.edu-degree {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.edu-school {
  color: var(--accent);
  font-size: 14px;
  margin-top: 2px;
}

.edu-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.edu-bullets {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edu-bullets li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}

.edu-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

.edu-bullets b {
  color: var(--text);
  font-weight: 600;
}

.langs {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.lang b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
}

.lang span {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ABOUT / CV */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

#navMenu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: 4px;
}

.menu-toggle.is-hidden {
  visibility: hidden;
}

.menu-close-row {
  display: none;
}

.menu-close {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.menu-close:hover {
  color: var(--accent);
}

@media (max-width:820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }

  #navMenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    right: 0;
    width: 220px;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    padding: 16px 20px 20px;
    border-radius: 12px;
    gap: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .4);
    z-index: 20;
  }

  #navMenu.active {
    display: flex;
  }

  #navMenu li {
    width: 100%;
  }

  #navMenu li a {
    display: block;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
  }

  #navMenu li a:hover {
    color: var(--accent);
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 10px;
  }

  .menu-close-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 6px;
  }
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 15px;
}

.cv-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.cv-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
}

.cv-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* CONTACT */
.contact-box {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.contact-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-box p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .hero {
    background-image:
      linear-gradient(90deg, var(--bg) 25%, rgba(18, 20, 26, 0.3) 85%, rgba(18, 20, 26, 0) 100%),
      url('profile.png');
    background-position: top center, top center;
    background-size: cover, cover;

  }
}

/* SCROLL REVEAL */
.fade-el {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.fade-el.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-el {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
