:root {
  --bg-light: #fff;
  --bg-dark: #6b6b6b;
  --text-dark: #111;
  --text-light: #f9f9f9;

  --radius: 16px;
  --blur: blur(16px);

  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.35);

  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);

  --accent-cyan: #00c2ff;
  --accent-cyan-soft: rgba(0, 194, 255, 0.15);
  --accent-cyan-glow: rgba(0, 194, 255, 0.35);

  --header-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  padding-top: var(--header-h);

  background: linear-gradient(180deg, #ffffff 0%, #f6f7f8 100%);

  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background: radial-gradient(
    circle at center,
    transparent 55%,
    rgba(0, 0, 0, 0.08)
  );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");

  mix-blend-mode: overlay;
}

/* ---------- GLOBAL LINK RESET ---------- */
a {
  color: inherit;
  text-decoration: none;
}

/* ---------- AMBIENT BACKGROUND LAYER ---------- */
.bg-ambient {
  position: fixed;
  inset: -30%;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(
      900px circle at 15% 20%,
      rgba(0, 195, 255, 0.25),
      transparent 65%
    ),
    radial-gradient(
      900px circle at 20% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 65%
    ),
    radial-gradient(
      700px circle at 70% 40%,
      rgba(255, 255, 255, 0.1),
      transparent 65%
    ),
    radial-gradient(
      800px circle at 40% 70%,
      rgba(0, 0, 0, 0.12),
      transparent 70%
    );

  animation: ambientShift 32s ease-in-out infinite;
  will-change: transform;
}

@keyframes ambientShift {
  0% {
    transform: translate(0%, 0%);
  }
  25% {
    transform: translate(-4%, -2%);
  }
  50% {
    transform: translate(3%, -5%);
  }
  75% {
    transform: translate(-2%, 4%);
  }
  100% {
    transform: translate(0%, 0%);
  }
}

/* =========================================================
   RIGHT-SIDE STICKY VIDEO BACKGROUND (GLOBAL)
   ========================================================= */

:root {
  --side-video-width: 42vw;
  --side-video-min: 420px;
  --side-video-max: 720px;
  --side-video-opacity: 0.72;
  --side-video-blur: 16px;

  /* controls how soft the seam is */
  --side-video-feather: 120px;
}

/* The wrap itself is "feather-masked" so there is no hard container edge */
.bg-video-wrap {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 0;

  width: clamp(
    var(--side-video-min),
    var(--side-video-width),
    var(--side-video-max)
  );

  z-index: 0;
  pointer-events: none;
  overflow: hidden;

  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;

  /* remove the "panel cutout" look */
  background: transparent;

  /* FEATHER the whole video into the page (this is the seamless part) */
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) calc(100% - var(--side-video-feather)),
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) calc(100% - var(--side-video-feather)),
    rgba(0, 0, 0, 0) 100%
  );
}

/* optional: a super subtle edge “glass rim” so it feels integrated */
.bg-video-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* tiny edge highlight on the left side */
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0.2) 100%
  );

  /* and a faint border/rim */
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.35);
  opacity: 0.55;
  z-index: 4;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: var(--side-video-opacity);

  /* soften the footage so it matches your premium UI */
  filter: contrast(1.05) saturate(0.85) brightness(1.05);
  transform: translateZ(0);
}

/* BLUR gradient over the video (more blur toward the right edge) */
.bg-video-blur {
  position: absolute;
  inset: 0;
  z-index: 2;

  backdrop-filter: blur(var(--side-video-blur));
  -webkit-backdrop-filter: blur(var(--side-video-blur));

  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.7) 65%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.7) 65%,
    rgba(0, 0, 0, 1) 100%
  );
}

/* This is what "melts" the video into your page background */
.bg-video-fade {
  position: absolute;
  inset: 0;
  z-index: 3;

  /* stronger + longer fade that matches body bg */
  background: linear-gradient(
    to right,
    rgba(246, 247, 248, 1) 0%,
    rgba(246, 247, 248, 0.95) 22%,
    rgba(246, 247, 248, 0.55) 42%,
    rgba(246, 247, 248, 0) 70%
  );
}

/* Push content away from the video so it doesn’t sit under it */
header,
section,
footer {
  padding-right: calc(
    3rem +
      clamp(
        var(--side-video-min),
        var(--side-video-width),
        var(--side-video-max)
      ) *
      0.35
  );
}

@media (max-width: 900px) {
  .bg-video-wrap {
    display: none;
  }

  header,
  section,
  footer {
    padding-right: 3rem;
  }
}

/* ---------- TYPOGRAPHY ---------- */
h1 {
  color: #111;
  letter-spacing: -0.02em;
}

.hero .hero-text h1 {
  color: var(--text-light);
}

h2 {
  color: #111;
  font-weight: 600;
}

h3 {
  color: #1a1a1a;
}

h1,
h2,
h3 {
  margin-bottom: 0.75em;
}

p {
  margin-bottom: 1.25em;
  line-height: 1.7;
}

/* ---------- GLASS UTILITY ---------- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- LIFT SYSTEM (Apple-style depth) ---------- */
.lift {
  position: relative;
  transition: transform 0.45s var(--ease-liquid);
}

.lift::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  /* This is the shadow */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);

  /* Start invisible */
  opacity: 0;
  transform: translateY(8px);

  transition:
    opacity 0.6s var(--ease-liquid),
    transform 0.6s var(--ease-liquid);

  pointer-events: none;
}

.lift:hover {
  transform: translateY(-6px) scale(1.01);
}

.lift:hover::after {
  opacity: 1;
  transform: translateY(0);

  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 0 0 1px var(--accent-cyan);
}

/* ---------- HEADER (Liquid Glass) ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 3000; /* always above overlays */
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1.2rem 3rem;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);

  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Liquid highlight + noise sheen */
header::before {
  content: "";
  position: absolute;
  inset: -60% -30%;
  z-index: 0;
  pointer-events: none;

  /* “liquid” gradients */
  background:
    radial-gradient(
      700px circle at 20% 30%,
      rgba(0, 194, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      650px circle at 70% 40%,
      rgba(255, 255, 255, 0.28),
      transparent 55%
    ),
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.25) 20%,
      transparent 45%,
      rgba(0, 194, 255, 0.1) 60%,
      transparent 85%
    );

  filter: blur(16px);
  opacity: 0.9;

  animation: headerLiquid 10s var(--ease-liquid) infinite;
  transform: translate3d(0, 0, 0);
}

/* Edge glow + subtle vignette so it feels like a “glass slab” */
header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(
      900px circle at 20% 0%,
      rgba(255, 255, 255, 0.35),
      transparent 55%
    ),
    radial-gradient(
      900px circle at 80% 0%,
      rgba(0, 194, 255, 0.12),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0.06)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

/* Ensure header content stays above the glass layers */
header > * {
  position: relative;
  z-index: 1;
}

/* Animation for the moving “liquid” sheen */
@keyframes headerLiquid {
  0% {
    transform: translate(-6%, -2%) rotate(0.5deg);
  }
  50% {
    transform: translate(6%, 2%) rotate(-0.5deg);
  }
  100% {
    transform: translate(-6%, -2%) rotate(0.5deg);
  }
}

/* Optional: slightly stronger effect when scrolling (if you add a .is-scrolled class) */
header.is-scrolled {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 3rem; /* sweet spot for nav bars */
  width: auto;
  display: block;
}

.logo a {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Glow layer */
.logo a {
  position: relative;
  display: inline-flex;
  align-items: center;

  isolation: isolate; /* keeps glow visible */
}

.logo img {
  position: relative;
  z-index: 3;
}

/* Strong multi-layer glow */
.logo a::before {
  content: "";
  position: absolute;
  inset: -22px; /* larger glow radius */
  border-radius: 999px;
  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(0, 194, 255, 0.85) 0%,
    rgba(0, 194, 255, 0.45) 35%,
    transparent 70%
  );

  filter: blur(18px);
  opacity: 0.9;
  z-index: 1;

  animation: logoPulse 3.8s ease-in-out infinite;
  mix-blend-mode: screen;
}

/* Extra outer glow layer */
.logo a::after {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 999px;
  pointer-events: none;

  background: radial-gradient(circle, rgba(0, 194, 255, 0.45), transparent 75%);

  filter: blur(28px);
  opacity: 0.6;
  z-index: 0;

  animation: logoPulseOuter 6s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes logoPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.55;
  }
}

@keyframes logoPulseOuter {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 0.35;
  }
}

/* =========================================================
   MOBILE HAMBURGER NAV (Liquid Glass)
   ========================================================= */

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);

  /* glass body */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.62)
  );
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);

  cursor: pointer;
  position: relative;
  z-index: 3001;
  isolation: isolate;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);

  transition:
    transform 280ms var(--ease-liquid),
    box-shadow 280ms var(--ease-liquid),
    background 280ms var(--ease-liquid);
}

.nav-toggle::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(0, 194, 255, 0.22) 0%,
    transparent 62%
  );
  opacity: 0;
  filter: blur(16px);
  transition: opacity 280ms var(--ease-liquid);
}

.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;

  background:
    radial-gradient(
      700px circle at 20% 20%,
      rgba(255, 255, 255, 0.85),
      transparent 45%
    ),
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.55) 18%,
      transparent 38%,
      rgba(0, 194, 255, 0.16) 60%,
      transparent 82%
    );

  opacity: 0.55;
  filter: blur(0.2px);
  transform: translate3d(0, 0, 0);
  animation: navSheen 6.5s ease-in-out infinite;
}

@keyframes navSheen {
  0% {
    transform: translateX(-10%) rotate(0.5deg);
    opacity: 0.4;
  }
  50% {
    transform: translateX(10%) rotate(-0.5deg);
    opacity: 0.65;
  }
  100% {
    transform: translateX(-10%) rotate(0.5deg);
    opacity: 0.4;
  }
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.nav-toggle:hover::after {
  opacity: 1;
}

.nav-toggle:active {
  transform: translateY(0) scale(0.98);
}

body.nav-open .nav-toggle {
  transform: rotate(-2deg);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.16),
    0 0 0 6px var(--accent-cyan-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Premium hamburger lines */
.nav-toggle-lines {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  border-radius: 999px;

  /* subtle “ink” gradient instead of flat */
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.95),
    rgba(17, 17, 17, 0.7)
  );

  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;

  transition:
    background 200ms ease,
    transform 520ms var(--ease-liquid);
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;

  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.95),
    rgba(17, 17, 17, 0.7)
  );

  transition:
    transform 520ms var(--ease-liquid),
    top 520ms var(--ease-liquid),
    opacity 220ms ease;
}

.nav-toggle-lines::before {
  top: -7px;
}
.nav-toggle-lines::after {
  top: 7px;
}

/* When open: premium morph into X */
body.nav-open .nav-toggle {
  transform: translateY(-1px) rotate(-2deg);
}

body.nav-open .nav-toggle-lines {
  background: transparent;
}

body.nav-open .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg) scaleX(1.06);
}

body.nav-open .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg) scaleX(1.06);
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2000;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-liquid);
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer */
[hidden] {
  display: none !important;
}

/* Drawer overlay container (always fixed overlay) */
.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2100;
  display: grid;
  place-items: start end;
  padding: 1rem;

  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-liquid);
}

body.nav-open .nav-mobile {
  opacity: 1;
  pointer-events: auto;
}

/* Panel animates independently */
.nav-mobile-inner {
  width: min(420px, calc(100vw - 1.25rem));
  border-radius: 18px;
  padding: 1rem;

  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);

  transform: translateX(14px);
  opacity: 0;
  transition: transform 320ms var(--ease-liquid), opacity 220ms var(--ease-liquid);

  /* IMPORTANT: no scrolling for the menu */
  overflow: hidden;
}

.nav-mobile-inner::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(
      800px circle at 15% 15%,
      rgba(255, 255, 255, 0.8),
      transparent 55%
    ),
    radial-gradient(
      600px circle at 80% 30%,
      rgba(0, 194, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.45) 18%,
      transparent 40%
    );

  filter: blur(24px);
  opacity: 0.85;

  animation: navMenuSheen 8s ease-in-out infinite;
}

@keyframes navMenuSheen {
  0% {
    transform: translate(-6%, -2%) rotate(0.4deg);
  }
  50% {
    transform: translate(6%, 2%) rotate(-0.4deg);
  }
  100% {
    transform: translate(-6%, -2%) rotate(0.4deg);
  }
}

.nav-mobile-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  border-radius: inherit;
}

body.nav-open .nav-mobile-inner {
  transform: translateX(0);
  opacity: 1;
}

.nav-mobile-inner > * {
  position: relative;
  z-index: 1;
}

.nav-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;

  padding: 0.25rem 0.25rem 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 0.9rem;
}

.nav-mobile-title {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  opacity: 0.92;
}

.nav-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;

  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);

  cursor: pointer;
  transition:
    transform 240ms var(--ease-liquid),
    box-shadow 240ms var(--ease-liquid);
}

.nav-close:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.12),
    0 0 0 6px var(--accent-cyan-soft);
}

.nav-close:active {
  transform: translateY(0) scale(0.98);
}

.nav-mobile-links {
  display: grid;
  gap: 0.5rem;
  padding: 0.25rem;
}

.nav-mobile-links a {
  padding: 1rem 1.1rem;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);

  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition:
    transform 280ms var(--ease-liquid),
    box-shadow 280ms var(--ease-liquid),
    background 280ms var(--ease-liquid);
}

.nav-mobile-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.18),
    0 0 0 6px var(--accent-cyan-soft);
}

.nav-mobile-links a:active {
  transform: translateY(0) scale(0.99);
}

/* Mobile breakpoint: hide desktop nav, show burger */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }
}

@media (min-width: 901px) {
  .nav-overlay,
  .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 450px) {
  .nav-mobile {
    padding: 0.75rem;
  }
  .nav-mobile-inner {
    width: calc(100vw - 1.5rem);
    border-radius: 20px;
  }
}

/* Scroll lock when menu is open */
body.nav-open {
  overflow: hidden;
}

nav a {
  position: relative;
  margin-left: 1.5rem;
  padding: 0.25rem 0;

  text-decoration: none;
  color: #333;
  font-size: 0.9rem;

  opacity: 0.8;

  transition:
    opacity 0.2s ease,
    transform 0.2s var(--ease-liquid),
    color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;

  width: 100%;
  height: 2px;

  background: var(--accent-cyan);
  opacity: 0.4;

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.25s var(--ease-liquid);
}

nav a:hover {
  opacity: 1;
  color: var(--text-dark);
  transform: translateY(-1px);
}

nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;

  min-height: 70vh;
  padding: 6rem 3rem;

  color: var(--text-light);
  overflow: hidden;
}

/* Ensure content is above video */
.hero > * {
  position: relative;
  z-index: 3;
}

/* ===== VIDEO BACKGROUND ===== */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  /* premium softening */
  filter: contrast(1.05) saturate(0.9) brightness(0.95);
  transform: translateZ(0);
}

/* Dark readability gradient */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.65),
    rgba(20, 20, 20, 0.75)
  );
}

/* Subtle polish / vignette */
.hero-bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background: radial-gradient(
    600px circle at 70% 30%,
    rgba(255, 255, 255, 0.18),
    transparent 60%
  );
}

/* ---------- BUTTONS ---------- */
.btn {
  padding: 0.75rem 1.6rem;
  margin-top: 0.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;

  background: transparent;

  /* interaction variables */
  --press: 1;

  transform: scale(var(--press));
  transition: transform 0.25s var(--ease-liquid);
}

.btn.primary {
  background: linear-gradient(180deg, #00c2ff, #009fd6);
  color: #001018;
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-image {
  height: 25rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;

  /* fallback if video fails */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.03));
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  /* premium: soften it so text/UI still feels clean */
  filter: contrast(1.05) saturate(0.9) brightness(1.02);
  transform: translateZ(0);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* subtle shading so it looks “designed” */
  background:
    radial-gradient(
      600px circle at 20% 20%,
      rgba(255, 255, 255, 0.16),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.02));
}

/* ---------- SECTIONS ---------- */
section {
  padding: 5rem 3rem;
  background: transparent;
}

/* section:not(.hero):nth-of-type(even) {
  background: rgba(0, 0, 0, 0.025);
} */

/* ---------- ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.info-card p {
  margin-bottom: 0;
}

/* ---------- SERVICES ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;

  padding: 1.5rem; /* 👈 THIS adds spacing inside */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-image {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Service card links */
.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: contrast(1.05) saturate(0.9) brightness(0.9);
  transform: translateZ(0);

  transition: transform 700ms var(--ease-liquid);
}

.service-video-overlay {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      400px circle at 20% 20%,
      rgba(255, 255, 255, 0.15),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.25));

  pointer-events: none;
}

/* ---------- PROJECTS ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.project-card {
  min-height: 90px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.projects h2 {
  margin-bottom: 1.5rem;
}

.projects .btn {
  margin-bottom: 3rem;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

/* Image styling */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps card size consistent */
  display: block;
  transition: transform 0.6s var(--ease-liquid);
}

/* Subtle zoom on hover */
.gallery-item:hover img {
  transform: scale(1.05);
}

.case-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  width: 100vw;
  height: 100vh;
}

.case-fullscreen.is-open {
  display: block;
}

.case-full-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#caseFullscreenImg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.case-full-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

/* ---------- MULTI SECTION EDITS ---------- */

.services h2,
.projects h2,
.gallery h2 {
  margin-bottom: 1rem;
}

.services > p,
.projects > p {
  margin-bottom: 2.5rem;
}

.services h2::after,
.projects h2::after,
.gallery h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 99px;
  background: var(--accent-cyan);
  opacity: 0.85;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero,
  .about,
  .service-grid,
  .gallery-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}