:root {
  --bg-light: #dfdfe1;
  --surface: #efeff1;
  --text: #18181d;
  --muted: #3f3f49;
  --pink: #ef2e84;
  --accent-2: #24d3c5;
  --pink-soft: #ff6aa8;
  --dark: #050408;
  --footer: #292238;
  --line: rgba(239, 46, 132, 0.55);
}

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

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  background: var(--bg-light);
}

h1,
h2,
h3,
.brand,
.nav a {
  font-family: "Orbitron", sans-serif;
}

.hero {
  min-height: 430px;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(90deg, rgba(6, 4, 12, 0.84) 0%, rgba(6, 4, 12, 0.58) 42%, rgba(6, 4, 12, 0.82) 100%),
    radial-gradient(circle at 24% 42%, rgba(239, 46, 132, 0.24), transparent 34%),
    radial-gradient(circle at 46% 34%, rgba(36, 211, 197, 0.16), transparent 28%),
    url("assets/profile/banner-hero.png") center/cover no-repeat;
  color: #fff;
  padding: 0.65rem 0 1.9rem;
}

.topbar {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.06em;
}

.brand-icon {
  width: 170px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-brand .brand-icon {
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-size: 0.78rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.32rem;
  width: 100%;
  height: 2px;
  background: var(--pink);
  opacity: 0.2;
  transition: opacity 160ms ease;
}

.nav a:hover::after,
.nav a.active::after {
  opacity: 1;
}

.gamer-inline {
  width: min(1120px, 92vw);
  margin: 1rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, #161125 0%, #201735 100%);
  padding: 0.75rem;
}

.gamer-head {
  display: grid;
  grid-template-columns: 120px 1fr minmax(220px, 280px) minmax(220px, 320px);
  gap: 0.85rem;
  align-items: center;
}

.gamer-core {
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  padding: 0.45rem;
}

.gamer-core span {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 1.05rem;
}

.gamer-core img {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  border: 2px solid var(--pink);
  border-radius: 14px 0 14px 0;
  background: #0b0813;
}

.gamer-core p {
  margin: 0.2rem 0 0;
  color: var(--accent-2);
  font-size: 0.74rem;
  font-family: "Orbitron", sans-serif;
}

.gamer-meta h2 {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Orbitron", sans-serif;
}

.gamer-meta p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
}

.gamer-meta .gamer-subtitle {
  margin-top: 0.08rem;
}

.gamer-inventory {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.6rem;
}

.gamer-inventory h3 {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-family: "Orbitron", sans-serif;
  color: var(--accent-2);
}

.gamer-inventory p {
  margin: 0 0 0.22rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

.gamer-inventory p:last-child {
  margin-bottom: 0;
}

.inventory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.22rem;
}

.inventory-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.38rem;
  align-items: start;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.inv-icon {
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  line-height: 1.2;
  margin-top: 0.05rem;
}

.inv-icon--tool {
  color: #f7d84a;
}

.inv-icon--web {
  color: #4dd2ff;
}

.inv-icon--speed {
  color: #7cff84;
}

.inv-icon--ai {
  color: #ff5da8;
}

.gamer-stats {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.38rem;
}

.gamer-stats div span {
  display: block;
  font-size: 0.74rem;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gamer-stats div {
  position: relative;
  padding-bottom: 0.35rem;
}

.gamer-stats div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.gamer-stats i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--pink), var(--accent-2));
  z-index: 1;
}

.gamer-panels {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.gamer-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.55rem;
  min-width: 0;
}

.gamer-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-family: "Orbitron", sans-serif;
  color: var(--accent-2);
}

.gamer-panel p {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.gamer-panel .skills-inline {
  white-space: normal;
  overflow: visible;
  padding-bottom: 0;
  line-height: 1.45;
}

.hero-content {
  margin: 0 auto;
  align-self: center;
  width: min(1120px, 92vw);
  text-align: center;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.7vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-content p {
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.intro,
.feature,
.experience,
.websites,
.contact {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3.8rem 0;
}

.intro h2 {
  margin: 0 0 0.7rem;
  color: var(--pink);
}

.intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2rem;
  align-items: stretch;
  padding-bottom: 4.4rem;
}

.feature-image {
  min-height: 350px;
  background: url("assets/profile/experience-jortt.png") center/cover no-repeat;
}

.feature-copy h3 {
  color: var(--pink);
  margin-top: 0;
}

.feature-copy ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.feature-copy li {
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}

.feature-copy li:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.experience {
  padding: 0 0 4.4rem;
}

.experience h2 {
  margin: 0 0 1.4rem;
  color: var(--pink);
}

.section-underline {
  width: 74px;
  height: 3px;
  background: var(--pink);
  margin: -0.55rem 0 1.6rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  padding: 0 1rem 1.25rem;
}

.project-card img {
  display: block;
  width: calc(100% + 2rem);
  height: 170px;
  object-fit: cover;
  margin: 0 -1rem 0.95rem;
}

.tag {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 700;
}

.project-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact {
  padding: 0 0 5.3rem;
}

.websites {
  padding: 0 0 4.2rem;
}

.websites h2 {
  margin: 0 0 1.4rem;
  color: var(--pink);
}

.site-subtitle {
  margin: 0 0 0.85rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.site-order {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.site-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid rgba(239, 46, 132, 0.2);
  padding: 1rem;
  transition: border-color 180ms ease, transform 180ms ease;
}

.site-gallery {
  display: block;
  position: relative;
  margin: -1rem -1rem 0.85rem;
  background: rgba(0, 0, 0, 0.05);
}

.site-gallery img {
  display: none;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.site-grid--developed .site-gallery img {
  object-position: 50% 0%;
}

.site-grid--designed .site-gallery img {
  object-position: center center;
}

.site-gallery img:first-child {
  display: block;
}

.gallery-trigger {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(10, 7, 19, 0.62);
  cursor: pointer;
  z-index: 2;
}

.gallery-trigger::before,
.gallery-trigger::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
}

.gallery-trigger::before {
  top: 10px;
  left: 8px;
}

.gallery-trigger::after {
  top: 7px;
  left: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.gallery-trigger:hover {
  background: rgba(10, 7, 19, 0.82);
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 7, 0.82);
}

.gallery-panel {
  position: relative;
  width: min(960px, 92vw);
  margin: 5vh auto 0;
  background: #141022;
  border: 1px solid rgba(255, 255, 255, 0.17);
  padding: 0.9rem;
}

.gallery-panel h3 {
  margin: 0 0 0.65rem;
  color: #fff;
}

.gallery-close {
  position: absolute;
  right: 0.55rem;
  top: 0.45rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.gallery-zoom {
  position: absolute;
  right: 2.9rem;
  top: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
}

.gallery-stage {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 0.5rem;
  align-items: center;
}

.gallery-stage img {
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  background: #090612;
  transition: transform 180ms ease;
  transform-origin: center center;
}

.gallery-stage img.is-zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

.gallery-nav {
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.gallery-thumbs {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.gallery-thumbs button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-thumbs button.is-active {
  border-color: var(--pink);
}

.gallery-thumbs img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  display: block;
}

.site-card:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.site-card h3 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
}

.site-card p {
  margin: 0;
  color: var(--pink);
  font-size: 0.86rem;
  word-break: break-word;
}

.contact h2 {
  color: var(--pink);
  margin: 0 0 0.5rem;
}

.mail-link {
  color: var(--pink);
  text-decoration: none;
  font-weight: 700;
}

.footer {
  background: var(--footer);
  color: #fff;
  padding: 2.8rem 6vw 3.2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.footer-col h3 {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-family: "Orbitron", sans-serif;
  position: relative;
}

.footer-col h3::before {
  content: "";
  position: absolute;
  top: -0.65rem;
  left: 0;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
}

.footer-col p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  font-size: 0.93rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@media (max-width: 980px) {
  .intro {
    grid-template-columns: 1fr;
    padding: 2.6rem 0;
  }

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

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

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

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

@media (max-width: 680px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 1rem 0 1.45rem;
    min-height: 360px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .gamer-head {
    grid-template-columns: 1fr;
  }

  .gamer-stats {
    grid-template-columns: 1fr;
  }

  .gamer-panels {
    grid-template-columns: 1fr;
  }

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

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

  .site-gallery img {
    height: 200px;
  }

  .gallery-thumbs img {
    height: 68px;
  }

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