/* ==========================================================================
   Liso Technologies — shared styles
   Tailwind handles most utilities via CDN. This file holds the things
   Tailwind doesn't: keyframe animations, glassmorphism helpers,
   gradient text, custom scrollbar, and scroll-reveal states.
   ========================================================================== */

:root {
  --bg:        #081426;
  --bg-soft:   #0b1b32;
  --accent:    #2563eb; /* blue-600 */
  --accent-2:  #7c3aed; /* violet-600 */
  --accent-3:  #38bdf8; /* sky-400 */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: #e5eefc;
  overflow-x: hidden;
}

/* Headings get the tighter, heavier display weight */
h1, h2, h3, h4, .font-display {
  font-family: 'Roboto', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Background — layered radial glows that sit behind everything
   -------------------------------------------------------------------------- */
.bg-aurora {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 20, 38, 0.96), rgba(11, 27, 50, 0.98)),
    var(--bg);
}

.bg-aurora::before,
.bg-aurora::after {
  content: "";
  position: absolute;
  inset: auto;
  filter: blur(32px);
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}

.bg-aurora::before {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  top: 4rem;
  clip-path: polygon(50% 0%, 100% 28%, 82% 100%, 18% 100%, 0 28%);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(124, 58, 237, 0.16));
  animation: drift-shape-a 22s ease-in-out infinite alternate;
}

.bg-aurora::after {
  width: 34rem;
  height: 18rem;
  right: -10rem;
  top: 16rem;
  clip-path: polygon(0 18%, 78% 0%, 100% 82%, 18% 100%);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(124, 58, 237, 0.14));
  animation: drift-shape-b 26s ease-in-out infinite alternate;
}

body[data-page="home"] .bg-aurora {
  background:
    linear-gradient(145deg, rgba(37,99,235,0.20) 0%, transparent 28%),
    linear-gradient(325deg, rgba(124,58,237,0.12) 0%, transparent 26%),
    radial-gradient(70rem 22rem at 50% 0%, rgba(37, 99, 235, 0.10), transparent 72%),
    var(--bg);
}
body[data-page="home"] .bg-aurora::before {
  clip-path: polygon(50% 0%, 100% 28%, 82% 100%, 18% 100%, 0 28%);
}
body[data-page="home"] .bg-aurora::after {
  clip-path: polygon(0 18%, 78% 0%, 100% 82%, 18% 100%);
}
body[data-page="about"] .bg-aurora {
  background:
    linear-gradient(115deg, rgba(37,99,235,0.16) 0%, transparent 22%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 22px),
    radial-gradient(52rem 18rem at 100% 0%, rgba(124, 58, 237, 0.10), transparent 70%),
    var(--bg);
}
body[data-page="about"] .bg-aurora::before {
  width: 24rem;
  height: 10rem;
  left: -6rem;
  top: 8rem;
  clip-path: polygon(0 24%, 100% 0%, 82% 100%, 18% 100%);
  transform: rotate(-12deg);
}
body[data-page="about"] .bg-aurora::after {
  width: 30rem;
  height: 12rem;
  right: -10rem;
  top: 14rem;
  clip-path: polygon(18% 0%, 100% 24%, 82% 100%, 0% 76%);
  transform: rotate(10deg);
}
body[data-page="services"] .bg-aurora {
  background:
    linear-gradient(180deg, rgba(37,99,235,0.12) 0%, transparent 18%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 90px),
    linear-gradient(135deg, rgba(124,58,237,0.10) 0%, transparent 26%),
    var(--bg);
}
body[data-page="services"] .bg-aurora::before {
  width: 26rem;
  height: 26rem;
  left: -8rem;
  top: 4rem;
  border-radius: 1rem;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
body[data-page="services"] .bg-aurora::after {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: 18rem;
  border-radius: 1rem;
  clip-path: polygon(20% 0%, 80% 0%, 100% 80%, 0% 100%);
}
body[data-page="contact"] .bg-aurora {
  background:
    linear-gradient(90deg, rgba(124,58,237,0.10) 0%, transparent 16%),
    linear-gradient(270deg, rgba(37,99,235,0.10) 0%, transparent 18%),
    radial-gradient(50rem 18rem at 50% 100%, rgba(37, 99, 235, 0.08), transparent 72%),
    var(--bg);
}
body[data-page="contact"] .bg-aurora::before {
  width: 20rem;
  height: 20rem;
  left: -4rem;
  top: 10rem;
  clip-path: polygon(50% 0%, 100% 30%, 90% 100%, 10% 100%, 0 30%);
  transform: rotate(16deg);
}
body[data-page="contact"] .bg-aurora::after {
  width: 24rem;
  height: 24rem;
  right: -8rem;
  top: 8rem;
  clip-path: polygon(18% 0%, 100% 18%, 82% 100%, 0 82%);
  transform: rotate(-12deg);
}

.scene-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

.orb-3d {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.18) 18%, rgba(20,184,166,0.28) 42%, rgba(6,182,212,0.10) 64%, transparent 72%);
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.22), inset 0 0 30px rgba(255,255,255,0.15);
  filter: saturate(140%);
  transform: translate3d(calc(var(--px, 0px) * 0.12), calc(var(--py, 0px) * 0.12), 0);
}

.panel-3d {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(10deg) rotateY(-14deg) translateZ(0);
  box-shadow: 0 30px 80px -36px rgba(6, 182, 212, 0.35);
}

.panel-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent 36%, rgba(255,255,255,0.04));
  pointer-events: none;
}

.grid-halo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 82%);
  opacity: 0.24;
}

.particle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.95;
}

.particle-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Glassmorphism
   -------------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.glass-strong {
  background: rgba(11, 27, 50, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.glass-card {
  background: rgba(8, 20, 38, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.40);
  box-shadow: 0 20px 50px -20px rgba(37, 99, 235, 0.25);
}

/* --------------------------------------------------------------------------
   Gradient text + gradient borders
   -------------------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(120deg, var(--accent-2), var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-ring {
  position: relative;
}
.gradient-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, var(--accent-2), var(--accent), var(--accent-3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gradient-ring:hover::before { opacity: 1; }

/* --------------------------------------------------------------------------
   Focus section 3D visuals
   -------------------------------------------------------------------------- */
.focus-visual {
  position: relative;
  height: 13rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.focus-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 28%),
    linear-gradient(315deg, rgba(37,99,235,0.10), transparent 44%);
  pointer-events: none;
}
.focus-visual::after {
  content: "";
  position: absolute;
  inset: auto 12% 8% 12%;
  height: 18%;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(15,23,42,0.68), rgba(15,23,42,0));
  filter: blur(14px);
  opacity: 1;
}
.focus-orb,
.focus-panel,
.focus-chip,
.focus-slab,
.focus-node,
.focus-ring,
.focus-cloud,
.focus-bar,
.focus-arrow,
.focus-grid,
.focus-pod,
.focus-stack {
  position: absolute;
  display: block;
  pointer-events: none;
}
.focus-orb {
  border-radius: 9999px;
  filter: blur(0.2px);
}
.focus-orb-lg {
  width: 4.9rem;
  height: 4.9rem;
  left: 1.1rem;
  top: 1rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.92), rgba(96,165,250,0.34) 30%, rgba(37,99,235,0.12) 58%, transparent 73%);
  box-shadow: 0 18px 34px rgba(37,99,235,0.24);
  animation: float 7s ease-in-out infinite;
}
.focus-orb-md {
  width: 2.1rem;
  height: 2.1rem;
  left: 5.7rem;
  top: 6rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(124,58,237,0.30) 30%, rgba(124,58,237,0.12) 62%, transparent 74%);
  animation: float 6s ease-in-out infinite;
}
.focus-orb-sm {
  width: 1.5rem;
  height: 1.5rem;
  left: 8.3rem;
  top: 3rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.92), rgba(56,189,248,0.26) 34%, rgba(56,189,248,0.10) 66%, transparent 76%);
  animation: float 5.6s ease-in-out infinite;
}
.focus-orb-accent {
  width: 4rem;
  height: 4rem;
  right: 1.2rem;
  top: 1.1rem;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(236,72,153,0.25) 30%, rgba(124,58,237,0.10) 60%, transparent 76%);
  box-shadow: 0 18px 36px rgba(124,58,237,0.18);
  animation: float 8s ease-in-out infinite;
}
.focus-panel {
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.30), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 22px 42px rgba(15,23,42,0.30);
}
.focus-panel-primary {
  width: 6rem;
  height: 4rem;
  right: 1.2rem;
  bottom: 1.7rem;
  transform: rotate(-14deg) translateZ(0);
  animation: float 6.8s ease-in-out infinite;
}
.focus-panel-secondary {
  width: 4rem;
  height: 2.7rem;
  left: 3rem;
  bottom: 1.1rem;
  transform: rotate(16deg) translateZ(0);
  animation: float 7.4s ease-in-out infinite;
}
.focus-chip {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.16));
  border: 1px solid rgba(255,255,255,0.16);
}
.focus-chip-a { left: 2rem; top: 1.2rem; transform: rotate(20deg); }
.focus-chip-b { right: 3rem; bottom: 3rem; transform: rotate(-18deg); }
.focus-slab {
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.26), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 32px rgba(15,23,42,0.26);
}
.focus-slab-a {
  width: 6.4rem;
  height: 2rem;
  left: 1rem;
  top: 2rem;
  transform: rotate(-18deg);
  animation: float 7.2s ease-in-out infinite;
}
.focus-slab-b {
  width: 3.8rem;
  height: 1.4rem;
  right: 1.5rem;
  bottom: 2rem;
  transform: rotate(22deg);
  animation: float 6.2s ease-in-out infinite;
}
.focus-node {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(56,189,248,0.40));
  box-shadow: 0 0 0 8px rgba(56,189,248,0.10);
}
.focus-node-a { left: 6.6rem; top: 2.2rem; }
.focus-node-b { right: 3.6rem; bottom: 4.4rem; }
.focus-ring {
  inset: 16% 20%;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.10), 0 0 45px rgba(56,189,248,0.14);
}
.focus-cloud {
  left: 1.6rem;
  top: 3.2rem;
  width: 6rem;
  height: 3.2rem;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 28% 60%, rgba(255,255,255,0.96) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.98) 0 23%, transparent 24%),
    radial-gradient(circle at 72% 60%, rgba(255,255,255,0.94) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(96,165,250,0.48), rgba(124,58,237,0.24));
  filter: blur(0.1px);
  box-shadow: 0 18px 38px rgba(37,99,235,0.20);
  animation: float 6.8s ease-in-out infinite;
}
.focus-cloud-alt {
  left: auto;
  right: 2rem;
  top: 5.2rem;
  width: 4.4rem;
  height: 2.2rem;
  opacity: 0.88;
  transform: scale(0.92);
}
.focus-bar {
  width: 1rem;
  left: 50%;
  bottom: 1.3rem;
  transform-origin: center bottom;
  border-radius: 9999px 9999px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(37,99,235,0.28));
  box-shadow: 0 10px 18px rgba(37,99,235,0.16);
}
.focus-bar-a { height: 2.4rem; margin-left: -2.2rem; transform: translateX(-50%) scaleY(1.1); }
.focus-bar-b { height: 4.2rem; margin-left: 0rem; transform: translateX(-50%); }
.focus-bar-c { height: 3rem; margin-left: 2.2rem; transform: translateX(-50%) scaleY(0.92); }
.focus-arrow {
  left: 50%;
  top: 2.2rem;
  width: 4.4rem;
  height: 4.4rem;
  transform: translateX(-50%) rotate(45deg);
  border-top: 2px solid rgba(255,255,255,0.34);
  border-right: 2px solid rgba(255,255,255,0.34);
  filter: drop-shadow(0 8px 16px rgba(37,99,235,0.18));
}
.focus-grid {
  inset: 0.8rem;
  border-radius: 1rem;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 84%);
  opacity: 0.60;
}
.focus-pod {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 34px rgba(15,23,42,0.28);
}
.focus-pod-a { left: 2rem; bottom: 1.6rem; transform: rotate(-12deg); }
.focus-pod-b { right: 2rem; top: 2rem; transform: rotate(16deg); }
.focus-stack {
  width: 4.8rem;
  height: 1.05rem;
  left: 50%;
  border-radius: 9999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(96,165,250,0.30), rgba(124,58,237,0.22));
  box-shadow: 0 14px 28px rgba(37,99,235,0.18);
}
.focus-stack-a { top: 2rem; }
.focus-stack-b { top: 4rem; width: 5rem; opacity: 0.88; }
.focus-stack-c { top: 6rem; width: 3.8rem; opacity: 0.76; }

.focus-visual-design {
  background:
    radial-gradient(circle at 78% 18%, rgba(236,72,153,0.22), transparent 26%),
    radial-gradient(circle at 22% 78%, rgba(37,99,235,0.18), transparent 30%),
    linear-gradient(135deg, rgba(15,23,42,0.72), rgba(30,41,59,0.90));
}
.focus-visual-design::after {
  background: radial-gradient(circle, rgba(15,23,42,0.75), rgba(15,23,42,0));
}
.focus-visual-design .focus-panel-primary {
  background: linear-gradient(145deg, rgba(255,255,255,0.34), rgba(255,255,255,0.08));
}
.focus-visual-design .focus-panel-secondary {
  background: linear-gradient(145deg, rgba(59,130,246,0.72), rgba(124,58,237,0.24));
}
.focus-visual-design .focus-chip-a { box-shadow: 0 0 0 8px rgba(236,72,153,0.08); }
.focus-visual-design .focus-chip-b { box-shadow: 0 0 0 8px rgba(37,99,235,0.08); }

.focus-visual-engineering {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.78), rgba(8,15,27,0.94)),
    radial-gradient(circle at 50% 0%, rgba(56,189,248,0.14), transparent 34%);
}
.focus-visual-engineering::after {
  background: radial-gradient(circle, rgba(15,23,42,0.82), rgba(15,23,42,0));
}
.focus-visual-engineering .focus-slab-a {
  background: linear-gradient(145deg, rgba(59,130,246,0.72), rgba(255,255,255,0.08));
}
.focus-visual-engineering .focus-slab-b {
  background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(15,23,42,0.08));
}
.focus-visual-engineering .focus-node-a,
.focus-visual-engineering .focus-node-b {
  box-shadow: 0 0 0 8px rgba(59,130,246,0.12);
}

.focus-visual-cloud {
  background:
    linear-gradient(180deg, rgba(13,18,32,0.82), rgba(11,20,36,0.92)),
    radial-gradient(circle at 70% 20%, rgba(56,189,248,0.16), transparent 28%);
}
.focus-visual-cloud::after {
  background: radial-gradient(circle, rgba(15,23,42,0.80), rgba(15,23,42,0));
}
.focus-visual-cloud .focus-ring {
  border-color: rgba(125,211,252,0.28);
}
.focus-visual-cloud .focus-cloud {
  background:
    radial-gradient(circle at 28% 60%, rgba(255,255,255,0.98) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 42%, rgba(255,255,255,0.99) 0 23%, transparent 24%),
    radial-gradient(circle at 72% 60%, rgba(255,255,255,0.96) 0 16%, transparent 17%),
    linear-gradient(135deg, rgba(56,189,248,0.52), rgba(96,165,250,0.22));
}
.focus-visual-cloud .focus-orb-accent {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.92), rgba(56,189,248,0.24) 30%, rgba(37,99,235,0.10) 60%, transparent 76%);
}

.focus-visual-growth {
  background:
    linear-gradient(180deg, rgba(15,23,42,0.78), rgba(10,18,32,0.94)),
    radial-gradient(circle at 50% 18%, rgba(124,58,237,0.16), transparent 32%);
}
.focus-visual-growth::after {
  background: radial-gradient(circle, rgba(15,23,42,0.84), rgba(15,23,42,0));
}
.focus-visual-growth .focus-bar-a {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(56,189,248,0.26));
}
.focus-visual-growth .focus-bar-b {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(37,99,235,0.34));
}
.focus-visual-growth .focus-bar-c {
  background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(124,58,237,0.30));
}
.focus-visual-growth .focus-arrow {
  border-top-color: rgba(255,255,255,0.40);
  border-right-color: rgba(255,255,255,0.40);
}

.focus-visual-automation {
  background:
    linear-gradient(180deg, rgba(14,20,35,0.78), rgba(8,15,27,0.95)),
    radial-gradient(circle at 50% 24%, rgba(37,99,235,0.16), transparent 30%);
}
.focus-visual-automation::after {
  background: radial-gradient(circle, rgba(15,23,42,0.84), rgba(15,23,42,0));
}
.focus-visual-automation .focus-grid {
  opacity: 0.72;
}
.focus-visual-automation .focus-pod-a {
  background: linear-gradient(145deg, rgba(59,130,246,0.32), rgba(255,255,255,0.06));
}
.focus-visual-automation .focus-pod-b {
  background: linear-gradient(145deg, rgba(124,58,237,0.34), rgba(255,255,255,0.06));
}

.focus-visual-intelligence {
  background:
    linear-gradient(180deg, rgba(12,18,32,0.80), rgba(8,15,27,0.95)),
    radial-gradient(circle at 20% 22%, rgba(236,72,153,0.14), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(56,189,248,0.14), transparent 26%);
}
.focus-visual-intelligence::after {
  background: radial-gradient(circle, rgba(15,23,42,0.84), rgba(15,23,42,0));
}
.focus-visual-intelligence .focus-stack-a {
  background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(236,72,153,0.28), rgba(124,58,237,0.18));
}
.focus-visual-intelligence .focus-stack-b {
  background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(56,189,248,0.30), rgba(37,99,235,0.20));
}
.focus-visual-intelligence .focus-stack-c {
  background: linear-gradient(90deg, rgba(255,255,255,0.88), rgba(148,163,184,0.22), rgba(56,189,248,0.14));
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  background: linear-gradient(120deg, #2563eb, #7c3aed);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(37, 99, 235, 0.70);
}

/* --------------------------------------------------------------------------
   Keyframe animations
   -------------------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float 9s ease-in-out infinite; }

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.animate-pulse-glow { animation: pulse-glow 5s ease-in-out infinite; }

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes aurora-pan {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  50%  { background-position: 20% 15%, 80% 10%, 55% 90%, 0 0; }
  100% { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
}
.bg-aurora {
  animation: aurora-pan 18s ease-in-out infinite;
}

@keyframes drift-shape-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(8vw, 10vh, 0) scale(1.15); }
}

@keyframes drift-shape-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-7vw, -8vh, 0) scale(1.18); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50%      { opacity: 0.58; transform: scale(1.08); }
}
.animate-glow-pulse { animation: glow-pulse 7s ease-in-out infinite; }

@keyframes ken-burns {
  0%   { transform: scale(1.02); }
  50%  { transform: scale(1.10); }
  100% { transform: scale(1.02); }
}
.animate-ken-burns { animation: ken-burns 16s ease-in-out infinite; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 28s linear infinite;
}

/* --------------------------------------------------------------------------
   Scroll reveal — set initial state, .is-visible is toggled by JS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* stagger helpers */
.reveal[data-delay="1"] { transition-delay: 0.10s; }
.reveal[data-delay="2"] { transition-delay: 0.20s; }
.reveal[data-delay="3"] { transition-delay: 0.30s; }
.reveal[data-delay="4"] { transition-delay: 0.40s; }
.reveal[data-delay="5"] { transition-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-float, .animate-float-slow, .animate-pulse-glow,
  .animate-gradient, .animate-marquee { animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Navbar scrolled state (toggled by JS)
   -------------------------------------------------------------------------- */
#navbar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease,
              border-color 0.4s ease, padding 0.3s ease;
}
#navbar.scrolled {
  background: rgba(8, 20, 38, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.22);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }

/* Compatibility overrides for older light-theme markup */
body .text-slate-900,
body .text-slate-800,
body .text-slate-700 {
  color: #f8fafc !important;
}
body .text-slate-600,
body .text-slate-500 {
  color: #cbd5e1 !important;
}
body .text-slate-400 {
  color: #94a3b8 !important;
}
body .text-slate-300 {
  color: #cbd5e1 !important;
}
body .text-slate-200 {
  color: #e2e8f0 !important;
}
body .border-slate-200 {
  border-color: rgba(255,255,255,0.08) !important;
}
body .bg-white {
  background-color: rgba(15, 23, 42, 0.72) !important;
}
body .bg-slate-50,
body .bg-slate-100 {
  background-color: rgba(8, 20, 38, 0.85) !important;
}
body .text-accent {
  color: #38bdf8 !important;
}
body .text-accent2 {
  color: #7c3aed !important;
}

/* Page transition helpers */
body.is-loading {
  opacity: 0;
  transform: scale(0.995);
}
body.is-ready {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
body.is-leaving {
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* --------------------------------------------------------------------------
   Custom scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-3));
  border-radius: 10px;
}

/* Logo — brighten dark original logo so it's visible on dark bg */
.logo-img {
  filter: brightness(0) invert(1);
}

/* Mobile menu transition */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobileMenu.open { max-height: 420px; }
