/* Variables */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4deeea;
  --accent-color: #ffe64d;
  --text-color: #333;
  --background-color: #0f0f1b;
  --dark-bg: #080810;
  --container-width: 1200px;
  --header-height: 80px;
  --footer-bg: #080810;
  --footer-text: #f9f9f9;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --border-radius: 4px;
  --font-heading: 'Press Start 2P', cursive, sans-serif;
  --font-body: 'Roboto', sans-serif;
  --pixel-border: 4px solid var(--primary-color);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--footer-text);
  background-color: var(--background-color);
  background-image: 
    linear-gradient(rgba(15, 15, 27, 0.9), rgba(15, 15, 27, 0.9)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(77, 238, 234, 0.05) 2px, rgba(77, 238, 234, 0.05) 4px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header Styles */
header {
  background-color: var(--dark-bg);
  color: white;
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pixel-logo {
  width: 48px;
  height: 48px;
  background-color: var(--dark-bg);
  position: relative;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 0 3px var(--dark-bg), 0 0 0 6px var(--secondary-color);
  overflow: hidden;
}

.pixel-logo::before, .pixel-logo::after {
  content: '';
  position: absolute;
  background-color: var(--primary-color);
}

.pixel-logo::before {
  width: 12px;
  height: 24px;
  top: 8px;
  left: 8px;
  box-shadow: 20px 0 0 0 var(--primary-color);
}

.pixel-logo::after {
  width: 32px;
  height: 8px;
  bottom: 8px;
  left: 8px;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  text-shadow: 2px 2px 0 var(--dark-bg), 4px 4px 0 var(--secondary-color);
  letter-spacing: 1px;
  margin-bottom: 0;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: var(--spacing-lg);
}

nav ul li a {
  color: var(--secondary-color);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  padding: var(--spacing-sm) 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Main Content Styles */
main {
  min-height: calc(100vh - var(--header-height));
  padding: var(--spacing-lg) 0;
}

/* Game Area Styles */
.game-area {
  background-color: var(--dark-bg);
  padding: var(--spacing-lg) 0;
  color: white;
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.game-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(77, 238, 234, 0.1) 0%, transparent 20%);
  pointer-events: none;
}

.game-container {
  width: 100%;
  max-width: 800px;
  height: 600px;
  margin: 0 auto var(--spacing-lg);
  background-color: #000;
  border: 4px solid var(--primary-color);
  box-shadow: 
    0 0 0 4px var(--dark-bg),
    0 0 0 8px var(--secondary-color),
    0 5px 10px rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.game-placeholder {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
  text-align: center;
  text-shadow: 2px 2px 0 var(--dark-bg);
  letter-spacing: 1px;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.control-btn {
  background-color: var(--dark-bg);
  color: var(--primary-color);
  border: 3px solid var(--primary-color);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  font-weight: bold;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.control-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  transition: transform 0.3s ease;
}

.control-btn:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--secondary-color);
}

.control-btn:hover::after {
  transform: rotate(30deg) translate(50%, 50%);
}

.control-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--secondary-color);
}

.control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Button state styles */
.control-btn.retro-btn {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.15s ease;
}

.control-btn.retro-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.control-btn.active-btn {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  box-shadow: 
    0 0 5px var(--primary-color),
    0 0 10px rgba(255, 107, 107, 0.5);
}

.control-btn.available-btn {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.control-btn.available-btn:hover {
  background-color: var(--secondary-color);
  color: var(--dark-bg);
  box-shadow: 0 4px 0 var(--primary-color);
}

.control-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(100%);
}

/* Button click animation */
.control-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: none !important;
}

/* SEO Content Styles */
.seo-content {
  padding: var(--spacing-lg) 0;
  position: relative;
  background-color: var(--background-color);
}

.seo-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, var(--dark-bg) 1px, transparent 1px),
    linear-gradient(to bottom, var(--dark-bg) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.2;
  pointer-events: none;
}

.seo-content h2 {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
  font-size: 1.8rem;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.seo-content h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Common section styles */
.seo-hero,
.seo-feature,
.seo-what-is,
.seo-how-to,
.seo-why,
.seo-faq {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  background-color: rgba(8, 8, 16, 0.5);
  position: relative;
  overflow: hidden;
}

/* Hero Section */
.seo-hero {
  border-left: 4px solid var(--accent-color);
  padding: var(--spacing-lg);
  text-align: left;
  margin-bottom: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(8, 8, 16, 0.9) 0%, rgba(8, 8, 16, 0.7) 100%);
  position: relative;
  overflow: hidden;
}

.seo-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(77, 238, 234, 0.1) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-heading);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-text h2 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

.hero-text h2::after {
  display: none;
}

.hero-text p {
  font-size: 1rem;
  color: var(--footer-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  max-width: 90%;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

.hero-btn {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1rem;
  font-weight: bold;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  transition: transform 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover::before {
  transform: rotate(30deg) translate(50%, 50%);
}

.hero-btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: calc(var(--spacing-md) - 2px) calc(var(--spacing-lg) - 2px);
  font-size: 1rem;
  font-weight: bold;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-btn-secondary:hover {
  background-color: rgba(77, 238, 234, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background-color: rgba(0, 0, 0, 0.3);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  border-left: 2px solid var(--accent-color);
}

.feature-icon {
  font-size: 1.2rem;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--footer-text);
}

.hero-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 130%; /* Aspect ratio for game cover */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border: 4px solid var(--secondary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.game-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-image:hover .hero-image-overlay {
  opacity: 1;
}

.play-icon-container {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 107, 107, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-icon-container:hover {
  transform: scale(1.1);
  background-color: var(--primary-color);
}

.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}

/* Responsive styles for Hero section */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-image {
    order: 0;
    padding-bottom: 70%;
    margin-bottom: var(--spacing-md);
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-btn, 
  .hero-btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Feature Section Styles */
.feature-item {
    display: flex;
    margin-bottom: 3rem;
    background-color: rgba(15, 15, 27, 0.5);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature-item .feature-image {
    flex: 0 0 40%;
    overflow: hidden;
}

.feature-item .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.feature-item .feature-content {
    flex: 0 0 60%;
    padding: 2rem;
}

/* Reverse layout for even items */
.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Feature grid layout */
.feature-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Responsive styles */
@media (max-width: 768px) {
    .feature-item, 
    .feature-item.reverse,
    .feature-item:nth-child(even) {
        flex-direction: column;
    }
    
    .feature-item .feature-image,
    .feature-item.reverse .feature-image,
    .feature-item .feature-content,
    .feature-item.reverse .feature-content {
        flex: 0 0 100%;
    }
    
    .feature-item .feature-image {
        height: 250px;
    }
    
    .feature-item .feature-content {
        padding: 1.5rem;
    }
}

/* Feature Section */
.seo-feature {
    border-right: 4px solid var(--primary-color);
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.highlight-tag {
    background-color: rgba(255, 107, 107, 0.2);
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.feature-cta {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background-color: rgba(8, 8, 16, 0.5);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.feature-btn {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* What Is Section */
.seo-what-is {
  border-left: 4px solid var(--secondary-color);
}

.what-is-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.what-is-item {
  display: flex;
  margin-bottom: 1rem;
  background-color: rgba(15, 15, 27, 0.5);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-is-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.what-is-image {
  flex: 0 0 40%;
  overflow: hidden;
}

.what-is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.what-is-item:hover .what-is-image img {
  transform: scale(1.05);
}

.what-is-text {
  flex: 0 0 60%;
  padding: 2rem;
}

.what-is-text h3 {
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
}

.what-is-text p {
  margin-bottom: var(--spacing-md);
}

/* Reverse layout for even items */
.what-is-item.reverse {
  flex-direction: row-reverse;
}

.what-is-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* Responsive styles */
@media (max-width: 768px) {
  .what-is-item,
  .what-is-item.reverse,
  .what-is-item:nth-child(even) {
    flex-direction: column;
  }
  
  .what-is-image {
    flex: 0 0 100%;
    height: 250px;
  }
  
  .what-is-text {
    flex: 0 0 100%;
    padding: 1.5rem;
  }
}

/* How To Section */
.seo-how-to {
  border-right: 4px solid var(--accent-color);
}

.how-to-steps {
  counter-reset: step-counter;
  position: relative;
}

/* Why Section */
.seo-why {
  border-left: 4px solid var(--primary-color);
}

/* FAQ Section */
.seo-faq {
  border-right: 4px solid var(--secondary-color);
  margin-bottom: 0;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Responsive styles for SEO content */
@media (max-width: 768px) {
  .seo-content h2 {
    font-size: 1.5rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .seo-content h2 {
    font-size: 1.2rem;
  }
  
  .seo-hero,
  .seo-feature,
  .seo-what-is,
  .seo-how-to,
  .seo-why,
  .seo-faq {
    padding: var(--spacing-md);
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.featured-games {
  margin-top: var(--spacing-lg);
  background-color: rgba(8, 8, 16, 0.5);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  border-right: 4px solid var(--secondary-color);
}

.featured-games h3 {
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  position: relative;
}

.featured-games h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

/* Footer Styles */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--spacing-lg) 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--secondary-color);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 120%, rgba(77, 238, 234, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-left: 15px;
}

.footer-section ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 8px;
  color: var(--primary-color);
}

.footer-section a {
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.copyright {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(77, 238, 234, 0.1);
  font-size: 0.8rem;
  position: relative;
}

.copyright p {
  position: relative;
  display: inline-block;
  padding: 0 var(--spacing-md);
  z-index: 1;
}

.copyright p::before,
.copyright p::after {
  content: '◈';
  color: var(--primary-color);
  font-size: 0.8rem;
  margin: 0 var(--spacing-sm);
}

/* Responsive Styles */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: var(--spacing-md) 0;
  }
  
  header .container {
    flex-direction: column;
  }
  
  nav {
    margin-top: var(--spacing-md);
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 var(--spacing-md);
  }
  
  .game-container {
    height: 400px;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: var(--spacing-sm) 0;
  }
  
  .game-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .control-btn {
    width: 100%;
    max-width: 200px;
    margin-bottom: var(--spacing-sm);
  }
  
  .game-container {
    height: 300px;
  }
}

/* Game Layout Styles */
.game-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.game-main {
  display: flex;
  flex-direction: column;
}

.game-container {
  width: 100%;
  height: 500px;
  margin: 0 auto var(--spacing-md);
  background-color: #000;
  border: 4px solid var(--primary-color);
  box-shadow: 
    0 0 0 4px var(--dark-bg),
    0 0 0 8px var(--secondary-color),
    0 5px 10px rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Game Controls */
.game-controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

/* Side Navigation Styles */
.side-nav {
  background-color: rgba(8, 8, 16, 0.7);
  border-radius: var(--border-radius);
  border-right: 4px solid var(--secondary-color);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  height: 622px; /* Match combined height of game container, controls and gap */
}

.side-nav h3 {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  position: relative;
}

.side-nav h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.side-nav-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  flex-grow: 1;
  align-content: center;
}

.side-nav .game-nav-item {
  padding: var(--spacing-sm);
}

.side-nav .game-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: var(--spacing-sm);
}

.side-nav .game-title {
  font-size: 0.6rem;
  text-align: center;
}

/* Add more games text at bottom of side-nav */
.side-nav::after {
  content: 'More games below';
  display: block;
  text-align: center;
  color: var(--secondary-color);
  font-size: 0.7rem;
  margin-top: var(--spacing-md);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  opacity: 0.7;
  padding-top: var(--spacing-sm);
  border-top: 1px dashed rgba(77, 238, 234, 0.3);
}

/* Bottom Navigation Styles */
.bottom-nav {
  background-color: rgba(8, 8, 16, 0.7);
  border-radius: var(--border-radius);
  border-bottom: 4px solid var(--primary-color);
  padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
  position: relative;
  overflow: hidden;
  width: 100%; /* Full width of the game-main container */
}

.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 90%, rgba(255, 107, 107, 0.1) 0%, transparent 30%),
                    radial-gradient(circle at 90% 10%, rgba(77, 238, 234, 0.1) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.bottom-nav h3 {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.bottom-nav h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.bottom-nav-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
}

/* Game Navigation Item Styles */
.game-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.3s ease, box-shadow 0.3s ease;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.game-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.game-nav-item:hover {
  transform: translateY(-5px);
  filter: brightness(1.2);
  background-color: rgba(255, 107, 107, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.game-nav-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.game-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #000;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon {
  width: 80%;
  height: 80%;
  position: relative;
}

.game-title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--footer-text);
  text-align: center;
  margin-top: var(--spacing-sm);
  letter-spacing: 0.5px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

/* Game Thumbnails - Styled with pixel art icons */
.game-nav-item[data-game="space-invaders"] .game-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Crect width='50' height='50' fill='transparent'/%3E%3Crect x='15' y='15' width='20' height='5' fill='%23ff6b6b'/%3E%3Crect x='10' y='20' width='30' height='5' fill='%23ff6b6b'/%3E%3Crect x='5' y='25' width='40' height='5' fill='%23ff6b6b'/%3E%3Crect x='5' y='30' width='10' height='5' fill='%23ff6b6b'/%3E%3Crect x='35' y='30' width='10' height='5' fill='%23ff6b6b'/%3E%3Crect x='20' y='30' width='10' height='5' fill='%23ff6b6b'/%3E%3Crect x='10' y='35' width='5' height='5' fill='%23ff6b6b'/%3E%3Crect x='35' y='35' width='5' height='5' fill='%23ff6b6b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.game-nav-item[data-game="pacman"] .game-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='%23ffe64d'/%3E%3Cpath d='M25 15 L45 25 L25 35 Z' fill='%23000'/%3E%3Ccircle cx='20' cy='18' r='3' fill='%23000'/%3E%3Ccircle cx='38' cy='15' r='3' fill='%234deeea'/%3E%3Ccircle cx='38' cy='25' r='3' fill='%234deeea'/%3E%3Ccircle cx='38' cy='35' r='3' fill='%234deeea'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.game-nav-item[data-game="tetris"] .game-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Crect x='10' y='10' width='10' height='10' fill='%234deeea'/%3E%3Crect x='20' y='10' width='10' height='10' fill='%234deeea'/%3E%3Crect x='30' y='10' width='10' height='10' fill='%234deeea'/%3E%3Crect x='10' y='20' width='10' height='10' fill='%234deeea'/%3E%3Crect x='10' y='30' width='10' height='10' fill='%23ff6b6b'/%3E%3Crect x='20' y='30' width='10' height='10' fill='%23ff6b6b'/%3E%3Crect x='30' y='30' width='10' height='10' fill='%23ff6b6b'/%3E%3Crect x='20' y='20' width='10' height='10' fill='%23ffe64d'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.game-nav-item[data-game="snake"] .game-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Crect x='10' y='10' width='10' height='10' fill='%234deeea'/%3E%3Crect x='20' y='10' width='10' height='10' fill='%234deeea'/%3E%3Crect x='30' y='10' width='10' height='10' fill='%234deeea'/%3E%3Crect x='30' y='20' width='10' height='10' fill='%234deeea'/%3E%3Crect x='30' y='30' width='10' height='10' fill='%234deeea'/%3E%3Crect x='20' y='30' width='10' height='10' fill='%234deeea'/%3E%3Ccircle cx='15' cy='15' r='3' fill='%23000'/%3E%3Ccircle cx='35' cy='35' r='5' fill='%23ff6b6b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.game-nav-item[data-game="pong"] .game-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Crect x='5' y='15' width='5' height='20' fill='%23ffe64d'/%3E%3Crect x='40' y='15' width='5' height='20' fill='%23ff6b6b'/%3E%3Ccircle cx='25' cy='25' r='5' fill='%234deeea'/%3E%3Cline x1='25' y1='5' x2='25' y2='45' stroke='%23ffffff' stroke-width='1' stroke-dasharray='2,2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.game-nav-item[data-game="asteroids"] .game-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpolygon points='25,10 30,20 40,25 30,30 25,40 20,30 10,25 20,20' fill='none' stroke='%234deeea' stroke-width='2'/%3E%3Ccircle cx='15' cy='15' r='5' fill='none' stroke='%23ffe64d' stroke-width='2'/%3E%3Ccircle cx='35' cy='35' r='7' fill='none' stroke='%23ff6b6b' stroke-width='2'/%3E%3Cpath d='M20,20 L30,30 M30,20 L20,30' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.game-nav-item[data-game="frogger"] .game-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Crect x='20' y='5' width='10' height='10' fill='%234deeea'/%3E%3Crect x='10' y='15' width='10' height='5' fill='%234deeea'/%3E%3Crect x='30' y='15' width='10' height='5' fill='%234deeea'/%3E%3Crect x='15' y='20' width='20' height='15' fill='%234deeea'/%3E%3Crect x='10' y='25' width='5' height='10' fill='%234deeea'/%3E%3Crect x='35' y='25' width='5' height='10' fill='%234deeea'/%3E%3Ccircle cx='20' cy='15' r='2' fill='%23000'/%3E%3Ccircle cx='30' cy='15' r='2' fill='%23000'/%3E%3Crect x='5' y='40' width='40' height='5' fill='%23ff6b6b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Responsive Game Layout - Preserve 5 columns as much as possible */
@media (max-width: 1200px) {
  .bottom-nav-items {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  
  .game-title {
    font-size: 0.6rem;
  }
}

@media (max-width: 992px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  
  .side-nav {
    border-right: none;
    border-left: 4px solid var(--secondary-color);
    margin-top: var(--spacing-md);
    height: auto;
    padding-bottom: var(--spacing-lg);
  }
  
  .side-nav::after {
    content: '';
    display: none;
  }
  
  .side-nav-items {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
  }
  
  .game-nav-item {
    width: auto;
  }
  
  .bottom-nav-items {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .side-nav-items {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .bottom-nav-items {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  
  .game-nav-item {
    padding: 6px;
  }
  
  .game-title {
    font-size: 0.55rem;
  }
  
  .game-container {
    height: 400px;
  }
  
  .side-nav {
    height: auto;
  }
}

@media (max-width: 576px) {
  .side-nav-items {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bottom-nav-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .game-title {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .side-nav-items {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bottom-nav-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .game-nav-item {
    width: 100%;
  }
  
  .game-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .control-btn {
    width: 100%;
    max-width: 200px;
    margin-bottom: var(--spacing-sm);
  }
}

/* Active game state */
.game-nav-item.active-game {
  background-color: rgba(255, 107, 107, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.game-nav-item.active-game::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.game-nav-item.active-game .game-thumb {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(255, 230, 77, 0.5);
}

.game-nav-item.active-game .game-title {
  color: var(--accent-color);
  font-weight: bold;
}

/* Game Placeholder Welcome Message */
.welcome-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
}

.welcome-message h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

.welcome-message p {
  color: var(--secondary-color);
  font-size: 1rem;
  max-width: 80%;
  line-height: 1.6;
}

/* Game iframe styling */
#game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background-color: #000;
}

.game-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-family: var(--font-heading);
  text-align: center;
  font-size: 1rem;
  flex-direction: column;
} 