/* =============================================================================
   SHAYEX — STYLES
   Palette: "Electric Violet" (electric blue + pink on near-black violet).
   You normally don't need to edit this file. To retheme, change the CSS
   variables in :root below and everything updates automatically.
   ============================================================================= */

/* ----------------------------- Design tokens ----------------------------- */
:root {
  /* Backgrounds — near-black with a deep violet tint */
  --bg:            #08060F;
  --bg-alt:        #0D0A18;
  --surface:       #141026;
  --surface-2:     #1B1633;
  --border:        rgba(255, 255, 255, 0.08);

  /* Neon accents */
  --blue:          #3B82F6;   /* electric blue  — primary/secondary highlight */
  --violet:        #8B5CF6;   /* violet bridge  — used in gradients */
  --pink:          #EC4899;   /* pink accent    — a touch of colour */

  /* Text */
  --text:          #F5F5FA;
  --text-muted:    #9a9ab5;

  /* Signature gradient used across the site */
  --grad: linear-gradient(120deg, var(--blue), var(--violet) 50%, var(--pink));

  /* Layout */
  --maxw:          1140px;
  --radius:        18px;
  --header-h:      68px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle animated grid + glow backdrop for the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(59, 130, 246, 0.20), transparent 45%),
    radial-gradient(700px circle at 85% 20%, rgba(139, 92, 246, 0.16), transparent 45%),
    radial-gradient(600px circle at 60% 90%, rgba(236, 72, 153, 0.12), transparent 45%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ------------------------------ Gradient text ------------------------------ */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================================ HEADER ================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(11, 11, 21, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* Class toggled by JS once the user scrolls */
.header.is-scrolled {
  background: rgba(11, 11, 21, 0.9);
  border-bottom-color: var(--border);
}
/* Full-width header: logo hard left, nav hard right (override .container) */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  width: 100%;
  padding: 0 clamp(20px, 3vw, 36px);
}

.brand {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav__link[hidden], .btn[hidden] { display: none; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  transition: color 0.25s var(--ease);
}
.nav__link:hover { color: var(--text); }
/* Animated underline */
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
/* Current section while scrolling */
.nav__link.is-current { color: var(--text); }
.nav__link.is-current::after { transform: scaleX(1); }
.nav__link--cta {
  color: var(--text);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 101; }
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ================================= HERO ================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical centering; container stays full-width + left-aligned */
  overflow: hidden;
  padding: 40px 0 80px;
}
.hero__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  max-width: 130vw; max-height: 130vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 60%);
  filter: blur(30px);
  animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}
/* Two-column hero: logo (left) + text (right), centered as a group */
.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  max-width: 1120px;
  margin: 0 auto;
}
.hero__media { flex: 0 0 auto; }
.hero__logo {
  display: block;
  width: clamp(220px, 26vw, 360px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;                 /* rounded square */
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.hero__logo:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 28px 70px rgba(236, 72, 153, 0.4); }
.hero__media[hidden] { display: none; }
.hero__content { max-width: 620px; }

.hero__badge[hidden] { display: none; }
.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  padding: 7px 16px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  margin-bottom: 26px;
}
.hero__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 13vw, 8rem);
  line-height: 0.95;
  letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.4));
}
.hero__tagline {
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 600;
  margin-top: 18px;
}
.hero__intro {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.5vw, 1.15rem);
  margin-top: 16px;
  max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn--primary {
  background: var(--grad);
  color: #08060F;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
/* Blue -> pink shift on hover for a little energy */
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(236, 72, 153, 0.45); }
.btn--ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 20px rgba(59, 130, 246, 0.25); }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--blue);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ================================ SECTIONS =============================== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 640px; margin-bottom: 46px; }
.section__title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 1px;
}
/* Small pink accent bar to the left of every section title */
.section__title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 0.85em;
  border-radius: 3px;
  background: var(--pink);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.55);
}
.section__subtitle { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }

/* ============================== PLAYERS GRID ============================= */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.player-card {
  display: block;                 /* works whether the card is <article> or <a> */
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Animated gradient border-glow on hover */
.player-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.player-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 40px rgba(59, 130, 246, 0.28); }
.player-card:hover::before { opacity: 1; }

.player-card__avatar {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-2);
  background: var(--surface-2);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.player-card:hover .player-card__avatar { border-color: var(--blue); box-shadow: 0 0 22px rgba(59, 130, 246, 0.5); }

.player-card__name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.player-card__org {
  display: inline-block;
  margin: 10px 0 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.player-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.25s var(--ease);
}
.player-card:hover .player-card__link { gap: 10px; }
.player-card__link svg { width: 15px; height: 15px; fill: currentColor; }

/* =============================== TIMELINE =============================== */
.tabs { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.tab {
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.tab.is-active { color: #08060F; background: var(--grad); }
.tab:not(.is-active):hover { color: var(--text); }

.timeline { position: relative; display: flex; flex-direction: column; gap: 20px; }
/* Vertical neon line */
.timeline::before {
  content: "";
  position: absolute;
  left: 21px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--violet), var(--blue), var(--pink));
  opacity: 0.4;
}
.timeline-item {
  position: relative;
  display: flex;
  gap: 22px;
  padding-left: 4px;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
/* Hidden state when filtered out */
.timeline-item.is-hidden { display: none; }

.timeline-item__logo {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 2px solid var(--surface-2);
  object-fit: cover;
  z-index: 1;
}
.timeline-item__body {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline-item:hover .timeline-item__body {
  transform: translateX(6px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}
.timeline-item__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; justify-content: space-between; }
.timeline-item__org {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
}
.timeline-item__period {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
/* Role reads as a coloured job label; colour also encodes the type */
.timeline-item__role {
  margin-top: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.timeline-item__role--manager { color: var(--blue); }
.timeline-item__role--designer { color: var(--pink); }
.timeline-item__desc { margin-top: 10px; color: var(--text-muted); font-size: 0.92rem; }

/* =============================== CONTACT =============================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 14px 34px rgba(59, 130, 246, 0.22); }
.contact-card__icon {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
}
.contact-card__icon svg { width: 22px; height: 22px; fill: var(--blue); }
.contact-card__label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-card__value { font-weight: 600; word-break: break-word; }

/* ================================ FOOTER =============================== */
.footer { border-top: 1px solid var(--border); padding: 34px 0; background: var(--bg-alt); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.footer__brand { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; letter-spacing: 1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__copy { color: var(--text-muted); font-size: 0.9rem; }

/* ============================ BACK TO TOP ============================== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #08060F;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(236, 72, 153, 0.5); }
.to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* ========================= SCROLL REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================== RESPONSIVE ============================= */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 22px 24px;
    background: rgba(11, 11, 21, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 12px 14px; }
  .nav__link::after { display: none; }
  .nav__link--cta { text-align: center; margin-top: 6px; }

  /* Animate hamburger into an X */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 64px 0; }
  .timeline-item__period { width: 100%; }

  /* Hero stacks: logo on top, text centered below */
  .hero__inner { flex-direction: column; text-align: center; gap: 28px; }
  .hero__content { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__logo { width: clamp(180px, 55vw, 260px); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
