/* =============================================
   FINAL HOME PAGE STYLES - RED THEME
   Unified backgrounds and improved sections
   Fixed Hero Rotation Positioning
   ============================================= */

/* Base body styling */
body {
  background: #0D0D0D;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('../../../static/media/mc.webp') no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  gap: 60px;
  transition: opacity 0.5s ease-in-out, background-image 0.8s ease-in-out;
}

.hero .highlight {
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
  min-width: 100%;
  text-align: left;
}

.hero .description p {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, #0D0D0D, rgba(0, 0, 0, 0));
  z-index: 2;
}

/* ========================================
   HERO CONTENT - FIXED POSITIONING
======================================== */

.content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(221, 2, 60, 0.15);
  border: 1px solid rgba(221, 2, 60, 0.4);
  border-radius: 50px;
  color: #dd023c;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title {
  animation: slideUp 0.6s ease-out 0.2s both;
  /* Fixed positioning to prevent layout shift */
  position: relative;
  width: 100%;
  min-height: 140px;
}

.title h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
  text-align: left;
  width: 100%;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.highlight {
  color: #dd023c;
  font-weight: bold;
  /* Force block display and full width for consistent positioning */
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
  left: 0 !important;
}

.description {
  animation: slideUp 0.6s ease-out 0.4s both;
  /* Fixed positioning to prevent layout shift */
  position: relative;
  width: 100%;
  min-height: 120px;
}

.description p {
  font-size: 1rem;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: left;
  width: 100%;
  position: relative;
  left: 0 !important;
}

/* ========================================
   BUTTONS
======================================== */

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideUp 0.6s ease-out 0.6s both;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
  background: #dd023c;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: #b00230;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(221, 2, 60, 0.4);
}

.button-primary {
  background: #dd023c;
  color: white;
  box-shadow: 0 10px 30px rgba(221, 2, 60, 0.3);
}

.button-primary:hover {
  background: #b00230;
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(221, 2, 60, 0.5);
}

.button-secondary {
  background: transparent;
  color: white;
  border: 2px solid #dd023c;
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgba(221, 2, 60, 0.1);
  border-color: #ff0044;
  transform: translateY(-2px);
}

/* ========================================
   TERMINAL COMPONENT
======================================== */

.terminal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 600px;
  max-width: 100%;
  height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: slideLeft 0.6s ease-out 0.4s both;
  z-index: 3;
  transition: all 0.3s ease;
}

.terminal:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(221, 2, 60, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Terminal Header */
.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn.close {
  background: #ff5f57;
}

.control-btn.minimize {
  background: #ffbd2e;
}

.control-btn.maximize {
  background: #28ca42;
}

.control-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.terminal-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.terminal-info {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

/* Terminal Content with Scrolling */
#console-lines {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #e0e0e0;
  font-size: 13px;
  line-height: 1.4;
  font-family: "JetBrains Mono", "Courier New", monospace;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.5px;
}

/* Custom scrollbar for console */
#console-lines::-webkit-scrollbar {
  width: 8px;
}

#console-lines::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

#console-lines::-webkit-scrollbar-thumb {
  background: rgba(221, 2, 60, 0.3);
  border-radius: 4px;
}

#console-lines::-webkit-scrollbar-thumb:hover {
  background: rgba(221, 2, 60, 0.5);
}

.line {
  margin-bottom: 2px;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0;
  transform: translateY(10px);
  animation: lineAppear 0.3s ease forwards;
  position: relative;
}

@keyframes lineAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.line::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #dd023c, transparent);
  opacity: 0;
  animation: cursorBlink 0.5s ease;
}

@keyframes cursorBlink {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Terminal Text Styles */
.success {
  color: #28ca42;
  font-weight: 600;
}

.warning {
  color: #ffbd2e;
  font-weight: 600;
}

.info {
  color: #007acc;
  font-weight: 600;
}

.progress-bar {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  width: 100px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin: 0 10px;
  vertical-align: middle;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dd023c, #ff4081);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Terminal Input */
.console-input {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.console-input .prompt {
  color: #dd023c;
  margin-right: 15px;
  white-space: nowrap;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(221, 2, 60, 0.3);
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.console-input .command {
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
  font-family: "JetBrains Mono", "Courier New", monospace;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #dd023c;
  margin-left: 2px;
  animation: cursorBlink2 1s infinite;
  box-shadow: 0 0 5px rgba(221, 2, 60, 0.5);
}

@keyframes cursorBlink2 {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Status Indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28ca42;
  box-shadow: 0 0 8px #28ca42;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}
/* ========================================
   FEATURES SECTION
======================================== */

.features-section {
  padding: 6rem 5%;
  background: #0D0D0D;
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
}

.features-title {
  text-align: center;
  margin-bottom: 4rem;
}

.features-title h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: 2px;
}

.features-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(221, 2, 60, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(221, 2, 60, 0.2), rgba(176, 2, 48, 0.2));
  border-radius: 12px;
  font-size: 1.5rem;
  color: #dd023c;
}

.feature-icon.glow {
  box-shadow: 0 0 20px rgba(221, 2, 60, 0.3);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ========================================
   HARDWARE SECTION - GRID LAYOUT
======================================== */

.hardware-section {
  padding: 6rem 5%;
  background: #0D0D0D;
}

.hardware-container {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(221, 2, 60, 0.15);
  border: 1px solid rgba(221, 2, 60, 0.4);
  border-radius: 50px;
  color: #dd023c;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hardware-container h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hardware-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.hardware-card {
  position: relative;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: center;
}

.hardware-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(221, 2, 60, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hardware-card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #dd023c, #b00230);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  z-index: 0;
}

.hardware-card:hover .hardware-card-glow {
  opacity: 0.15;
}

.hardware-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(221, 2, 60, 0.2), rgba(176, 2, 48, 0.2));
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: #dd023c;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.hardware-card:hover .hardware-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(221, 2, 60, 0.4);
}

.hardware-details {
  position: relative;
  z-index: 1;
}

.hardware-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.hardware-metric {
  font-size: 1.1rem;
  font-weight: 700;
  color: #dd023c;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px rgba(221, 2, 60, 0.3);
}

.hardware-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ========================================
   ACHIEVEMENTS SECTION WRAPPER
======================================== */

.achievements-section {
  background: #0D0D0D;
  width: 100%;
}

/* ========================================
   STATS SECTION
======================================== */

.stats-section {
  padding: 6rem 5% 0;
  text-align: center;
  color: #ffffff;
}

.stats-container {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.stats-section h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.stats {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #e5e7eb;
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

/* ========================================
   COUNTER SECTION
======================================== */

.counter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5% 6rem;
}

.counter-wrapper {
  position: relative;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 200px;
}

.counter-wrapper:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(221, 2, 60, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.counter-wrapper-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #dd023c, #b00230);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  z-index: 0;
}

.counter-wrapper:hover .counter-wrapper-glow {
  opacity: 0.15;
}

/* Icon styles */
.counter-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(221, 2, 60, 0.2), rgba(176, 2, 48, 0.2));
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: #dd023c;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.counter-wrapper:hover .counter-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(221, 2, 60, 0.4);
}

.counter {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #dd023c;
  text-shadow: 0 0 20px rgba(221, 2, 60, 0.5);
  position: relative;
  z-index: 1;
}

.counter-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ========================================
   COMPARISON SECTION - COMPACT TABLE
======================================== */

.comparison-section {
  padding: 6rem 5%;
  background: #0D0D0D;
}

.comparison-title-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.comparison-title-container h3 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.comparison-title-container > p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3rem;
}

.comparison-table {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 140px repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-header-row {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.alt-row {
  background: rgba(255, 255, 255, 0.02);
}

.price-row {
  font-weight: 700;
}

.comparison-cell {
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-cell:last-child {
  border-right: none;
}

.header-cell {
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-cell img {
  max-width: 60px;
  max-height: 40px;
  object-fit: contain;
  filter: brightness(0.9);
}

.winner-column {
  background: rgba(221, 2, 60, 0.05);
}

.winner-badge {
  position: absolute;
  top: 5px;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(135deg, #dd023c, #b00230);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(221, 2, 60, 0.4);
}

.label-cell {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  padding-left: 1.5rem;
}

.our-value {
  color: #dd023c;
  font-weight: 700;
  background: rgba(221, 2, 60, 0.05);
}

.best-badge,
.price-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  background: linear-gradient(135deg, #dd023c, #ff4081);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
  margin-right: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-notice {
  text-align: center;
  margin-top: 2rem;
}

.muted {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.comparison-highlight {
  color: #dd023c;
  font-weight: 700;
}
/* ========================================
   FAQ SECTION
======================================== */

.faq-section {
  padding: 6rem 5%;
  background: #0D0D0D;
}

.faq-container {
  max-width: 1400px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-header h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.faq-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 700px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.faq-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(221, 2, 60, 0.3);
  transform: translateY(-3px);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.faq-question i {
  color: #dd023c;
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.faq-question h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  padding-left: 2.25rem;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1200px) {
  .hero {
    gap: 40px;
  }
  
  .games-grid,
  .hardware-grid,
  .counter-container,
  .faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding: 3rem 5%;
    min-height: auto;
  }

  .content {
    max-width: 100%;
    text-align: center;
  }

  .buttons {
    justify-content: center;
  }

  .terminal {
    max-width: 100%;
    width: 100%;
  }

  .comparison-row {
    grid-template-columns: 120px repeat(4, 1fr);
    font-size: 0.85rem;
  }
  
  .comparison-cell {
    padding: 0.75rem 0.5rem;
  }

  .header-cell img {
    max-width: 50px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE FIXES - CRITICAL FOR HEADER OVERLAP */
@media (max-width: 768px) {
  /* Typography adjustments */
  .section-header h2,
  .features-title h2,
  .stats-section h2,
  .comparison-title-container h3,
  .faq-header h2,
  .hardware-container h2 {
    font-size: 1.75rem;
  }

  /* Hero section - FIXED FOR MOBILE */
  .hero {
    /* Add top padding to account for fixed header */
    padding: 100px 20px 2rem;
    /* Remove min-height on mobile to prevent overflow */
    min-height: auto;
    /* Ensure proper vertical spacing */
    gap: 2rem;
  }
  
  .content {
    /* Add extra top padding for safety */
    padding-top: 20px;
  }
  
  .title h1 {
    font-size: 1.75rem;
    /* Reduce min-height on mobile */
    min-height: auto;
  }
  
  .title {
    /* Remove fixed min-height on mobile */
    min-height: auto;
  }
  
  .description {
    /* Remove fixed min-height on mobile */
    min-height: auto;
  }
  
  .description p {
    font-size: 0.95rem;
  }

  /* Hide terminal on mobile */
  .terminal {
    display: none;
  }
  
  /* Hide comparison section on mobile */
  .comparison-section {
    display: none;
  }

  /* Game cards */
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .game-card {
    min-height: 400px;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Hardware grid */
  .hardware-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Comparison table - stack on mobile */
  .comparison-row {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .comparison-cell {
    text-align: left;
    padding: 0.875rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .comparison-cell:last-child {
    border-bottom: none;
  }

  .header-cell {
    justify-content: flex-start;
    padding: 1rem;
  }

  .label-cell {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem 1rem;
  }

  .winner-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
  
  /* Make each comparison row a card on mobile */
  .comparison-row {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
  }
  
  .comparison-header-row {
    display: none;
  }
  
  /* Add labels to mobile view */
  .comparison-cell::before {
    content: attr(data-label);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .label-cell::before,
  .header-cell::before {
    display: none;
  }

  /* Counter adjustments */
  .counter-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* FAQ grid */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Buttons */
  .button {
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
  }
  
  .view-all-games {
    margin-top: 1.5rem;
  }
  
  .view-all-games .button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  /* Section padding */
  .game-selector,
  .features-section,
  .hardware-section,
  .comparison-section,
  .faq-section {
    padding: 4rem 5%;
  }
  
  .stats-section {
    padding: 4rem 5% 2rem;
  }

  /* Typography */
  .section-header h2,
  .features-title h2,
  .stats-section h2,
  .comparison-title-container h3,
  .faq-header h2,
  .hardware-container h2 {
    font-size: 1.5rem;
  }
  
  .section-header p,
  .features-subtitle,
  .hardware-subtitle,
  .stats,
  .comparison-title-container > p,
  .faq-header p {
    font-size: 1rem;
  }

  /* Hero - ADDITIONAL MOBILE FIXES */
  .hero {
    /* Increase top padding for smaller screens */
    padding: 90px 1rem 2rem;
    gap: 2rem;
  }
  
  .content {
    padding-top: 10px;
  }
  
  .title h1 {
    font-size: 1.5rem;
  }

  /* Counter grid - single column */
  .counter-container {
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
  }

  /* Buttons full width on small mobile */
  .buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Hero minimal padding - FINAL MOBILE FIX */
  .hero {
    /* Ensure enough top padding to clear any fixed header */
    padding: 80px 1rem 1.5rem;
    /* Remove any min-height constraints */
    min-height: unset;
  }

  /* Terminal height reduction */
  .terminal {
    height: 350px;
  }

  /* Game cards more compact */
  .game-card {
    padding: 1.5rem;
    min-height: 380px;
  }
  
  .game-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  /* Feature cards more compact */
  .feature-card,
  .hardware-card,
  .faq-item {
    padding: 1.5rem;
  }

  /* Hardware icons smaller */
  .hardware-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  /* Counter wrapper more compact */
  .counter-wrapper {
    padding: 2rem 1.5rem;
    min-height: 180px;
  }
  
  .counter-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  /* Comparison adjustments */
  .comparison-cell {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  /* FAQ more compact */
  .faq-question i {
    font-size: 1.1rem;
  }
  
  .faq-question h4 {
    font-size: 1rem;
  }
  
  .faq-answer {
    font-size: 0.9rem;
    padding-left: 2rem;
  }
}

/* Landscape orientation fixes for tablets */
@media (max-width: 1024px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    flex-direction: row;
    /* Adjust padding for landscape tablets */
    padding-top: 80px;
  }
  
  .terminal {
    height: 450px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .counter-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
  .button,
  .game-button,
  .control-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .faq-item,
  .feature-card,
  .game-card,
  .hardware-card {
    cursor: default;
  }
}

/* Hide terminal console scrollbar across browsers */
#console-lines {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

/* WebKit browsers (Chrome, Safari, Edge) */
#console-lines::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}


.compare-button {
  background: #dd023c;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block; /* Changed to block for proper alignment */
  margin: 0 auto; /* Center horizontally */
  width: 100%; /* Full width */
  max-width: 230px; /* Optional max width */
}
