/* MineHubX - Home Page Styles */

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-primary);
  padding: var(--space-xxl) 0 calc(var(--space-xxl) + 2rem) 0; /* Extra padding at bottom */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 0, 255, 0.2) 0%, rgba(0, 183, 255, 0.1) 100%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 600px; /* Ensure enough height for the floating island */
  padding: var(--space-xl) 0;
}

.hero-content {
  max-width: 600px;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero h1 .highlight {
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.hero p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.hero-buttons a {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  height: 120px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.hero-buttons a i {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  transition: transform 0.3s ease;
}

.hero-buttons a:hover i {
  transform: translateY(-5px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: var(--accent-primary) !important;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(45deg);
  animation: glow 3s infinite;
}

/* Trophy Button Styling */
.btn-trophy {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  border-color: #FFD700 !important;
}

.btn-trophy:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
  background: linear-gradient(135deg, #FFC107, #FF9800);
}

.btn-trophy i {
  color: #000;
  animation: trophy-bounce 2s infinite;
}

@keyframes trophy-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes glow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
    opacity: 0.5;
  }
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.hero-visual {
  width: 45%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px; /* Fixed height for better positioning */
  overflow: visible;
}

/* Minecraft 3D Cube Animation */
.minecraft-scene {
  position: relative;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.cube-wrapper {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 60%; /* Moved down from 50% to 60% */
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  animation: float 8s ease-in-out infinite;
}

.cube-2 {
  transform: translate(-120%, -30%) scale(0.8);
  animation-delay: -2s;
  top: 65%; /* Positioned slightly lower */
}

.cube-3 {
  transform: translate(20%, -80%) scale(0.7);
  animation-delay: -4s;
  top: 55%; /* Positioned slightly higher for variety */
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate 20s linear infinite;
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Grass Block Textures */
.cube-wrapper:nth-child(1) .cube-face {
  background-color: #7fb238; /* Grass green */
}

.cube-wrapper:nth-child(1) .cube-face.top {
  background-color: #8bc34a; /* Lighter green for top */
}

.cube-wrapper:nth-child(1) .cube-face.bottom {
  background-color: #5d4037; /* Brown for dirt bottom */
}

/* Stone Block Textures */
.cube-wrapper:nth-child(2) .cube-face {
  background-color: #9e9e9e; /* Stone gray */
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
                    linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Diamond Block Textures */
.cube-wrapper:nth-child(3) .cube-face {
  background-color: #29b6f6; /* Diamond blue */
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 10%, transparent 10%, transparent 90%, rgba(255, 255, 255, 0.3) 90%),
                    linear-gradient(45deg, rgba(255, 255, 255, 0.3) 10%, transparent 10%, transparent 90%, rgba(255, 255, 255, 0.3) 90%);
  background-size: 20px 20px;
}

.cube-face.front  { transform: rotateY(0deg) translateZ(50px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(50px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(50px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(50px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(50px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }

.glow-effect {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 60%; /* Moved down to match the cubes */
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.3) 0%, rgba(var(--accent-primary-rgb), 0) 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rotate {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes float {
  0% {
    transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-5px) rotate(2deg);
  }
  100% {
    transform: translate(-50%, -50%) translateY(0px) rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.section-title i {
  margin-right: var(--space-sm);
  color: var(--accent-primary);
  font-size: 0.9em;
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
}

/* Features Section */
.features {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(76, 0, 255, 0.05), transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(0, 183, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.feature-card {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  opacity: 0.3;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card:hover .feature-icon::after {
  opacity: 0.6;
  transform: scale(1.1);
}

.feature-icon i {
  font-size: 36px;
  color: white;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon i {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  position: relative;
  padding-bottom: var(--space-sm);
}

.feature-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width var(--transition-normal);
}

.feature-card:hover h3::after {
  width: 60px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: auto;
}

/* Getting Started Section */
.getting-started {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.steps-container {
  position: relative;
  padding: var(--space-xl) 0;
}

.step-timeline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  transform: translateX(-50%);
  border-radius: 2px;
}

.steps {
  position: relative;
  z-index: 1;
}

.step {
  display: flex;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInStep 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.2s);
}

.step:nth-child(1) { --i: 1; }
.step:nth-child(2) { --i: 2; }
.step:nth-child(3) { --i: 3; }
.step:nth-child(4) { --i: 4; }

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

.step:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.step:nth-child(even) {
  text-align: left;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  margin: 0 var(--space-xl);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-content {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  flex: 1;
  max-width: 40%;
  position: relative;
}

.step-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--bg-tertiary);
  transform: translateY(-50%) rotate(45deg);
}

.step:nth-child(odd) .step-content::before {
  left: -10px;
}

.step:nth-child(even) .step-content::before {
  right: -10px;
}

.step-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* News Section */
.news {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.news-card {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-content {
  padding: var(--space-lg);
}

.news-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.news-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
}

.news-date i {
  margin-right: 6px;
}

.news-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.news-link {
  color: var(--accent-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.news-link i {
  margin-left: 6px;
  transition: transform var(--transition-normal);
}

.news-link:hover {
  color: var(--accent-secondary);
}

.news-link:hover i {
  transform: translateX(4px);
}

/* Categories Section */
.categories {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.categories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 90%, rgba(76, 0, 255, 0.05), transparent 40%),
              radial-gradient(circle at 90% 10%, rgba(0, 183, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.category-card {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 180px;
  justify-content: center;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background-color: var(--accent-secondary);
  border-color: var(--accent-primary);
}

.category-card i {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--accent-primary);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.category-card:hover i {
  color: var(--text-primary);
  transform: scale(1.1);
}

.category-card h3 {
  font-size: var(--text-lg);
  position: relative;
  z-index: 1;
  font-weight: 600;
}

/* Latest Section */
.latest {
  padding: var(--space-xxl) 0;
}

/* Community Section */
.community {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%, rgba(76, 0, 255, 0.05), transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(0, 183, 255, 0.05), transparent 40%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

.community-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-bottom: var(--space-xl);
}

.community-text {
  padding-right: var(--space-xl);
}

.community-highlight {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-lg);
  flex-shrink: 0;
}

.highlight-icon i {
  font-size: 24px;
  color: white;
}

.highlight-text h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.highlight-text p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.community-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.community-features li {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-start;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.community-features li:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.community-features i {
  color: var(--accent-primary);
  margin-right: var(--space-md);
  font-size: 24px;
  flex-shrink: 0;
}

.community-features h4 {
  font-size: var(--text-md);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.community-features p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.community-cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background-color: var(--accent-primary);
  color: white;
}

.community-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.community-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.main-image {
  margin-bottom: var(--space-md);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: var(--space-md);
  font-size: 14px;
  text-align: center;
}

.community-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.community-image:hover img {
  transform: scale(1.05);
}

.community-testimonials {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonial {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
}

.testimonial-content {
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: var(--space-lg);
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 48px;
  color: var(--accent-primary);
  opacity: 0.5;
  font-family: serif;
}

.testimonial-content p {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: var(--space-sm);
  object-fit: cover;
}

.testimonial-author h5 {
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-muted);
}

.community-platforms {
  text-align: center;
  margin-top: var(--space-xl);
}

.community-platforms h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.platform-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.platform-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  width: 100px;
}

.platform-link i {
  font-size: 32px;
  margin-bottom: var(--space-xs);
}

.platform-link span {
  font-size: 14px;
  font-weight: 600;
}

.platform-link.discord {
  color: #5865F2;
}

.platform-link.reddit {
  color: #FF4500;
}

.platform-link.twitter {
  color: #1DA1F2;
}

.platform-link.youtube {
  color: #FF0000;
}

.platform-link:hover {
  transform: translateY(-5px);
  background-color: var(--bg-tertiary);
  box-shadow: var(--shadow-md);
}

/* Leaderboard Highlight Section */
.leaderboard-highlight {
  margin: var(--space-xl) 0;
}

.leaderboard-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.leaderboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.leaderboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.2), transparent 70%);
  pointer-events: none;
}

.leaderboard-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-xl);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.leaderboard-icon i {
  font-size: 48px;
  color: #000;
  animation: trophy-pulse 2s infinite alternate;
}

@keyframes trophy-pulse {
  from {
    transform: scale(1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  to {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  }
}

.leaderboard-content {
  flex: 1;
}

.leaderboard-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.leaderboard-content h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, transparent);
  border-radius: 3px;
}

.leaderboard-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .leaderboard-card {
    flex-direction: column;
    text-align: center;
  }

  .leaderboard-icon {
    margin-right: 0;
    margin-bottom: var(--space-md);
  }

  .leaderboard-content h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Call to Action Section */
.cta {
  padding: var(--space-xxl) 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 0, 255, 0.3) 0%, rgba(0, 183, 255, 0.3) 100%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.cta-icon::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.cta-icon i {
  font-size: 48px;
  color: white;
  animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.cta h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(90deg, #ffffff, #b0b0b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.cta p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.cta-buttons a {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-buttons a i {
  margin-right: var(--space-sm);
  font-size: 1.2em;
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    var(--bg-tertiary) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  min-height: 300px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Animation Classes */
.feature-card, .news-card, .step, .community-highlight, .community-features li, .testimonial {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.news-card:nth-child(1) { transition-delay: 0.1s; }
.news-card:nth-child(2) { transition-delay: 0.2s; }
.news-card:nth-child(3) { transition-delay: 0.3s; }

.community-features li:nth-child(1) { transition-delay: 0.1s; }
.community-features li:nth-child(2) { transition-delay: 0.2s; }
.community-features li:nth-child(3) { transition-delay: 0.3s; }
.community-features li:nth-child(4) { transition-delay: 0.4s; }

.testimonial:nth-child(1) { transition-delay: 0.2s; }
.testimonial:nth-child(2) { transition-delay: 0.3s; }

.feature-card.animate,
.news-card.animate,
.step.animate,
.community-highlight.animate,
.community-features li.animate,
.testimonial.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: var(--space-xl);
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    width: 60%;
    max-width: 400px;
  }

  .minecraft-scene {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .step-content {
    max-width: 45%;
  }
}

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

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-content {
    grid-template-columns: 1fr;
  }

  .community-text {
    padding-right: 0;
    order: 2;
  }

  .community-showcase {
    order: 1;
    margin-bottom: var(--space-lg);
  }

  .community-cta {
    justify-content: center;
  }

  .steps-container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .step-timeline {
    left: 30px;
  }

  .step {
    flex-direction: row !important;
    text-align: left !important;
  }

  .step-number {
    margin-left: 0;
    margin-right: var(--space-md);
    width: 50px;
    height: 50px;
    font-size: var(--text-lg);
  }

  .step-content {
    max-width: calc(100% - 80px);
  }

  .step-content::before {
    display: none;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: var(--text-2xl);
  }

  .hero p {
    font-size: var(--text-md);
  }

  .hero-buttons {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 100%;
  }

  .hero-buttons a {
    height: 100px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: var(--space-md);
  }

  .hero-buttons a i {
    font-size: 1.8rem;
    margin-right: var(--space-md);
    margin-bottom: 0;
  }

  .btn-trophy {
    margin-top: 0;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: auto;
    padding: var(--space-lg);
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .category-card i {
    margin-right: var(--space-lg);
    margin-bottom: 0;
  }

  .community-highlight {
    flex-direction: column;
    text-align: center;
  }

  .highlight-icon {
    margin-right: 0;
    margin-bottom: var(--space-md);
  }

  .community-features li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .community-features i {
    margin-right: 0;
    margin-bottom: var(--space-sm);
  }

  .platform-link {
    width: 80px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 576px) {
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .hero h1 {
    font-size: var(--text-xl);
  }

  .hero p {
    font-size: var(--text-sm);
  }

  .hero-visual {
    width: 80%;
  }

  .minecraft-scene {
    width: 250px;
    height: 250px;
  }

  .cube-wrapper {
    width: 80px;
    height: 80px;
  }

  .cube-face.front { transform: rotateY(0deg) translateZ(40px); }
  .cube-face.back { transform: rotateY(180deg) translateZ(40px); }
  .cube-face.right { transform: rotateY(90deg) translateZ(40px); }
  .cube-face.left { transform: rotateY(-90deg) translateZ(40px); }
  .cube-face.top { transform: rotateX(90deg) translateZ(40px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(40px); }

  .section-title {
    font-size: var(--text-xl);
  }

  .section-subtitle {
    font-size: var(--text-md);
  }

  .step-content {
    padding: var(--space-sm);
  }

  .step-content h3 {
    font-size: var(--text-md);
  }

  .step-content p {
    font-size: 14px;
  }

  .news-card {
    max-width: 320px;
    margin: 0 auto;
  }

  .community-cta {
    flex-direction: column;
  }

  .testimonial-content {
    padding-left: var(--space-md);
  }

  .testimonial-content::before {
    font-size: 36px;
  }
}

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

  .minecraft-scene {
    width: 200px;
    height: 200px;
  }

  .cube-wrapper {
    width: 60px;
    height: 60px;
  }

  .cube-face.front { transform: rotateY(0deg) translateZ(30px); }
  .cube-face.back { transform: rotateY(180deg) translateZ(30px); }
  .cube-face.right { transform: rotateY(90deg) translateZ(30px); }
  .cube-face.left { transform: rotateY(-90deg) translateZ(30px); }
  .cube-face.top { transform: rotateX(90deg) translateZ(30px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(30px); }

  .platform-links {
    gap: var(--space-sm);
  }

  .platform-link {
    width: 70px;
    padding: var(--space-sm);
  }

  .platform-link i {
    font-size: 24px;
  }

  .platform-link span {
    font-size: 12px;
  }

  .cta h2 {
    font-size: var(--text-xl);
  }

  .cta p {
    font-size: var(--text-md);
  }
}
