:root {
  --bg-dark: #0a0a0c;
  --bg-dark-rgb: 10, 10, 12;
  --card-bg: rgba(18, 18, 22, 0.8);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-muted: #8e9297;
  
  /* Punk & Metal Neon Colors */
  --toxic-green: #39ff14;
  --crimson-red: #ff003c;
  --gothic-purple: #bd00ff;
  --cyber-yellow: #ffea00;
  --electric-blue: #00f0ff;
  
  /* Glowing drop shadows */
  --glow-green: 0 0 15px rgba(57, 255, 20, 0.45);
  --glow-red: 0 0 15px rgba(255, 0, 60, 0.45);
  --glow-purple: 0 0 15px rgba(189, 0, 255, 0.45);
  --glow-blue: 0 0 15px rgba(0, 240, 255, 0.45);
  
  --font-metal: 'Metal Mania', cursive;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(189, 0, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 60, 0.15) 0%, transparent 45%),
    linear-gradient(rgba(18, 16, 16, 0.3) 50%, rgba(0, 0, 0, 0.5) 50%);
  background-size: 100% 100%, 100% 100%, 100% 4px; /* CRT scanline texture */
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Background Glowing Lights (Lightning/Glow) */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0) 50%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.3)
  );
  background-size: 100% 4px;
}

.lightning-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: pulseGlow 8s infinite alternate ease-in-out;
}

.lightning-glow:nth-child(2) {
  top: 10%;
  left: 15%;
  width: 300px;
  height: 300px;
  background: var(--crimson-red);
  animation-delay: 0s;
}

.lightning-glow:nth-child(3) {
  bottom: 15%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: var(--gothic-purple);
  animation-delay: 2s;
  animation-duration: 12s;
}

.lightning-glow:nth-child(4) {
  top: 45%;
  left: 75%;
  width: 250px;
  height: 250px;
  background: var(--toxic-green);
  animation-delay: 4s;
  animation-duration: 10s;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.3) translate(20px, -20px);
    opacity: 0.22;
  }
  100% {
    transform: scale(0.9) translate(-10px, 30px);
    opacity: 0.12;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--card-border);
  border-radius: 12px; /* Raw boxy industrial edges */
  padding: 3.5rem 2.5rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--crimson-red), var(--gothic-purple), var(--toxic-green));
}

.hero-card:hover {
  border-color: rgba(255, 0, 60, 0.4);
  box-shadow: 10px 10px 0px rgba(255, 0, 60, 0.2), 0 15px 45px rgba(0,0,0,0.6);
}

.avatar-wrapper {
  position: relative;
  margin-bottom: 2rem;
  width: 190px;
  height: 190px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; /* Distressed organic shape */
  object-fit: cover;
  border: 4px solid var(--text-primary);
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, border-radius 0.4s ease;
  animation: morphShape 8s infinite ease-in-out alternate;
}

.avatar-wrapper::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: linear-gradient(45deg, var(--crimson-red), var(--gothic-purple));
  z-index: 1;
  opacity: 0.8;
  animation: pulseGlowRings 2.5s infinite alternate ease-in-out, morphShape 8s infinite ease-in-out alternate;
}

.avatar:hover,
.avatar.active {
  transform: scale(1.6);
  border-color: var(--toxic-green);
  z-index: 10;
  border-radius: 12px;
}

.avatar:hover + .avatar-wrapper::after,
.avatar.active + .avatar-wrapper::after {
  border-radius: 12px;
  background: var(--toxic-green);
}

@keyframes morphShape {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
}

@keyframes pulseGlowRings {
  0% {
    transform: scale(0.97);
    box-shadow: var(--glow-red);
  }
  100% {
    transform: scale(1.03);
    box-shadow: var(--glow-purple), 0 0 30px rgba(189, 0, 255, 0.6);
  }
}

/* Glitch effects on header */
.hero h1 {
  font-family: var(--font-metal);
  font-size: 3.2rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 2px 2px 0px var(--crimson-red);
  transition: text-shadow 0.2s ease;
}

.hero h1:hover {
  animation: glitchText 0.3s infinite;
  text-shadow: 3px 0 var(--toxic-green), -3px 0 var(--crimson-red);
}

@keyframes glitchText {
  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); }
}

.hero p.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 440px;
}

/* Scroll Button - Heavy industrial metal style */
.scroll-btn {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  padding: 1.1rem 2.2rem;
  border-radius: 0px; /* Punk brutalist flat design */
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 5px 5px 0px var(--text-primary);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.scroll-btn:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
  box-shadow: 5px 5px 0px var(--crimson-red);
  transform: translateY(-2px);
}

.scroll-btn svg {
  animation: rockBounce 1.5s infinite ease-in-out;
}

@keyframes rockBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Links Section */
.links-section {
  min-height: 100vh;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.links-header {
  text-align: center;
  margin-bottom: 4rem;
}

.links-header h2 {
  font-family: var(--font-metal);
  font-size: 3.5rem;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-shadow: 2px 2px 0px var(--gothic-purple);
  margin-bottom: 0.75rem;
}

.links-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 840px;
  width: 100%;
}

/* Links Card Style */
.link-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 8px 8px 0px rgba(0,0,0,0.9);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--text-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.link-card:hover {
  transform: translate(-4px, -4px) skew(-1deg);
  box-shadow: 12px 12px 0px var(--shadow-color, rgba(0,0,0,0.9));
  border-color: var(--accent-color, var(--text-primary));
}

.link-card:hover::before {
  transform: scaleX(1);
  background: var(--accent-color, var(--text-primary));
}

.card-icon {
  width: 65px;
  height: 65px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, border-color 0.3s ease;
  color: var(--text-primary);
}

.link-card:hover .card-icon {
  transform: scale(1.15) rotate(-6deg);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.link-card h3 {
  font-family: var(--font-metal);
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.link-card:hover h3 {
  color: var(--accent-color);
}

.link-card p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.link-card .card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Accent overrides for specific cards */
.tiktok-card {
  --accent-color: var(--crimson-red);
  --shadow-color: rgba(255, 0, 60, 0.2);
}
.agency-card {
  --accent-color: var(--toxic-green);
  --shadow-color: rgba(57, 255, 20, 0.2);
}
.snapchat-card {
  --accent-color: var(--cyber-yellow);
  --shadow-color: rgba(255, 234, 0, 0.25);
}
.discord-card {
  --accent-color: var(--electric-blue);
  --shadow-color: rgba(0, 240, 255, 0.2);
}

/* Badge styling */
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

.popular-badge {
  background: var(--crimson-red);
  color: #fff;
}

.team-badge {
  background: var(--toxic-green);
}

/* Modal styling - industrial warning sign look */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #111115;
  border: 3px solid var(--toxic-green);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.3), 15px 15px 0px #000;
  padding: 3.5rem 2.5rem;
  border-radius: 0px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.85) rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
  transform: scale(1) rotate(0deg);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}

.modal-close:hover {
  color: var(--toxic-green);
  transform: rotate(90deg);
}

.modal h3 {
  font-family: var(--font-metal);
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: var(--toxic-green);
  margin-bottom: 1.25rem;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.9);
}

.modal p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.modal-btn {
  background: transparent;
  color: var(--toxic-green);
  border: 2px solid var(--toxic-green);
  padding: 0.9rem 2.2rem;
  border-radius: 0px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--toxic-green);
  transition: all 0.3s ease;
}

.modal-btn:hover {
  background: var(--toxic-green);
  color: #000;
  box-shadow: 4px 4px 0px #fff;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0.6;
}

/* Keyframes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast Notification - Cyberpunk alert style */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #111116;
  border: 2px solid var(--electric-blue);
  color: #fff;
  padding: 1.2rem 2.2rem;
  border-radius: 0px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 10px 10px 0px #000, var(--glow-blue);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.4rem;
  color: var(--electric-blue);
  animation: rotateSparks 1.5s infinite linear;
}

@keyframes rotateSparks {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.toast-message {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* Responsiveness */
@media (max-width: 768px) {
  .links-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-card {
    padding: 3rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.6rem;
  }
  
  .links-header h2 {
    font-size: 2.8rem;
  }
}
