*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

:root {
  --bg: #090909;
  --text: #efefef;
  --dim: #888;
  --faint: rgba(255, 255, 255, 0.06);
  --pad: clamp(24px, 5vw, 64px);
  --accent: #c8601a;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto Condensed", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  background: linear-gradient(112.33deg, rgb(255, 31, 133) -0.51%, rgb(245, 200, 68) 90.69%, rgb(0, 140, 255) 132.64%) text;
  padding: 5px;
}

/* ── Page load animation ─────────────────────────────── */
.page-wrap {
  opacity: 0;
  animation: pageIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  background: var(--bg);
  /* border-radius: 20px; */
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes breathe {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(40px, 6vh, 72px);
  position: relative;
  background-image: url('../img/bg.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.grain-overlay {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

.hero-name span {
  display: inline-block;
  background: linear-gradient(90deg,
      rgb(255, 31, 133) 0%,
      rgb(245, 200, 68) 33%,
      #efefef 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-name span:hover {
  background-position: 0% 0;
}

.hero-name {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(3rem, 9vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--faint);
  position: relative;
  z-index: 1;
}

.hero-role,
.hero-years {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  letter-spacing: 0.08em;
  color: #FFF;
  /* opacity: 0.26; */
}

/* ── Section wrapper ─────────────────────────────────── */
.section {
  padding: clamp(72px, 10vw, 140px) var(--pad);
}

/* ── About text ──────────────────────────────────────── */
.about-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a3a3a;
  margin-bottom: 36px;
}

.about-body {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.72;
  color: #777;
  max-width: 900px;
}

.about-body strong {
  color: #c8c8c8;
  font-weight: 400;
}

.about-body a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.about-body a:hover {
  color: transparent;
  border-image: linear-gradient(112.33deg, rgb(255, 31, 133) -0.51%, rgb(245, 200, 68) 90.69%, rgb(0, 140, 255) 132.64%) 1;
  background: linear-gradient(112.33deg, rgb(255, 31, 133) -0.51%, rgb(245, 200, 68) 90.69%, rgb(0, 140, 255) 132.64%) text;
  -webkit-text-fill-color: transparent;
}

/* ── Technologies ────────────────────────────────────── */
.tech-section {
  padding-top: 0;
}

.tech-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a3a3a;
  margin-bottom: 20px;
}

.tech-body {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.72;
  color: #777;
  max-width: 900px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

.tech-icon {
  opacity: 0.18;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  width: 28px;
  height: 28px;
}

.tech-icon:hover {
  opacity: 0.75;
  transform: scale(1.15);
}

/* ── Links list ──────────────────────────────────────── */
.links-section {
  padding: 0 var(--pad) clamp(72px, 10vw, 140px);
}

.links-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a3a3a;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--faint);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.links-group {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.2vw, 12px);
}

.link-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 2.2vw, 32px);
  flex: 1;
  min-width: clamp(110px, 16vw, 150px);
  text-decoration: none;
  border: 1px solid var(--faint);
  gap: clamp(20px, 2.5vw, 32px);
  transition: border-color 0.25s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-item:hover {
  border-color: transparent;
  border-image: linear-gradient(112.33deg, rgb(255, 31, 133) -0.51%, rgb(245, 200, 68) 90.69%, rgb(0, 140, 255) 132.64%) 1;
  transform: translateY(-4px);
}

.link-icon {
  color: #2a2a2a;
  display: flex;
  transition: color 0.25s ease;
}

.link-name {
  font-family: "Roboto Condensed", sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 0.25s ease;
}

.link-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3d3d;
  transition: color 0.25s ease;
}

.links-group:hover .link-item:not(:hover) {
  opacity: 0.4;
}

.links-group:hover .link-item {
  transition: border-color 0.25s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease;
}

/* ── Footer ──────────────────────────────────────────── */
footer {
  padding: 32px var(--pad);
  border-top: 1px solid var(--faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.72rem;
  color: #2e2e2e;
  letter-spacing: 0.04em;
}

.footer-right {
  font-size: 0.72rem;
  color: #2e2e2e;
  letter-spacing: 0.06em;
}

/* ── Scroll-reveal ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.08s;
}

.reveal.d2 {
  transition-delay: 0.16s;
}

/* ── Mobile tweaks ───────────────────────────────────── */
@media (max-width: 480px) {
  nav {
    padding: 22px 24px;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}