@font-face {
  font-family: "nunitosans";
  src: url("../assets/fonts/nunitosans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "raleway";
  src: url("../assets/fonts/raleway.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "exo2";
  src: url("../assets/fonts/exo2.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "inter";
  src: url("../assets/fonts/inter.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

body {
  background-color: #f7f7f7;
  position: relative;
  font-family: "nunitosans", sans-serif;
  overflow-x: hidden;
  color: #243e63;
}

img {
  max-width: 90%;
  height: auto;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem 0;
  color: #d9d9d9;
  text-align: center;
  font-family: Arial, sans-serif;
}

h1,
h2,
h3 {
  font-family: "exo2", sans-serif;
  position: relative;
  color: #1a202c;
}

p {
  position: relative;
}

nav {
  transition: all 0.3s ease-in-out;
  background-color: transparent;
}

nav.scrolled {
  background-color: #140028;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

nav.scrolled a,
nav.scrolled button {
  color: #f7f7f7 !important;
}

nav.scrolled a:hover,
nav.scrolled button:hover {
  color: #7b3edf !important;
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

.menu-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.dot {
  color: #d9d9d9;
}

/* Scroll Animations */
/* Base animation styles for all animated elements */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* Benefits section animations - simple fade in */
.animate-fade-in {
  opacity: 0;
  transition-duration: 1s !important;
}

/* Product section animations - slide up */
.animate-slide-up {
  transform: translateY(150px);
  transition-duration: 1s !important;
}

/* About section animations - keeping for reference/compatibility */
.animate-about {
  transform: translateY(100px);
  transition-duration: 1s !important;
}

/* How it works section animations - keeping for reference/compatibility */
.animate-how-it-works {
  transform: scale(0.95);
}

/* Active animation class (applied by JS) */
.animated {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
  transition-timing-function: cubic-bezier(
    0.33,
    1,
    0.68,
    1
  ); /* Custom easing for smooth finish */
}

/* FAQ Accordion Styles */
.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: rgba(123, 62, 223, 0.1); /* accent color with opacity */
}

.faq-question.active {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer:not(.hidden) {
  padding-top: 1rem;
}

/* Ensure animations don't run on devices that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .faq-answer,
  .faq-icon {
    transition: none !important;
  }
}

/* Lazy Loading Styles */
img[data-lazy] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background-color: #f0f0f0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='300'><rect width='100%' height='100%' fill='%23f0f0f0'/><circle cx='200' cy='150' r='20' fill='%23ddd'><animate attributeName='opacity' values='1;0.5;1' dur='2s' repeatCount='indefinite'/></circle></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60px 60px;
}

img.lazy-loaded {
  opacity: 1;
  background-image: none;
}

/* Placeholder específico para imagens grandes */
.lazy-placeholder {
  min-height: 300px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

/* Placeholder para imagens pequenas */
.lazy-placeholder-small {
  min-height: 100px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

/* Lazy loading para vídeos */
video[data-lazy] {
  background-color: #f0f0f0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='300'><rect width='100%' height='100%' fill='%23f0f0f0'/><polygon points='200,150 250,180 250,120' fill='%23ddd'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80px 80px;
}

video.lazy-loaded {
  background-image: none;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1400px !important;
  }
}

/* Mobile navbar styling */
@media (max-width: 767px) {
  nav {
    background-color: #140028;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
  background-color: #140028;
}

::-webkit-scrollbar-track {
  background-color: rgba(217, 217, 217, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(123, 62, 223, 0.7);
  border-radius: 10px;
  transition: background-color 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(123, 62, 223, 0.9);
}

/* Firefox Scrollbar Styles */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 62, 223, 0.7) rgba(217, 217, 217, 0.05);
}
