/* League of Legends Style Theme */
:root {
  --primary-color: #fff;
  --secondary-color: #e31837;
  --accent-color: #f8f8f8;
  --dark-color: #0f1520;
  --darker-color: #0a0e17;
  --light-color: #ffffff;
  --gray-color: #8a8ea0;
  --success-color: #4ade80;
  --warning-color: #facc15;
  --danger-color: #f87171;
  
  --font-family: 'Roboto', Arial, sans-serif;
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--darker-color);
  color: var(--light-color);
  overflow-x: hidden;
  line-height: 1.6;
}

body.league-theme {
  background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
  min-height: 100vh;
}

/* League-specific styling */
html, body {
  height: 100%;
  scroll-behavior: smooth;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--accent-color);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-family);
  outline: none;
  padding: 0;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Flexbox and Grid utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-center {
  display: grid;
  place-items: center;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none;
}

/* Visibility */
.visible {
  visibility: visible;
  opacity: 1;
}

.invisible {
  visibility: hidden;
  opacity: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Preloader */
.preloader-league {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

.preloader-league.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.logo-container {
  margin-bottom: 30px;
}

.main-logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 153, 0, 0.5));
  background: transparent;
  object-fit: contain;
  mix-blend-mode: screen;
}

.logo-container {
  position: relative;
  background: transparent;
  isolation: isolate;
}

.loading-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.progress-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* Main Wrapper */
.main-wrapper {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.main-wrapper.visible {
  display: block;
  opacity: 1;
}

/* Navigation */
.navbar-league {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 21, 32, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(227, 24, 55, 0.3);
  transition: all 0.3s ease;
}

.navbar-league.scrolled {
  background: rgba(10, 14, 23, 0.98);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section img {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  gap: 25px;
}

.btn-register, .btn-play {
  padding: 14px 28px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-register {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-register:hover {
  background: var(--primary-color);
  color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-play {
  background: var(--secondary-color);
  color: var(--light-color);
  border: 2px solid transparent;
}

.btn-play:hover {
  background: #ff2d55;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--dark-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: all 0.3s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-buttons {
    position: static;
    margin-top: 40px;
    flex-direction: column;
  }
  
  .nav-links a {
    font-size: 18px;
    padding: 15px 0;
  }
}

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.4);
  animation: zoomIn 20s ease-in-out infinite alternate;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    rgba(15, 21, 32, 0.8) 0%, 
    rgba(10, 14, 23, 0.6) 50%, 
    rgba(227, 24, 55, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  width: 100%;
}

.hero-text {
  animation: slideInFromBottom 1s ease-out;
}

.hero-logo-container {
  margin-bottom: 30px;
}

.hero-logo {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  background: transparent;
  object-fit: contain;
  mix-blend-mode: screen;
}

.hero-logo-container {
  position: relative;
  background: transparent;
  isolation: isolate;
}

.hero-subtitle {
  font-size: 1.6rem;
  color: var(--accent-color);
  margin-bottom: 50px;
  opacity: 0.9;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-tertiary {
  padding: 18px 36px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--light-color);
}

.btn-primary:hover {
  background: #ff2d55;
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--dark-color);
  transform: translateY(-3px);
}

.btn-tertiary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.btn-large {
  padding: 20px 40px;
  font-size: 20px;
  min-width: 220px;
}

/* Video background option */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.4);
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 80px;
  color: var(--primary-color);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-card {
  background: rgba(15, 21, 32, 0.6);
  border: 1px solid rgba(227, 24, 55, 0.2);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(227, 24, 55, 0.1), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-color: rgba(227, 24, 55, 0.4);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--secondary-color), #ff2d55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 30px;
  color: var(--light-color);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #ff2d55, var(--secondary-color));
}

.feature-card h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.feature-card p {
  color: var(--accent-color);
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* Feature section animation */
.feature-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Stats Section */
.stats-section {
  padding: 120px 0;
  background: rgba(10, 14, 23, 0.8);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(227, 24, 55, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 40px 20px;
}

.stat-number {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1;
  text-shadow: 0 5px 15px rgba(227, 24, 55, 0.3);
}

.stat-label {
  font-size: 1.3rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  opacity: 0.9;
}

/* Stats counter animation */
.stat-number {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.stat-number:nth-child(odd) {
  animation-delay: 0.2s;
}

.stat-number:nth-child(even) {
  animation-delay: 0.4s;
}

/* Footer */
.footer-league {
  background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
  padding: 120px 0 50px;
  border-top: 1px solid rgba(227, 24, 55, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-logo-img {
  height: 80px;
  width: auto;
}

.footer-logo p {
  color: var(--accent-color);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 60px;
}

.footer-column h4 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 1.3rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--secondary-color);
}

.footer-column a {
  display: block;
  color: var(--accent-color);
  text-decoration: none;
  margin-bottom: 18px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 20px;
}

.footer-column a::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-column a:hover::before {
  opacity: 1;
}

.footer-bottom {
  max-width: 1400px;
  margin: 70px auto 0;
  padding: 35px 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--accent-color);
  font-size: 1rem;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.7;
}

/* Newsletter section */
.newsletter-section {
  background: rgba(15, 21, 32, 0.5);
  padding: 60px 0;
  margin: 60px 0;
  border-radius: var(--border-radius);
  text-align: center;
}

.newsletter-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.newsletter-subtitle {
  color: var(--accent-color);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  background: rgba(10, 14, 23, 0.5);
  color: var(--light-color);
  font-size: 1rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.newsletter-button {
  padding: 15px 25px;
  background: var(--secondary-color);
  color: var(--light-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-button:hover {
  background: #ff2d55;
  transform: translateY(-2px);
}

/* Social Widget */
.social-widget {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 70px;
  height: 70px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
  animation: float 3s ease-in-out infinite;
}

.social-widget:hover {
  transform: scale(1.1) translateY(-5px);
  background: #ff2d55;
  box-shadow: var(--box-shadow-hover);
}

.social-widget i {
  font-size: 28px;
}

/* Discord Widget Specific */
.discord-widget {
  background: #5865F2;
}

.discord-widget:hover {
  background: #4752c4;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 120px;
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  border: none;
  border-radius: 50%;
  color: var(--light-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--box-shadow);
  animation: float 4s ease-in-out infinite;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: #ff2d55;
  box-shadow: var(--box-shadow-hover);
}

.back-to-top i {
  font-size: 24px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInFromBottom {
  from { 
    opacity: 0; 
    transform: translateY(50px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes zoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-buttons {
    gap: 10px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn-large {
    padding: 12px 24px;
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .feature-card {
    padding: 30px 20px;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--secondary-color), var(--primary-color));
}

/* Additional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(227, 24, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(227, 24, 55, 0.6);
  }
}