/* General Styles */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #121212;
  color: #ccc;
}

h1,
h2,
h3 {
  margin: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-title {
  font-size: 3.5rem;
  color: #32cd32; /* Verde neón */
  animation: fadeIn 2s ease-in-out;
}

.hero-subtitle {
  margin: 1rem 0;
  font-size: 1.5rem;
  color: #fff;
}

.hero-button {
  display: inline-block;
  padding: 1rem 2rem;
  margin-top: 1rem;
  background-color: #32cd32;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.hero-button:hover {
  background-color: #228b22; /* Verde oscuro */
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Games Section */
.games-section {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #181818;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.game-card {
  background: #222;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.game-card:hover img {
  transform: scale(1.05);
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.game-card h3 {
  margin: 1rem 0;
  color: #32cd32;
}

.game-card p {
  margin: 0 1rem 1rem;
  color: #ccc;
}

/* Contact Section */
#contact {
  padding: 2rem 1rem;
  background-color: #181818;
  text-align: center;
}

#contact form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#contact input,
#contact textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #333;
  background-color: #333;
  color: #fff;
}

#contact button {
  padding: 1rem;
  background-color: #32cd32;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact button:hover {
  background-color: #228b22;
}

/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #32cd32;
  color: white;
  padding: 10px 20px;
  border-radius: 50%;
  font-size: 24px;
  display: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

#back-to-top:hover {
  background-color: #228b22;
}

/* Hero Section con Parallax */
.hero {
  background: url("fondo-juego.jpg") no-repeat center center fixed;
  background-size: cover;
  color: white;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  height: 100vh; /* Se asegura de que cubra toda la pantalla */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 4rem;
  color: #32cd32; /* Verde neón */
  animation: fadeIn 2s ease-in-out;
}

.hero-subtitle {
  margin: 1rem 0;
  font-size: 1.5rem;
  color: #fff;
}

.hero-button {
  display: inline-block;
  padding: 1rem 2rem;
  margin-top: 1rem;
  background-color: #32cd32;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.hero-button:hover {
  background-color: #228b22; /* Verde oscuro */
  transform: scale(1.05);
}

/* Animación de desvanecimiento */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Parallax Effect */
.hero {
  background-attachment: fixed; /* Establece el fondo para que se mueva de manera independiente */
}

/* Transiciones suaves para las secciones */
section {
  transition: all 0.5s ease; /* Transición suave al interactuar con las secciones */
}

section:hover {
  transform: translateY(10px);
  opacity: 0.9;
}

/* Ajuste de los efectos de transición */
main > section {
  margin-bottom: 2rem;
}

/* Sección Mi Sueño */
.dream-section {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #32cd32; /* Verde neón */
  margin-bottom: 2rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.dream-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.dream-text.highlight {
  font-size: 1.3rem;
  font-weight: bold;
  color: #32cd32;
  margin-top: 2rem;
}

/* Sección de Línea de Tiempo */
.timeline-section {
  background-color: #1a1a1a;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-date {
  font-size: 1.2rem;
  font-weight: bold;
  color: #32cd32;
  position: absolute;
  left: 0;
  top: 0;
}

.timeline-content {
  background-color: #333;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Íconos de habilidades */
.skills-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.skills-icons i {
  font-size: 3rem;
  color: #32cd32;
  transition: transform 0.3s;
}

.skills-icons i:hover {
  transform: scale(1.2);
  color: #228b22;
}

.auth-container {
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
}

.auth-container input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.auth-container button {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.auth-container button:hover {
  background-color: #218838;
}
