/* Cores principais */
:root {
  --primary-color: #334277;
  --secondary-color: #ffffff;
  --accent-gradient: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  --text-dark: #333333;
  --bg-light: #f8f9fa;
}

/* Reset e configurações gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 2.8;
  color: var(--text-dark);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Navbar Moderno */
.modern-navbar {
  background: linear-gradient(135deg, #334277 0%, #334277 50%, #334277 100%) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}
.modern-navbar.scrolled {
  background: #334277 !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Brand/Logo */
.modern-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.modern-brand:hover {
  transform: scale(1.05);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wrapper {
  position: relative;
  padding: 4px;
  /*background: linear-gradient(45deg, #ff6b6b, #7065b3, #5978d6, #96ceb4, #feca57, #ff9ff3, #5978d6,#00FFFF, #FFB6C1 );*/
  background-size: 300% 300%;
  border-radius: 10px;
  animation: rainbow-border 3s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brand-logo {
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-main {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-text 2s ease-in-out infinite;
  letter-spacing: 2px;
}

.brand-sub {
  font-size: 1rem;
  font-weight: 600;
  color: #f8f9f9;
  margin-top: -4px;
  letter-spacing: 1px;
}

/* Animações do arco-íris */
@keyframes rainbow-border {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes rainbow-text {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Navegação */
.modern-nav {
  gap: 1rem;
}

.modern-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px !important;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
}

.modern-nav-link:hover,
.modern-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modern-nav-link.active {
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-icon {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.modern-nav-link:hover .nav-icon {
  opacity: 1;
}

/* Botão CTA */
.btn-gradient-primary {
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

/* Toggler customizado */
.modern-toggler {
  border: none;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modern-toggler:focus {
  box-shadow: none;
}

.modern-toggler .toggler-line {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.modern-toggler:not(.collapsed) .toggler-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.modern-toggler:not(.collapsed) .toggler-line:nth-child(2) {
  opacity: 0;
}

.modern-toggler:not(.collapsed) .toggler-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsividade */
@media (max-width: 991.98px) {
  .modern-navbar {
    padding: 0.75rem 0;
  }
  
  .brand-main {
    font-size: 1.5rem;
  }
  
  .brand-sub {
    font-size: 0.9rem;
  }
  
  .logo-wrapper {
    padding: 6px;
  }
  
  .brand-logo {
    height: 50px !important;
  }
  
  .modern-nav {
    margin-top: 1rem;
    gap: 0.5rem;
  }
  
  .modern-nav-link {
    justify-content: center;
    margin: 0.25rem 0;
  }
  
  .navbar-cta {
    margin: 1rem 0 0 0 !important;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .brand-container {
    gap: 8px;
  }
  
  .brand-main {
    font-size: 1.3rem;
  }
  
  .brand-sub {
    font-size: 0.8rem;
  }
  
  .logo-wrapper {
    padding: 4px;
  }
  
  .brand-logo {
    height: 40px !important;
  }
}

/* Efeito de scroll no navbar */
.navbar-scroll-effect {
  animation: slideDown 0.5s ease-out;
}

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




/* Botões customizados */
.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  padding: 12px 30px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #1e40af;
  border-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Ícones */
.fa-3x {
  color: var(--primary-color);
}

/* Formulário de contato */
.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Informações de contato */
.contact-info div {
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.contact-info div:last-child {
  border-bottom: none;
}

/* Links das redes sociais */
.social-links a {
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

/* Mapa */
#map iframe {
  border-radius: 8px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #334277 0%, #334277 100%) !important;
}

footer h5,
footer h6 {
  color: var(--secondary-color);
  font-weight: 600;
}

footer a:hover {
  color: #007bff !important;
  transition: color 0.3s ease;
}

/* Texto arco-íris para o nome da desenvolvedora */
.rainbow-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-animation 3s ease-in-out infinite;
}

@keyframes rainbow-animation {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

/* Botão voltar ao topo */
#backToTop {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

#backToTop:hover {
  background: #334277;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
  .carousel-img {
    height: 50vh;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .carousel-caption h1 {
    font-size: 2rem;
  }
  
  .carousel-caption .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .social-links a {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    display: none !important;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* Efeitos especiais */
.section-divider {
  height: 2px;
  background: var(--accent-gradient);
  margin: 3rem auto;
  width: 100px;
  border-radius: 2px;
}

/* Hover effects para produtos */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Estilo para alertas customizados */
.alert-custom {
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
}

.alert-success-custom {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.alert-error-custom {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* Estilo para badges */
.badge-custom {
  background: var(--accent-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Parallax effect para seções */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Estilo para testimonials (se adicionar futuramente) */
.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-top: 2rem;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-family: serif;
}

/* Estilo para contadores animados */
.counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Gradiente sutil para cards especiais */
.gradient-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(30, 58, 138, 0.1);
}

/* Estilo para linha do tempo (se adicionar) */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

/* Melhorias na acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states melhorados */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Estilo para links de navegação ativa */
.navbar-nav .nav-link.active {
  color: #334277 !important;
  font-weight: 600;
}

/* Transições suaves para todos os elementos interativos */
a, button, .card, .btn {
  transition: all 0.3s ease;
}

/* Estilo para seção hero alternativa */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #334277 100%);
  color: white;
  padding: 100px 0;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Customização do scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334277;
}

/* Seção Empresa - Design Moderno */
#empresa {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.empresa-content {
  animation: fadeInUp 0.8s ease-out;
}

.empresa-text {
  font-size: 1.0rem;
  line-height: 1.8;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

.text-dark-emphasis {
  color: #495057 !important;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efeitos hover na imagem */
#empresa img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#empresa img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Responsividade */
@media (max-width: 991.98px) {
  .empresa-text {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  #empresa .display-4 {
    font-size: 2.5rem;
  }
  
  #empresa img {
    height: 400px !important;
  }
}

@media (max-width: 575.98px) {
  .empresa-text {
    font-size: 0.95rem;
  }
  
  #empresa .display-4 {
    font-size: 2rem;
  }
  
  #empresa img {
    height: 300px !important;
  }
}

/* Melhorias tipográficas */
.lead {
  font-weight: 400;
  letter-spacing: 0.5px;
}

.fw-semibold {
  font-weight: 600;
}

/* Badge personalizado */
.badge.bg-primary {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
