@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
  --bg-color: #0b0f19;
  --surface-color: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  --primary-color: #e63946;
  --secondary-color: #ffffff;
  --accent-color: #9146FF;
  --accent-gradient: linear-gradient(135deg, #9146FF 0%, #6441a5 100%);
  --primary-gradient: linear-gradient(135deg, #e63946 0%, #a81c1c 100%);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background effects */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(79, 172, 254, 0.15), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 8, 68, 0.1), transparent 30%);
  z-index: -1;
  pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

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

main {
  padding-top: 100px;
}

.hero-page main {
  padding-top: 0;
}

a:hover {
  color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

header.scrolled {
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--surface-border);
  height: 70px;
}

nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  position: relative;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--surface-border);
  min-width: 180px;
  border-radius: 12px;
  padding: 0.8rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: 120%;
}

.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: rgba(230, 57, 70, 0.1);
  color: var(--primary-color);
}

.dropdown-trigger svg {
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-trigger svg {
  transform: rotate(180deg);
}


.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
  color: #fff;
}

.btn-secondary {
  background: rgba(11, 15, 25, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--primary-color);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(230, 57, 70, 0.1);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-accent {
  background: var(--accent-gradient);
  box-shadow: 0 4px 15px rgba(145, 70, 255, 0.3);
}

.btn-accent:hover {
  box-shadow: 0 8px 25px rgba(145, 70, 255, 0.5);
}

/* Main content */
main {
  flex: 1;
  padding-top: 80px;
  padding-bottom: 4rem;
}

/* Hero Section */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(rgba(11, 15, 25, 0.3), rgba(11, 15, 25, 0.5)), url('../img/bkg-hero-banner.png') center/cover no-repeat;
  padding-top: 130px;
  padding-bottom: 100px;
}

.hero-logo {
  max-width: 220px;
  height: auto;
  margin: 0 auto 2.5rem;
  display: block;
  filter: drop-shadow(0 0 15px rgba(230, 57, 70, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}


.hero h1 {
  font-size: clamp(1.8rem, 4.8vw, 3.2rem);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 span {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11, 15, 25, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  min-width: 80px;
}

.countdown-item span {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1;
}

.countdown-item small {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Glass Card */
.glass-card {
  background: var(--surface-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-card h3 {
  margin-bottom: 1rem;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: block;
  text-transform: uppercase;
}



/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Avatar & Badges */
.streamer-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 4px solid var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.streamer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge-onsite {
  background: rgba(230, 57, 70, 0.2);
  color: var(--primary-color);
}

.badge-remote {
  background: rgba(255, 8, 68, 0.2);
  color: var(--accent-color);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Stats Dashboard */
.stat-card {
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--surface-border);
  margin-top: auto;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-5px);
}

.social-links a[title="Instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(214, 36, 159, 0.4);
}

.social-links a[title="Facebook"]:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-links a[title="TikTok"]:hover {
  background: #010101;
  border-color: #25F4EE;
  box-shadow: 0 5px 15px rgba(37, 244, 238, 0.45);
}

.social-links a[title="Discord"]:hover {
  background: #5865f2;
  border-color: #5865f2;
  box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.social-links a[title="Twitch"]:hover {
  background: #9146ff;
  border-color: #9146ff;
  box-shadow: 0 5px 15px rgba(145, 70, 255, 0.4);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 4rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Twitch Embed */
.twitch-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: calc(100vh - 250px);
  min-height: 500px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  padding: 1rem;
}

@media (min-width: 992px) {
  .twitch-container {
    flex-direction: row;
  }
}

.twitch-video {
  flex: 1;
  position: relative;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

.twitch-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.twitch-chat {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .twitch-chat {
    width: 350px;
    height: 100%;
  }
}

.twitch-chat iframe {
  width: 100%;
  height: 100%;
}

/* Footer Sponsors */
.footer-sponsors {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.sponsors-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.sponsor-logo {
  height: 45px;
  width: auto;
  min-width: 100px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5) opacity(0.5);
  transition: all 0.3s ease;
}

.sponsor-logo:hover {
  filter: grayscale(0%) brightness(1) opacity(1);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* In a real app we'd add a hamburger menu */
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

/* Modal System */
.modal-overlay {
  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;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content {
  width: 90%;
  max-width: 450px;
  padding: 3.5rem 2rem;
  border-radius: 35px;
  text-align: center;
  transform: scale(0.9) translateY(30px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  background: rgba(15, 20, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 8, 68, 0.2);
  color: var(--accent-color);
  transform: rotate(90deg);
}

/* Ambassador Cards (Global) */
.ambassador-card {
  padding: 2.5rem 1.5rem !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  position: relative;
  border-top: 3px solid var(--accent-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ambassador-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(145, 70, 255, 0.2);
}
.ambassador-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: var(--accent-color);
  filter: blur(50px);
  opacity: 0.3;
  z-index: 0;
}
.ambassador-avatar-container {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.4);
  border-radius: 50%;
  overflow: hidden;
}
.ambassador-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ambassador-info {
  position: relative;
  z-index: 1;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.social-icon {
  color: #fff;
  opacity: 0.7;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.social-icon:hover {
  opacity: 1;
  transform: translateY(-3px);
}
.social-icon.twitch:hover {
  background: var(--accent-color);
  box-shadow: 0 5px 15px rgba(145, 70, 255, 0.4);
}
.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 5px 15px rgba(230, 104, 60, 0.4);
}
.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
  animation: pulseLive 1.5s infinite;
}
@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Badges Global */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}
.badge-onsite { background: rgba(230, 57, 70, 0.2); color: var(--primary-color); border: 1px solid var(--primary-color); }
.badge-remote { background: rgba(0, 184, 148, 0.2); color: #00b894; border: 1px solid #00b894; }
.badge-ambassador { background: var(--accent-gradient); color: #fff; }
/* --- EVENT PROGRESS BAR --- */
#event-progress-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 4px;
    background: rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
}
#event-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 1s linear;
    box-shadow: 0 0 10px var(--primary-color);
}



/* --- NOTIFICATIONS (TOASTS) --- */
#toast-container {
    position: fixed;
    bottom: 20px; left: 20px;
    z-index: 2000;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    padding: 12px 20px;
    border-radius: 10px;
    color: #fff;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--glass-shadow);
    animation: slideInLeft 0.4s ease forwards;
    max-width: 300px;
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}



/* --- CONFETTI --- */
.confetti {
    position: fixed;
    width: 10px; height: 10px;
    background-color: #f00;
    z-index: 3000;
    pointer-events: none;
    border-radius: 2px;
}
