/* body.css - global and component styles moved from inline <style> blocks in index.html */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.brutalist-shadow { box-shadow: 8px 8px 0px 0px #000000; }
.brutalist-shadow-hover:hover { box-shadow: 12px 12px 0px 0px #00FFAA; transform: translate(-4px, -4px); }
.marquee-container { overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-block; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.text-outline { -webkit-text-stroke: 1px black; color: transparent; }
.perspective-card { perspective: 1000px; }
.perspective-inner { transition: transform 0.6s; transform-style: preserve-3d; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.bg-dot-pattern {
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.03;
}

@keyframes mesh-shift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, 2%); }
}

/* Add any other global styles you want to centralize here */

:root {
  --theme-color: rgb(26, 16, 78);
  /* convenience for utilities that need the raw rgb values */
  --theme-color-rgb: 26 16 78;
}

/* Small branded scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #ff007a rgba(26, 16, 78, 0.12);
}

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

*::-webkit-scrollbar-track {
  background: rgba(26, 16, 78, 0.08);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff007a, #2e5bff);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff2c90, #4a74ff);
}

/* Simple theme utility classes */
.bg-theme { background-color: var(--theme-color) !important; }
.text-theme { color: var(--theme-color) !important; }
.border-theme { border-color: var(--theme-color) !important; }

/* Example: semi-transparent background using the theme rgb */
.bg-theme-80 { background-color: rgba(var(--theme-color-rgb), 0.8) !important; }
.bg-theme-20 { background-color: rgba(var(--theme-color-rgb), 0.2) !important; }
.bg-theme-10 { background-color: rgba(var(--theme-color-rgb), 0.1) !important; }

/* Button styles */
.btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-primary {
  background-color: var(--theme-color);
  color: #ffffff;
  border: 2px solid var(--theme-color);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.btn-primary:focus { outline: none; box-shadow: 0 0 0 4px rgba(var(--theme-color-rgb), 0.12); }

@keyframes btnPulse {
  from { box-shadow: 0 6px 18px rgba(var(--theme-color-rgb), 0.12); transform: translateY(0) scale(1); }
  to { box-shadow: 0 18px 36px rgba(var(--theme-color-rgb), 0.18); transform: translateY(-4px) scale(1.02); }
}
.btn-primary:hover {
  animation: btnPulse 600ms ease-in-out forwards;
}

/* alternative subtle hover for small buttons */
.btn-primary.small:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--theme-color-rgb), 0.14); }

/* Fixed background overlay */
.bg-fixed-underlay { z-index: -50; position: fixed; inset: 0; pointer-events: none; overflow: hidden; }

/* Noise/texture overlay pattern */
.noise-overlay {
  background-image: url('data:image/svg+xml,%3Csvg viewBox=" 0="" 200="" 200"="" xmlns="http://www.w3.org/2000/svg" %3e%3cfilter="" id="noiseFilter" %3e%3cfeturbulence="" type="fractalNoise" basefrequency="0.65" numoctaves="3" stitchtiles="stitch" %3e%3c="" filter%3e%3crect="" width="100%25" height="100%25" filter="url(%23noiseFilter)" svg%3e');
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* Mesh shift gradient animation and container */
.mesh-gradient-bg {
  background: radial-gradient(at 0% 0%, #2E5BFF22 0px, transparent 50%), 
              radial-gradient(at 100% 0%, #ABABAB22 0px, transparent 50%), 
              radial-gradient(at 100% 100%, #2E5BFF11 0px, transparent 50%), 
              radial-gradient(at 0% 100%, #ABABAB11 0px, transparent 50%);
  animation: mesh-shift 20s ease-in-out infinite alternate;
  opacity: 0.4;
}

/* Hero section gradient overlay (theme-based) */
.hero-overlay-gradient {
  background: linear-gradient(to top, rgba(26,16,78,0.8), rgba(26,16,78,0));
}

/* Animation delay utilities */
.delay-500ms { animation-delay: 0.5s; }
.delay-1s { animation-delay: 1s; }
.delay-1500ms { animation-delay: 1.5s; }
.delay-2s { animation-delay: 2s; }
.delay-2500ms { animation-delay: 2.5s; }

/* Animation duration utilities */
.duration-8s { animation-duration: 8s; }
.duration-9s { animation-duration: 9s; }
.duration-10s { animation-duration: 10s; }
.duration-12s { animation-duration: 12s; }
.duration-14s { animation-duration: 14s; }
.duration-15s { animation-duration: 15s; }

/* Text decoration utilities */
.decoration-cyan { text-decoration-color: #00e5ff; }

/* Hero marketing context elements */
.marketing-bg-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(26, 16, 78, 0.15);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  border-radius: 999px;
  color: rgba(26, 16, 78, 0.42);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.marketing-bg-card p {
  margin: 0;
}

.marketing-bg-card .material-symbols-outlined {
  font-size: 16px;
}

.marketing-bg-icon .material-symbols-outlined {
  font-size: 110px;
}

@media (max-width: 768px) {
  .marketing-bg-card {
    display: none;
  }

  .marketing-bg-icon .material-symbols-outlined {
    font-size: 72px;
  }
}

/* Two-line auto logo strip */
.logo-marquee-wrap {
  display: grid;
  gap: 18px;
  opacity: 1;
}

.logo-marquee-row {
  overflow: hidden;
  white-space: nowrap;
}

.logo-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  min-width: max-content;
  animation: logo-scroll 24s linear infinite;
}

.logo-marquee-wrap:hover .logo-track {
  animation-play-state: paused;
}

.logo-marquee-row.reverse .logo-track {
  animation-direction: reverse;
}

.brand-logo {
  font-family: "Sora", sans-serif;
  font-size: clamp(24px, 2.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--logo-color, #1a104e);
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.brand-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

.logo-track .brand-logo:nth-child(6n+1) { --logo-color: #0f62fe; }
.logo-track .brand-logo:nth-child(6n+2) { --logo-color: #0f9d58; }
.logo-track .brand-logo:nth-child(6n+3) { --logo-color: #ea4335; }
.logo-track .brand-logo:nth-child(6n+4) { --logo-color: #f9ab00; }
.logo-track .brand-logo:nth-child(6n+5) { --logo-color: #7c3aed; }
.logo-track .brand-logo:nth-child(6n+6) { --logo-color: #1a104e; }

.logo-marquee-wrap:hover .brand-logo:not(:hover) {
  opacity: 0.35;
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Solutions slider (panel style) */
.solutions-slider {
  width: 100%;
  margin: 0;
  position: relative;
}

.solutions-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(340px, 34vw, 560px);
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.solutions-track::-webkit-scrollbar {
  display: none;
}

.solution-panel {
  --solution-bg: #ff6228;
  --solution-text: #fff4eb;
  min-height: 800px;
  padding: 54px 16px;
  border-right: 1px solid #d5d8dd;
  border-left: 1px solid #d5d8dd;
  background: #eceef1;
  color: #c4c8ce;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 360ms ease, color 360ms ease;
}

.solution-panel h4 {
  margin: 0 0 24px;
  font-family: "Sora", sans-serif;
  font-size: clamp(42px, 4.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.solution-panel p {
  max-width: 460px;
  margin: 0;
  font-size: clamp(20px, 1.5vw, 36px);
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.solution-cta {
  margin-top: 56px;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.28);
  background: #f3f3f3;
  color: #111;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease, transform 280ms ease, background 260ms ease;
}

.solution-panel.is-active {
  background: var(--solution-bg);
  color: var(--solution-text);
}

.solution-panel.is-active p,
.solution-panel.is-active .solution-cta {
  opacity: 1;
  transform: translateY(0);
}

.solution-panel.is-active .solution-cta:hover {
  background: #ffffff;
}

.solutions-nav {
  position: absolute;
  top: 26px;
  z-index: 5;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 0;
  background: #f2f2f2;
  color: #0e0e0e;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
}

.solutions-nav-left { left: 24px; }
.solutions-nav-right { right: 24px; }

@media (max-width: 900px) {
  .solutions-track {
    grid-auto-columns: 86vw;
  }

  .solution-panel {
    min-height: 560px;
    padding: 36px 24px;
  }

  .solution-panel h4 {
    font-size: clamp(34px, 11vw, 56px);
  }
}

/* Portfolio-style split slider */
.portfolio-slider {
  position: relative;
  min-height: 100vh;
  width: 100%;
  border-radius: 14px;
}

.portfolio-fullscreen {
  height: 100vh;
}

.portfolio-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.portfolio-slide.is-active {
  pointer-events: auto;
  z-index: 3;
}

.portfolio-half {
  min-height: 50vh;
  position: relative;
  overflow: hidden;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-slide .portfolio-image-left {
  transform: translateY(-105%);
}

.portfolio-slide .portfolio-image-right {
  transform: translateY(105%);
}

.portfolio-slide.is-active .portfolio-image-left,
.portfolio-slide.is-active .portfolio-image-right {
  transform: translateY(0);
}

.portfolio-image-left,
.portfolio-image-right {
  background-repeat: no-repeat;
  background-size: 200% 100%;
  border: 12px solid #f2f2f2;
}

.portfolio-image-left {
  border-right-width: 6px;
  background-position: left center;
}

.portfolio-image-right {
  border-left-width: 6px;
  background-position: right center;
}

.portfolio-overlay-content {
  position: absolute;
  left: 48px;
  bottom: 36px;
  z-index: 3;
}

.portfolio-cta {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, background-color 320ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.portfolio-cta .material-symbols-outlined {
  font-size: 38px;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), color 320ms ease;
}

.portfolio-cta:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  background: #f7f7f7;
}

.portfolio-cta:hover .material-symbols-outlined {
  transform: translateX(5px);
}

.portfolio-cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

@media (min-width: 900px) {
  .portfolio-slide {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-half {
    min-height: 100vh;
  }
}

@media (max-width: 899px) {
  .portfolio-image-left,
  .portfolio-image-right {
    background-size: cover;
    background-position: center;
  }
}
