/*
 * 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;
}

/* 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#clientes {
  background-color: #121212 !important;
}

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