/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

:root {
  /* Apex Legends Color Palette */
  --apex-red: #DA292E;
  --apex-dark-red: #B91C1C;
  --apex-orange: #FF6B35;
  --apex-yellow: #FFB700;
  --apex-dark: #0A0E1A;
  --apex-darker: #050811;
  --apex-gray: #1A1F2E;
  --apex-light-gray: #8B92A3;
  --apex-white: #F0F0F0;
  --apex-accent: #00D4FF;
  
  /* UI Colors */
  --bg-primary: var(--apex-darker);
  --bg-secondary: var(--apex-dark);
  --bg-tertiary: var(--apex-gray);
  --text-primary: var(--apex-white);
  --text-secondary: var(--apex-light-gray);
  --accent-primary: var(--apex-red);
  --accent-secondary: var(--apex-orange);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rajdhani", sans-serif;
}

body {
  background: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.apex-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hex-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(30deg, transparent 49%, rgba(218, 41, 46, 0.1) 49%, rgba(218, 41, 46, 0.1) 51%, transparent 51%),
    linear-gradient(-30deg, transparent 49%, rgba(218, 41, 46, 0.1) 49%, rgba(218, 41, 46, 0.1) 51%, transparent 51%);
  background-size: 30px 30px;
  animation: hexFloat 20s ease-in-out infinite;
}

.particle-field {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255, 107, 53, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(218, 41, 46, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0, 212, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: particleFloat 15s linear infinite;
}

@keyframes hexFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes particleFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}


.home-section {
  position: relative;
  background: transparent;
  /* height: 80vh; */
  margin-top: 80px;
  left: 0;
  width: 100%;
  transition: all 0.3s ease;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 50px;
}

/* Hero Section */
.apex-hero-section {
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
}

.apex-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 50px;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.title-word {
  color: var(--text-primary);
  text-shadow: 
    0 0 20px rgba(218, 41, 46, 0.5),
    0 0 40px rgba(218, 41, 46, 0.3);
  animation: titleGlow 2s ease-in-out infinite alternate;
  animation-delay: calc(var(--word-index) * 0.1s);
}

.title-word:nth-child(1) { --word-index: 0; }
.title-word:nth-child(2) { --word-index: 1; }
.title-word:nth-child(3) { --word-index: 2; }
.title-word:nth-child(4) { --word-index: 3; }

.title-word.accent {
  color: var(--apex-red);
  text-shadow: 
    0 0 20px rgba(218, 41, 46, 0.8),
    0 0 40px rgba(218, 41, 46, 0.5);
}

@keyframes titleGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.2); }
}

/* Search Container */
.apex-search-container {
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.8), rgba(10, 14, 26, 0.8));
  border: 2px solid rgba(218, 41, 46, 0.3);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.apex-search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-input-wrapper {
  position: relative;
}

.apex-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.apex-input:focus {
  outline: none;
  border-color: var(--apex-red);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 20px rgba(218, 41, 46, 0.3);
}

.apex-input::placeholder {
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--apex-red), transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.apex-input:focus ~ .input-line {
  width: 100%;
}

/* Platform Selector */
.platform-selector {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.platform-btn {
  flex: 1;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(139, 146, 163, 0.2);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.platform-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(218, 41, 46, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.platform-btn.active::before {
  width: 150%;
  height: 150%;
}

.platform-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: all 0.3s ease;
}

.platform-btn span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.platform-btn.active {
  background: rgba(218, 41, 46, 0.2);
  border-color: var(--apex-red);
  color: var(--text-primary);
}

.platform-btn[data-platform="PC"].active {
  border-color: #2195cf;
  background: rgba(33, 149, 207, 0.2);
}

.platform-btn[data-platform="X1"].active {
  border-color: #61cf21;
  background: rgba(97, 207, 33, 0.2);
}

.platform-btn[data-platform="PS4"].active {
  border-color: #214dcf;
  background: rgba(33, 77, 207, 0.2);
}

/* Search Button */
.apex-search-btn {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--apex-red) 0%, var(--apex-dark-red) 100%);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.apex-search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.apex-search-btn:hover::before {
  left: 100%;
}

.apex-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 25px rgba(218, 41, 46, 0.4),
    0 0 30px rgba(218, 41, 46, 0.3);
}

.apex-search-btn:active {
  transform: translateY(0);
}

/* Platform Info */
.apex-platform-info {
  margin-top: 20px;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 146, 163, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 1;
}

.apex-platform-info i {
  color: var(--apex-orange);
  font-size: 20px;
  flex-shrink: 0;
}

.apex-platform-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alerts */
.apex-alert {
  padding: 15px 20px;
  margin: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  opacity: 0;
  backdrop-filter: blur(10px);
}

.apex-alert i {
  font-size: 24px;
  flex-shrink: 0;
}

.apex-alert-maintenance {
  background: rgba(218, 41, 46, 0.2);
  border: 2px solid var(--apex-red);
  color: var(--text-primary);
  position: absolute;
  top: 20px;
  right: 20px;
}

.apex-alert-info {
  background: rgba(0, 212, 255, 0.2);
  border: 2px solid var(--apex-accent);
  color: var(--text-primary);
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Discord Login Button */
.apex-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 20px);
  padding: 12px;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
  margin: 0 auto;
}


.apex-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.apex-login-btn i {
  font-size: 20px;
}

.contributor-title,
.supporter-title {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid rgba(139, 146, 163, 0.2);
  margin-top: 10px;
}

.contributor-title {
  color: var(--apex-orange);
}

.supporter-title {
  color: var(--apex-accent);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .apex-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
  
  .apex-search-container {
    padding: 20px;
  }
  
  .platform-selector {
    flex-wrap: wrap;
  }
  
  .platform-btn {
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  
.home-section {
  left: 0;
  width: 100%;
}
  
  .apex-hero-section {
    padding: 0 15px;
  }
  
  .apex-search-form {
    gap: 15px;
  }
  
  .apex-input {
    font-size: 16px;
    padding: 12px 16px;
  }
  
  .apex-search-btn {
    font-size: 16px;
    padding: 14px 24px;
  }
}