/* Fontes Lufga - Keep only commonly used weights */
@font-face {
  font-family: "Lufga";
  src: url("./lufga/LufgaRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lufga";
  src: url("./lufga/LufgaMedium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Lufga";
  src: url("./lufga/LufgaSemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Lufga";
  src: url("./lufga/LufgaBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --primary-color: #0055a4;
  --secondary-color: #3bb54a;
  --accent-color: #00a8e8;
  --dark-color: #231f20;
  --light-color: #f8f9fa;
  --blue-dark: #130035;
}

.colors {
  background: radial-gradient(circle at 100% 100%, #1a1a4d 35%, transparent 85%),
    radial-gradient(circle at 0% 100%, #800080 50%, transparent 70%),
    radial-gradient(circle at 0% 0%, #660066 50%, transparent 70%),
    radial-gradient(circle at 100% 0%, #bb00ff 50%, transparent 70%);
}

* {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 *,
h2 *,
h3 *,
h4 *,
h5 *,
h6 * {
  font-family: "Lufga", montserrat, sans-serif !important;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--dark-color);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Essential components used in HTML */
.sticky-social {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.whatsapp-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-float i {
  animation: pulse 2s infinite;
}

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

/* Transição suave para todos os elementos em hover */
*:hover {
  transition: all 0.3s ease;
}

/* Carousel animation */
@keyframes carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel-partners {
  min-width: 200%;
  animation: carousel 20s linear infinite;
}

/* Typing animation */
#typing {
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
  display: inline-block;
}

#typing span {
  display: none;
  transition: opacity 0.1s ease-in;
}

#typing span.visible {
  display: inline;
  opacity: 1;
}

/* Piscada do cursor */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: orange;
  }
}

#typing::after {
  content: "";
  border-right: 0.15em solid orange;
  animation: blink-caret 0.75s step-end infinite;
}

/* Responsive typing animation */
@media (max-width: 768px) {
  #typing {
    white-space: normal;
    overflow: visible;
    display: block;
    max-width: 100%;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  #typing {
    line-height: 1.3;
  }
}

/* Neuronex text styling */
.neuronex-text {
  padding-left: 1em;
  border-left: 0.25em solid rgb(41, 41, 41);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navbar mobile improvements */
  nav.fixed {
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }

  /* Hero section mobile */
  .hero-banner {
    overflow: visible;
  }

  .hero-banner .container {
    padding: 1rem;
    max-height: none !important; /* override inline max-height */
  }

  .hero-banner .grid {
    gap: 2rem;
  }

  .hero-banner h1 {
    line-height: 1.2;
  }

  /* Ensure text wraps nicely on small screens */
  .hero-banner h1,
  .hero-banner p,
  #typing {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  /* Partners section mobile */
  .bg-\[#f9f9f9\] {
    flex-direction: column !important;
    text-align: center;
    padding: 2rem 1rem !important;
  }

  .bg-\[#f9f9f9\] h3 {
    margin-bottom: 1rem;
  }

  /* Services grid mobile */
  .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Stats section mobile */
  .grid-cols-2.md\:grid-cols-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem;
  }

  /* Contact form mobile */
  .lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  /* Footer mobile */
  .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-cols-1.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  nav .space-x-8 > * + * {
    margin-left: 1rem;
  }
}

/* Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

/* Floating Animation */
@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

.animate-floating {
  animation: floating 3s ease-in-out infinite;
}

/* Staggered animation delays */
.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-delay-500 {
  animation-delay: 0.5s;
}

/* Initial state for animated elements */
.animate-on-scroll {
  opacity: 0;
}

/* Mobile menu improvements */
@media (max-width: 1023px) {
  #mobileMenu {
    animation: slideDown 0.3s ease-out;
  }

  #mobileMenu.hidden {
    animation: slideUp 0.3s ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Print Styles */
@media print {
  body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: white;
  }

  .sticky-social,
  .whatsapp-float,
  .navbar {
    display: none;
  }

  section {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}
