/* home.css - Homepage specific styles */

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  max-width: 700px;
  z-index: 1;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(180, 22, 22, 0.3));
  will-change: opacity, transform;
}

.hero-title {
  font-size: 3rem;
  opacity: 0;
  margin-bottom: 1rem;
  will-change: opacity, transform;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #aaa;
  opacity: 0;
  line-height: 1.6;
  will-change: opacity, transform;
}

.hero-buttons {
  margin-top: 2rem;
  opacity: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  will-change: opacity, transform;
}

/* ============================================
   SCROLL INDICATOR - Z-INDEX FIX
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInScroll 0.8s ease 1.8s forwards;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  will-change: opacity;
  z-index: 100; /* HIGH Z-INDEX to prevent footer clicks */
  pointer-events: auto;
}

@keyframes fadeInScroll {
  to {
    opacity: 1;
  }
}

.scroll-arrow {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: bounce 2s ease-in-out infinite, pulse 2s ease-in-out infinite;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(180, 22, 22, 0.05);
  will-change: transform;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #b41616;
  border-radius: 50%;
  opacity: 0;
  animation: ripple 2s ease-out infinite;
}

.scroll-indicator:hover .scroll-arrow {
  border-color: #b41616;
  background: rgba(180, 22, 22, 0.15);
  transform: scale(1.1);
  color: #b41616;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(180, 22, 22, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(180, 22, 22, 0);
  }
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.scroll-text {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  animation: fadeText 2s ease-in-out infinite;
}

@keyframes fadeText {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ============================================
   SECTION BASE STYLES
   ============================================ */
.home-section {
  padding: 5rem 2rem;
  position: relative;
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.section-title.center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.15rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.section-subtitle.center {
  text-align: center;
}

/* ============================================
   IMPACT SECTION
   ============================================ */
.impact-section {
  background: linear-gradient(180deg, rgba(180, 22, 22, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, border-color;
}

.impact-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(180, 22, 22, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(180, 22, 22, 0.2);
}

.impact-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #b41616;
  margin-bottom: 0.75rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.impact-label {
  font-size: 1rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 6rem 2rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #bbb;
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ddd;
  font-size: 0.95rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.about-feature:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(5px);
}

.about-feature svg {
  color: #b41616;
  flex-shrink: 0;
  min-width: 24px;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo-img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(180, 22, 22, 0.3));
  will-change: transform;
}

/* ============================================
   PLATFORMS SECTION
   ============================================ */
.platforms-section {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.platform-item {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, border-color;
}

.platform-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(180, 22, 22, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.platform-icon-large {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.discord-bg {
  background: rgba(88, 101, 242, 0.1);
  color: #5865f2;
}

.roblox-bg {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.platform-item:hover .platform-icon-large {
  transform: scale(1.1);
}

.platform-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.platform-desc {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section {
  padding: 5rem 2rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.partner-item {
  height: 150px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.partner-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(180, 22, 22, 0.2);
  transform: translateY(-5px);
}

.partner-item span {
  color: #666;
  font-size: 1.1rem;
  font-weight: 600;
}

.partner-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.partner-item:hover img {
  opacity: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, rgba(180, 22, 22, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 6rem 2rem;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 22, 22, 0.5), transparent);
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(180, 22, 22, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-description {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.impact-card,
.platform-item,
.partner-item,
.about-text,
.about-logo-img,
.cta-box {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
    min-height: 90vh;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .scroll-indicator {
    bottom: 2rem;
  }

  .scroll-arrow {
    width: 40px;
    height: 40px;
  }

  .scroll-text {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .home-section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .impact-card {
    padding: 2rem 1.5rem;
  }

  .impact-number {
    font-size: 2.5rem;
  }

  .impact-label {
    font-size: 0.85rem;
  }

  .about-section {
    padding: 4rem 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-logo-img {
    width: 200px;
    height: 200px;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .platform-item {
    padding: 2rem 1.5rem;
  }

  .platform-icon-large {
    width: 100px;
    height: 100px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partner-item {
    height: 120px;
  }

  .cta-section {
    padding: 4rem 1.5rem;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn.large {
    width: 100%;
    padding: 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .impact-number {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .about-content {
    gap: 3rem;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}