@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  cursor: url("cursor.png"), auto;
  font-family: 'VT323', monospace;
  color: #00ff41;
  background: #000;
  min-height: 100vh;
  overflow-x: hidden;
  image-rendering: pixelated;
}

/* CRT curved screen container */
.crt-screen {
  position: relative;
  max-width: 1280px;
  margin: 30px auto;
  padding: 40px 60px;
  background: #000;
  border: 10px solid #111;
  border-radius: 38% / 22%;          /* Strong CRT curvature */
  box-shadow: 
    inset 0 0 120px #000,
    0 0 80px rgba(0,255,65,0.2);
  transform: perspective(1000px) rotateX(4deg); /* subtle 3D curve feel */
  overflow: hidden;
}

/* Vignette */
.crt-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(0,0,0,0.6) 80%, #000 100%);
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: multiply;
}

/* Animated scanlines */
.crt-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0,0,0,0.4) 2px, rgba(0,0,0,0.4) 4px);
  pointer-events: none;
  z-index: 5;
  animation: scan 10s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.vhs {
  flex: none;
  height: 100vh;
  left: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9;
}

.backgroundImage {
  position: fixed;
  inset: 0;
  background: var(--background-texture) center / cover no-repeat;
  opacity: .2;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 5;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background: var(--noise-texture);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 6;
  animation: noise-flicker 0.12s steps(5) infinite;
}

.grain-overlay {
  position: absolute;
  inset: 0;
  background: var(--gif-texture) center / cover;
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 7;
}

:root {
  --background-texture: url(images/assets/dithered_liminal.png);
  --noise-texture: url(https://i.gyazo.com/a26366e538851a5c569ff648e99b7fd4.png);
  --gif-texture: url(images/assets/grain_slow.gif);
}

.container {
  position: relative;
  z-index: 10;
}

.glow {
  text-shadow: 0 0 16px rgba(0, 255, 64, 0.5), 0 0 6px rgba(0, 255, 64, 0.5), 0 0 6px rgba(0, 255, 64, 0.5);
}

h1 { font-size: 4.2em; text-align: center; margin-bottom: 0.4em; }
h2 { font-size: 2.6em; text-align: center; margin-bottom: 0.8em; }
h3 { font-size: 2.2em; margin-bottom: 0.5em; }

#about { text-align: center; margin-bottom: 60px; font-size: 1.3em; line-height: 1.5; }


/* Glitch effects */
.glitch-text {
    position: relative;
    display: inline-block;
}

@keyframes glitch-animation {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.glitch-text::before {
    animation: 
      glitch-skew 4.2s infinite,
      glitch-animation 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    animation-delay: calc(var(--random-delay, 0s) + 0.05s);
    color: #ff00ff;
    z-index: -1;
    left: 2px;
}

.glitch-text::after {
    animation: 
      glitch-skew 4.2s infinite reverse,
      glitch-anim 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite reverse;
    animation-delay: var(--random-delay, 0s);
    color: #00ffff;
    z-index: -2;
    left: -2px;
}

#members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 50px;
}

.member {
    background: rgba(8, 8, 8, 0.55);          /* semi-transparent dark overlay */
    background-blend-mode: multiply;           /* blends bg image with color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 30px 40px;                  /* more top padding for breathing room */
    border: 3px solid #00ff41;
    border-radius: 14px;
    text-align: center;
    backdrop-filter: blur(4px);
    min-height: 380px;                        /* consistent height if images vary */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 16px rgba(0, 255, 64, 0.5), 0 0 6px rgba(0, 255, 64, 0.5), 0 0 6px rgba(0, 255, 64, 0.5);
  }

  .member::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 70%);
    z-index: 0;
    pointer-events: none;
  }
  
  .member > * {
    position: relative;   /* bring content above overlay */
    z-index: 1;
  }
  
  .member h3 {
    margin: 0.4em 0 0.8em;
    font-size: 2.1em;
  }
  
  /* Optional: fallback if image fails to load */
  .member-avatar:not([src]),
  .member-avatar[src=""] {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 1.2em;
    text-align: center;
  }

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.8em;
  margin-top: 1em;
  text-shadow: 0 0 18px #00ff403b;
}

.socials a {
  color: #00ff41;
  transition: all 0.3s;
}

.socials a[href*="twitch.tv"]   { color: #9147ff; }
.socials a[href*="youtube.com"] { color: #ff0000; }
.socials a[href*="bsky.app"]    { color: #0285ff; }
.socials a[href*="discord.gg"]    { color: #5865F2; }
.socials a[href*="x.com"]    { color: #1DA1F2; }
.socials a[href*="tiktok.com"]  { color: #EE1D52; }

.socials a:hover {
  transform: scale(1.4) rotate(8deg);
  text-shadow: 0 0 18px #00ff41;
}

#collective-socials {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 22px 0 12px;
  z-index: 12;
}

#collective-socials .socials {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 2.7em;
  margin-top: 0;
  text-shadow: 0 0 18px #00ff403b;
}

.top-button {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.85);
  color: #00ff41;
  border: 1px solid #00ff41;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-button:hover {
  background: rgba(0, 0, 0, 1);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.45);
}

.top-left {
  top: 24px;
  left: 24px;
}

.top-right {
  top: 24px;
  right: 24px;
}

@media (min-width: 1100px) {
  #collective-socials {
    justify-content: center;
  }

  #collective-socials .top-button {
    position: static;
    margin: 0;
    align-self: center;
  }
}

@media (max-width: 768px) {
  .socials {
    font-size: 2.1em;
    gap: 22px;
  }

  .top-button {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
  }

  .top-left,
  .top-right {
    top: 16px;
  }

  .top-left {
    left: 16px;
  }

  .top-right {
    right: 16px;
  }
}

.socials a i {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}

/* Override for non-brand icons (like email) */
.socials a[href^="mailto:"] i {
  font-family: "Font Awesome 6 Free" !important; 
  font-weight: 400;  
}

.buttonmarquee {
  height:auto;
  padding: 20px;
  padding-top:100px;
  padding-bottom:5px;
  margin-top:10px;
  border: 3px outset var(--hotpink);
  border-radius:10px;
  background-color: var(--bgwhite);
  box-shadow: 0 0 15px 5px var(--tan);
}

#merch a {
  display: inline-block;
  background: #00ff41;
  color: #000;
  padding: 20px 50px;
  font-size: 2em;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  transition: all 0.3s;
}

#merch a:hover {
  background: #00dd33;
  box-shadow: 0 0 40px #00ff41aa;
  transform: translateY(-4px);
}

/* Subtle flicker on noise for extra VHS feel */
@keyframes noise-flicker {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.14; }
}

/* =============================================
   MOBILE SUPPORT
   ============================================= */
   @media (max-width: 768px) {
    /* simplify the retro frame */
    .crt-screen {
      max-width: 100%;
      margin: 0;
      padding: 15px 8px 25px;
      border: 6px solid #111;
      border-radius: 12px;           /* gentler curve */
      transform: none;               /* remove perspective*/
      box-shadow: 
        inset 0 0 60px #000,
        0 0 40px rgba(0, 255, 65, 0.15);
    }
  
    /* soften the heavy vignette & scanlines */
    .crt-screen::before {
      background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,0.7) 85%, #000 100%);
    }
  
    .crt-screen::after {
      background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0,0,0,0.35) 3px, rgba(0,0,0,0.35) 6px);
    }
  
    /* scale down typography */
    h1 {
      font-size: 2.6em !important;
      margin-bottom: 0.3em;
    }
  
    #about {
      font-size: 1.15em;
      margin-bottom: 40px;
    }
  
    h3 {
      font-size: 1.85em;
    }
  
    /* single column */
    #members {
      grid-template-columns: 1fr !important;
      gap: 35px;
    }
  
    .member {
      padding: 35px 18px 30px;
      min-height: auto;
      border-radius: 10px;
    }
  
    .member h3 {
      font-size: 1.95em;
    }
  
    .socials {
      gap: 18px;
      font-size: 1.65em;
    }
  
    .buttonmarquee {
      padding: 12px 8px 8px;
      padding-top: 45px;
      margin-top: 15px;
    }
  
    .buttonmarquee img {
      max-height: 42px;
      width: auto;
    }
  
    #collective-socials .socials {
      justify-content: center;
      gap: 22px;
      font-size: 1.9em;
      padding: 12px 0;
    }
  }