/* ============================
   Base & Reset Styles 
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color variables - Minecraft inspired */
  --primary-color: #5bb563; /* Bright Minecraft green */
  --secondary-color: #8b5d3a; /* Warm dirt brown */
  --accent-color: #ffa726; /* Warm torch orange */
  --success-color: #4caf50; /* Success green */
  --warning-color: #ff9800; /* Warning orange */
  --error-color: #f44336; /* Error red */

  /* Light mode defaults */
  --dark-bg: #212121; /* Dark gray for backgrounds */
  --light-bg: #f5f5f5; /* Light gray for backgrounds */
  --border-radius: 4px; /* Slightly rounded corners */
  --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Light mode theme variables */
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --feature-card-bg: #ffffff;
  --text-color: #333333;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.15);
  --border-color: #e0e0e0;
  --hover-bg: rgba(91, 181, 99, 0.1);
  --section-alt-bg: #eeeeee;
  --footer-bg: #333333;
  --download-section-bg: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* Dark mode overrides - Minecraft night theme */
[data-theme="dark"] {
  --bg-color: #1a1c2a; /* Deep night blue */
  --card-bg: #272a3f; /* Darker night blue */
  --feature-card-bg: #2d3250;
  --text-color: #e1e6f5; /* Soft white */
  --text-secondary: #b0b7d1; /* Light blue gray */
  --header-bg: rgba(0, 0, 0, 0.15); /* Dark night blue header */
  --border-color: #3b4063; /* Dark border */
  --hover-bg: rgba(91, 181, 99, 0.15); /* Subtle hover effect */
  --section-alt-bg: #22253a; /* Slightly lighter than base */
  --footer-bg: #14162a; /* Very dark blue */
  --download-section-bg: linear-gradient(135deg, #1a1c2a 0%, #14162a 100%);

  /* Adjust shadow for dark mode */
  --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-large: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Enhanced Dark Mode Styling */
[data-theme="dark"] .feature-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  background-color: var(--feature-card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .feature-icon {
  color: #6bc76e; /* Brighter green in dark mode */
}

[data-theme="dark"] .carousel-container {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .download-card {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .download-card.featured {
  box-shadow: 0 5px 25px rgba(255, 167, 38, 0.2);
  background-color: rgba(255, 167, 38, 0.15);
}

/* Dark mode glow effects */
[data-theme="dark"] .btn-primary {
  box-shadow: 0 0 10px rgba(91, 181, 99, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 0 15px rgba(91, 181, 99, 0.4);
}

/* Enhance dark mode contrast for text */
[data-theme="dark"] h2 {
  color: #7dc581; /* Slightly lighter green for headers in dark mode */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Smooth transition between light and dark mode */
body,
body::before,
.site-header,
.feature-card,
.carousel-container,
.download-card,
.social-link,
.btn,
.theme-toggle,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  transition: all 0.4s ease-in-out;
}

/* Typography */
body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "VT323", monospace; /* Minecraft-style font */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 3.5rem;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), 4px 4px 0 rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--accent-color);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
  position: relative;
}

/* ============================
   Header & Navigation 
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--header-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-small);
  transition: var(--transition);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 40px;
  width: auto;
  margin-right: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.site-logo:hover {
  animation: blockBreak 0.5s ease-in-out;
}

.site-title {
  font-family: "VT323", monospace;
  font-size: 1.5rem;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

/* Dark Mode Toggle */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
  margin-left: 1rem;
  width: 36px;
  height: 36px;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.theme-toggle .material-icons {
  font-size: 1.2rem;
}

/* Add glow effect to the dark mode toggle */
[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .theme-toggle .material-icons {
  content: "light_mode";
}

/* ============================
   Hero Section with Dynamic Parallax
   ============================ */
.hero-section {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 0;
}

.hero-content {
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.1),
      transparent 70%
    ),
    radial-gradient(
      circle at bottom right,
      var(--primary-color, #5bb563) 0%,
      transparent 70%
    );
  opacity: 0.2;
  z-index: -1;
  border-radius: 8px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-size: 4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
  color: var(--text-light);
  animation: fadeInDown 1.5s ease-out, float 6s ease-in-out infinite;
  animation-delay: 0.3s, 1.5s;
}

.hero-content h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 3px;
  box-shadow: 0 0 10px var(--accent-color);
}

.hero-content p {
  margin-bottom: 2rem;
  font-size: 1.4rem;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.8s ease-out;
  animation-delay: 0.6s;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 2s ease-out forwards;
  animation-delay: 1s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   Buttons
   ============================ */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-small);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

.btn .material-icons {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #4a9651; /* Slightly darker green */
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 200%;
  animation: shimmer 3s infinite linear;
  pointer-events: none;
}

.btn-special {
  background-color: var(--accent-color);
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(255, 167, 38, 0.4);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.btn-special:hover {
  background-color: #f9a825; /* Adjusted orange */
  box-shadow: 0 0 20px rgba(255, 167, 38, 0.6);
  transform: translateY(-2px);
}

.btn-special::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  right: -100%;
  bottom: -100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 250% 250%;
  animation: enchant-glint 3.5s infinite linear;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid var(--text-light);
  color: var(--text-light);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.download-card.featured {
  animation: float 6s ease-in-out infinite;
}

/* ============================
   Features Section
   ============================ */
.features-section {
  background-color: var(--section-alt-bg);
  transition: var(--transition);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: var(--feature-card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-small);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.03);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: var(--primary-color);
  opacity: 0.9;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  animation: rotate 1.2s cubic-bezier(0.42, 0, 0.58, 1) forwards;
  color: var(--accent-color);
}

.feature-card h3 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  transition: var(--transition);
}

/* ============================
   Gallery / Carousel - Completely Rewritten
   ============================ */
.gallery-section {
  background-color: var(--dark-bg);
  color: var(--text-light);
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.gallery-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--dark-bg), transparent);
  z-index: 1;
}

.gallery-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--dark-bg), transparent);
  z-index: 1;
}

/* Main Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
  background: #000;
}

/* Carousel Track */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Individual Slides */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.carousel-slide.prev {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

.carousel-slide.next {
  opacity: 0;
  transform: translateX(100%);
  z-index: 1;
}

/* Slide Images - Perfect Centering */
.carousel-slide img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
  border-radius: inherit;
}

.carousel-slide.active img {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  z-index: 10;
}

/* Navigation Buttons */
.carousel-button {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 1.2rem;
}

.carousel-button:hover {
  background: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(91, 181, 99, 0.5);
}

.carousel-button:active {
  transform: scale(0.95);
}

/* Progress Container */
.carousel-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 2rem;
}

/* Dots Navigation */
.carousel-dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
  box-shadow: 0 0 15px var(--primary-color);
}

.carousel-dot.active::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse-ring 2s infinite;
}

/* Progress Bar */
.carousel-progress {
  width: 60%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: inherit;
  width: 0%;
  transition: width 0.1s linear;
}

/* Slide Overlay */
.carousel-slide::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Animations */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

/* ============================
   Description Section
   ============================ */
.description-section {
  background-color: var(--section-alt-bg);
}

.description-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  position: relative;
}

.description-content h2 {
  margin-bottom: 1.5rem;
}

.description-content p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.minecraft-quote {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  background-color: rgba(91, 181, 99, 0.1);
  font-style: italic;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Dark mode specific styles for the description section */
[data-theme="dark"] .description-content {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .minecraft-quote {
  background-color: rgba(91, 181, 99, 0.15);
  box-shadow: 0 0 20px rgba(91, 181, 99, 0.1);
  color: #e8f5e9;
}

.minecraft-quote blockquote {
  font-family: "VT323", monospace;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* ============================
   Download Section
   ============================ */
.download-section {
  background: var(--download-section-bg);
  color: var(--text-color);
  position: relative;
}

.download-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.download-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 3rem 2rem 2rem 2rem; /* Added extra top padding for badge */
  text-align: center;
  box-shadow: var(--shadow-medium);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease, border-color 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.download-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.download-card.featured {
  background-color: var(--card-bg);
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 167, 38, 0.3);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 2px;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
  padding-left: 1rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.download-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Centered Download Section - Updated for flexible layout */
.centered-download {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Emphasized Download Card */
.download-card.emphasized {
  max-width: 500px;
  transform: scale(1.05);
  padding: 3.5rem 2rem 3rem 2rem; /* Adjusted for badge space */
  background: var(--card-bg);
  border: 2px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(91, 181, 99, 0.3);
  position: relative;
}

/* Light mode emphasized card enhancements */
.download-card.emphasized::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(91, 181, 99, 0.05),
    rgba(255, 167, 38, 0.05)
  );
  border-radius: var(--border-radius);
  pointer-events: none;
}

/* Dark mode emphasized card background */
[data-theme="dark"] .download-card.emphasized {
  background: linear-gradient(
    145deg,
    rgba(91, 181, 99, 0.2),
    rgba(255, 167, 38, 0.1)
  );
  box-shadow: 0 10px 30px rgba(91, 181, 99, 0.4);
}

[data-theme="dark"] .download-card.emphasized::before {
  background: transparent;
}

.download-card.emphasized h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.download-card.emphasized .feature-list {
  font-size: 1.1rem;
  margin: 2rem 0;
}

.download-card.emphasized .feature-list li::before {
  font-size: 1.2rem;
}

.download-card.emphasized .download-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Add a pulsing animation to the download button */
.pulse-animation {
  animation: pulse 2s infinite;
}

/* Majestic Download Card Effects */
.download-card.emphasized {
  position: relative;
}

.download-card.emphasized::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 300% 300%;
  animation: shimmer 3s infinite linear;
  border-radius: var(--border-radius);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .download-card.emphasized::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 100%
  );
}

.download-card.emphasized .featured-badge {
  background-color: var(--accent-color);
  font-size: 0.85rem;
  position: absolute;
  z-index: 3;
}

.download-card.emphasized h3,
.download-card.emphasized p,
.download-card.emphasized .download-btn {
  position: relative;
  z-index: 2;
}

/* Special button effect for download */
.download-card.emphasized .download-btn {
  background: linear-gradient(45deg, var(--primary-color), #6bc76e);
  position: relative;
  overflow: hidden;
}

.download-card.emphasized .download-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 200%;
  animation: shimmer 3s infinite linear;
  pointer-events: none;
}

/* ============================
   Social Media Section
   ============================ */
.social-section {
  background-color: var(--section-alt-bg);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 1rem;
  border-radius: var(--border-radius);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-small);
  transition: var(--transition);
  min-width: 120px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: currentColor;
  opacity: 0.8;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: currentColor;
}

.social-icon {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

/* Social link colors */
.social-link.discord {
  color: #7289da;
}

.social-link.telegram {
  color: #0088cc;
}

.social-link.youtube {
  color: #ff0000;
}

.social-link.website {
  color: var(--primary-color);
}

/* Dark mode social links */
[data-theme="dark"] .social-link {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .social-link:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .social-link.discord {
  box-shadow: 0 4px 15px rgba(114, 137, 218, 0.15);
}

[data-theme="dark"] .social-link.discord:hover {
  box-shadow: 0 8px 25px rgba(114, 137, 218, 0.25);
}

[data-theme="dark"] .social-link.telegram {
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.15);
}

[data-theme="dark"] .social-link.telegram:hover {
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.25);
}

[data-theme="dark"] .social-link.youtube {
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.15);
}

[data-theme="dark"] .social-link.youtube:hover {
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.25);
}

[data-theme="dark"] .social-link.website {
  box-shadow: 0 4px 15px rgba(91, 181, 99, 0.15);
}

[data-theme="dark"] .social-link.website:hover {
  box-shadow: 0 8px 25px rgba(91, 181, 99, 0.25);
}

/* ============================
   Footer
   ============================ */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  padding: 3rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-column a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================
   Changelogs Section
   ============================ */
.changelogs-section {
  background-color: var(--card-bg);
  color: var(--text-color);
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.changelog-item {
  background-color: var(--bg-color);
  border-radius: 8px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
  transition: var(--transition);
}

.changelog-item:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.changelog-header {
  padding: 1rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.changelog-header h3 {
  margin-bottom: 0;
  margin-right: auto;
  font-size: 1.5rem;
}

.changelog-date {
  font-size: 0.9rem;
  opacity: 0.9;
}

.changelog-badge {
  background-color: var(--accent-color);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
}

.changelog-content {
  padding: 1.5rem;
}

.changelog-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-features li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.feature-badge.new {
  background-color: #4caf50;
  color: white;
}

.feature-badge.improved {
  background-color: #2196f3;
  color: white;
}

.feature-badge.fixed {
  background-color: #ff9800;
  color: white;
}

/* Responsive design for changelogs */
@media (max-width: 768px) {
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .changelog-header h3 {
    margin-right: 0;
  }
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--dark-bg);
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 1rem;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  /* Hero section */
  .hero-section {
    height: 80vh;
  }

  /* CTA Buttons */
  .cta-buttons {
    flex-direction: column;
  }

  /* Features */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Download cards */
  .download-options {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Small devices */
@media (max-width: 480px) {
  section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .social-links {
    flex-direction: column;
  }

  .social-link {
    width: 100%;
    flex-direction: row;
    justify-content: center;
  }

  .carousel-container {
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    border-radius: 0;
  }
}

/* ============================
   Dark mode blockquote styling
   ============================ */
[data-theme="dark"] blockquote {
  color: #e1e6f5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .description-content::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 5px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  border-radius: 50%;
  filter: blur(2px);
}

/* ============================
   Animations
   ============================ */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(91, 181, 99, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(91, 181, 99, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(91, 181, 99, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(100deg);
  }
  50% {
    transform: rotate(200deg);
  }
  75% {
    transform: rotate(300deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Block breaking animation - Minecraft style */
@keyframes blockBreak {
  0% {
    transform: scale(1);
  }
  10% {
    transform: scale(0.96) rotate(-1deg);
  }
  20% {
    transform: scale(0.98) rotate(1deg);
  }
  30% {
    transform: scale(0.96) rotate(-1deg);
  }
  40% {
    transform: scale(0.98) rotate(1deg);
  }
  50% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* Hero Button Pulse */
.hero-section .btn-primary {
  animation: pulse 3s infinite;
  animation-delay: 2s;
}

/* Enchantment Glint - Minecraft style */
@keyframes enchant-glint {
  0% {
    background-position: 0% 200%;
  }
  50% {
    background-position: 200% 0%;
  }
  100% {
    background-position: 0% 200%;
  }
}

.download-card.featured::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 300% 300%;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: enchant-glint 6s infinite linear;
  border-radius: var(--border-radius);
}

/* Apply animations to elements */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 200%;
  animation: shimmer 3s infinite linear;
  pointer-events: none;
}

.btn-special {
  animation: pulse 2s infinite;
}

.download-card.featured {
  animation: float 6s ease-in-out infinite;
}

.site-logo {
  transition: all 0.3s ease;
}

.site-logo:hover {
  animation: blockBreak 0.5s ease-in-out;
}

/* Hero section animations */
.hero-content {
  animation: fadeIn 1.2s ease-out;
}

.hero-content h1 {
  animation: fadeIn 1.5s ease-out, float 6s ease-in-out infinite;
  animation-delay: 0.3s, 1.5s;
}

.hero-content p {
  animation: fadeIn 1.8s ease-out;
  animation-delay: 0.6s;
}

.cta-buttons {
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
  animation-delay: 1s;
}

/* Make dark mode particles more visible */
[data-theme="dark"] .particle {
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Enhanced hover state for social links */
.social-link {
  position: relative;
  overflow: hidden;
}

.social-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 0;
}

.social-link:hover::after {
  transform: translateY(0);
}

@keyframes progressAnimation {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ============================
   Two-Card Download Layout
   ============================ */
.download-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* OR Separator Styling */
.or-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 60px;
  height: 80px;
}

.or-text {
  background: var(--card-bg);
  color: var(--text-color);
  padding: 0.75rem 1.25rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-medium);
  z-index: 2;
  position: relative;
}

.or-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -50px;
  right: -50px;
  height: 1px;
  background: var(--border-color);
  z-index: -1;
}

/* Dark mode OR separator */
[data-theme="dark"] .or-separator::before {
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .or-text {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Card modifications for two-card layout */
.download-options .download-card {
  flex: 1;
  max-width: 400px;
  min-width: 320px;
}

/* Marketplace badge styling */
.featured-badge.marketplace {
  background-color: #4285f4; /* Google/Microsoft blue */
  color: white;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .download-options {
    flex-direction: column;
    gap: 2rem;
  }
  
  .or-separator {
    transform: rotate(90deg);
    min-width: 80px;
    height: 60px;
  }
  
  .or-separator::before {
    left: -30px;
    right: -30px;
  }
  
  .download-options .download-card {
    max-width: 100%;
    min-width: auto;
  }
}

/* Enhanced hover effects for both cards */
.download-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.download-card.emphasized:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 20px 40px rgba(91, 181, 99, 0.4);
}
