
body {
  margin: 0;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

html {
  scroll-snap-type: y mandatory;
}

section.snap {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  padding: 20px;
}

.hero    { background-image: url('../img/background_hero.png'); }
.about   { background-image: url('../img/background_about.png'); }
.features{ background-image: url('../img/background_features.png'); }
.extra1  { background-image: url('../img/background_extra1.png'); }
.extra2  { background-image: url('../img/background_extra2.png'); }
.social  { background-image: url('../img/background_social.png'); }

.scroll-arrow {
  margin-top: 20px;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  animation: bounce 2s infinite;
}

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

.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.7);
  padding: 10px 15px;
  border-radius: 25px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 9999;
}

.footer {
  text-align: center;
  background: #111;
  color: #ccc;
  padding: 20px;
  font-size: 14px;
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  font-size: 32px;
}


.icon-sound {
  font-size: 24px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease;
}
.icon-sound:hover {
  transform: scale(1.2);
}
.icon-sound.on::before {
  content: '🔊';
}
.icon-sound.off::before {
  content: '🔇';
}

.scroll-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  font-size: 32px;
  color: white;
  animation: bounce 1.5s infinite;
  transform: translateX(-50%);
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

.hero button, .hero .cta {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #ffffffcc;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}
.hero button:hover, .hero .cta:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.05);
}


.icon-sound {
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  transition: transform 0.3s ease;
}
.icon-sound.on {
  background-image: url('../img/sound-on.svg');
}
.icon-sound.off {
  background-image: url('../img/sound-off.svg');
}
.icon-sound:hover {
  transform: scale(1.2);
}

.scroll-arrow {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  color: white;
  cursor: pointer;
  animation: bounce 1.6s infinite;
  z-index: 10;
}

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

.button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: #3498db;
  color: white;
}
.btn-primary:hover {
  background-color: #2980b9;
}
.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}
.btn-secondary:hover {
  background-color: white;
  color: black;
}
.scroll-arrow-wrapper {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
}
.scroll-arrow-wrapper {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-arrow {
  cursor: pointer;
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
.social-icons a img {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.social-icons a:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px white);
}

#preloader p {
  opacity: 0;
  transition: opacity 0.5s ease-in;
  font-size: 1.4em;
  margin: 10px 0;
  color: white;
}
#text-1, #text-2, #text-3 {
  opacity: 1;
}

#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: black;
}
#preloader .logo {
  position: relative;
  z-index: 10;
}
.typewriter-text {
  color: white;
  font-size: 1.4em;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid white;
  width: 0;
  animation: typing 2s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: white }
}

#preloader {
  background: linear-gradient(180deg, #0f1018 0%, #11182e 100%);
  background-size: 400% 400%;
  animation: blueMist 10s ease infinite;
}
@keyframes blueMist {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#preloader {
  background: linear-gradient(180deg, #0f1018 0%, #11182e 100%);
  background-size: 400% 400%;
  animation: blueMist 10s ease infinite;
}
@keyframes blueMist {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
#preloader p {
  opacity: 0;
  font-size: 1.6em;
  margin: 15px 0;
  color: white;
  transition: opacity 0.5s ease;
  text-align: center;
}

#preloader .preloader-texts p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  opacity: 0;
  color: white;
  transition: opacity 0.6s ease;
}

#preloader::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(173,216,230,0.2), rgba(0,0,50,0.9));
  animation: drift 10s linear infinite;
  z-index: 1;
}
@keyframes drift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
#preloader .logo { position: relative; z-index: 10; }

/* === PARTICULAS MAGICAS === */
#particle-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* === AURA NOS BOTÕES === */
.hero-btn {
  position: relative;
  overflow: hidden;
}
.hero-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  animation: pulseAura 3s linear infinite;
}
@keyframes pulseAura {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* === PARALLAX === */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}


/* Melhor visual das frases da intro */
#preloader .preloader-texts p {
  font-size: 2.8em;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 15px #00ccff, 0 0 35px #00ccff;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  margin: 0 auto;
  max-width: 90%;
}
#preloader .preloader-texts p.show {
  opacity: 1;
}


/* Fundo gradiente místico */
body {
  background: linear-gradient(135deg, #0d1b2a, #1b263b, #415a77, #778da9);
  background-size: 800% 800%;
  animation: gradientFlow 25s ease infinite;
}

@keyframes gradientFlow {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Parallax para todas as seções */
section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  z-index: 2;
}
