/* WanaLike v7 — sticky premium navbar, purple identity, motion and SaaS project showcase */
:root {
  --wl-violet: #8b5cf6;
  --wl-violet-2: #a855f7;
  --wl-cyan: #22d3ee;
  --wl-blue: #2563eb;
  --wl-dark: #050814;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(168, 85, 247, .20), transparent 27%),
    radial-gradient(circle at 74% 4%, rgba(34, 211, 238, .11), transparent 28%),
    radial-gradient(circle at 100% 16%, rgba(139, 92, 246, .14), transparent 22%),
    linear-gradient(180deg, #05070f 0%, #09101d 100%);
}

/* Sticky, in-flow navbar: WanaChess-like behavior without fixed layout offset */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    radial-gradient(circle at 12% 0%, rgba(139, 92, 246, .18), transparent 35%),
    linear-gradient(180deg, rgba(6, 10, 23, .90), rgba(5, 10, 22, .72));
  border-bottom: 1px solid rgba(139, 92, 246, .20);
  box-shadow: inset 0 -1px 0 rgba(34, 211, 238, .07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(139, 92, 246, .10), transparent),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 100%, 38px 38px;
  opacity: .55;
}

.site-header.is-scrolled {
  background:
    radial-gradient(circle at 10% 0%, rgba(139, 92, 246, .20), transparent 32%),
    rgba(3, 8, 20, .92);
  border-bottom-color: rgba(34, 211, 238, .18);
  box-shadow: 0 12px 34px rgba(0,0,0,.32), 0 0 26px rgba(139, 92, 246, .08);
}

.nav-wrap { position: relative; }
.brand-logo { transition: transform .25s ease, filter .25s ease; }
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.06); filter: drop-shadow(0 0 18px rgba(139,92,246,.35)); }

.nav a {
  position: relative;
  padding: 10px 0;
  transition: color .22s ease, text-shadow .22s ease;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wl-cyan), var(--wl-violet));
  transition: left .22s ease, right .22s ease, opacity .22s ease;
  opacity: 0;
}

.nav a:hover::before,
.nav a.is-active::before,
.nav a[aria-current="page"]::before {
  left: 0;
  right: 0;
  opacity: 1;
}

.nav a:hover,
.nav a.is-active,
.nav a[aria-current="page"] {
  color: #fff;
  text-shadow: 0 0 18px rgba(139, 92, 246, .35);
}

.nav a.is-active::after { display: none; }

/* More WanaLike purple at the top without losing cyan identity */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 8%, rgba(139, 92, 246, .20), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(168, 85, 247, .12), transparent 28%);
  opacity: .72;
  z-index: -1;
}

.gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 42%, #8b5cf6 76%, #d946ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

h1, h2 { text-shadow: 0 0 24px rgba(139, 92, 246, .12); }

/* Motion */
.wl-reveal {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1);
}

.wl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .wl-reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* Custom product cards: less generic, more branded, with angled light rails */
.domain-card,
.story-card,
.tech-box,
.infographic-card,
.project-preview-card,
.mini-card,
.info-ribbon {
  border-radius: 24px 10px 24px 10px;
  position: relative;
}

.domain-card::after,
.story-card::after,
.infographic-card::after,
.project-preview-card::after,
.mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(34,211,238,.18), transparent 24%, transparent 72%, rgba(139,92,246,.20));
  opacity: .0;
  transition: opacity .25s ease;
}

.domain-card:hover::after,
.story-card:hover::after,
.infographic-card:hover::after,
.project-preview-card:hover::after,
.mini-card:hover::after { opacity: 1; }

.story-card:hover,
.domain-card:hover,
.infographic-card:hover,
.project-preview-card:hover {
  border-color: rgba(139, 92, 246, .42);
  box-shadow:
    0 24px 70px rgba(0,0,0,.42),
    0 0 34px rgba(139,92,246,.17),
    0 0 20px rgba(34,211,238,.10);
}

/* SaaS project showcase */
.project-preview-grid-three {
  gap: 26px;
  align-items: stretch;
}

.project-preview-card {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(148, 163, 184, .16);
  background:
    radial-gradient(circle at 20% 0%, rgba(139,92,246,.14), transparent 38%),
    linear-gradient(180deg, rgba(15,23,42,.78), rgba(5,10,24,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 55px rgba(0,0,0,.26);
  transform-style: preserve-3d;
  transition: transform .34s cubic-bezier(.2,.8,.2,1), border-color .34s ease, box-shadow .34s ease;
}

.project-preview-card:hover {
  transform: translateY(-10px) scale(1.018);
  border-color: rgba(139,92,246,.55);
  box-shadow:
    0 30px 85px rgba(0,0,0,.52),
    0 0 42px rgba(139,92,246,.22),
    0 0 24px rgba(34,211,238,.14);
}

.project-preview-shot {
  min-height: 238px;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  transform: translateZ(0);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .35s ease, opacity .35s ease;
}

.project-preview-card:hover .project-preview-shot {
  transform: scale(1.055);
  filter: saturate(1.15) contrast(1.06);
}

.project-preview-shot::after {
  left: 24px;
  bottom: 20px;
  border-color: rgba(139,92,246,.38);
  background: rgba(2,6,23,.72);
  box-shadow: 0 0 24px rgba(139,92,246,.20);
}

.project-preview-body {
  position: relative;
  min-height: 180px;
  background:
    linear-gradient(90deg, rgba(34,211,238,.04), transparent 45%),
    linear-gradient(180deg, rgba(2,6,23,.28), rgba(2,6,23,.08));
}

.project-preview-body h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-preview-body h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wl-cyan), var(--wl-violet));
  box-shadow: 0 0 16px rgba(139,92,246,.42);
}

.project-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34,211,238,.06);
  border: 1px solid rgba(34,211,238,.16);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.project-preview-card:hover .project-preview-link {
  transform: translateX(4px);
  background: rgba(139,92,246,.09);
  border-color: rgba(139,92,246,.32);
}

.project-preview-body::after {
  content: attr(data-stat);
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dff8ff;
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(139,92,246,.26);
  background: rgba(139,92,246,.08);
}

/* Live widget polish */
.live-widget-card {
  border-radius: 24px 10px 24px 10px;
  border-color: rgba(139,92,246,.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(139,92,246,.14), transparent 44%),
    rgba(8, 14, 28, .76);
}

.status-pill { border-color: rgba(139,92,246,.26); background: rgba(139,92,246,.08); }

/* Mobile */
@media (max-width: 760px) {
  .site-header { top: 0; }
  .nav-wrap { min-height: 72px; }
  .project-preview-card { min-height: auto; }
  .project-preview-shot { min-height: 190px; }
}
