:root {
  --bg: #0b1020;
  --panel: #151e33;
  --text: #f5f6fb;
  --muted: #a0abc1;
  --accent: #b6f36a;
  --purple: #a69bff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.7;
}

h1,
h2,
h3,
.brand {
  font-family: "Space Grotesk", "Inter", Arial, sans-serif;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #101522;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8%;
  position: sticky;
  top: 0;
  background: #0b1020ee;
  backdrop-filter: blur(15px);
  z-index: 10;
  border-bottom: 1px solid #ffffff15;
}

.brand {
  font-size: 22px;
  font-weight: bold;
}

.brand span,
.gradient-text {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--muted);
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 85vh;
  padding: 90px 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

h1,
h2 {
  font-size: clamp(36px, 5vw, 65px);
  line-height: 1.15;
  margin-bottom: 25px;
}

.hero-copy > p:not(.eyebrow),
.section > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 20px;
}

.open-to {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text) !important;
  font-size: 14px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #b6f36a30;
  flex: none;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent), #8ce4c0, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button {
  display: inline-block;
  padding: 13px 20px;
  margin: 10px 8px 10px 0;
  border-radius: 7px;
  background: var(--accent);
  color: #101522;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px #b6f36a30;
}

.button.secondary {
  background: transparent;
  color: white;
  border: 1px solid #ffffff35;
}

/* ---------- Profile ---------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.profile {
  position: relative;
  width: 340px;
  max-width: 100%;
}

/* offset lime outline behind the photo */
.profile::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 2px solid var(--accent);
  border-radius: 28px;
  opacity: 0.8;
  transition: transform 0.4s;
}

.profile:hover::before {
  transform: translate(10px, 10px);
}

.profile-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid #ffffff25;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
  background: #0b1020dd;
  backdrop-filter: blur(10px);
  border: 1px solid #ffffff30;
  border-radius: 999px;
}

.chip strong {
  color: var(--accent);
}

.chip-top {
  top: 22px;
  left: -26px;
}

.chip-bottom {
  bottom: 34px;
  right: -30px;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 8%;
  border-top: 1px solid #ffffff12;
  scroll-margin-top: 90px;
}

.js .section {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js .section.visible {
  opacity: 1;
  transform: none;
}

.muted {
  color: #8f9ab2;
}

.stats {
  display: flex;
  gap: 45px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--accent);
  font-size: 28px;
}

.stats span {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #172037, #0f1527);
  border: 1px solid #ffffff18;
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* lime line that grows in on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #b6f36a60;
  box-shadow: 0 18px 40px #00000050, 0 0 0 1px #b6f36a20;
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  background: #b6f36a14;
  border: 1px solid #b6f36a35;
  border-radius: 12px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-number {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #101522;
  background: var(--accent);
  border-radius: 999px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #101522;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: auto;
}

.tags li {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--accent);
  background: #b6f36a12;
  border: 1px solid #b6f36a30;
  border-radius: 999px;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ffffff14;
}

.card-links a {
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text);
  border: 1px solid #ffffff30;
  border-radius: 8px;
  transition: 0.3s;
}

.card-links a:first-child {
  color: var(--accent);
  border-color: #b6f36a50;
}

.card-links a:hover {
  color: #101522;
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Timeline ---------- */
.timeline-item {
  padding: 25px 0;
  border-bottom: 1px solid #ffffff18;
}

.timeline-item > p:first-child {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1px;
}

.timeline-item h3 {
  margin: 10px 0;
}

.timeline-item p:last-child {
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  background: radial-gradient(circle at center, #202744, var(--bg) 70%);
}

.contact > p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
}

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

footer {
  padding: 25px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid #ffffff15;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 20px 5%;
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #0b1020f8;
    border-bottom: 1px solid #ffffff15;
    padding: 8px 5% 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    padding: 12px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 65px 6%;
    text-align: center;
  }

  .open-to {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 20px;
    padding: 20px 30px 30px;
  }

  .profile {
    width: 270px;
  }

  .profile::before {
    transform: translate(12px, 12px);
  }

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

  .chip-top {
    left: -14px;
  }

  .chip-bottom {
    right: -14px;
  }

  .section {
    padding: 70px 6%;
  }

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

  .stats {
    justify-content: space-between;
    gap: 20px;
  }

  h1,
  h2 {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .js .section {
    opacity: 1;
    transform: none;
  }
}