/* Landing Page Styles for VaporRacer */

:root {
  --primary-color: #e98c00;
  --secondary-color: #7b2cbf;
  --accent-color: #00f5d4;
  --text-color: #ffffff;
  --background-color: #0a0a1a;
  --card-background: rgba(30, 30, 60, 0.7);
  --gradient-start: #7b2cbf;
  --gradient-end: #e98c00;
  
  /* Transition for theme switching */
  --transition-speed: 0.5s;
}

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

body {
  font-family: 'digital_font', 'Open Sans', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: linear-gradient(to bottom, rgba(10, 10, 26, 0.9), rgba(10, 10, 26, 0.7)), url('../Assets/Images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: background-color var(--transition-speed),
              color var(--transition-speed),
              background-image var(--transition-speed);
}

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

a:hover {
  text-shadow: 0 0 10px var(--accent-color);
}

h1, h2, h3 {
  font-family: 'digital_font', 'Pacifico', cursive;
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--accent-color);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
}

section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header and Footer */
#header-container, #footer-container {
  background-color: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  width: 100%;
}

#header-container {
  position: fixed;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  display: block; /* Ensure header is displayed */
  min-height: 60px; /* Minimum height for header */
}

#header-container.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background-color: rgba(10, 10, 26, 0.95);
}

body.light-theme #header-container.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
}

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

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--background-color), transparent);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  z-index: 2;
}

.hero-image {
  margin-top: 2rem;
  max-width: 100%;
  z-index: 2;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px var(--accent-color));
  animation: float 3s ease-in-out infinite;
}

.play-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.5);
  text-transform: uppercase;
}

.play-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.8);
  color: white;
  text-shadow: none;
}

/* About Section */
.about {
  background-color: rgba(10, 10, 26, 0.7);
  position: relative;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

/* Features Section */
.features {
  position: relative;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

/* How to Play Section */
.how-to-play {
  background-color: rgba(10, 10, 26, 0.7);
  position: relative;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.step {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 10px;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.play-now-container {
  text-align: center;
  margin-top: 3rem;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

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

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .hero {
    min-height: auto;
    padding-top: 120px; /* Increased to accommodate the responsive header */
    padding-bottom: 3rem;
  }
  
  .feature-card, .step {
    min-width: 100%;
  }
  
  .about-content, .steps {
    flex-direction: column;
  }
  
  .about-image {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .play-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  section {
    padding: 2rem 1rem;
  }
}