:root {
  --ink: #08111f;
  --ink-2: #111e31;
  --paper: #f5f2ec;
  --white: #fff;
  --muted: #748094;
  --blue: #2563eb;
  --cyan: #79e6ff;
  --line: rgba(116, 128, 148, 0.22);
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
  --shadow: 0 30px 80px rgba(3, 10, 22, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.65 var(--body);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

::selection {
  color: white;
  background: var(--blue);
}

/* =========================
   Page Loader
========================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  transition:
    opacity 0.6s,
    visibility 0.6s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  font: 800 30px var(--display);
  letter-spacing: -0.07em;
}

.loader-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--cyan);
  animation: loadLine 0.9s ease forwards;
}

@keyframes loadLine {
  to {
    width: 100%;
  }
}



/* =========================
   Header
========================= */

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(18px);
  transition:
    transform 0.35s,
    background 0.35s;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  font: 800 14px/1.15 var(--display);
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #97a6ba;
  font: 500 9px var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 31px;
  color: #b9c4d3;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a {
  transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 17px;
  color: var(--ink) !important;
  border-radius: 99px;
  background: var(--cyan);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
  transition: 0.25s;
}

/* =========================
   Home Hero
========================= */

.home-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--ink);
  padding: 126px 0 72px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );
  background-size: 70px 70px;
  mask-image: linear-gradient(
    to right,
    #000,
    transparent 85%
  );
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.home-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.72fr;
  align-items: center;
  gap: 9vw;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  padding: 7px 12px;
  color: #aab7c9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54d49b;
  box-shadow: 0 0 0 5px rgba(84, 212, 155, 0.12);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(84, 212, 155, 0);
  }
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-copy h1,
.page-hero h1,
.contact-hero h1 {
  margin: 0;
  font: 800 clamp(54px, 6.5vw, 92px) / 0.98
    var(--display);
  letter-spacing: -0.065em;
}

.outline-word {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
}

.lead {
  max-width: 650px;
  margin: 26px 0 32px;
  color: #a9b5c6;
  font-size: 17px;
}

.lead strong {
  color: white;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  transition:
    transform 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}

.button.primary {
  color: var(--ink);
  background: var(--cyan);
}

.button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.18);
}

.button.light {
  color: var(--ink);
  background: white;
}

.button:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}

.hero-meta {
  display: flex;
  gap: 38px;
  margin-top: 45px;
}

.hero-meta > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-meta strong {
  font: 800 31px var(--display);
}

.hero-meta span {
  color: #7f8ca0;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================
   Portrait
========================= */

.portrait-stage {
  position: relative;
  justify-self: end;
  width: min(390px, 34vw);
}

.portrait-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 190px 190px 24px 24px;
  background: #d8d6d2;
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(0.88) contrast(1.03);
  transition: transform 0.7s;
}

.portrait-frame:hover img {
  transform: scale(1.035);
}

.image-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.2) 48%,
    transparent 61%
  );
  transform: translateX(-120%);
  transition: transform 0.8s;
}

.portrait-frame:hover .image-shine {
  transform: translateX(120%);
}

.portrait-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.label-top {
  top: 11%;
  right: -42px;
  gap: 28px;
}

.label-top span {
  padding: 3px 6px;
  color: white;
  border-radius: 3px;
  background: var(--ink);
}

.label-bottom {
  bottom: 6%;
  left: -56px;
  gap: 14px;
}

.label-bottom span {
  color: var(--blue);
}

.shape {
  position: absolute;
  border: 1px solid rgba(121, 230, 255, 0.4);
  border-radius: 50%;
}

.shape-one {
  right: -55px;
  bottom: -40px;
  width: 180px;
  height: 180px;
}

.shape-two {
  top: -20px;
  left: -55px;
  width: 90px;
  height: 90px;
  background: rgba(37, 99, 235, 0.25);
}

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #758398;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right bottom;
}

.scroll-cue i {
  display: block;
  width: 55px;
  height: 1px;
  background: #758398;
}

/* =========================
   Hero Animation
========================= */

.hero-enter {
  opacity: 0;
  transform: translateY(24px);
}

body.ready .hero-enter {
  animation: heroIn 0.75s
    cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.ready .hero-enter:nth-child(2) {
  animation-delay: 0.08s;
}

body.ready .hero-enter:nth-child(3) {
  animation-delay: 0.16s;
}

body.ready .hero-enter:nth-child(4) {
  animation-delay: 0.24s;
}

body.ready .hero-enter:nth-child(5) {
  animation-delay: 0.32s;
}

.portrait-stage.hero-enter {
  animation-delay: 0.18s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   Home Introduction
========================= */

.home-intro {
  padding: 130px 0;
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 80px;
}

.home-intro .section-kicker {
  color: var(--blue);
}

.intro-statement h2 {
  max-width: 860px;
  margin: 0;
  font: 700 clamp(36px, 5vw, 64px) / 1.12
    var(--display);
  letter-spacing: -0.05em;
}

.intro-statement em {
  color: var(--blue);
  font-style: normal;
}

.intro-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.intro-bottom p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.round-link {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  height: 58px;
  color: white;
  border-radius: 50%;
  background: var(--blue);
  font-size: 20px;
}

/* =========================
   Marquee
========================= */

.marquee {
  overflow: hidden;
  padding: 25px 0;
  color: var(--ink);
  border-block: 1px solid var(--line);
  background: var(--cyan);
  font: 700 20px var(--display);
  white-space: nowrap;
}

.marquee-track {
  width: max-content;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* =========================
   Services
========================= */

.home-services {
  padding: 120px 0;
  background: #ece9e3;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 55px;
}

.section-head .section-kicker {
  color: var(--blue);
}

.section-head h2 {
  margin: 0;
  font: 700 clamp(36px, 5vw, 60px) / 1.08
    var(--display);
  letter-spacing: -0.05em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 390px;
  padding: 28px;
  border: 1px solid rgba(8, 17, 31, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  transform-style: preserve-3d;
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.service-card:hover {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 25px 55px rgba(8, 17, 31, 0.16);
}

.card-number {
  color: var(--muted);
  font-size: 11px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 75px 0 28px;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 700 16px var(--display);
}

.service-card:hover .card-icon {
  color: var(--cyan);
  border-color: rgba(121, 230, 255, 0.35);
}

.service-card h3 {
  margin: 0 0 10px;
  font: 700 26px var(--display);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-arrow {
  position: absolute;
  top: 25px;
  right: 27px;
  font-size: 20px;
  transition: transform 0.3s;
}

.service-card:hover .card-arrow {
  transform: rotate(45deg);
}

/* =========================
   CTA Section
========================= */

.cta-section {
  padding: 110px 0;
  color: white;
  background: var(--blue);
  text-align: center;
}

.cta-inner p {
  margin: 0 0 13px;
  color: #cbdcff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
}

.cta-inner h2 {
  margin: 0 0 35px;
  font: 800 clamp(55px, 8vw, 105px) / 1
    var(--display);
  letter-spacing: -0.07em;
}

.cta-inner h2 span {
  color: var(--cyan);
}

/* =========================
   General Inner Pages
========================= */

.page-hero {
  padding: 170px 0 105px;
  color: white;
  background: var(--ink);
  border: 0;
}

.page-hero h1 {
  font-size: clamp(48px, 6vw, 78px);
}

.page-hero h1 span,
.contact-hero h1 span {
  color: var(--cyan);
}

.content-section {
  padding: 110px 0;
  background: var(--paper);
}

.content-section.soft {
  background: #ece9e3;
}

.two-column {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 100px;
}

.section-title span,
.info-card > span,
.skill-index {
  color: var(--blue);
  font: 700 11px var(--display);
  letter-spacing: 0.14em;
}

.section-title h2 {
  margin: 10px 0;
  font: 800 36px var(--display);
}

.prose {
  color: #526074;
  font-size: 18px;
}

.prose p:first-child {
  margin-top: 0;
}

/* =========================
   Information Cards
========================= */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.5);
  transition: 0.3s;
}

.info-card:hover {
  transform: translateY(-7px);
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin: 42px 0 8px;
  font: 800 22px var(--display);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   Skills Page
========================= */

.skill-list {
  display: grid;
}

.skill-row {
  display: grid;
  grid-template-columns: 65px 1fr 0.8fr;
  gap: 35px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.skill-row:first-child {
  border-top: 1px solid var(--line);
}

.skill-row h2 {
  margin: 0 0 10px;
  font: 800 27px var(--display);
}

.skill-row p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

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

.tags span {
  padding: 7px 12px;
  color: #365071;
  border: 1px solid #cbd6e4;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

/* =========================
   Experience Timeline
========================= */

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 240px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 210px 60px 1fr;
  margin-bottom: 75px;
}

.time {
  padding-top: 7px;
  color: var(--blue);
  font-weight: 700;
}

.timeline-dot {
  position: relative;
}

.timeline-dot::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 25px;
  width: 11px;
  height: 11px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.timeline-content {
  margin-top:10px;
  max-width: 690px;
}

.timeline-content .meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.timeline-content h2 {
  margin: 7px 0 12px;
  font: 800 27px var(--display);
}

.timeline-content > p {
  color: var(--muted);
}

/* =========================
   Contact Page
========================= */

.contact-hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 145px 0 80px;
  color: white;
  background: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}

.contact-hero h1 {
  font-size: clamp(45px, 6vw, 72px);
}

.contact-card {
  padding: 38px;
  color: var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-card > p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  transition: 0.2s;
}

.contact-link:hover {
  padding-left: 7px;
  color: var(--blue);
}

.availability {
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.availability i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #2bb673;
  box-shadow: 0 0 0 5px rgba(43, 182, 115, 0.12);
}

/* =========================
   Footer
========================= */

footer {
  padding: 72px 0 25px;
  color: #9ba8ba;
  background: var(--ink);
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 60px;
}

.footer-brand {
  color: white;
  font: 800 30px var(--display);
}

.footer-inner p {
  max-width: 240px;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-inner a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 65px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.minimal-footer {
  padding: 25px 0;
}

/* =========================
   Scroll Reveal
========================= */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* =========================
   Tablet and Mobile
========================= */

@media (max-width: 900px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 82px 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3vh;
    padding: 8vh 8vw;
    color: white;
    background: var(--ink);
    font: 700 clamp(28px, 7vw, 48px)
      var(--display);
    transform: translateX(100%);
    transition: transform 0.4s
      cubic-bezier(0.7, 0, 0.2, 1);
  }

  .nav-links.open {
    transform: none;
  }

  .nav-cta {
    font-size: 15px;
  }

  .menu-button.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .home-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .home-copy {
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .actions,
  .hero-meta {
    justify-content: center;
  }

  .portrait-stage {
    justify-self: center;
    width: min(390px, 75vw);
  }

  .intro-grid,
  .two-column {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .service-card {
    min-height: 320px;
  }

  .card-icon {
    margin-top: 50px;
  }

  .skill-row {
    grid-template-columns: 45px 1fr;
  }

  .skill-row .tags {
    grid-column: 2;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
  }

  .time {
    grid-column: 2;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .timeline-dot::before {
    left: 7px;
  }

  .timeline-content {
    grid-column: 2;
  }

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

  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }
}

/* =========================
   Small Mobile
========================= */

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    height: 72px;
  }

  .nav-links {
    top: 72px;
  }

  .brand > span:last-child {
    font-size: 12px;
  }

  .home-hero {
    padding-top: 105px;
  }

  .home-copy h1 {
    font-size: 47px;
  }

  .lead {
    font-size: 15px;
  }

  .hero-meta {
    gap: 18px;
  }

  .hero-meta strong {
    font-size: 25px;
  }

  .portrait-label {
    display: none;
  }

  .page-hero {
    padding: 135px 0 75px;
  }

  .home-intro,
  .home-services,
  .content-section {
    padding: 80px 0;
  }

  .intro-statement h2 {
    font-size: 37px;
  }

  .intro-bottom {
    align-items: flex-start;
  }

  .section-head {
    display: block;
  }

  .section-head .section-kicker {
    margin-bottom: 15px;
  }

  .service-card {
    min-height: 300px;
  }

  .cta-section {
    padding: 80px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-inner > div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 40px;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-link {
    font-size: 12px;
  }

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

/* =========================
   Reduced Motion
========================= */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .loader {
    display: none;
  }

  .hero-enter,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   Skills Page
========================= */

.skills-hero {
  position: relative;
  overflow: hidden;
}

/* Large decorative circles */

.skills-hero::before {
  content: "";
  position: absolute;
  top: 45%;
  right: -170px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(121, 230, 255, 0.14);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 70px rgba(121, 230, 255, 0.025),
    0 0 0 140px rgba(121, 230, 255, 0.018);
}

/* Hero grid background */

.skills-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    );
  background-size: 72px 72px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 75%
  );
}

.skills-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(290px, 0.65fr);
  gap: 70px;
  align-items: center;
}

/* =========================
   Skills Summary
========================= */

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

.summary-tile {
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.summary-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(121, 230, 255, 0.46);
  background: rgba(121, 230, 255, 0.07);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18);
}

.summary-tile strong {
  color: var(--cyan);
  font: 800 42px/1 var(--display);
  letter-spacing: -0.06em;
}

.summary-tile > span {
  color: #9eabbc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================
   Skills Main Section
========================= */

.skills-showcase {
  position: relative;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(37, 99, 235, 0.07),
      transparent 32%
    ),
    var(--paper);
}

.skills-section-head {
  margin-bottom: 42px;
}

.skills-section-head .section-kicker {
  color: var(--blue);
}

.skills-section-head h2 {
  margin: 0;
  font:
    800 clamp(38px, 5vw, 62px) / 1.06
    var(--display);
  letter-spacing: -0.055em;
}

/* =========================
   Skill Category Cards
========================= */

.skill-category-grid {
  display: grid;
  gap: 22px;
}

.skill-category-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(8, 17, 31, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 22px 65px rgba(8, 17, 31, 0.055);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Cyan circle decoration */

.skill-category-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(121, 230, 255, 0.11);
  filter: blur(2px);
  transition:
    transform 0.5s ease,
    background 0.5s ease;
}

.skill-category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow:
    0 28px 80px rgba(8, 17, 31, 0.1);
}

.skill-category-card:hover::before {
  background: rgba(121, 230, 255, 0.18);
  transform: scale(1.18);
}

/* =========================
   Skill Category Header
========================= */

.skill-category-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    66px
    minmax(0, 1fr)
    auto;
  gap: 22px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.skill-category-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.17);
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.065);
  transition:
    transform 0.3s ease,
    color 0.3s ease,
    background 0.3s ease;
}

.skill-category-card:hover .skill-category-icon {
  color: var(--ink);
  background: var(--cyan);
  transform: rotate(-4deg) scale(1.04);
}

.skill-category-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-category-number {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font: 700 10px var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skill-category-header h3 {
  margin: 0 0 8px;
  font:
    800 28px/1.15
    var(--display);
  letter-spacing: -0.035em;
}

.skill-category-header p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.skill-count {
  position: relative;
  z-index: 1;
  padding: 7px 11px;
  color: #526074;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =========================
   Technology Grid
========================= */

.technology-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 28px;
}

.technology-grid-compact {
  grid-template-columns:
    minmax(180px, 0.25fr);
}

/* =========================
   Technology Item
========================= */

.technology-item {
  position: relative;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(8, 17, 31, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  font: 700 13px var(--body);
  outline: none;
  cursor: default;
  transition:
    transform 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.technology-item::after {
  content: "↗";
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--cyan);
  font-size: 15px;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.technology-item:hover,
.technology-item:focus-visible {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
  transform: translateY(-5px);
  box-shadow:
    0 17px 38px rgba(8, 17, 31, 0.16);
}

.technology-item:hover::after,
.technology-item:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.technology-name {
  position: relative;
  z-index: 1;
}

/* =========================
   Technology Icons
========================= */

.technology-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(8, 17, 31, 0.08);
  border-radius: 13px;
  background: white;
  font-size: 27px;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.technology-item:hover .technology-icon,
.technology-item:focus-visible .technology-icon {
  border-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.07);
}

.github-icon {
  color: #181717;
}

/* Icons that are unavailable in Devicon */

.fallback-icon {
  color: var(--blue);
  font: 800 10px/1 var(--display);
  letter-spacing: -0.01em;
}

/* =========================
   XAMPP Custom Icon
========================= */

.xampp-icon {
  position: relative;
  color: white;
  border-color: rgba(251, 122, 36, 0.25);
  background:
    linear-gradient(
      135deg,
      #ff9b52,
      #fb7a24
    );
  box-shadow:
    0 6px 15px rgba(251, 122, 36, 0.24);
}

.xampp-icon::before,
.xampp-icon::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 5px;
  border-radius: 5px;
  background: white;
}

.xampp-icon::before {
  transform: rotate(45deg);
}

.xampp-icon::after {
  transform: rotate(-45deg);
}

.xampp-symbol {
  position: relative;
  z-index: 1;
  color: transparent;
  font-size: 0;
}

.technology-item:hover .xampp-icon,
.technology-item:focus-visible .xampp-icon {
  border-color: rgba(251, 122, 36, 0.4);
  background:
    linear-gradient(
      135deg,
      #ff9b52,
      #fb7a24
    );
}

/* =========================
   Bottom Projects Section
========================= */

.skills-next-section {
  padding: 90px 0;
  color: white;
  background: var(--ink);
}

.skills-next-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.skills-next-inner h2 {
  max-width: 700px;
  margin: 0;
  font:
    800 clamp(36px, 5vw, 62px) / 1.08
    var(--display);
  letter-spacing: -0.055em;
}

.skills-next-inner .section-kicker {
  margin-bottom: 14px;
}

/* =========================
   Skills Tablet
========================= */

@media (max-width: 1000px) {
  .skills-hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .skills-summary {
    max-width: 560px;
  }

  .technology-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

/* =========================
   Skills Mobile
========================= */

@media (max-width: 760px) {
  .skills-next-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .skill-category-card {
    padding: 25px;
  }

  .skill-category-header {
    grid-template-columns:
      58px
      minmax(0, 1fr);
  }

  .skill-category-icon {
    width: 54px;
    height: 54px;
  }

  .skill-count {
    grid-column: 2;
    justify-self: start;
  }

  .technology-grid,
  .technology-grid-compact {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   Skills Small Mobile
========================= */

@media (max-width: 480px) {
  .skills-summary {
    grid-template-columns: 1fr 1fr;
  }

  .summary-tile {
    min-height: 120px;
    padding: 18px;
  }

  .summary-tile strong {
    font-size: 35px;
  }

  .skill-category-header {
    grid-template-columns: 1fr;
  }

  .skill-category-icon {
    margin-bottom: 3px;
  }

  .skill-count {
    grid-column: auto;
    justify-self: start;
  }

  .technology-grid,
  .technology-grid-compact {
    grid-template-columns: 1fr 1fr;
  }

  .technology-item {
    min-height: 108px;
    padding: 14px;
  }

  .technology-name {
    font-size: 12px;
  }
}

/* =========================
   About Page
========================= */

.about-hero {
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: -210px;
  right: -170px;
  width: 530px;
  height: 530px;
  border: 1px solid rgba(121, 230, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 75px rgba(121, 230, 255, 0.025),
    0 0 0 150px rgba(121, 230, 255, 0.015);
}

.about-story-section {
  position: relative;
}

.about-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 42px;
}

.about-section-heading .section-title h2 {
  margin-bottom: 0;
}

.about-section-heading > p {
  max-width: 520px;
  margin: 0 0 5px;
  color: var(--muted);
}

/* =========================
   Certificate Grid
========================= */

.certificate-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.certificate-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8, 17, 31, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 20px 55px rgba(8, 17, 31, 0.06);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.certificate-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow:
    0 28px 70px rgba(8, 17, 31, 0.13);
}

/* =========================
   Certificate Image
========================= */

.certificate-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      135deg,
      #edf2f7,
      #f8fafc
    );
}

.certificate-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8, 17, 31, 0.72),
      transparent 48%
    );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.certificate-card:hover .certificate-preview img {
  transform: scale(1.035);
}

.certificate-card:hover .certificate-preview::after {
  opacity: 1;
}

.certificate-view {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: var(--ink);
  border-radius: 999px;
  background: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.certificate-card:hover .certificate-view,
.certificate-preview:focus-visible .certificate-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Certificate Content
========================= */

.certificate-content {
  padding: 25px;
}

.certificate-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-meta > span {
  color: var(--blue);
}

.certificate-meta time {
  white-space: nowrap;
}

.certificate-content h3 {
  min-height: 58px;
  margin: 0 0 12px;
  font: 800 23px/1.25 var(--display);
  letter-spacing: -0.035em;
}

.certificate-content > p {
  min-height: 132px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.certificate-card .tags {
  margin-top: 22px;
}

/* =========================
   About Values
========================= */

.about-values-section {
  background:
    radial-gradient(
      circle at 0 100%,
      rgba(37, 99, 235, 0.07),
      transparent 30%
    ),
    var(--paper);
}

/* =========================
   About Tablet
========================= */

@media (max-width: 1000px) {
  .certificate-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .certificate-card:last-child {
    grid-column: 1 / -1;
  }

  .certificate-card:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .certificate-card:last-child .certificate-preview {
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .certificate-card:last-child .certificate-content > p {
    min-height: auto;
  }
}

/* =========================
   About Mobile
========================= */

@media (max-width: 760px) {
  .about-section-heading {
    display: block;
  }

  .about-section-heading > p {
    margin-top: 20px;
  }

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

  .certificate-card:last-child {
    grid-column: auto;
    display: block;
  }

  .certificate-card:last-child .certificate-preview {
    height: auto;
    aspect-ratio: 16 / 10.5;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .certificate-content h3,
  .certificate-content > p {
    min-height: auto;
  }
}

/* =========================
   About Small Mobile
========================= */

@media (max-width: 480px) {
  .certificate-content {
    padding: 21px;
  }

  .certificate-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .certificate-preview {
    padding: 8px;
  }

  .certificate-view {
    right: 14px;
    bottom: 13px;
  }
}

/* =========================
   Projects Page
========================= */

.projects-hero {
  position: relative;
  overflow: hidden;
}

.projects-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(121, 230, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 78px rgba(121, 230, 255, 0.025),
    0 0 0 156px rgba(121, 230, 255, 0.015);
  pointer-events: none;
}

.projects-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px
    );
  background-size: 72px 72px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 72%
  );
}

.projects-hero .container {
  position: relative;
  z-index: 1;
}

.projects-lead {
  max-width: 760px;
  margin-top: 25px;
  margin-bottom: 0;
}

/* =========================
   Project Showcase
========================= */

.projects-showcase-section {
  position: relative;
}

.projects-showcase-section:first-of-type {
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(37, 99, 235, 0.065),
      transparent 30%
    ),
    var(--paper);
}

.project-showcase {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.project-showcase-head {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(280px, 0.65fr);
  gap: 48px;
  align-items: start;
}

.project-showcase-head .section-kicker {
  color: var(--blue);
}

.project-showcase-head h2 {
  margin: 0 0 17px;
  font:
    800 clamp(36px, 4.6vw, 58px) / 1.06
    var(--display);
  letter-spacing: -0.055em;
}

.project-summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* =========================
   Project Meta Box
========================= */

.project-meta-box {
  padding: 25px;
  border: 1px solid rgba(8, 17, 31, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 18px 48px rgba(8, 17, 31, 0.07);
}

.content-section.soft .project-meta-box {
  background: rgba(255, 255, 255, 0.52);
}

.project-meta-box > span {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  font: 700 10px var(--display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-meta-box .tags {
  margin-bottom: 0;
}

.project-meta-box .button {
  width: 100%;
  margin-top: 21px;
}

.project-meta-box .button:hover {
  transform: translateY(-3px);
}

/* =========================
   Screenshot Grid
========================= */

.project-screenshot-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.project-shot-card {
  position: relative;
  min-width: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(8, 17, 31, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 20px 55px rgba(8, 17, 31, 0.065);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.content-section.soft .project-shot-card {
  background: rgba(255, 255, 255, 0.64);
}

.project-shot-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow:
    0 30px 72px rgba(8, 17, 31, 0.13);
}

/* =========================
   Screenshot Image
========================= */

.project-shot-image {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  place-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      135deg,
      #e8edf3,
      #f8fafc
    );
}

.project-shot-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.035),
      transparent 58%
    );
  pointer-events: none;
}

.project-shot-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 11px;
  box-shadow:
    0 10px 28px rgba(8, 17, 31, 0.12);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.project-shot-card:hover .project-shot-image img {
  transform: scale(1.025);
  box-shadow:
    0 15px 36px rgba(8, 17, 31, 0.17);
}

/* =========================
   Screenshot Description
========================= */

.project-shot-content {
  flex: 1;
  padding: 24px;
}

.project-shot-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-shot-label::before {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
}

.project-shot-content h3 {
  margin: 0 0 10px;
  font:
    800 22px / 1.22
    var(--display);
  letter-spacing: -0.035em;
}

.project-shot-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

/* =========================
   Projects Tablet
========================= */

@media (max-width: 1000px) {
  .project-showcase-head {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-meta-box {
    max-width: 620px;
  }

  .project-screenshot-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .project-screenshot-grid .project-shot-card:last-child {
    grid-column: 1 / -1;
  }

  .project-screenshot-grid .project-shot-card:last-child {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(280px, 0.72fr);
  }

  .project-screenshot-grid .project-shot-card:last-child
  .project-shot-image {
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

/* =========================
   Projects Mobile
========================= */

@media (max-width: 700px) {
  .projects-hero::before {
    top: -150px;
    right: -260px;
    width: 460px;
    height: 460px;
  }

  .projects-lead {
    font-size: 15px;
  }

  .project-showcase {
    gap: 30px;
  }

  .project-showcase-head {
    gap: 24px;
  }

  .project-showcase-head h2 {
    font-size: 36px;
  }

  .project-meta-box {
    max-width: none;
    padding: 21px;
  }

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

  .project-screenshot-grid .project-shot-card:last-child {
    grid-column: auto;
    display: flex;
  }

  .project-screenshot-grid .project-shot-card:last-child
  .project-shot-image {
    height: auto;
    aspect-ratio: 16 / 10.5;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-shot-content {
    padding: 21px;
  }
}

/* =========================
   Projects Small Mobile
========================= */

@media (max-width: 480px) {
  .project-showcase-head h2 {
    font-size: 32px;
  }

  .project-summary {
    font-size: 15px;
  }

  .project-shot-card {
    border-radius: 18px;
  }

  .project-shot-image {
    padding: 8px;
  }

  .project-shot-content {
    padding: 19px;
  }

  .project-shot-content h3 {
    font-size: 20px;
  }
}

/* =========================
   Project Screenshot Overlay
========================= */

.project-shot-image {
  position: relative;
}

.project-shot-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8, 17, 31, 0.76),
      transparent 55%
    );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-view-button {
  position: absolute;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  font: 700 11px var(--body);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.project-view-button:hover {
  background: white;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.24);
}

.project-view-button:focus-visible {
  opacity: 1;
  transform: translateY(0);
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.project-shot-card:hover .project-shot-image::after,
.project-shot-card:focus-within .project-shot-image::after {
  opacity: 1;
}

.project-shot-card:hover .project-view-button,
.project-shot-card:focus-within .project-view-button {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Project Details Popup
========================= */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.78);
  backdrop-filter: blur(10px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: var(--paper);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.project-modal.open .project-modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(8, 17, 31, 0.84);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.project-modal-close:hover {
  background: var(--blue);
  transform: rotate(90deg);
}

.project-modal-image {
  min-height: 300px;
  max-height: 550px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(
      135deg,
      #e7edf5,
      #f8fafc
    );
}

.project-modal-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
}

.project-modal-content {
  padding: 32px 36px 38px;
}

.project-modal-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-modal-content h2 {
  margin: 0 0 14px;
  font:
    800 clamp(27px, 4vw, 40px) / 1.14
    var(--display);
  letter-spacing: -0.04em;
}

.project-modal-content p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

body.project-modal-open {
  overflow: hidden;
}

/* =========================
   Project Popup Mobile
========================= */

@media (max-width: 600px) {
  .project-view-button {
    right: 12px;
    bottom: 12px;
    padding: 9px 13px;
  }

  .project-modal {
    padding: 14px;
  }

  .project-modal-dialog {
    max-height: calc(100svh - 28px);
    border-radius: 18px;
  }

  .project-modal-image {
    min-height: 220px;
    padding: 14px;
    border-radius: 18px 18px 0 0;
  }

  .project-modal-content {
    padding: 25px 21px 29px;
  }

  .project-modal-close {
    top: 10px;
    right: 10px;
    width: 39px;
    height: 39px;
  }
}