/* ============================
   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(40, 40, 40, 0.35);
  --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(29, 32, 54, 0.35); /* 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);
  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);
}

[data-theme="dark"] .download-card.featured {
  box-shadow: 0 5px 25px rgba(255, 167, 38, 0.2);
}

/* 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
   ============================ */
.gallery-section {
  background-color: var(--dark-bg);
  color: var(--text-light);
  position: relative;
  padding: var(--section-padding);
  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;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3);
  /* Fixed aspect ratio container */
  aspect-ratio: 16 / 9;
  z-index: 2;
  perspective: 1000px;
}

.carousel-track {
  display: block;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
  transform: translateX(0) scale(1.05);
  filter: brightness(0.7) blur(2px);
  overflow: hidden;
  visibility: hidden;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: brightness(1) blur(0px);
  z-index: 3;
  visibility: visible;
  transition-delay: 0.1s; /* Small delay for smoother appearance */
}

.carousel-slide.prev {
  opacity: 0.7;
  transform: translateX(-30%) scale(0.9) rotateY(5deg);
  filter: brightness(0.6) blur(1px);
  z-index: 2;
  visibility: visible;
  transition-delay: 0.05s;
}

.carousel-slide.next {
  opacity: 0.7;
  transform: translateX(30%) scale(0.9) rotateY(-5deg);
  filter: brightness(0.6) blur(1px);
  z-index: 2;
  visibility: visible;
  transition-delay: 0.05s;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.carousel-slide.active img {
  transform: scale(1.08);
}

.carousel-slide.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease-out;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.carousel-button {
  background: rgba(0,0,0,0.7);
  border: none;
  color: var(--text-light);
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.carousel-button:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-color);
}

.carousel-button:active {
  transform: scale(0.95);
}

.carousel-button.prev {
  margin-right: 10px;
}

.carousel-button.next {
  margin-left: 10px;
}

.carousel-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.carousel-dots {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  padding: 5px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255,255,255,0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

.carousel-dot:hover {
  background-color: rgba(255,255,255,0.6);
  transform: scale(1.2);
}

.carousel-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.4);
  box-shadow: 0 0 10px 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.5;
  animation: pulse 2s infinite;
}

.carousel-progress {
  width: 70%;
  height: 4px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
  transform-origin: left center;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  animation: progressAnimation 6s linear forwards;
}

@keyframes progressAnimation {
  0% { width: 0; }
  100% { width: 100%; }
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    transparent 60%, 
    rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ============================
   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-light);
  position: relative;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.download-card {
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  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;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
}

.download-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.download-card.featured {
  background-color: rgba(255,167,38,0.15);
  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 */
.centered-download {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Emphasized Download Card */
.download-card.emphasized {
  max-width: 500px;
  transform: scale(1.05);
  padding: 3rem 2rem;
  background: linear-gradient(145deg, rgba(91, 181, 99, 0.15), rgba(255, 167, 38, 0.15));
  border: 2px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(91, 181, 99, 0.3);
}

.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;
}

/* Dark mode adjustments for emphasized card */
[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);
}

/* Majestic Download Card Effects */
.download-card.emphasized::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(145deg, 
    var(--primary-color), 
    transparent 50%,
    var(--accent-color));
  border-radius: calc(var(--border-radius) + 2px);
  z-index: -1;
  opacity: 0.7;
}

.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;
}

.download-card.emphasized .featured-badge {
  background-color: var(--primary-color);
  animation: pulse 2s infinite;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  box-shadow: 0 0 10px var(--primary-color);
}

/* 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;
}

/* Enhanced Carousel */
.carousel-slide {
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
  transform: scale(1.05);
  box-shadow: var(--shadow-large);
}

.carousel-button {
  opacity: 0.7;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-button:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

/* 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);
}

/* Gallery animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.1);
    filter: brightness(0.7) blur(2px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) blur(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) blur(0);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
    filter: brightness(0.7) blur(2px);
  }
}

@keyframes progressAnimation {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.carousel-slide.fade-out {
  opacity: 0;
  transform: scale(0.9);
  filter: brightness(0.7) blur(2px);
}

/* ============================
   Goofy Animations
   ============================ */
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(10deg) scale(1.1); }
  50% { transform: rotate(-15deg) scale(0.9); }
  75% { transform: rotate(5deg) scale(1.2); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-30px); }
  60% { transform: translateY(-15px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(720deg); }
}

@keyframes jelly {
  0%, 100% { transform: scale(1, 1); }
  25% { transform: scale(0.9, 1.1); }
  50% { transform: scale(1.1, 0.9); }
  75% { transform: scale(0.95, 1.05); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes flippy {
  0%, 100% { transform: perspective(400px) rotateY(0); }
  50% { transform: perspective(400px) rotateY(180deg); }
}

@keyframes boing {
  0%, 100% { transform: scale(1, 1) translateY(0); }
  10%, 30% { transform: scale(0.9, 1.1) translateY(-10px); }
  50% { transform: scale(1.05, 0.95) translateY(0); }
  70% { transform: scale(1.05, 0.95) translateY(-5px); }
}

@keyframes wobble {
  0%, 100% { transform: translateX(0) rotate(0); }
  15% { transform: translateX(-25px) rotate(-5deg); }
  30% { transform: translateX(20px) rotate(3deg); }
  45% { transform: translateX(-15px) rotate(-3deg); }
  60% { transform: translateX(10px) rotate(2deg); }
  75% { transform: translateX(-5px) rotate(-1deg); }
}

@keyframes glitch {
  0%, 100% { transform: translate(0); text-shadow: -2px 0 #00fffc, 2px 0 #fc00ff; }
  10% { transform: translate(-2px, -2px); text-shadow: 3px 0 #00fffc, -3px 0 #fc00ff; }
  20% { transform: translate(2px, 2px); text-shadow: -3px 0 #00fffc, 3px 0 #fc00ff; }
  30% { transform: translate(-2px, 2px); text-shadow: 3px 0 #00fffc, -3px 0 #fc00ff; }
  40% { transform: translate(2px, -2px); text-shadow: -3px 0 #00fffc, 3px 0 #fc00ff; }
  50% { transform: translate(0); text-shadow: 2px 0 #00fffc, -2px 0 #fc00ff; }
  60% { transform: translate(0); text-shadow: -2px 0 #00fffc, 2px 0 #fc00ff; }
}

.goofy-wiggle {
  animation: wiggle 2s infinite;
  transform-origin: center;
}

.goofy-bounce {
  animation: bounce 2s infinite;
}

.goofy-spin {
  animation: spin 3s infinite linear;
  display: inline-block;
}

.goofy-jelly {
  animation: jelly 3s infinite;
}

.goofy-shake {
  animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) infinite;
}

.goofy-rainbow {
  animation: rainbow 3s infinite linear;
}

.goofy-flip {
  animation: flippy 3s infinite;
  backface-visibility: visible !important;
  transform-style: preserve-3d;
}

.goofy-boing {
  animation: boing 1s infinite ease-in-out;
}

.goofy-wobble {
  animation: wobble 2s infinite ease-in-out;
}

.goofy-glitch {
  animation: glitch 0.5s infinite;
}

/* ============================
   Super Extra Goofy Effects
   ============================ */

/* Confetti animation */
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #5BB563;
  animation: confetti-fall 3s ease forwards;
}

/* Cursor trail effect */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.7));
}

/* Make everything more interactive */
h1:hover, h2:hover, h3:hover {
  animation: rainbow 1s infinite, wobble 0.5s infinite !important;
  cursor: pointer;
}

/* Special party mode effect */
.party-mode {
  animation: rainbow 2s infinite linear, shake 0.5s infinite !important;
}