:root {
  --primary-color: #0D0D0D;
  --secondary-color: #F6F6F6;
  --accent-color: #FF4D00;
  --text-color: #333333;
  --light-text: #F6F6F6;
  --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-secondary: Georgia, serif;
  --transition-speed: 0.3s;
  --spacing-unit: 4rem;
  --container-width: 90%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.5;
  transition: background-color var(--transition-speed), color var(--transition-speed);
  overflow-x: hidden;
}

[data-theme="dark"] {
  --secondary-color: #0D0D0D;
  --primary-color: #1A1A1A;
  --text-color: #F6F6F6;
  --light-text: #F6F6F6;
}

.container {
  width: var(--container-width);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: var(--secondary-color);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

[data-theme="dark"] .site-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color var(--transition-speed);
}

/* Theme Toggle */
.theme-toggle-container {
  position: relative;
  display: flex;
  align-items: center;
}

.theme-toggle {
  width: 50px;
  height: 25px;
  background-color: rgba(0,0,0,0.1);
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

[data-theme="dark"] .theme-toggle {
  background-color: rgba(255,255,255,0.1);
}

.theme-toggle .ball {
  position: absolute;
  width: 19px;
  height: 19px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-speed);
}

.theme-toggle[data-mode="light"] .ball {
  transform: translateX(25px);
}

.theme-label {
  margin-left: 12px;
  font-size: 0.85rem;
  color: var(--text-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 77, 0, 0.05) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.8;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-color);
  animation: fadeIn 1s ease-out;
}

.hero h1 span {
  color: var(--accent-color);
  display: inline-block;
  animation: pulse 3s infinite;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 3rem;
  animation: slideIn 1s ease-out;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.5s ease-out;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 77, 0, 0.2);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 200%;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.cta-button:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.game-logo {
  max-width: 180px;
  margin-bottom: 2rem;
  animation: logoSpin 20s infinite linear;
  transform-origin: center;
}

/* Features Section */
.section {
  padding: var(--spacing-unit) 0;
  background-color: var(--secondary-color);
  position: relative;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  position: relative;
  animation: fadeIn 1s ease-out;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -15px;
  left: 0;
  animation: expandLine 1s ease-out forwards;
  transform-origin: left;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background-color: rgba(0,0,0,0.03);
  border-radius: 8px;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

.feature-card:nth-child(odd) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(even) {
  animation-delay: 0.4s;
}

[data-theme="dark"] .feature-card {
  background-color: rgba(255,255,255,0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.3s ease;
}

.feature-card:hover::before {
  height: 100%;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--accent-color);
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.feature-card:hover h3 {
  padding-left: 10px;
}

/* Media Section */
.media-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.media-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
  animation: slideUp 0.8s ease-out;
}

.media-item:first-child {
  animation-delay: 0.2s;
}

.media-item:last-child {
  animation-delay: 0.4s;
}

.media-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

[data-theme="dark"] .media-item:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.media-item img, 
.media-item video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.media-item:hover img,
.media-item:hover video {
  transform: scale(1.05);
}

.media-caption {
  padding: 1rem;
  background-color: var(--secondary-color);
  border-top: 3px solid var(--accent-color);
  text-align: center;
}

/* Gameplay Section */
.gameplay-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.gameplay-list {
  list-style-type: none;
}

.gameplay-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  animation: fadeIn 0.5s ease-out;
  animation-fill-mode: both;
}

.gameplay-list li:nth-child(1) { animation-delay: 0.1s; }
.gameplay-list li:nth-child(2) { animation-delay: 0.2s; }
.gameplay-list li:nth-child(3) { animation-delay: 0.3s; }
.gameplay-list li:nth-child(4) { animation-delay: 0.4s; }
.gameplay-list li:nth-child(5) { animation-delay: 0.5s; }
.gameplay-list li:nth-child(6) { animation-delay: 0.6s; }
.gameplay-list li:nth-child(7) { animation-delay: 0.7s; }
.gameplay-list li:nth-child(8) { animation-delay: 0.8s; }

.gameplay-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Controls Section */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.control-group {
  padding: 2rem;
  background-color: rgba(0,0,0,0.03);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.control-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

[data-theme="dark"] .control-group {
  background-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .control-group:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.control-group h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent-color);
  text-align: center;
  position: relative;
}

.control-group h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.control-item {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

[data-theme="dark"] .control-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.control-item:hover {
  transform: translateX(5px);
}

.control-key {
  font-weight: bold;
  min-width: 120px;
  background-color: rgba(0,0,0,0.05);
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  margin-right: 1rem;
}

[data-theme="dark"] .control-key {
  background-color: rgba(255,255,255,0.1);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  background-color: rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .team-member {
  background-color: rgba(255,255,255,0.03);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

[data-theme="dark"] .team-member:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.team-member h3 {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.member-role {
  font-style: italic;
  color: var(--accent-color);
}

/* Footer */
footer {
  padding: 4rem 0;
  margin-top: 4rem;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--accent-color), transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 2rem;
}

.footer-column h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.copyright {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateX(-30px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes expandLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

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

@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* Card animation */
.card-hover {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card-hover .card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
}

.card-hover:hover .card-inner {
  transform: rotateY(180deg);
}

.card-hover .card-front, 
.card-hover .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-hover .card-front {
  background-color: #f5f5f5;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 2;
}

.card-hover .card-back {
  background-color: var(--accent-color);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  :root {
    --spacing-unit: 3rem;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-width: 95%;
    --spacing-unit: 2rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .media-container,
  .gameplay-content,
  .controls-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }

  .game-logo {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .control-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .control-key {
    margin-bottom: 0.5rem;
    margin-right: 0;
    width: 100%;
  }
}