/* Importa fonte cartunesca */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --cor-primaria: #a4f901;
  --cor-secundaria: #ffffff;
  --cor-destaque: #8a2be2;
  --bg: #d1ff8f;
  --font-cartoon: 'Fredoka One', cursive;
  --font-pixel: 'Press Start 2P', cursive;
  --shadow-neon: 0 0 10px rgba(164, 249, 1, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-cartoon);
  background: var(--bg);
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-image: url('assets/cubie-pattern.png');
  background-attachment: fixed;
}

section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

section:nth-child(odd) {
  background-color: rgba(209, 255, 143, 0.9);
}

section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.9);
}

h1, h2 {
  color: var(--cor-destaque);
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--cor-primaria);
  border-radius: 4px;
}

.logo {
  width: 180px;
  margin: 20px auto;
  display: block;
  filter: drop-shadow(0 0 15px rgba(138, 43, 226, 0.6));
}

p {
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  background: var(--cor-primaria);
  color: #000;
  padding: 12px 24px;
  margin: 10px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 0 #000;
  position: relative;
  overflow: hidden;
  font-family: var(--font-cartoon);
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 5px 5px 0 #000, 0 0 15px rgba(164, 249, 1, 0.7);
}

.btn:hover::before {
  left: 100%;
}

.btn.secundario {
  background: var(--cor-destaque);
  color: #fff;
}

.btn.secundario:hover {
  box-shadow: 5px 5px 0 #000, 0 0 15px rgba(138, 43, 226, 0.7);
}

.galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  perspective: 1000px;
}

.jogo {
  background: var(--cor-secundaria);
  padding: 20px;
  border-radius: 20px;
  width: 280px;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
}

.jogo:hover {
  transform: translateY(-10px) rotateY(5deg);
  box-shadow: 8px 8px 0 #000, 0 0 20px rgba(138, 43, 226, 0.4);
}

.jogo img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.jogo h3 {
  color: var(--cor-destaque);
  margin: 10px 0;
  font-size: 1.4rem;
}

.jogo p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.download-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--cor-primaria);
  color: #000;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 2px 2px 0 #000;
  z-index: 1;
}

#protótipos video {
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  box-shadow: 4px 4px 0 #000;
  margin-top: 20px;
}

ul {
  list-style: none;
  margin-top: 20px;
}

ul li {
  margin: 10px 0;
}

ul a {
  color: var(--cor-destaque);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

ul a:hover {
  color: var(--cor-primaria);
  text-shadow: 0 0 5px rgba(138, 43, 226, 0.5);
}

footer {
  background: #111;
  color: #fff;
  padding: 30px 20px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-destaque), var(--cor-primaria));
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--cor-primaria);
  transform: translateY(-5px);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 30px rgba(164, 249, 1, 0.5);
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.fechar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
}

.fechar-modal:hover {
  color: var(--cor-destaque);
  transform: rotate(90deg);
}

.video-container {
  margin: 20px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-container video {
  width: 100%;
  display: block;
}

/* Animação na logo */
.logo {
  animation: bounceIn 1.5s ease;
}

@keyframes bounceIn {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.1); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* Efeito de partículas */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--cor-primaria);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-1000px) rotate(360deg); opacity: 0; }
}

/* Hero section */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 30px;
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Responsivo */
@media (max-width: 768px) {
  .galeria {
    flex-direction: column;
    align-items: center;
  }

  .jogo {
    width: 90%;
  }

  h1, h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
}

/* Add these styles to your existing CSS file */

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  height: 100px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--cor-primaria);
}

.nav-links .btn {
  padding: 8px 16px;
  margin: 0;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Devlog section */
.devlog-entry {
  max-width: 800px;
  margin: 40px auto;
}

.devlog-entry h3 {
  color: var(--cor-destaque);
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.devlog-entry video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 4px 4px 0 #000;
  margin-bottom: 20px;
}

.devlog-links {
  margin-top: 40px;
}

.devlog-links ul {
  display: inline-block;
  text-align: left;
}

.devlog-links li {
  margin: 15px 0;
}

.devlog-links i {
  margin-right: 10px;
  color: var(--cor-primaria);
}

/* About section */
.sobre-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.sobre-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.team-pics {
  flex: 1;
  min-width: 300px;
}

.team-pics img {
  width: 15%;
  border-radius: 20px;
  box-shadow: 4px 4px 0 #000;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 3px solid #000;
  border-radius: 10px;
  font-family: var(--font-cartoon);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cor-destaque);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Heart animation */
.heart {
  color: #ff6b6b;
  display: inline-block;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  5% { transform: scale(1.2); }
  10% { transform: scale(1); }
  15% { transform: scale(1.2); }
  20% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px 0;
    gap: 15px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .sobre-content {
    flex-direction: column;
  }
  
  .contact-form {
    width: 90%;
  }
}
