/*
 * "Web Solutions" page — a creative showcase of the kinds of systems the
 * studio builds (e-commerce, inventory, management dashboards, real-time
 * platforms, mobile-connected apps, portfolios). Own .websol-page scope,
 * own class names — editing this page can never affect any other page.
 *
 * Same ground rule as the other GSAP pages in this theme: the site ships
 * a pre-compiled, purged Tailwind build, so any layout not already proven
 * elsewhere in the theme is written here as real hand-authored CSS rather
 * than a guessed-at Tailwind class.
 */

.websol-page {
  overflow-x: clip;
}

.websol-section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.websol-reveal {
  opacity: 1;
}
.js-gsap-ready .websol-reveal {
  opacity: 0;
  transform: translateY(26px);
}

/* ---------------------------------------------------------------------
   Hero — shape-shifting icon stack standing in for "one platform, many
   kinds of systems": a set of icon glyphs cross-fade/scale in place.
   ------------------------------------------------------------------- */

.websol-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 85% 0%, hsl(var(--accent) / 0.14), transparent 60%),
    radial-gradient(50% 70% at 0% 40%, hsl(var(--accent) / 0.10), transparent 60%);
}
.websol-hero-inner {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .websol-hero-inner { padding-top: 4.5rem; padding-bottom: 5.5rem; }
}

.websol-glow-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  background: radial-gradient(circle, hsl(var(--accent) / 0.32), transparent 70%);
  pointer-events: none;
  will-change: transform;
}
.websol-glow-orb--1 { width: 380px; height: 380px; top: -120px; right: -100px; }
.websol-glow-orb--2 { width: 320px; height: 320px; bottom: -140px; left: -80px; }

.websol-hero-title { max-width: 32rem; }
.websol-hero-sub { max-width: 34rem; font-size: 1.0625rem; }
@media (min-width: 768px) {
  .websol-hero-sub { font-size: 1.1875rem; }
}

.websol-shape-stage {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card));
  box-shadow: 0 30px 60px -20px hsl(0 0% 0% / 0.22);
}
@media (min-width: 768px) {
  .websol-shape-stage { width: 260px; height: 260px; }
}
.websol-shape-ring {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  border: 1.5px dashed hsl(var(--accent) / 0.35);
  animation: websol-ring-spin 18s linear infinite;
}
@keyframes websol-ring-spin {
  to { transform: rotate(360deg); }
}
.websol-shape-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--accent));
}
.websol-shape-icon svg,
.websol-shape-icon i {
  width: 64px;
  height: 64px;
}
.websol-shape-label {
  position: absolute;
  bottom: -2.25rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* ---------------------------------------------------------------------
   Category explorer — left nav list + right content panel, crossfaded
   by GSAP. Falls back gracefully with no JS: the first panel is simply
   visible, others sit in the DOM (good for SEO/crawlers) and every nav
   item is a real, focusable button that still works via plain-JS click
   handling even if GSAP fails to load.
   ------------------------------------------------------------------- */

.websol-explorer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .websol-explorer {
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.websol-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .websol-nav-list { position: sticky; top: 6rem; }
}

.websol-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--card));
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.websol-nav-item:hover {
  border-color: hsl(var(--accent) / 0.5);
  transform: translateX(3px);
}
.websol-nav-item[aria-selected="true"] {
  border-color: hsl(var(--accent));
  background: hsl(var(--accent) / 0.08);
  color: hsl(var(--accent));
}
.websol-nav-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}
.websol-nav-item[aria-selected="true"] .websol-nav-icon {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.websol-nav-arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.websol-nav-item[aria-selected="true"] .websol-nav-arrow,
.websol-nav-item:hover .websol-nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

.websol-panel-stage {
  position: relative;
  min-height: 460px;
}

.websol-panel {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  padding: 2rem;
}
@media (min-width: 768px) {
  .websol-panel { padding: 2.5rem; }
}
/* Once JS takes over, panels stack absolutely so GSAP can crossfade
   between them without a layout jump; without JS they simply flow one
   after another as a normal, fully-readable list. */
.js-gsap-ready .websol-panel {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
}
.js-gsap-ready .websol-panel.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
}
.websol-panel + .websol-panel {
  margin-top: 1.25rem;
}

.websol-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.websol-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .websol-feature-list { grid-template-columns: 1fr 1fr; }
}
.websol-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}
.websol-feature-item i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: hsl(var(--accent));
}

.websol-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

/* ---------------------------------------------------------------------
   Real-time flow diagram — an animated dashed path with a moving pulse,
   plus a small illustrative "live dashboard" card with ticking numbers.
   Clearly labelled as illustrative, not real telemetry.
   ------------------------------------------------------------------- */

.websol-flow {
  position: relative;
}
.websol-flow-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.websol-flow-path {
  fill: none;
  stroke: hsl(var(--border));
  stroke-width: 2;
  stroke-dasharray: 6 8;
}
.websol-flow-pulse {
  fill: hsl(var(--accent));
  filter: drop-shadow(0 0 6px hsl(var(--accent) / 0.8));
}
.websol-flow-node {
  fill: hsl(var(--card));
  stroke: hsl(var(--border));
  stroke-width: 1.5;
}
.websol-flow-node-icon {
  color: hsl(var(--accent));
}
.websol-flow-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  fill: hsl(var(--muted-foreground));
}

.websol-live-card {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  padding: 1.5rem;
}
.websol-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid hsl(var(--border));
}
.websol-live-row:last-child { border-bottom: none; }
.websol-live-number {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--accent));
}
.websol-live-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------
   CTA — matches the neon-lit button + rotating gradient backdrop used
   on the other GSAP pages in this theme.
   ------------------------------------------------------------------- */

.websol-cta {
  position: relative;
  overflow: hidden;
  background: hsl(var(--foreground) / 0.02);
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .websol-cta { padding: 6rem 0; }
}
.dark .websol-cta { background: hsl(0 0% 8%); }
.websol-cta-ribbon-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: conic-gradient(from 0deg, hsl(var(--accent) / 0.16), transparent 30%, hsl(var(--accent) / 0.10) 60%, transparent 85%);
  animation: websol-rotate 22s linear infinite;
  pointer-events: none;
}
@keyframes websol-rotate {
  to { transform: rotate(360deg); }
}
.websol-cta-content {
  position: relative;
  z-index: 1;
}
.websol-glow-btn {
  position: relative;
  box-shadow: 0 0 0 0 hsl(var(--accent) / 0.6);
  transition: box-shadow 0.35s ease, transform 0.25s ease;
}
.websol-glow-btn:hover {
  box-shadow: 0 0 22px 4px hsl(var(--accent) / 0.55), 0 0 60px 10px hsl(var(--accent) / 0.25);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .websol-glow-orb,
  .websol-cta-ribbon-bg,
  .websol-shape-ring,
  .websol-flow-pulse {
    animation: none !important;
  }
  .js-gsap-ready .websol-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .js-gsap-ready .websol-panel {
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 1.25rem;
  }
}
