/* ==========================================================================
   STROLLADOU — style.css
   Dark, neon, glass-morphism single-page site.
   Palette:
     --bg      #050508  deep-space near-black
     --cyan    #00FFD1  primary accent
     --purple  #8B5CF6  secondary accent
     --pink    #FF2D78  tertiary accent
     --text    #FFFFFF  primary text
     --muted   #A0A0B0  secondary text
   ========================================================================== */

:root {
  --bg: #050508;
  --cyan: #00FFD1;
  --purple: #8B5CF6;
  --pink: #FF2D78;
  --text: #FFFFFF;
  --muted: #A0A0B0;

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  /* Hide the native cursor — a custom glowing cursor replaces it.
     Touch devices re-enable it via media query below. */
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }

::selection { background: var(--cyan); color: var(--bg); }

/* Thin neon scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--purple)); border-radius: 3px; }

/* ==========================================================================
   INTRO LOADER
   ========================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.intro__word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 6rem);
  letter-spacing: 0.12em;
  display: flex;
}

.intro__letter {
  display: inline-block;
  opacity: 0; /* animated in by GSAP */
  color: var(--text);
  text-shadow: 0 0 30px rgba(0, 255, 209, 0.8);
}

/* ==========================================================================
   CUSTOM CURSOR — glowing dot + lagging ring
   ========================================================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 30px rgba(0, 255, 209, 0.5);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 255, 209, 0.6);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

/* Ring expands + shifts hue over interactive elements */
.cursor-ring.is-hover {
  width: 60px;
  height: 60px;
  border-color: var(--pink);
}

/* Touch / coarse pointers: restore native cursor, hide custom one */
@media (hover: none), (pointer: coarse) {
  body, a { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   SHARED — sections, titles, buttons, reveal helpers
   ========================================================================== */
section { position: relative; }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Elements tagged data-reveal start hidden; GSAP fades them in on enter */
[data-reveal] { opacity: 0; }

/* Neon pulse used by buttons and accent borders */
@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 209, 0.4), 0 0 40px rgba(0, 255, 209, 0.15), inset 0 0 8px rgba(0, 255, 209, 0.1); }
  50%      { box-shadow: 0 0 22px rgba(0, 255, 209, 0.8), 0 0 70px rgba(0, 255, 209, 0.3), inset 0 0 14px rgba(0, 255, 209, 0.2); }
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 1rem 3.2rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 255, 209, 0.05);
  backdrop-filter: blur(8px);
  animation: neon-pulse 2.6s ease-in-out infinite;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: var(--cyan);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Faint perspective grid overlay for depth */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

/* Neon glow that cycles cyan → purple → pink */
@keyframes neon-cycle {
  0%, 100% { text-shadow: 0 0 12px rgba(0, 255, 209, 0.9),  0 0 45px rgba(0, 255, 209, 0.5),  0 0 90px rgba(0, 255, 209, 0.25); }
  33%      { text-shadow: 0 0 12px rgba(139, 92, 246, 0.9), 0 0 45px rgba(139, 92, 246, 0.5), 0 0 90px rgba(139, 92, 246, 0.25); }
  66%      { text-shadow: 0 0 12px rgba(255, 45, 120, 0.9), 0 0 45px rgba(255, 45, 120, 0.5), 0 0 90px rgba(255, 45, 120, 0.25); }
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 9.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  animation: neon-cycle 6s ease-in-out infinite;
}

.hero__sub {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero .btn--enter { margin-top: 3rem; }

/* Hero items start hidden; GSAP staggers them in after the intro */
[data-hero-item] { opacity: 0; }

/* Pulsing scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-indicator__arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  animation: arrow-pulse 1.8s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { opacity: 0.25; transform: rotate(45deg) translate(0, 0); }
  50%      { opacity: 1;    transform: rotate(45deg) translate(5px, 5px); }
}

/* ==========================================================================
   2. MANIFESTO — animated gradient mesh + word-by-word reveal
   ========================================================================== */
.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20vh 6vw;
  overflow: hidden;
}

/* CSS-only animated gradient mesh */
.manifesto__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 40% at 25% 30%, rgba(139, 92, 246, 0.14), transparent 70%),
    radial-gradient(35% 35% at 75% 60%, rgba(0, 255, 209, 0.10), transparent 70%),
    radial-gradient(30% 30% at 55% 20%, rgba(255, 45, 120, 0.08), transparent 70%);
  animation: mesh-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes mesh-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, -3%) scale(1.08); }
  100% { transform: translate(-4%, 3%) scale(1.03); }
}

.manifesto__text {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.25;
  text-align: center;
  max-width: 18ch;
  letter-spacing: 0.01em;
}

/* Words are wrapped in spans by JS; scrubbed 0.1 → 1 by ScrollTrigger */
.manifesto__text .word {
  display: inline-block;
  opacity: 0.1;
}

/* ==========================================================================
   3. PILLARS — glass cards with cycling neon borders
   ========================================================================== */
.pillars {
  padding: 18vh 6vw;
  max-width: 1400px;
  margin: 0 auto;
}

.pillars__grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .pillars__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

/* Border color cycles hue via a conic-gradient pseudo-frame */
@keyframes border-cycle {
  0%, 100% { border-color: rgba(0, 255, 209, 0.5);  box-shadow: 0 0 24px rgba(0, 255, 209, 0.12); }
  33%      { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 24px rgba(139, 92, 246, 0.12); }
  66%      { border-color: rgba(255, 45, 120, 0.5); box-shadow: 0 0 24px rgba(255, 45, 120, 0.12); }
}

.card {
  position: relative;
  padding: 3rem 2.2rem;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  opacity: 0; /* GSAP slides these in */
  transition: transform 0.35s ease;
  animation: border-cycle 8s ease-in-out infinite;
}

/* Stagger the border-cycle so cards shimmer out of phase */
.card:nth-child(2) { animation-delay: -2.6s; }
.card:nth-child(3) { animation-delay: -5.3s; }

.card:hover { transform: translateY(-8px); }

/* Holographic sheen sweeping across on hover */
.card__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.06) 48%, rgba(0, 255, 209, 0.08) 52%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.9s ease;
  pointer-events: none;
}

.card:hover .card__glow { transform: translateX(100%); }

.card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.8rem;
}

.card__icon svg { width: 100%; height: 100%; }

.card__icon--cyan   { color: var(--cyan);   filter: drop-shadow(0 0 12px rgba(0, 255, 209, 0.7)); }
.card__icon--purple { color: var(--purple); filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.7)); }
.card__icon--pink   { color: var(--pink);   filter: drop-shadow(0 0 12px rgba(255, 45, 120, 0.7)); }

.card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.card__desc {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}

/* ==========================================================================
   4. VISION — marquee + parallax hex panorama
   ========================================================================== */
.vision { padding: 10vh 0 16vh; overflow: hidden; }

.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 255, 209, 0.15);
  border-bottom: 1px solid rgba(0, 255, 209, 0.15);
}

.marquee__track {
  display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee__text {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  letter-spacing: 0.18em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 255, 209, 0.65);
  white-space: nowrap;
}

/* Two identical spans; sliding -50% loops seamlessly */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.vision__panel {
  position: relative;
  margin-top: 10vh;
  height: 70vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Parallax layer — GSAP shifts it vertically slower than scroll */
.vision__hexfield {
  position: absolute;
  inset: -25% 0;
  will-change: transform;
}

/* CSS-generated glowing hexagonal grid (no images) */
.vision__hexgrid {
  position: absolute;
  inset: 0;
  --hex: rgba(0, 255, 209, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.12), transparent 60%),
    repeating-linear-gradient(0deg,   var(--hex) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(60deg,  var(--hex) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(120deg, var(--hex) 0 1px, transparent 1px 34px);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}

/* Soft glowing orbs floating in the hex field */
.vision__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: orb-float 14s ease-in-out infinite alternate;
}

.vision__orb--cyan   { width: 340px; height: 340px; background: var(--cyan);   top: 15%;  left: 12%; }
.vision__orb--purple { width: 420px; height: 420px; background: var(--purple); top: 40%;  right: 8%; animation-delay: -5s; }
.vision__orb--pink   { width: 260px; height: 260px; background: var(--pink);   bottom: 8%; left: 38%; animation-delay: -9s; }

@keyframes orb-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -50px) scale(1.15); }
}

.vision__statement {
  position: relative;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 6.5vw, 5.5rem);
  letter-spacing: 0.03em;
  text-align: center;
  padding: 0 1.5rem;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 80px rgba(0, 255, 209, 0.25);
}

/* ==========================================================================
   5. CONTACT / FOOTER
   ========================================================================== */
.contact {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14vh 6vw 0;
}

.contact__headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  max-width: 16ch;
}

/* Glowing underline email button */
.contact__email {
  margin-top: 3rem;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  letter-spacing: 0.06em;
  color: var(--cyan);
  position: relative;
  padding-bottom: 0.4rem;
  text-shadow: 0 0 18px rgba(0, 255, 209, 0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact__email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  box-shadow: 0 0 14px rgba(0, 255, 209, 0.8);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact__email:hover { color: var(--text); text-shadow: 0 0 26px rgba(0, 255, 209, 0.9); }
.contact__email:hover::after { transform: scaleX(1.0) scaleY(2.5); }

.contact__socials {
  margin-top: 3.5rem;
  display: flex;
  gap: 1.4rem;
}

.social {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.social svg { width: 20px; height: 20px; }

.social:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 255, 209, 0.4);
  transform: translateY(-4px);
}

.footer {
  margin-top: auto;
  padding: 6rem 0 2.5rem;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__tagline {
  margin-top: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   ACCESSIBILITY — respect reduced-motion preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
