/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.

*= require material_icons
*= require material_icons.outlined
*= require material_icons.sharp
*= require material_icons.round
*= require material_icons.twotone
*= require material_icons.helpers
*/

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
}

/* Ensure no white space between header and content */
main {
  background-color: transparent !important;
  margin-top: 0 !important;
  padding-top: 4rem !important; /* 64px for mobile */
}

@media (min-width: 768px) {
  main {
    padding-top: 5rem !important; /* 80px for desktop */
  }
}

/* Custom styles */
.bg-black-950 {
  background-color: #121212;
}

/* Header and Navigation Styles */
.header-logo {
  transition: all 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-logo img {
  transition: all 0.3s ease;
  filter: brightness(1);
}

.header-logo:hover img {
  filter: brightness(1.1);
}

/* Ensure logo maintains aspect ratio */
.header-logo img {
  object-fit: contain;
  max-height: 100%;
}

.mobile-menu-button {
  transition: all 0.2s ease;
}

.mobile-menu-button:hover {
  transform: scale(1.1);
}

.mobile-menu-button:active {
  transform: scale(0.95);
}

/* Mobile Menu Styles */
#mobile-menu {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.95);
}

.mobile-menu-link {
  position: relative;
  transition: all 0.3s ease;
}

.mobile-menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #14b8a6);
  transition: width 0.3s ease;
  z-index: -1;
}

.mobile-menu-link:hover::before {
  width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #3b82f6, #14b8a6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #2563eb, #0d9488);
}

/* Hide scrollbar for carousel */
.scrollbar-hide {
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Safari and Chrome */
}

/* Smooth scrolling for carousel */
.scrollbar-hide {
  scroll-behavior: smooth;
}

/* Carousel improvements */
#clientes-carousel {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#clientes-carousel:active {
  cursor: grabbing;
}

/* Make entire carousel area clickable */
.overflow-x-auto.scrollbar-hide {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.overflow-x-auto.scrollbar-hide:active {
  cursor: grabbing;
}

/* Prevent text selection during drag */
#clientes-carousel *,
.overflow-x-auto.scrollbar-hide * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Fade in up animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.animate-fade-in,
section.animate-fade-in .fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* Initial state for sections */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.animate-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Custom focus styles */
*:focus {
  outline: none;
}

/* Custom selection */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: white;
}

/* Custom animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Custom gradients */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom button hover effects */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
}

.btn-hover-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-hover-effect:hover::before {
  left: 100%;
}

/* Custom form styles */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Custom card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .mobile-text-center {
    text-align: center;
  }

  .mobile-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-margin {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  /* Header mobile optimizations */
  header {
    padding: 0.75rem 0;
  }

  .header-logo {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
  }

  /* Mobile logo optimizations */
  .header-logo img {
    max-height: 1.5rem;
  }

  /* Mobile menu improvements */
  #mobile-menu {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-menu-link:last-child {
    border-bottom: none;
  }
}

/* Loading spinner */
.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 2px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom backdrop blur for mobile menu */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Custom transitions */
.transition-all {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom shadows */
.custom-shadow {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.custom-shadow-lg {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Custom borders */
.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, #3b82f6, #14b8a6) 1;
}

/* Custom text effects */
.text-glow {
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Custom responsive utilities */
@media (max-width: 640px) {
  .text-responsive {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .text-responsive {
    font-size: 2rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 1025px) {
  .text-responsive {
    font-size: 3rem;
    line-height: 3.5rem;
  }
}

/* Header scroll effect improvements */
header.scrolled {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Menu button animation */
.menu-button-animate {
  transition: transform 0.2s ease;
}

.menu-button-animate:hover {
  transform: scale(1.1);
}

.menu-button-animate:active {
  transform: scale(0.95);
}

/* Force dark background and remove any white spaces */
html, body {
  background-color: #000000 !important;
}

/* Ensure sections have proper dark backgrounds */
section {
  background-color: #000000 !important;
}

section#home {
  background: linear-gradient(135deg, #121212, #000000, #1a1a1a) !important;
}

section#quem-somos {
  background-color: #000000 !important;
}

section#produtos {
  background-color: #000000 !important;
}

section#clientes {
  background-color: #121212 !important;
}

section#contato {
  background-color: #000000 !important;
}

/* Animated Blobs */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Gradient Animation */
@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

/* Glassmorphism effect */
.backdrop-blur-sm {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Enhanced shadows */
.shadow-blue-500\/50 {
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

.shadow-teal-500\/50 {
  box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.5);
}

.shadow-purple-500\/50 {
  box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.5);
}

/* Glow Animations */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5),
                0 0 40px rgba(59, 130, 246, 0.3),
                0 0 60px rgba(59, 130, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8),
                0 0 60px rgba(59, 130, 246, 0.5),
                0 0 90px rgba(59, 130, 246, 0.3);
  }
}

@keyframes glow-teal {
  0%, 100% {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.5),
                0 0 40px rgba(20, 184, 166, 0.3),
                0 0 60px rgba(20, 184, 166, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.8),
                0 0 60px rgba(20, 184, 166, 0.5),
                0 0 90px rgba(20, 184, 166, 0.3);
  }
}

@keyframes glow-purple {
  0%, 100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5),
                0 0 40px rgba(168, 85, 247, 0.3),
                0 0 60px rgba(168, 85, 247, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8),
                0 0 60px rgba(168, 85, 247, 0.5),
                0 0 90px rgba(168, 85, 247, 0.3);
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-glow-teal {
  animation: glow-teal 2s ease-in-out infinite;
}

.animate-glow-purple {
  animation: glow-purple 2s ease-in-out infinite;
}

/* Shimmer/Shine Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Pulsing Glow */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Text Glow - Suave */
@keyframes text-glow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.2),
                 0 0 10px rgba(59, 130, 246, 0.1),
                 0 0 15px rgba(59, 130, 246, 0.05);
  }
  50% {
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3),
                 0 0 15px rgba(59, 130, 246, 0.15),
                 0 0 20px rgba(59, 130, 246, 0.1);
  }
}

.text-glow {
  animation: text-glow 4s ease-in-out infinite;
}

/* Border Glow */
@keyframes border-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5),
                inset 0 0 5px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8),
                inset 0 0 10px rgba(59, 130, 246, 0.5);
  }
}

.border-glow {
  animation: border-glow 2s ease-in-out infinite;
}

/* Sparkle Effect */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.sparkle {
  position: relative;
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(59, 130, 246, 1);
  animation: sparkle 2s infinite;
}

.sparkle::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.sparkle::after {
  bottom: 10%;
  right: 10%;
  animation-delay: 1s;
}

/* Hover Glow Effects */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6),
              0 0 60px rgba(59, 130, 246, 0.4),
              0 0 90px rgba(59, 130, 246, 0.2);
  transition: box-shadow 0.3s ease;
}

.hover-glow-teal:hover {
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.6),
              0 0 60px rgba(20, 184, 166, 0.4),
              0 0 90px rgba(20, 184, 166, 0.2);
  transition: box-shadow 0.3s ease;
}
