/* 1. RESET: remove default browser spacing so sizes are predictable */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* 2. DESIGN TOKENS: --c is the accent color the JS changes per slide; the rest are text and glass colors */
:root {
  --c: #3b82f6;
  --ink: #f4f6ff;
  --soft: rgba(244, 246, 255, 0.74);
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.2);
  --r: 26px;
}
/* 3. BASE: smooth anchor scrolling, fonts, dark page background, headings */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: #070b1a;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: Sora, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
img {
  max-width: 100%;
  display: block;
}
/* living background: the glass needs color to blur */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  transition: background 1.2s ease;
}
.bg i:nth-child(1) {
  width: 46vw;
  height: 46vw;
  left: -10vw;
  top: -8vw;
  background: var(--c);
}
.bg i:nth-child(2) {
  width: 38vw;
  height: 38vw;
  right: -8vw;
  top: 30vh;
  background: #7c3aed;
}
.bg i:nth-child(3) {
  width: 34vw;
  height: 34vw;
  left: 30vw;
  bottom: -14vw;
  background: var(--c);
  opacity: 0.35;
}
/* GLASSMORPHISM RECIPE: translucent fill + light border + backdrop blur + inner top highlight. Add class="glass" to any element. */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
/* 4. LAYOUT HELPERS: centered container, sections, headings, buttons */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
section {
  padding: 56px 0;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.lead {
  color: var(--soft);
  max-width: 44rem;
  margin-top: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}
.btn.main {
  background: #fff;
  color: #0b1020;
  border-color: #fff;
}
.btn.main:hover {
  background: #e9eeff;
}
/* nav */
header {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin-top: 12px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 22px;
  border-radius: 999px;
}
.logo {
  font-family: Sora;
  font-weight: 800;
  font-size: 1.15rem;
}
.logo small {
  display: block;
  font: 500 0.7rem Manrope;
  color: var(--soft);
  letter-spacing: 0.02em;
}
.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav ul a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--soft);
}
.nav ul a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
/* 5. HERO BILLBOARD: full-width banner with color wash, faded diagram, left copy and gradients */
/* netflix-style billboard */
.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.billboard {
  --wave: 110px;
  /* BLOB DIVIDER: a mask keeps the top solid and cuts an organic blob edge into the bottom 110px */
  -webkit-mask-image:
    linear-gradient(#000, #000),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V64C1388 98 1306 112 1216 92C1124 72 1062 26 950 34C838 42 786 98 664 100C544 102 480 50 366 44C258 38 168 92 76 88C48 86 22 78 0 66Z'/%3E%3C/svg%3E");
  mask-image:
    linear-gradient(#000, #000),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V64C1388 98 1306 112 1216 92C1124 72 1062 26 950 34C838 42 786 98 664 100C544 102 480 50 366 44C258 38 168 92 76 88C48 86 22 78 0 66Z'/%3E%3C/svg%3E");
  -webkit-mask-size:
    100% calc(100% - var(--wave) + 1px),
    100% var(--wave);
  mask-size:
    100% calc(100% - var(--wave) + 1px),
    100% var(--wave);
  -webkit-mask-position: top, bottom;
  mask-position: top, bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  position: relative;
  min-height: min(88vh, 780px);
  margin-top: -84px;
  padding: 150px 0 130px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.bb-wash {
  position: absolute;
  inset: 0;
  background: var(--c);
  opacity: 0.5;
  transition: background-color 1s;
}
.billboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #070b1a 4%,
    rgba(7, 11, 26, 0.82) 34%,
    transparent 68%
  );
}
.bb-img {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  right: 0;
  top: 96px;
  width: 64%;
  height: 74%;
  object-fit: cover;
  object-position: left top;
  opacity: 0.55;
  filter: saturate(1.1) brightness(0.9);
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 38%),
    linear-gradient(180deg, #000 62%, transparent);
  mask-image:
    linear-gradient(90deg, transparent, #000 38%),
    linear-gradient(180deg, #000 62%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.bb-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 33rem);
  align-items: center;
  pointer-events: none;
}
.bb-left {
  pointer-events: auto;
}
.bb-tag {
  font: 600 1rem Manrope;
  color: var(--soft);
  max-width: 30rem;
  letter-spacing: 0;
}
.bb-copy {
  max-width: 34rem;
  margin-top: 14px;
}
.bb-copy h2 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.05;
}
.bb-copy p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: rgba(244, 246, 255, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.bb-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.bb-btns .btn {
  padding: 14px 30px;
  font-size: 1.02rem;
}
.bb-btns .info {
  background: rgba(109, 109, 110, 0.55);
}
.bb-btns .info:hover {
  background: rgba(109, 109, 110, 0.8);
}
/* GHOST LAYER: giant faint word + clickable workflow examples, sitting behind the diagram */
.ghost {
  position: absolute;
  z-index: 1;
  left: 42%;
  width: 42%;
  top: 90px;
  bottom: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.gimg {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  opacity: 0.4;
  margin-bottom: 12px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 62%,
    transparent 100%
  );
  mask-image: radial-gradient(ellipse at center, #000 62%, transparent 100%);
  animation: ghostFloat 8s ease-in-out infinite;
}
@keyframes ghostFloat {
  50% {
    transform: translateY(-8px);
  }
}
.gw {
  font-family: Anton, sans-serif;
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  line-height: 0.95;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  margin-bottom: 12px;
}
.gi {
  display: block;
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.7s;
}
.gi b {
  display: block;
  font: 700 1.25rem Sora;
  color: #fff;
}
.gi span {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}
.gi.lit,
.gi:hover,
.gi:focus-visible {
  opacity: 0.9;
}
.in {
  animation: bbIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bb-img.in {
  animation: imgIn 1s ease;
}
@keyframes bbIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes imgIn {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
}
/* "PICK A PROBLEM" THUMBNAIL ROW: active card scales up and shows a progress bar */
.rail-wrap {
  position: relative;
  z-index: 5;
  margin-top: -130px;
}
/* swipeable carousel: flex row that scrolls sideways and snaps card by card */
.rail {
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 14px 4px 16px;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rnav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 14, 32, 0.6);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.rnav:hover {
  background: rgba(255, 255, 255, 0.2);
}
.rnav.prev {
  left: -6px;
}
.rnav.next {
  right: -6px;
}
.rcard {
  flex: 0 0 calc((100% - 56px) / 5);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  padding: 8px;
  border-radius: 20px;
  text-align: left;
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity 0.3s,
    transform 0.3s,
    border-color 0.3s;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
}
.rcard:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.rcard.on {
  opacity: 1;
  transform: scale(1.04);
  border-color: #fff;
}
.rcard img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}
.rcard b {
  display: block;
  font: 700 0.85rem Sora;
  margin: 9px 4px 5px;
}
.rcard i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: #fff;
}
.rcard.on i {
  animation: fill 7s linear forwards;
}
.paused .rcard.on i {
  animation-play-state: paused;
}
@keyframes fill {
  to {
    width: 100%;
  }
}
/* problems */
.grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.problem {
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s,
    background 0.25s;
}
.problem:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}
.problem b {
  display: block;
  font: 700 1.08rem Sora;
}
.problem p {
  color: var(--soft);
  font-size: 0.9rem;
  margin-top: 8px;
}
.problem em {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}
/* 7. PROJECT GRID: search, filter chips and cards (cards are built by js/projects.js) */
/* projects */
.tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}
.search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  height: 50px;
}
.search input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
}
.search input::placeholder {
  color: var(--soft);
}
.filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter:hover,
.filter.on {
  background: #fff;
  color: #0b1020;
}
#project-search-count {
  margin-top: 10px;
  color: var(--soft);
  font-size: 0.85rem;
}
#project-grid,
#all-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.pcard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s,
    background 0.25s;
  border-radius: 24px;
}
.pcard:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}
.pcard .thumb {
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.pcard .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard .meta {
  padding: 14px 8px 8px;
}
.pcard .tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 700;
}
.pcard h3 {
  font-size: 0.98rem;
  margin-top: 10px;
}
#see-all-projects-wrap {
  margin-top: 28px;
  justify-content: center;
}
/* 8. PROJECT MODAL: glass dialog opened by js/projects.js */
/* modal */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 8, 20, 0.62);
  backdrop-filter: blur(8px);
}
.project-modal-overlay.is-open {
  display: flex;
}
.project-modal-panel {
  position: relative;
  width: 100%;
  max-width: 44rem;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 30px;
  background: rgba(30, 36, 70, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.all-projects-panel {
  max-width: 70rem;
}
.project-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
}
.project-modal-image {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.project-modal-category {
  display: inline-block;
  margin-top: 20px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  font-weight: 700;
}
.project-modal-title {
  margin-top: 10px;
  font-size: 1.45rem;
}
.project-modal-body p,
.project-modal-body li {
  color: var(--soft);
  font-size: 0.92rem;
  margin-top: 10px;
}
.project-modal-body h4 {
  margin-top: 22px;
  font-size: 1rem;
}
.project-modal-body ul,
.project-modal-body ol {
  padding-left: 20px;
}
.project-modal-body code {
  background: rgba(255, 255, 255, 0.14);
  padding: 1px 6px;
  border-radius: 6px;
}
body.project-modal-locked {
  overflow: hidden;
}
/* stack, process, quotes */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.stack span {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
  counter-reset: s;
}
.step {
  padding: 22px;
  counter-increment: s;
}
.step::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #0b1020;
  font: 800 0.95rem Sora;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.05rem;
}
.step p {
  color: var(--soft);
  font-size: 0.88rem;
  margin-top: 6px;
}
.quote {
  padding: 26px;
}
.quote p {
  font-size: 0.95rem;
  color: var(--soft);
}
.quote footer {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.9rem;
}
.quote footer span {
  display: block;
  font-weight: 500;
  color: var(--soft);
  font-size: 0.82rem;
}
.about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: center;
  padding: 26px;
}
.about img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 22px;
}
.about p {
  color: var(--soft);
  margin-top: 12px;
}
/* contact */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-top: 28px;
}
form {
  padding: 26px;
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
}
input,
textarea {
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  outline: 0;
}
input:focus,
textarea:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.links {
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.links a {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}
.links a:hover {
  background: rgba(255, 255, 255, 0.18);
}
footer.site {
  padding: 30px 0 50px;
  color: var(--soft);
  font-size: 0.88rem;
  text-align: center;
}
/* 9. RESPONSIVE: tablet and phone layout */
@media (max-width: 900px) {
  .nav ul {
    display: none;
  }
  .billboard {
    align-items: flex-end;
    min-height: 0;
    padding: 300px 0 130px;
  }
  .bb-img {
    width: 100%;
    height: 46%;
    top: 70px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
  }
  .billboard::before {
    background: linear-gradient(
      180deg,
      transparent 20%,
      rgba(7, 11, 26, 0.85) 62%
    );
  }
  .bb-img {
    height: 300px;
  }
  .ghost {
    left: 0;
    width: 100%;
    top: 78px;
    bottom: auto;
    justify-content: flex-start;
  }
  .gw {
    font-size: 5rem;
  }
  .gimg {
    max-height: 220px;
  }
  .gi {
    display: none;
  }
  .rcard {
    flex-basis: calc((100% - 28px) / 3);
  }
  .rnav {
    display: none;
  }
  .g3,
  #project-grid,
  #all-projects-grid,
  .steps,
  .contact {
    grid-template-columns: 1fr;
  }
  .about {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
/* PHONE: shorter, tighter hero so nothing looks oversized */
@media (max-width: 600px) {
  header {
    top: 8px;
    margin-top: 8px;
  }
  .nav {
    padding: 8px 8px 8px 16px;
  }
  .logo {
    font-size: 1rem;
  }
  .logo small {
    display: none;
  }
  .nav .btn {
    padding: 9px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .billboard {
    --wave: 56px;
    margin-top: -64px;
    padding: 214px 0 86px;
  }
  .bb-img {
    display: none;
  }
  .ghost {
    top: 66px;
  }
  .gimg {
    width: 84%;
    max-height: 132px;
  }
  .gw {
    font-size: 3.4rem;
  }
  .bb-tag {
    font-size: 0.8rem;
  }
  .bb-copy {
    margin-top: 8px;
  }
  .bb-copy h2 {
    font-size: 1.55rem;
  }
  .bb-copy p {
    font-size: 0.88rem;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .chips {
    margin-top: 12px;
    gap: 6px;
  }
  .chip {
    padding: 4px 10px;
    font-size: 0.74rem;
  }
  .chips .chip:nth-child(n + 3) {
    display: none;
  }
  .bb-btns {
    margin-top: 16px;
    gap: 8px;
  }
  .bb-btns .btn {
    padding: 10px 18px;
    font-size: 0.86rem;
  }
  .rail-wrap {
    margin-top: -58px;
  }
  .rail {
    gap: 10px;
  }
  .rcard {
    flex-basis: 36%;
    padding: 6px;
    border-radius: 14px;
  }
  .rcard b {
    font-size: 0.7rem;
    margin: 6px 3px 3px;
  }
  section {
    padding: 40px 0;
  }
}

/* 10. ACCESSIBILITY: switch animations off for visitors who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* 11. SERVICES + SKILLS (sections from the original site, now glass) */
.svc,
.skill {
  padding: 24px;
  transition:
    transform 0.25s,
    background 0.25s;
}
.svc:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}
.svc .ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
}
.svc svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc h3 {
  font-size: 1.1rem;
}
.svc p {
  color: var(--soft);
  font-size: 0.9rem;
  margin-top: 8px;
}
.skill h3 {
  font-size: 0.95rem;
  color: var(--soft);
}
.logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  list-style: none;
}
.logos li {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2140;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.logos img {
  width: 28px;
  height: 28px;
}
.logos .go {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #2e7df7;
  color: #fff;
  font: 700 0.75rem Sora;
}

/* 12. PROJECT CARDS rendered by your js/projects.js (styled by their data attribute, so projects.js stays untouched) */
#project-grid .reveal,
#all-projects-grid .reveal {
  height: 100%;
}
[data-project-id] {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 0.25s,
    background 0.25s;
}
[data-project-id]:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}
[data-project-id] .project-card-thumb {
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
[data-project-id] .project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
[data-project-id]:hover .project-card-thumb img {
  transform: scale(1.05);
}
[data-project-id] > div:last-child {
  padding: 14px 8px 8px;
}
[data-project-id] span {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.74rem;
  font-weight: 700;
}
[data-project-id] h3 {
  font-size: 0.98rem;
  margin-top: 10px;
}

/* 13. GLASS POP-UPS: project dialog and "all projects" dialog */
.project-modal-overlay {
  background: rgba(5, 8, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}
.project-modal-panel {
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.05)
    ),
    rgba(14, 20, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  animation: modalIn 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-modal-image {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.project-modal-image img {
  width: 100%;
  border-radius: 14px;
  background: #fff;
}
.project-modal-close {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.project-modal-body strong {
  color: #fff;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}
