/* ============================================================
   RESET & TOKENS
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #181818;
  --card: #141414;
  --border: #222222;
  --white: #f5f5f0;
  --white-2: #a8a8a0;
  --accent: #e8e4ff;
  --purple: #6c63ff;
  --purple-d: #5149d4;
  --green: #4ade80;

  --font-display: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
      CUSTOM CURSOR (desktop only)
      ============================================================ */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a,
  button {
    cursor: none;
  }
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    transform 0.12s var(--ease-out),
    width 0.3s,
    height 0.3s,
    border-color 0.3s;
}

body.cursor-hover .cursor-follower {
  width: 60px;
  height: 60px;
  border-color: var(--purple);
}

/* ============================================================
      UTILITIES
      ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.label-line {
  width: 32px;
  height: 1px;
  background: var(--purple);
  flex-shrink: 0;
}

.label-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-2);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
}

.section-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--white-2);
}

/* ============================================================
      SCROLL REVEAL
      ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
      BUTTONS
      ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.25s var(--ease-out),
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover {
  background: var(--purple-d);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--white-2);
  background: var(--black-3);
}

.btn-white {
  background: var(--white);
  color: var(--black);
}
.btn-white:hover {
  background: #e0e0d8;
}

.btn-large {
  padding: 18px 40px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
      HEADER / NAV
      ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s,
    backdrop-filter 0.4s,
    border-color 0.4s;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo .dot {
  color: var(--purple);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--white-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-link:hover {
  color: var(--white);
  background: var(--black-3);
}

/* CHANGED: standalone CTA button outside the <ul> */
.nav-cta-btn {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  flex-shrink: 0;
}

/* REMOVED: .hamburger, .hamburger span, .nav-close — no longer needed */

/* ============================================================
      HERO
      ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(108, 99, 255, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
  flex: 1;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--white-2);
}

.hero-sub {
  font-size: 17px;
  color: var(--white-2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero image */
.hero-img-wrap {
  flex-shrink: 0;
  position: relative;
  width: 340px;
}

.hero-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.4s;
}

.hero-img:hover {
  filter: grayscale(0%);
}

.hero-img-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-img-badge i {
  color: var(--green);
  font-size: 8px;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Marquee */
.hero-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.hero-marquee {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-2);
  font-weight: 500;
}

.hero-marquee .sep {
  color: var(--purple);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
      ABOUT
      ============================================================ */
.about {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body {
  font-size: 16px;
  color: var(--white-2);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-body strong {
  color: var(--white);
  font-weight: 500;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--white-2);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.tag:hover {
  border-color: var(--purple);
  color: var(--white);
}

/* ============================================================
      WORK
      ============================================================ */
.work {
  background: var(--black);
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.project-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 260px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  transition: background 0.3s;
}

.project-card:last-child {
  border-bottom: none;
}
.project-card:hover {
  background: var(--black-3);
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.project-img-placeholder {
  background: var(--black-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  font-size: 12px;
  color: var(--white-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 18px;
  text-decoration: none;
  transition:
    transform 0.3s,
    background 0.3s;
}

.project-link-icon:hover {
  transform: scale(1.1);
  background: var(--accent);
}

.project-meta {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.project-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.project-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--white-2);
  letter-spacing: 0.1em;
  padding-top: 4px;
  flex-shrink: 0;
}

.project-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 14px;
  color: var(--white-2);
  line-height: 1.7;
  max-width: 480px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--white-2);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* GitHub — filled, primary */
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--purple);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  width: fit-content;
  letter-spacing: 0;
  text-transform: none;
}

.project-cta:hover {
  background: transparent;
  color: var(--purple);
}

/* Live — outlined, secondary */
.project-cta--live {
  background: transparent;
  color: var(--white-2);
}

.project-cta--live:hover {
  background: color-mix(in srgb, #ff0000 30%, transparent);
  color: #fff;
}

/* The solid red dot */
.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f04444;
  flex-shrink: 0;
}

/* The radiating ring */
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #f04444;
  animation: live-ping 2s ease-out infinite;
}

@keyframes live-ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ============================================================
      EXPERIENCE
      ============================================================ */
.experience {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.exp-list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-year {
  font-size: 13px;
  color: var(--white-2);
  font-weight: 400;
  letter-spacing: 0.04em;
  padding-top: 4px;
}

.exp-role {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.exp-company {
  font-size: 14px;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 12px;
}

.exp-desc {
  font-size: 14px;
  color: var(--white-2);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 16px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tags span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--white-2);
}

/* ============================================================
      CV SECTION
      ============================================================ */
.cv-section {
  background: var(--black);
}

.cv-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px;
}

.cv-text .section-label {
  margin-bottom: 20px;
}
.cv-text p {
  font-size: 16px;
  color: var(--white-2);
  line-height: 1.7;
  max-width: 400px;
}

.cv-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

.cv-updated {
  font-size: 12px;
  color: var(--white-2);
  letter-spacing: 0.04em;
}

/* ============================================================
      CTA BANNER
      ============================================================ */
.cta-banner {
  background: var(--purple);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-inner {
  text-align: center;
}

.cta-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 40px;
}

/* ============================================================
      CONTACT
      ============================================================ */
.contact {
  background: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left p {
  font-size: 16px;
  color: var(--white-2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  transition:
    color 0.2s,
    gap 0.2s;
}

.contact-email:hover {
  color: var(--purple);
  gap: 16px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-2);
  text-decoration: none;
  font-size: 17px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.social-icon:hover {
  color: var(--white);
  border-color: var(--purple);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-3px);
}

.social-icon svg {
  display: block;
}

/* Form */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-2);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}

#form-msg {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

/* ============================================================
      README / FOOTER
      ============================================================ */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.readme-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 60px;
  font-family: "Courier New", Courier, monospace;
}

.readme-header {
  background: var(--black-3);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.readme-dots {
  display: flex;
  gap: 6px;
}
.readme-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}
.readme-dots span:nth-child(1) {
  background: #ff5f57;
}
.readme-dots span:nth-child(2) {
  background: #ffbd2e;
}
.readme-dots span:nth-child(3) {
  background: #28ca41;
}

.readme-filename {
  font-size: 13px;
  color: var(--white-2);
  font-family: "Courier New", monospace;
}

.readme-body {
  padding: 28px 32px;
  line-height: 1.7;
}
.readme-h1 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}
.readme-line {
  margin-bottom: 4px;
}
.readme-body-text {
  font-size: 14px;
  color: var(--white-2);
  margin-bottom: 4px;
}
.readme-code {
  font-size: 13px;
  color: #a5f3fc;
  background: var(--black-3);
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
}

.md-badge {
  background: rgba(108, 99, 255, 0.18);
  color: var(--accent);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  margin-right: 6px;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.md-key {
  color: #86efac;
  font-size: 15px;
  font-weight: 600;
}
.readme-link {
  color: var(--purple);
  text-decoration: none;
}
.readme-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--white-2);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================================
      RESPONSIVE
      ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 80px;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-sub {
    max-width: 100%;
    margin: 0 auto 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-img-wrap {
    width: 280px;
  }
  .hero-img-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cv-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
  }
  .cv-action {
    align-items: flex-start;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-img-wrap {
    height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 8px 24px 24px 24px;
  }
  .section {
    padding: 80px 0;
  }

  /* CHANGED: hide nav links on mobile, CTA button stays visible */
  .nav-links {
    display: none;
  }
  .nav-cta-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero-heading {
    font-size: clamp(48px, 12vw, 72px);
  }
  .hero-img-wrap {
    width: 240px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .exp-year {
    font-size: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .br-desk {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-img-wrap {
    width: 200px;
  }
  .project-meta {
    padding: 24px;
  }
  .readme-body {
    padding: 20px;
  }
}

/* REMOVED: .nav-overlay — no longer needed */

/* ============================================================
      EXPERIENCE DIVIDER
      ============================================================ */
.exp-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: 60px;
}

/* ============================================================
      CERTIFICATIONS GRID
      ============================================================ */
.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}

.cert-card:last-child {
  border-bottom: none;
}

.cert-card:hover {
  background: var(--black-3);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--purple);
  transition: background 0.25s;
}

.cert-card:hover .cert-icon {
  background: rgba(108, 99, 255, 0.22);
}

.cert-icon--google {
  background: rgba(234, 67, 53, 0.1);
  border-color: rgba(234, 67, 53, 0.2);
  color: #ea4335;
}

.cert-body {
  flex: 1;
  min-width: 0;
}

.cert-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-issuer {
  font-size: 13px;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 2px;
}

.cert-date {
  font-size: 12px;
  color: var(--white-2);
  letter-spacing: 0.03em;
}

.cert-verify {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-2);
  text-decoration: none;
  font-size: 13px;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.cert-verify:hover {
  color: var(--white);
  border-color: var(--purple);
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-2px);
}

/* Responsive: cert cards on small screens */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }

  /* ADDED: prevent nav CTA from inheriting full width */
  .nav-cta-btn {
    width: auto;
    padding: 8px 18px;
    font-size: 13px;
  }

  .hero-img-wrap {
    width: 200px;
  }
  .project-meta {
    padding: 24px;
  }
  .readme-body {
    padding: 20px;
  }
}
