/* Base styles */
:root {
  --background: #0f0a1a;
  --text-primary: #ffffff;
  --text-secondary: #c4c9df;
  --purple-primary: #6a3cb5;
  --purple-secondary: #512b75;
  --purple-dark: #2b1840;
  --purple-light: #8a4fff;
  --purple-border: rgba(106, 60, 181, 0.4);
  --valorant-red: #ff4655;
  --valorant-red-dark: #cc3644;
  --card-bg: rgba(27, 16, 50, 0.7);
  --section-spacing: 6rem;
  --accent-cyan: #36eee0;
  --accent-pink: #ff6ec7;
}

/* Prevent text selection and image download */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img,
svg {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Quicksand", sans-serif;
  background: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Allow pointer events for interactive elements */
a,
button,
.social-button,
.action-button {
  pointer-events: auto;
}

.social-button img,
.icon-wrapper img {
  pointer-events: auto;
}

/* Background elements */
.background-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.15;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%236A3CB5" stroke-width="0.5" stroke-dasharray="5,5"/></svg>');
}

.bg-lines {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(90deg, transparent 49.5%, rgba(106, 60, 181, 0.1) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(106, 60, 181, 0.1) 50%, transparent 50.5%);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -4;
  background: radial-gradient(circle at top right, rgba(106, 60, 181, 0.3), transparent 70%),
    radial-gradient(circle at bottom left, rgba(255, 70, 85, 0.2), transparent 70%),
    radial-gradient(circle at center, rgba(54, 238, 224, 0.05), transparent 50%);
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
  font-weight: 400;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(17, 25, 40, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.125);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
  text-shadow: 0 0 10px rgba(106, 60, 181, 0.5);
}

.logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--valorant-red), var(--purple-light));
  transition: width 0.3s ease;
}

.logo:hover {
  color: var(--valorant-red);
}

.logo:hover::after {
  width: 100%;
}

.social-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-button {
  padding: 0.25rem;
  border-radius: 35%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 2.75rem;
  height: 2.75rem;
  position: relative;
  overflow: hidden;
  background: rgba(27, 16, 50, 0.6);
  border: 1px solid rgba(106, 60, 181, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 35%;
}

.social-button:hover::before {
  transform: scale(1);
}

.social-button.home:hover {
  background-color: var(--purple-light);
  border-color: var(--purple-light);
}

.icon-wrapper {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Main content */
.main-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 7rem 1rem 5rem;
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Team section */
.team-section {
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.team-card {
  background-color: transparent;
  border-radius: 0;
  padding: 2rem 0;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

.team-card::before {
  display: none;
}

.team-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.team-header img {
  width: 4rem;
  height: auto;
  margin-right: 1rem;
  filter: drop-shadow(0 0 15px rgba(54, 238, 224, 0.4));
  aspect-ratio: 1220 / 871;
  object-fit: contain;
  max-height: 4rem;
}

.gradient-text {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff92ba, #81ffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Players container - default for desktop/laptop */
.players-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.player-box {
  background: linear-gradient(135deg, rgba(27, 16, 50, 0.8), rgba(43, 24, 64, 0.8));
  border-radius: 12px;
  padding: 1.5rem;
  width: 170px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--purple-border);
  opacity: 0;
  animation: fadeInPlayer 0.5s ease-out forwards;
  animation-delay: calc(var(--animation-order) * 0.1s + 0.3s);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.player-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(54, 238, 224, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.player-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(106, 60, 181, 0.6);
}

.player-box:hover::before {
  opacity: 1;
}

.player-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(106, 60, 181, 0.3);
  transition: all 0.3s ease;
}

.player-box:hover img {
  border-color: var(--accent-cyan);
  transform: scale(1.03);
}

.player-box h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.player-box p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Button container */
.button-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(135deg, var(--accent-cyan), var(--purple-primary));
  color: var(--text-primary);
  border: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.action-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.action-button:hover::before {
  transform: translateX(0);
}

.action-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(15, 10, 26, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.popup-content {
  background: linear-gradient(135deg, rgba(27, 16, 50, 0.9), rgba(43, 24, 64, 0.9));
  border: 1px solid var(--purple-border);
  border-radius: 12px;
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
  margin: 20vh auto 0;
  text-align: center;
  animation: fadeInPopup 0.3s ease-out;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.popup-content h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  background: linear-gradient(90deg, var(--accent-cyan), var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.agents-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.agent-info {
  text-align: center;
  background: rgba(15, 10, 26, 0.5);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(106, 60, 181, 0.2);
  transition: all 0.3s ease;
}

.agent-info:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

.agent-info img {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 5px rgba(54, 238, 224, 0.5));
}

.agent-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(106, 60, 181, 0.3);
  background: rgba(15, 10, 26, 0.95);
}

.footer p {
  margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInPlayer {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInPopup {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOutPopup {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.popup-content.fade-out {
  animation: fadeOutPopup 0.3s ease-in-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 10, 26, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-cyan), var(--purple-light));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--accent-cyan), var(--accent-pink));
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-header {
    flex-direction: column;
    text-align: center;
  }

  .team-header img {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .team-card {
    padding: 1.5rem;
  }

  /* Change to single column layout on mobile */
  .players-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .player-box {
    width: 250px;
  }

  .player-box h3 {
    font-size: 1rem;
  }

  .player-box p {
    font-size: 0.875rem;
  }

  .gradient-text {
    font-size: 2rem;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 6rem 0.75rem 3rem;
  }
}

@media (max-width: 480px) {
  .player-box {
    width: 80%;
    max-width: 250px;
  }
}

@media (min-width: 1024px) {
  .main-content {
    max-width: 90rem;
  }

  .players-container {
    gap: 2rem;
  }

  .player-box {
    width: 180px;
  }
}

/* Fix for body scroll when popup is open */
.body-no-scroll {
  overflow: hidden;
}
