:root {
  --bg: #07090d;
  --panel: #11161fdd;
  --text: #f3f6fb;
  --muted: #9aa6b7;
  --line: #ffffff14;
  --purple: #7c5cff;
  --teal: #18d6c4;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, #7c5cff1c, transparent 30%),
    radial-gradient(circle at 90% 30%, #18d6c414, transparent 28%),
    #07090d;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

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

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #07090dd9;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}

.brand b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #7c5cff70;
  border-radius: 11px;
  background: #7c5cff22;
  font: 700 12px 'Space Grotesk';
}

.header nav,
nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.menu {
  display: none;
}

/* Sections */

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  padding-top: 120px;
}

/* Hero */

.hero {
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100vh - 76px);
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
  margin: 0;
}

h1 em {
  font-style: normal;
  color: var(--purple);
}

h2 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  margin: 0;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  margin: 26px 0;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff06;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: #f3f6fb;
  color: #080a0f;
  border: 0;
}

/* Hero Art */

.hero-art {
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, #7c5cff50, transparent 68%);
}

.code {
  width: min(100%, 530px);
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 18px;
  background: #0c1017e8;
  box-shadow: 0 35px 80px #0006;
  transform: rotate(2deg);
}

.dots {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: #596273;
}

.code pre {
  padding: 24px;
  margin: 0;
  font: 13px/1.8 ui-monospace, monospace;
  color: #dfe5ef;
}

.badge {
  position: absolute;
  right: 2%;
  bottom: 12%;
  padding: 9px 13px;
  border: 1px solid #18d6c440;
  border-radius: 999px;
  background: #080d11d9;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: #ffffff03;
}

.stats div {
  text-align: center;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border: 0;
}

.stats b {
  display: block;
  font: 700 27px 'Space Grotesk';
}

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

/* Headings */

.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 38px;
}

.heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

/* Project Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

/* Project Shots */

.shot {
  min-height: 240px;
  position: relative;
}

.featured .shot {
  min-height: 280px;
}

.shot span,
.shot i {
  position: absolute;
  top: 18px;
  z-index: 2;
}

.shot span {
  left: 18px;
  font: 700 12px 'Space Grotesk';
}

.shot i {
  right: 18px;
  padding: 7px 10px;
  border: 1px solid #ffffff25;
  border-radius: 999px;
  background: #05080caa;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.sugar {
  background: linear-gradient(
    135deg,
    #2b1a45,
    #111a32 55%,
    #092f38
  );
}

.spell {
  background: linear-gradient(
    135deg,
    #261e51,
    #12224c 50%,
    #143d4c
  );
}

.fps {
  background: linear-gradient(
    135deg,
    #111923,
    #263545 50%,
    #102b2c
  );
}

.iron {
  background: linear-gradient(
    135deg,
    #241b2d,
    #14151f 50%,
    #25301f
  );
}

/* Project Content */

.content {
  padding: 28px;
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
}

.title h3 {
  margin: 0;
  font-size: 28px;
}

.title small {
  color: var(--teal);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.content > p,
.skills p,
.about p,
.contact > div > p:last-child {
  color: var(--muted);
}

/* Tags */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #c5cdda;
  background: #ffffff04;
  font-size: 11px;
}

/* More Information */

.more {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.more-label {
  margin-bottom: 9px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.more ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

/* Skills */

.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.skills > div {
  padding: 26px;
  min-height: 255px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff04;
}

.skills h3 {
  font-size: 22px;
}

/* About */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 60px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    #7c5cff1f,
    #ffffff04
  );
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  padding-bottom: 110px;
}

.contact form {
  display: grid;
  gap: 16px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #c9d1dd;
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  padding: 13px 14px;
  background: #ffffff08;
  color: #fff;
}

textarea {
  resize: vertical;
}

#note {
  color: var(--teal);
  font-size: 12px;
}

/* Footer */

footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}


/* =========================================================
   MULTI-IMAGE PROJECT GALLERIES
   ========================================================= */

.project-gallery {
  position: relative;
  padding: 18px;
  background: #080b11;
  border-bottom: 1px solid var(--line);
}

.gallery-featured {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  background: #11161f;
  cursor: zoom-in;
}

.gallery-featured img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-featured:hover img {
  transform: scale(1.025);
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.gallery-thumbnails::-webkit-scrollbar{
  height:8px;
}

.gallery-thumbnails::-webkit-scrollbar-track{
  background:#11161f;
  border-radius:4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb{
  background:#3a4352;
  border-radius:4px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover{
  background:#596577;
}

.gallery-thumbnails{
  scrollbar-color:#3a4352 #11161f;
  scrollbar-width:thin;
}

.gallery-thumbnails img {
  flex: 0 0 calc((100% - 24px) / 4);
  width: calc((100% - 24px) / 4);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 2px solid transparent;
  border-radius: 8px;
  opacity: 0.58;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.gallery-thumbnails img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.gallery-thumbnails img.active {
  opacity: 1;
  border-color: var(--teal);
}

.gallery-number,
.project-gallery > i {
  position: absolute;
  top: 28px;
  z-index: 2;
}

.gallery-number {
  left: 28px;
  font: 700 12px 'Space Grotesk';
}

.project-gallery > i {
  right: 28px;
  padding: 7px 10px;
  border: 1px solid #ffffff25;
  border-radius: 999px;
  background: #05080caa;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #000d;
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.image-lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid #ffffff22;
  border-radius: 14px;
  box-shadow: 0 30px 100px #000;
  cursor: default;
}


/* =========================================================
   IMAGE + MP4 PROJECT GALLERIES
   ========================================================= */

.project-gallery {
  position: relative;
  padding: 18px;
  background: #080b11;
  border-bottom: 1px solid var(--line);
}

.gallery-featured {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  background: #11161f;
  cursor: zoom-in;
}

.gallery-featured img,
.gallery-featured video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-featured img {
  transition: transform 0.35s ease;
}

.gallery-featured:hover img {
  transform: scale(1.025);
}

.gallery-featured.is-video {
  cursor: default;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.gallery-thumb {
  position: relative;
  flex: 0 0 calc((100% - 32px) / 5);
  width: calc((100% - 32px) / 5);
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #11161f;
  opacity: 0.58;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--teal);
}

.video-thumb .play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  text-shadow: 0 2px 8px #000;
  background: #0003;
  pointer-events: none;
}

.gallery-number,
.project-gallery > i {
  position: absolute;
  top: 28px;
  z-index: 2;
}

.gallery-number {
  left: 28px;
  font: 700 12px 'Space Grotesk';
}

.project-gallery > i {
  right: 28px;
  padding: 7px 10px;
  border: 1px solid #ffffff25;
  border-radius: 999px;
  background: #05080caa;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #000d;
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.media-lightbox img,
.media-lightbox video {
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid #ffffff22;
  border-radius: 14px;
  box-shadow: 0 30px 100px #000;
  cursor: default;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .featured {
    display: block;
  }

  .skills {
    grid-template-columns: repeat(2, 1fr);
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 680px) {

  header {
    padding: 0 18px;
  }

  .menu {
    display: block;
    background: none;
    border: 0;
    color: #fff;
    font-size: 24px;
  }

  .header nav,
  nav {
    display: none;
  }

  .section,
  .hero {
    width: calc(100% - 34px);
  }

  .hero {
    min-height: auto;
    padding: 80px 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats div:nth-child(2) {
    border-right: 0;
  }

  .stats div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .heading {
    display: block;
  }

  .heading > p {
    margin-top: 18px;
  }

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

  .featured {
    grid-column: span 1;
  }

  .skills,
  .row {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 30px;
  }

  footer {
    padding: 22px 18px;
  }
}


/* =========================================================
   MOBILE — PROJECT GALLERIES
   ========================================================= */

@media (max-width: 680px) {

  .project-gallery {
    padding: 12px;
  }

  .gallery-thumbnails {
    gap: 7px;
  }

  .gallery-thumbnails img {
    flex: 0 0 31%;
    width: 31%;
  }

  .gallery-number,
  .project-gallery > i {
    top: 22px;
  }

  .gallery-number {
    left: 22px;
  }

  .project-gallery > i {
    right: 22px;
  }

  .image-lightbox {
    padding: 15px;
  }

  header nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px 16px;
    background: #07090df2;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  header nav.open a {
    padding: 12px 0;
  }
}


/* =========================================================
   MOBILE — IMAGE + VIDEO GALLERIES
   ========================================================= */

@media (max-width: 680px) {

  .project-gallery {
    padding: 12px;
  }

  .gallery-thumbnails {
    gap: 7px;
  }

  .gallery-thumb {
    flex: 0 0 31%;
    width: 31%;
  }

  .gallery-number,
  .project-gallery > i {
    top: 22px;
  }

  .gallery-number {
    left: 22px;
  }

  .project-gallery > i {
    right: 22px;
  }

  .media-lightbox {
    padding: 15px;
  }

  header nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px 16px;
    background: #07090df2;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  header nav.open a {
    padding: 12px 0;
  }
}