/* =====================================================
   enhancements.css — new look + animations
   Loaded AFTER styles.css, so it only layers on top.
   Remove the <link> in index.html to go back to the old look.
   ===================================================== */

:root {
  --fx-grad: linear-gradient(120deg, hsl(250, 70%, 72%), hsl(190, 80%, 65%), hsl(320, 70%, 72%));
  --fx-glass: hsla(var(--second-hue), 32%, 14%, 0.55);
  --fx-border: hsla(var(--first-hue), 60%, 80%, 0.14);
  --fx-shadow: 0 10px 30px hsla(var(--first-hue), 60%, 20%, 0.35);
}

body.light-theme {
  --fx-glass: hsla(0, 0%, 100%, 0.65);
  --fx-border: hsla(var(--first-hue), 40%, 40%, 0.15);
  --fx-shadow: 0 10px 30px hsla(var(--first-hue), 40%, 40%, 0.15);
}

/* ---------- Scroll progress bar ---------- */
.fx-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--fx-grad);
  transform-origin: left;
  transform: scaleX(0);
  z-index: calc(var(--z-fixed) + 1);
  pointer-events: none;
}

/* ---------- Header ---------- */
/* NOTE: no backdrop-filter on .header — it would trap the fixed .nav__menu
   inside the header and pull the menu to the top of the page. */
.header {
  background-color: hsla(var(--second-hue), 48%, 8%, 0.92);
}
body.light-theme .header {
  background-color: hsla(var(--second-hue), 100%, 99%, 0.92);
}

/* Bottom navbar with breathing room (also clears the phone home bar) */
.nav__menu {
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.nav__logo {
  background: var(--fx-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fx-shine 6s linear infinite;
}

@keyframes fx-shine {
  to { background-position: 200% center; }
}

.nav__menu {
  border: 1px solid var(--fx-border);
  box-shadow: var(--fx-shadow);
}

.nav__link:hover {
  transform: translateY(-3px);
  color: var(--first-color);
}

/* ---------- Typography ---------- */
.home__name,
.section__title {
  background: var(--fx-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fx-shine 8s linear infinite;
}

.section__subtitle {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Role typewriter */
.fx-caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--first-color);
  animation: fx-blink 0.8s steps(1) infinite;
}
@keyframes fx-blink {
  50% { opacity: 0; }
}
.home__education {
  min-height: 1.5em;
}

/* ---------- Photo slideshow (3s auto-change) ---------- */
.fx-slideshow {
  position: relative;
  overflow: hidden;
}
.fx-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.9s ease, transform 4s ease-out;
}
.fx-slideshow img.fx-active {
  opacity: 1;
  transform: scale(1);
}

.home__handle.fx-slideshow {
  position: relative;
  box-shadow: 0 0 0 3px hsla(var(--first-hue), var(--sat), var(--lig), 0.35),
    0 0 40px hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  animation: fx-float 6s ease-in-out infinite;
}
@keyframes fx-float {
  50% { transform: translateY(-10px); }
}

.about__img.fx-slideshow {
  aspect-ratio: 4 / 5;
  box-shadow: var(--fx-shadow);
  border: 1px solid var(--fx-border);
}

/* Hero photo: plain rectangle instead of the arch shape.
   Set to 0 for fully square corners. */
.home__handle.fx-slideshow {
  border-radius: 0.75rem;
}

/* ---------- Click-to-enlarge (lightbox) ---------- */
.fx-slideshow[data-zoom] {
  cursor: zoom-in;
}
.fx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: hsla(0, 0%, 0%, 0.88);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fx-lightbox.fx-open {
  opacity: 1;
}
.fx-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 10px 50px hsla(0, 0%, 0%, 0.6);
  transform: scale(0.94);
  transition: transform 0.3s ease;
}
.fx-lightbox.fx-open img {
  transform: scale(1);
}
.fx-lightbox__close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.fx-lightbox__close:hover {
  background: hsla(0, 0%, 100%, 0.3);
  transform: rotate(90deg);
}

/* ---------- Cards: glass + hover lift ---------- */
.about__box,
.skills__content,
.services__card,
.work__card,
.testimonial__card,
.contact__card,
.webp__card {
  background-color: var(--fx-glass);
  border: 1px solid var(--fx-border);
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.about__box:hover,
.skills__content:hover,
.services__card:hover,
.work__card:hover,
.contact__card:hover,
.webp__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--fx-shadow);
  border-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.55);
}

.work__img {
  transition: transform 0.5s ease;
}
.work__card:hover .work__img {
  transform: scale(1.04);
}

.skills__data {
  transition: transform 0.25s ease;
}
.skills__data:hover {
  transform: translateX(4px);
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  overflow: hidden;
}
.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, hsla(0, 0%, 100%, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.button:hover::after {
  left: 140%;
}
.button:hover {
  transform: translateY(-2px);
}

/* ---------- Scroll reveal ---------- */
.fx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--fx-delay, 0s);
}
.fx-reveal.fx-in {
  opacity: 1;
  transform: none;
}
/* Once revealed, hover transforms must still work smoothly */
.fx-reveal.fx-in.fx-done {
  transition-delay: 0s;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

/* ---------- Keyboard focus ---------- */
a:focus-visible,
button:focus-visible,
.work__item:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 3px;
}

/* ---------- Reduced motion: keep it calm ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav__logo,
  .home__name,
  .section__title,
  .home__handle.fx-slideshow,
  .fx-caret::after {
    animation: none;
  }
  .fx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fx-slideshow img {
    transform: none;
    transition: opacity 0.4s ease;
  }
}

/* =====================================================
   v2 — clean futuristic hero, text reveal, cursor,
   tilt cards, horizontal gallery
   ===================================================== */

/* ---------- Hero: calm, cursor-reactive background (hero only) ---------- */
.home {
  position: relative;
}
.home::before { /* soft light that follows the cursor */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--mx, 70%) var(--my, 35%),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.16),
    transparent 65%
  );
}
.home::after { /* faint grid that fades out toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(hsla(var(--second-hue), 20%, 70%, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--second-hue), 20%, 70%, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 15%, transparent 70%);
}
body.light-theme .home::after {
  background-image:
    linear-gradient(hsla(var(--second-hue), 20%, 30%, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--second-hue), 20%, 30%, 0.08) 1px, transparent 1px);
}
.home__container {
  position: relative;
  z-index: 1;
}

.home__name {
  font-family: "Space Grotesk", var(--body-font);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  margin-bottom: 0.5rem;
}
.home__education {
  margin-bottom: 0.75rem;
}
.home__tagline {
  max-width: 30rem;
  margin: 0 auto 2rem;
  color: var(--text-color);
  line-height: 1.6;
}

@media screen and (min-width: 768px) {
  .home__container {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    column-gap: 2rem;
    row-gap: 0;
    min-height: 32rem;
  }
  .home__data {
    text-align: left;
  }
  .home__tagline {
    margin-left: 0;
  }
  .home__button {
    justify-content: flex-start;
  }
}

/* Hero items rise in one after another on load */
.fx-hero-item {
  opacity: 0;
  animation: fx-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Animated typography (words slide up out of a mask) ---------- */
.fx-split {
  background: none;
  animation: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.fx-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;   /* room for descenders (g, y) */
  margin-bottom: -0.14em;
}
.fx-word > span {
  display: inline-block;
  background: var(--fx-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(115%);
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.09s);
  animation: fx-shine 8s linear infinite;
}
.fx-split-in .fx-word > span {
  transform: none;
}

/* ---------- Magnetic buttons ---------- */
.fx-magnet {
  transition: transform 0.25s ease-out, background-color 0.4s, color 0.4s, box-shadow 0.4s, border-color 0.4s;
  will-change: transform;
}

/* ---------- Custom cursor (mouse only) ---------- */
@media (hover: hover) and (pointer: fine) {
  html.fx-cursor-on,
  html.fx-cursor-on *:not(input):not(textarea) {
    cursor: none !important;
  }
}
.fx-cursor-dot,
.fx-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.fx-cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--first-color);
}
.fx-cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1.5px solid var(--first-color);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--title-color);
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease, margin 0.25s ease,
    background-color 0.25s ease;
}
.fx-cursor-dot.is-visible,
.fx-cursor-ring.is-visible {
  opacity: 1;
}
.fx-cursor-ring.is-link {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.15);
}
.fx-cursor-ring.is-view {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}
.fx-cursor-ring.is-view::after {
  content: "View";
}
.fx-cursor-ring.is-text {
  opacity: 0;
}
.fx-cursor-dot.is-text {
  opacity: 0;
}

/* ---------- Interactive cards: tilt + light that follows the pointer ---------- */
.work__card,
.webp__card {
  position: relative;
}
.fx-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.fx-tilt:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  transition: transform 0.12s ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
}
.fx-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    220px circle at var(--sx, 50%) var(--sy, 50%),
    hsla(var(--first-hue), var(--sat), var(--lig), 0.2),
    transparent 70%
  );
}
.fx-tilt:hover::after {
  opacity: 1;
}

/* ---------- Horizontal project gallery ---------- */
.work__filters {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}
.work__gallery {
  width: 100%;
}
.work__scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(1rem, calc((100% - 968px) / 2));
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1.5rem 0 2rem;
}
.work__scroller::-webkit-scrollbar {
  display: none;
}
.work__scroller.is-dragging {
  scroll-snap-type: none;
  user-select: none;
}
.fx-track.work__container {
  display: flex;
  justify-content: flex-start;
  gap: 1.25rem;
  width: max-content;
  min-width: 100%;
  padding: 0 max(1rem, calc((100% - 968px) / 2));
}
.fx-track .work__card {
  flex: 0 0 auto;
  width: min(78vw, 17rem);
  scroll-snap-align: start;
  padding: 1rem;
}
.fx-track .work__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
  -webkit-user-drag: none;
}
.fx-gallery-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 968px;
  margin: 0 auto;
  padding: 0 1rem;
}
.fx-gallery-btn {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--first-color);
  background: var(--fx-glass);
  border: 1px solid var(--fx-border);
}
.fx-gallery-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.fx-gallery-progress {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--fx-border);
}
.fx-gallery-progress span {
  display: block;
  height: 100%;
  background: var(--fx-grad);
  transform-origin: left;
  transform: scaleX(0.1);
  transition: transform 0.15s linear;
}

/* ---------- Website project cards (styles moved here from index.html) ---------- */
.webp__container {
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: center;
  gap: 1.5rem;
}
.webp__card {
  border-radius: 1rem;
  padding: 0.75rem 0.75rem 1.25rem;
}
.webp__preview {
  height: 170px;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #fff;
  text-align: center;
}
.webp__preview i {
  font-size: 3rem;
}
.webp__preview span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.webp__title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--title-color, inherit);
}
.webp__desc {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  color: var(--text-color, inherit);
}
.webp__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.webp__tags span {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  background: rgba(127, 127, 127, 0.15);
  color: var(--text-color, inherit);
}
.webp__button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--first-color, #5b6cff);
}
.webp__button i {
  transition: transform 0.3s;
}
.webp__button:hover i {
  transform: translateX(0.25rem);
}

/* ---------- Reduced motion (v2 additions) ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-hero-item {
    opacity: 1;
    animation: none;
  }
  .fx-word > span {
    transform: none;
    transition: none;
    animation: none;
  }
  .fx-tilt,
  .fx-tilt:hover {
    transform: none;
  }
}

/* =====================================================
   v3 — bug fixes
   ===================================================== */

/* Hero (tablet/desktop): social icons were absolutely positioned and
   overlapped the buttons. Put them in the layout, under the text. */
@media screen and (min-width: 768px) {
  .home__data   { grid-column: 1; grid-row: 1; }
  .home__handle { grid-column: 2; grid-row: 1 / span 2; }
  .home__social {
    position: static;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    display: flex;
    column-gap: 0.75rem;
    margin-top: 2rem;
  }
  .home__social::after {
    display: none;
  }
}

/* Contact photo */
.contact__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--fx-border);
  box-shadow: var(--fx-shadow);
}

/* Shown when a content file is missing */
.fx-load-error {
  margin: 0 1rem;
  padding: 1rem;
  border: 1px dashed hsl(0, 70%, 65%);
  border-radius: 0.75rem;
  color: hsl(0, 80%, 78%);
  font-size: var(--small-font-size);
  text-align: center;
}
body.light-theme .fx-load-error {
  color: hsl(0, 65%, 40%);
}
.work__container .fx-load-error {
  width: 100%;
}

/* =====================================================
   v4 — projects gallery: 3 cards per row, scroll sideways for the rest
   (2 on tablets, about 1 with a peek of the next on phones)
   ===================================================== */
.work__gallery {
  max-width: 968px;
  margin: 0 auto;
  padding: 0 1rem;
  --fx-gap: 1.25rem;
  --fx-n: 1.2;           /* cards visible at once: phones */
}
@media screen and (min-width: 600px) {
  .work__gallery { --fx-n: 2; }
}
@media screen and (min-width: 900px) {
  .work__gallery { --fx-n: 3; }
}

.work__scroller {
  /* small side padding so card shadows / tilt are not cut off at the edges */
  margin: 0 -0.75rem;
  padding: 1.5rem 0.75rem 2rem;
  scroll-padding-inline: 0.75rem;
  container-type: inline-size;
}
.fx-track.work__container {
  gap: var(--fx-gap);
  padding: 0;
}
.fx-track .work__card {
  width: calc((100cqw - (var(--fx-n) - 1) * var(--fx-gap)) / var(--fx-n));
}
/* very old browsers without container units */
@supports not (width: 1cqw) {
  .fx-track .work__card { width: min(78vw, 17rem); }
}

/* =====================================================
   v5 — one card at a time (like links in a chain)
   Every swipe, arrow click or drag lands exactly on a card edge.
   ===================================================== */
.work__scroller {
  scroll-snap-type: x mandatory;
}
.fx-track .work__card {
  scroll-snap-align: start;
  scroll-snap-stop: always; /* a fast swipe can't skip past cards */
}
.work__scroller.is-dragging {
  scroll-snap-type: none;
}

/* =====================================================
   v6 — phones: social icons sat on top of the photo.
   Put them in a centred row under the photo instead.
   ===================================================== */
.home__social {
  position: static;
  display: flex;
  justify-content: center;
  column-gap: 0.75rem;
  margin-top: -2.5rem;   /* pulls the row up into the gap below the photo */
}
.home__social::after {
  display: none;
}
@media screen and (min-width: 768px) {
  .home__social {
    justify-content: flex-start;
    margin-top: 2rem;
  }
}

/* v6b — social icons were stretched tall: give them a fixed square size */
.home__social {
  align-items: center;
  align-self: start;
}
.home__social-link {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: grid;
  place-items: center;
}
@media screen and (min-width: 992px) {
  .home__social-link {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
  }
}

/* =====================================================
   v7 — "What I Offer" pop-ups opened inside the card
   Each service card holds a full-screen (position: fixed) pop-up.
   A blur or a transform on the card makes the browser treat the card
   as the pop-up's "screen", so it got trapped inside the card.
   Same cause as the navbar bug earlier: keep both off these cards.
   ===================================================== */
.services__card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.services__card:hover {
  transform: none;
}

/* CMS current-employer line */
.home__employer {
  margin: -0.25rem auto 0.9rem;
  max-width: 34rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  line-height: 1.5;
}
@media screen and (min-width: 768px) {
  .home__employer { margin-left: 0; }
}

/* Creative Website Studio cards */
.webp__card{overflow:hidden;position:relative}
.webp__card--featured{outline:1px solid color-mix(in srgb,var(--first-color) 65%,transparent);box-shadow:0 22px 70px rgba(92,83,255,.14)}
.webp__browser{padding:0!important;overflow:hidden;display:block!important;background:#0b0f18!important}
.webp__browserbar{height:38px;display:flex;align-items:center;gap:12px;padding:0 12px;background:rgba(10,14,22,.96);border-bottom:1px solid rgba(255,255,255,.08)}
.webp__dots{display:flex;gap:5px}.webp__dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.28)}.webp__dots i:first-child{background:#ff6b6b}.webp__dots i:nth-child(2){background:#ffd166}.webp__dots i:nth-child(3){background:#61d095}
.webp__address{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;color:var(--text-color-light)}
.webp__shot{height:190px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#141a2b,#272250)}
.webp__shot img{width:100%;height:100%;object-fit:cover;transition:transform .55s ease}.webp__card:hover .webp__shot img{transform:scale(1.035)}
.webp__content{padding-top:.9rem}.webp__meta{display:flex;justify-content:space-between;align-items:center;font-size:.72rem;color:var(--text-color-light);margin-bottom:.4rem}
.webp__featured{background:var(--first-color)!important;color:#fff!important}
@media(max-width:576px){.webp__shot{height:160px}}



/* v1.7 — public portfolio light mode. Dark remains the default. */
body.light-theme{
  --body-color:#eef8ff;
  --container-color:rgba(255,255,255,.72);
  --title-color:#17263a;
  --text-color:#52677f;
  --text-color-light:#7b8ca0;
  --first-color:#6c8cff;
  --first-color-alt:#55cde9;
  background:
    radial-gradient(circle at 88% 6%,rgba(104,216,245,.25),transparent 26rem),
    radial-gradient(circle at 10% 90%,rgba(106,225,184,.18),transparent 28rem),
    linear-gradient(135deg,#edf7ff,#f9fcff 52%,#effbf8);
}
body.light-theme .header,
body.light-theme .nav__menu{
  background:rgba(248,252,255,.82)!important;
  border-color:rgba(122,165,194,.20)!important;
  backdrop-filter:blur(18px)
}
body.light-theme .home__container,
body.light-theme .about__container,
body.light-theme .skills__content,
body.light-theme .services__card,
body.light-theme .project__card,
body.light-theme .webp__card,
body.light-theme .testimonial__card,
body.light-theme .contact__card,
body.light-theme .contact__form-div{
  border-color:rgba(123,166,195,.22)!important;
}
body.light-theme .services__card,
body.light-theme .project__card,
body.light-theme .webp__card,
body.light-theme .testimonial__card,
body.light-theme .contact__card{
  background:rgba(255,255,255,.65)!important;
  box-shadow:0 18px 50px rgba(68,112,145,.10)!important;
  backdrop-filter:blur(15px)
}
body.light-theme .home__social-link,
body.light-theme .button--ghost{background:rgba(255,255,255,.7)!important}
body.light-theme .webp__browserbar{background:#e8f3fa!important;border-color:rgba(123,166,195,.22)!important}
body.light-theme .webp__address{color:#65788e!important}

/* =========================================================
   PROJECT SHOWCASE — immersive portfolio cards
   Inspired by editorial profile cards; scoped to Projects.
   ========================================================= */
.work__gallery{--project-card-w:min(82vw,20rem)}
.fx-track .work__card.project-showcase{
  position:relative;
  isolation:isolate;
  width:var(--project-card-w);
  height:29rem;
  padding:0;
  overflow:hidden;
  border-radius:1.35rem;
  border:1px solid var(--fx-border);
  background:#0b1020;
  box-shadow:0 18px 55px rgba(0,0,0,.24);
  cursor:pointer;
  transition:transform .55s cubic-bezier(.2,.8,.2,1),box-shadow .55s ease,border-color .35s ease;
}
.fx-track .work__card.project-showcase:hover,
.fx-track .work__card.project-showcase:focus-within{
  transform:translateY(-9px) scale(1.025);
  box-shadow:0 32px 85px rgba(0,0,0,.38);
  border-color:hsla(var(--first-hue),var(--sat),var(--lig),.72);
}
.project-showcase__media,
.project-showcase__shade{
  position:absolute;
  inset:0;
  margin:0;
}
.fx-track .project-showcase .project-showcase__img{
  width:100%;
  height:100%;
  margin:0;
  aspect-ratio:auto;
  object-fit:cover;
  transform:scale(1.09);
  filter:saturate(.88) contrast(1.02);
  transition:transform 1s cubic-bezier(.2,.8,.2,1),filter .6s ease;
  animation:project-pan 18s ease-in-out infinite alternate;
}
@keyframes project-pan{
  from{object-position:42% 50%}
  to{object-position:60% 50%}
}
.project-showcase:hover .project-showcase__img,
.project-showcase:focus-within .project-showcase__img{
  transform:scale(1);
  filter:saturate(.72) brightness(.72);
}
.project-showcase__shade{
  z-index:1;
  background:
    linear-gradient(180deg,rgba(5,8,18,.18) 5%,rgba(5,8,18,.05) 36%,rgba(5,8,18,.92) 100%),
    linear-gradient(120deg,rgba(91,74,210,.16),transparent 55%);
  transition:background .55s ease;
}
.project-showcase:hover .project-showcase__shade,
.project-showcase:focus-within .project-showcase__shade{
  background:linear-gradient(180deg,rgba(5,8,18,.28),rgba(5,8,18,.38) 42%,rgba(5,8,18,.96));
}
.project-showcase__top{
  position:absolute;
  z-index:3;
  top:1rem;
  left:1rem;
  right:1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}
.project-showcase__category{
  padding:.48rem .72rem;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  color:rgba(255,255,255,.88);
  background:rgba(7,11,24,.36);
  backdrop-filter:blur(10px);
  font-size:.68rem;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.project-showcase__open{
  width:2.45rem;
  height:2.45rem;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:rgba(7,11,24,.38);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
  opacity:.75;
  transition:opacity .3s ease,transform .3s ease,background .3s ease;
}
.project-showcase__open:hover{opacity:1;transform:rotate(7deg) scale(1.06);background:hsla(var(--first-hue),var(--sat),var(--lig),.72)}
.project-showcase__content{
  position:absolute;
  z-index:3;
  left:0;
  right:0;
  bottom:0;
  padding:1.4rem 1.35rem 1.35rem;
  color:#fff;
  transform:translateY(7.3rem);
  transition:transform .58s cubic-bezier(.2,.8,.2,1);
}
.project-showcase:hover .project-showcase__content,
.project-showcase:focus-within .project-showcase__content{transform:translateY(0)}
.project-showcase .project-showcase__title{
  margin:0 0 .35rem;
  color:#fff;
  font-size:1.35rem;
  line-height:1.15;
  text-shadow:0 2px 16px rgba(0,0,0,.35);
}
.project-showcase__description{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:.75rem 0 .85rem;
  color:rgba(255,255,255,.76);
  font-size:.83rem;
  line-height:1.55;
  opacity:0;
  transform:translateY(12px);
  transition:opacity .4s ease .08s,transform .4s ease .08s;
}
.project-showcase__techs{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin-bottom:1rem;
  opacity:0;
  transform:translateY(12px);
  transition:opacity .4s ease .14s,transform .4s ease .14s;
}
.project-showcase__tech{
  padding:.32rem .52rem;
  border-radius:.5rem;
  color:rgba(255,255,255,.82);
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.12);
  font-size:.65rem;
  backdrop-filter:blur(8px);
}
.project-showcase__button{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:#fff;
  opacity:0;
  transform:translateY(12px);
  transition:opacity .4s ease .2s,transform .4s ease .2s,color .25s ease;
}
.project-showcase:hover .project-showcase__description,
.project-showcase:hover .project-showcase__techs,
.project-showcase:hover .project-showcase__button,
.project-showcase:focus-within .project-showcase__description,
.project-showcase:focus-within .project-showcase__techs,
.project-showcase:focus-within .project-showcase__button{
  opacity:1;
  transform:translateY(0);
}
.project-showcase__button:hover{color:var(--first-color)}

/* Light portfolio mode keeps the photographic card dark for contrast. */
body.light-theme .work__card.project-showcase{
  background:#101827!important;
  border-color:rgba(94,133,164,.25)!important;
  box-shadow:0 20px 55px rgba(64,103,132,.20)!important;
}

/* Touch/mobile: never hide useful information behind hover. */
@media (hover:none), (max-width:767px){
  .work__gallery{--project-card-w:min(84vw,19rem)}
  .fx-track .work__card.project-showcase{height:28rem}
  .project-showcase__content{transform:translateY(0)}
  .project-showcase__description,
  .project-showcase__techs,
  .project-showcase__button{opacity:1;transform:none}
  .project-showcase__img{filter:saturate(.78) brightness(.78)!important}
  .project-showcase__shade{background:linear-gradient(180deg,rgba(5,8,18,.12),rgba(5,8,18,.28) 40%,rgba(5,8,18,.96))!important}
}
@media (prefers-reduced-motion:reduce){
  .project-showcase__img{animation:none!important}
  .project-showcase,.project-showcase *{transition-duration:.01ms!important}
}
