/* ============================================================
   Taide Collective — Global Styles
   ============================================================ */

:root {
  --tc-black-deep: #0A0A0A;
  --tc-black-charcoal: #111617;
  --tc-green-deep: #0D2B2A;
  --tc-aqua-primary: #14B8A6;
  --tc-aqua-light: #6EE7D1;
  --tc-accent-light: #C8FFF0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--tc-black-deep);
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { min-height: 100vh; }

.font-poppins { font-family: 'Poppins', sans-serif; }
.font-mont { font-family: 'Montserrat', sans-serif; }

/* ---------- Liquid glass ---------- */
.liquid-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 1px rgba(20, 184, 166, 0.06),
    0 20px 60px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(110, 231, 209, 0.5) 0%,
    rgba(110, 231, 209, 0.15) 25%,
    rgba(20, 184, 166, 0) 50%,
    rgba(20, 184, 166, 0) 75%,
    rgba(200, 255, 240, 0.35) 100%);
  -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;
  pointer-events: none;
}
.liquid-glass::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
  border-radius: inherit;
}

/* ---------- Shiny animated text ---------- */
.shiny-text {
  background: linear-gradient(90deg,
    #0D2B2A 0%,
    #14B8A6 25%,
    #C8FFF0 50%,
    #6EE7D1 75%,
    #0D2B2A 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shiny 8s linear infinite;
}
@keyframes shiny {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ---------- Focus pill ---------- */
.focus-pill {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(13, 43, 42, 0.6));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(110, 231, 209, 0.35);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 8px 32px rgba(20, 184, 166, 0.2);
}

/* ---------- Grain overlay ---------- */
.grain {
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ---------- Aqua glow ---------- */
.glow-aqua {
  box-shadow:
    0 0 24px rgba(20, 184, 166, 0.45),
    0 0 60px rgba(20, 184, 166, 0.2);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb {
  background: rgba(20, 184, 166, 0.3);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(20, 184, 166, 0.6); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Focus visible ---------- */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--tc-aqua-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Hero radial spotlight ---------- */
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 85% 55%,
      rgba(110, 231, 209, 0.35) 0%,
      rgba(20, 184, 166, 0.18) 25%,
      rgba(13, 43, 42, 0.0) 60%);
  filter: blur(10px);
}

/* ---------- Nav underline animation ---------- */
.nav-underline {
  position: relative;
}
.nav-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--tc-aqua-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-underline:hover::after,
.nav-underline.active::after { transform: scaleX(1); }

section { position: relative; z-index: 1; }
