/* ─────────────────────────────────────────
   Design tokens — dark-gold / white palette
   ───────────────────────────────────────── */
:root {
  --bg-1:     #0c0a06;
  --bg-2:     #120e07;
  --green-hi: #f0b429;     /* bright gold accent — buttons, links */
  --green-md: #9d6e2a;     /* mid gold — borders, glows    */
  --green-lo: #3d2b0f;     /* dark gold — card backgrounds  */
  --white:    #f7f3ec;
  --muted:    rgba(247,243,236,0.55);
  --card:     rgba(40,30,12,0.55);
  --glass:    rgba(40,30,12,0.3);
  --radius:   14px;
}

/* ─── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, p, span, a, footer {
  user-select: none;
  -webkit-user-select: none;
}

img {
  -webkit-user-drag: none;
}

html {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden; /* prevent any element (orbs etc.) from creating a horizontal scrollbar */
  /* gradient on html stretches to full document height, never cuts */
  background: linear-gradient(180deg, #110d05 0%, #0c0a06 45%, #120e07 100%);
}
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: transparent; /* inherits html gradient — no seam ever */
}

/* ─── Body typography & layout ───────────── */
body {
  position: relative;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  padding: 40px 32px;
}

/* ─── Animated background orbs ───────────── */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  max-width: 100vw; /* never wider than the viewport */
  animation: orbFloat 16s ease-in-out infinite alternate;
}
.bg-orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #9d6e2a, transparent 70%);
  top: -140px; left: -120px;
  animation-duration: 16s;
}
.bg-orb--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #f0b429, transparent 70%);
  bottom: 60px; right: -80px;
  animation-duration: 20s;
  animation-delay: -6s;
}
.bg-orb--3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #3d2b0f, transparent 70%);
  top: 50%; left: 50%;
  animation-duration: 24s;
  animation-delay: -10s;
  opacity: 0.12;
}
@keyframes orbFloat {
  0%   { transform: translateY(0)    scale(1);    opacity: 0.18; }
  50%  { transform: translateY(-30px) scale(1.06); opacity: 0.22; }
  100% { transform: translateY(10px)  scale(0.97); opacity: 0.15; }
}

/* ─── Page wrapper ───────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── Hero / profile ─────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
  padding-top: 24px;
}
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* avatar ring with green glow */
.avatar-wrap {
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 3px solid var(--green-md);
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(157,110,42,0.10),
              0 12px 40px rgba(0,0,0,0.7);
}
.avatar {
  width: 100%; height: 100%;

  object-fit: cover;
  display: block;
}

.identity { text-align: center; }
.identity h1 {
  font-size: clamp(22px, 4vw, 36px);
  margin: 0;
  color: var(--white);
  letter-spacing: -0.5px;
}
/* role line — bright green */
.identity h2 {
  margin: 8px 0 0;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  color: var(--green-hi);
  letter-spacing: 0.3px;
}
/* status / apprenticeship — muted */
.identity p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ─── Section headings ───────────────────── */
.projects h2,
.socials h2 {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-md);
}

/* ─── Project cards ──────────────────────── */
.projects { margin-top: 32px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-card {
  background: var(--card);
  border: 1px solid rgba(157,110,42,0.15);
  border-radius: var(--radius);
  padding: 0 0 16px;  /* top=0 so logo area touches the top edge cleanly */
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240,180,41,0.4);
  box-shadow: 0 10px 32px rgba(157,110,42,0.2);
}

/* ── Deprecated card ─────────────────────── */
.project-card--deprecated {
  opacity: 0.5;
  filter: grayscale(0.7);
  border-color: rgba(255,255,255,0.06);
  pointer-events: none; /* disable hover/click */
}
/* keep it fully interactive on real hover if user forces it */
.project-card--deprecated a { pointer-events: auto; }
.project-card--deprecated:hover {
  transform: none;
  box-shadow: none;
}
/* "Deprecated" pill badge in the top-right corner */
.deprecated-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px 8px;
  backdrop-filter: blur(4px);
}

/* "In Work" badge — gold, active */
.inwork-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bg-1);
  background: var(--green-hi);
  border: 1px solid var(--green-hi);
  border-radius: 999px;
  padding: 3px 8px;
  backdrop-filter: blur(4px);
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(240,180,41,0); }
  50%       { opacity: 0.8; box-shadow: 0 0 6px 2px rgba(240,180,41,0.35); }
}

/* "Soon" badge — softer gold, static */
.soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-hi);
  background: rgba(240,180,41,0.12);
  border: 1px solid var(--green-md);
  border-radius: 999px;
  padding: 3px 8px;
  backdrop-filter: blur(4px);
}

/* ── Project logo area (replaces banner thumb) ── */
.project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 20px 12px;
  min-height: 100px;
  /* subtle separator between logo and card body */
  border-bottom: 1px solid rgba(157,110,42,0.08);
  background: rgba(0,0,0,0.12);
}
.project-logo img {
  max-width: 80%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.project-card:hover .project-logo img {
  transform: scale(1.06);
  opacity: 0.95;
}

/* circle variant — for logos without transparency */
.project-logo.logo--circle {
  padding: 20px;
  background: rgba(0,0,0,0.12);
}
.project-logo.logo--circle img {
  max-width: unset;
  max-height: unset;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240,180,41,0.25);
  box-shadow: 0 0 0 5px rgba(157,110,42,0.08);
}
.project-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 14px;
  color: var(--white);
}
.project-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 14px;
}
.project-header .project-title {
  margin: 0; /* reset when inside header row */
}
.project-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(240,180,41,0.2);
  background: #2b1d05;
  color: var(--green-hi);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-desc {
  margin: 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.project-link {
  margin: 2px 14px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-hi);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 0.7; }

/* ─── Social buttons ─────────────────────── */
.socials { margin-top: 36px; }
.social-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(157,110,42,0.2);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.22s ease,
              color 0.22s ease,
              border-color 0.22s ease,
              transform 0.18s ease,
              box-shadow 0.22s ease;
}
.social:hover,
.social:focus-visible {
  background: rgba(157,110,42,0.22);
  color: var(--white);
  border-color: var(--green-hi);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(240,180,41,0.25);
  outline: none;
}
.social svg { opacity: 0.8; transition: opacity 0.2s; }
.social:hover svg,
.social:focus-visible svg { opacity: 1; }

/* ─── Footer ─────────────────────────────── */
.footer {
  margin-top: 48px;
  padding-bottom: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-link {
  color: var(--green-hi);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.footer-link:hover { opacity: 0.7; }

/* ─── Responsiveness ─────────────────────── */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .avatar-wrap   { width: 180px; height: 180px; }
}
@media (max-width: 520px) {
  body           { padding: 18px; }
  .hero          { margin-bottom: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .avatar-wrap   { width: 140px; height: 140px; }
}
