/* ===== SOLUTIONARIUM — Deep Glassmorphism / Premium Tech ===== */
:root {
  --teal: #14b8a6;
  --mint: #34d399;
  --deep: #0a0f1a;
  --white-03: rgba(255, 255, 255, 0.03);
  --white-1: rgba(255, 255, 255, 0.1);
}

/* Base typography */
body {
  font-family: 'Inter', sans-serif;
}

/* Hero */
.hero__layout {
  min-height: calc(100vh - 6rem);
}

/* Glassmorphism base */
.neu-glass {
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  background: var(--white-03);
  border: 1px solid var(--white-1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(0, 0, 0, 0.15);
  transition: border-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

/* Volumetric inner glow on cards */
.neu-glass-card:hover,
.process-step:hover {
  border-color: var(--teal);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), inset 0 0 24px rgba(0, 0, 0, 0.2), 0 0 30px rgba(20, 184, 166, 0.08);
}

/* ===== Bento Grid — Core capabilities ===== */
.bento-grid {
  display: grid;
}

.bento-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.35s ease;
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(20, 184, 166, 0.04) 50%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: 0;
}
.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, transparent, rgba(20, 184, 166, 0.08), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bento-card:hover {
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.2), 0 0 24px rgba(20, 184, 166, 0.12), 0 0 48px rgba(20, 184, 166, 0.06);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Navigation backlight glow (active state on scroll or hover) */
.nav-glow:focus-within,
.nav-glow:hover,
.nav-glow.nav-active {
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 0 40px rgba(20, 184, 166, 0.15), 0 0 80px rgba(52, 211, 153, 0.08);
  border-color: rgba(20, 184, 166, 0.25);
}

/* CTA Liquid Glow on hover */
.cta-liquid {
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.25);
}

.cta-liquid:hover {
  box-shadow: 0 0 40px rgba(20, 184, 166, 0.5), 0 0 80px rgba(52, 211, 153, 0.3);
  transform: scale(1.02);
}

/* Icon capsule: glass with colored drop-shadow */
.icon-capsule {
  background: var(--white-03);
  border: 1px solid var(--white-1);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.2);
}

.drop-shadow-glow {
  filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Process "Deep Hole" — inset shadow for depth */
.neu-deep {
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.neu-deep:hover {
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(20, 184, 166, 0.2);
}

/* Footer noise texture overlay */
.footer-noise {
  position: relative;
}

.footer-noise::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: 1rem;
}

/* Smooth tilt transition for cards */
.neu-glass-card,
.process-step {
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, border-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

/* Custom 5s bounce for floating spheres (via Tailwind config; ensure it applies) */
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.animate-bounce-slow {
  animation: bounce-slow 5s ease-in-out infinite;
}

/* Technical labels / data — JetBrains Mono is applied via utility classes in HTML */

/* Mobile: nav bar without blur — solid background for readability */
@media (max-width: 767px) {
  #main-nav.neu-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 15, 26, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  #nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background: rgba(10, 15, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  #main-nav.nav-open #nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  #nav-menu li a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
  }
}

@media (min-width: 768px) {
  #nav-toggle {
    display: none;
  }
}
