/* ========== Vuedooh Technologies — bespoke styles ========== */

html { scroll-behavior: smooth; }
body { background: #070707; }

/* ---------- Ambient background ---------- */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.orb-a {
  width: 720px; height: 720px;
  top: -240px; left: -200px;
  background: radial-gradient(circle at 30% 30%, #d8ff3e 0%, rgba(216,255,62,0.0) 60%);
  opacity: 0.18;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-b {
  width: 640px; height: 640px;
  bottom: 10%; right: -180px;
  background: radial-gradient(circle at 50% 50%, #6b5bff 0%, rgba(107,91,255,0.0) 60%);
  opacity: 0.20;
  animation: drift2 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(60px,40px,0) scale(1.08); }
}
@keyframes drift2 {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-50px,-30px,0) scale(1.05); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 35%, transparent 75%);
}
.noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Nav ---------- */
#site-nav.scrolled .nav-shell {
  background: rgba(11,11,12,0.85);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px -20px rgba(0,0,0,0.6);
}
.logo-mark {
  box-shadow: 0 6px 18px -6px rgba(216,255,62,0.55);
}

/* ---------- Hero typography ---------- */
.hero-title {
  background: linear-gradient(180deg, #f6f5f1 0%, #d3d2cb 110%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Reusable bits ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(236,235,228,0.5);
}
.kicker::before {
  content: ""; display: inline-block;
  height: 6px; width: 6px; border-radius: 9999px;
  background: #d8ff3e;
  box-shadow: 0 0 10px rgba(216,255,62,0.7);
}

.chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  color: rgba(236,235,228,0.7);
  letter-spacing: 0.01em;
}

.footer-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(236,235,228,0.4);
  margin-bottom: 1rem;
}

/* ---------- Marquee ---------- */
.marquee {
  animation: marquee 40s linear infinite;
}
.marquee .dot { color: rgba(216,255,62,0.6); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Portfolio cards ---------- */
.portfolio-card {
  position: relative;
  display: block;
  border-radius: 1.75rem;
  overflow: hidden;
  background: rgba(17,17,20,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1),
              border-color 0.4s ease,
              box-shadow 0.5s ease;
  isolation: isolate;
}
.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9);
}
.portfolio-card .card-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.06), rgba(255,255,255,0) 55%);
  transition: opacity 0.5s ease;
}
.portfolio-card[data-tone="violet"]::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(155,128,255,0.35), rgba(155,128,255,0) 50%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px; border-radius: inherit;
  opacity: 0; transition: opacity 0.4s ease;
}
.portfolio-card[data-tone="amber"]::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(255,178,82,0.4), rgba(255,178,82,0) 55%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px; border-radius: inherit;
  opacity: 0; transition: opacity 0.4s ease;
}
.portfolio-card[data-tone="lime"]::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(216,255,62,0.55), rgba(216,255,62,0) 55%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px; border-radius: inherit;
  opacity: 0; transition: opacity 0.4s ease;
}
.portfolio-card:hover::before { opacity: 1; }

.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  height: 64px; width: 64px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #f6f5f1;
  transition: transform 0.5s ease, background 0.4s ease, color 0.4s ease;
}
.portfolio-card:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
}
.brand-fileza   { background: linear-gradient(135deg, rgba(155,128,255,0.18), rgba(155,128,255,0.04)); color: #c8bcff; }
.brand-kellasa  { background: linear-gradient(135deg, rgba(255,178,82,0.18), rgba(255,178,82,0.04));  color: #ffcb86; }
.brand-fairtabs { background: linear-gradient(135deg, rgba(216,255,62,0.18), rgba(216,255,62,0.04)); color: #d8ff3e; }

.visit-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #f6f5f1;
  font-size: 13px; font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease, transform 0.4s ease;
}
.portfolio-card:hover .visit-pill {
  background: #d8ff3e;
  color: #070707;
  transform: translateX(4px);
}

/* ---------- Approach tiles ---------- */
.approach-tile {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.0));
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s ease;
}
.approach-tile:hover {
  border-color: rgba(216,255,62,0.35);
  background: linear-gradient(180deg, rgba(216,255,62,0.05), rgba(255,255,255,0.0));
  transform: translateY(-2px);
}
.tile-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 38px;
  color: #d8ff3e;
  line-height: 1;
}
.tile-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f6f5f1;
}
.tile-body {
  margin-top: 0.65rem;
  color: rgba(236,235,228,0.65);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* ---------- CTA ---------- */
.cta-card {
  background: linear-gradient(135deg, #e6ff7a 0%, #d8ff3e 35%, #b8e02b 100%);
  border: 1px solid rgba(216,255,62,0.5);
  box-shadow: 0 50px 120px -50px rgba(216,255,62,0.45);
}
.cta-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 80% 0%, rgba(255,255,255,0.55), transparent 50%);
  pointer-events: none;
}
.cta-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 12px 18px;
  border-radius: 9999px;
  background: #070707;
  color: #f6f5f1;
  font-size: 14px; font-weight: 500;
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(0,0,0,0.4);
}
.cta-link:hover {
  transform: translateY(-2px);
  background: #1a1a1f;
}
.cta-link + .cta-link { margin-top: 8px; }

.cta-row { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@media (min-width: 1024px) { .cta-row { align-items: flex-end; } }
.cta-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(7,7,7,0.55);
  font-weight: 600;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee, .orb-a, .orb-b { animation: none; }
}

/* ---------- Mobile niceties ---------- */
@media (max-width: 1023px) {
  .approach-tile { grid-template-columns: 64px 1fr; padding: 22px 20px; }
  .tile-num { font-size: 30px; }
}
