/* ===========================
   MELHORIAS VISUAIS MODERNAS
   Espaço Terapêutico Morada Azul
========================== */

:root {
  --primary-color: #010478;
  --primary-dark: #01035e;
  --primary-light: #1a2980;
  --secondary-color: #2962ff;
  --accent-color: #3f51b5;
  --text-dark: #051441;
  --text-light: #434753;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #010478 0%, #2962ff 50%, #3f51b5 100%);
  --gradient-secondary: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  --shadow-light: 0 4px 15px rgba(1, 4, 120, 0.1);
  --shadow-medium: 0 8px 30px rgba(1, 4, 120, 0.15);
  --shadow-strong: 0 15px 45px rgba(1, 4, 120, 0.2);
  --border-radius: 20px;
  --border-radius-small: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   ELEMENTOS GLOBAIS MODERNOS
========================== */

.modern-container {
  position: relative;
  overflow: hidden;
}

.modern-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(1, 4, 120, 0.03) 0%, transparent 70%);
  animation: float 20s infinite ease-in-out;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-45%, -55%) rotate(90deg); }
  50% { transform: translate(-55%, -45%) rotate(180deg); }
  75% { transform: translate(-50%, -50%) rotate(270deg); }
}

/* ===========================
   SEÇÃO FEATURES MODERNA
========================== */

#features {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
  position: relative;
  overflow: hidden;
}

#features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="%23259591" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="%2300a39e" opacity="0.1"/><circle cx="85" cy="15" r="1" fill="%23008b86" opacity="0.1"/></svg>');
  background-size: 100px 100px;
  animation: patternMove 30s linear infinite;
  z-index: 0;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

.feature-section .container {
  position: relative;
  z-index: 1;
}

.section-title-modern {
  position: relative;
  margin-bottom: 4rem;
}

.section-title-modern span {
  display: inline-block;
  padding: 8px 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--shadow-light);
  animation: fadeInUp 0.8s ease-out;
}

.section-title-modern h2 {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-title-modern p {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Cards de Features Modernos */
.feature-box-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  animation: fadeInUp 0.8s ease-out;
}

.feature-box-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-box-modern:hover::before {
  transform: scaleX(1);
}

.feature-box-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
  background: rgba(255, 255, 255, 0.95);
}

.feature-icon-modern {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.feature-icon-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: var(--transition);
  transform: translate(-50%, -50%);
}

.feature-box-modern:hover .feature-icon-modern::before {
  width: 100%;
  height: 100%;
}

.feature-icon-modern i {
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 1;
}

.feature-content-modern h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.feature-content-modern p {
  color: var(--text-light);
  line-height: 1.7;
  text-align: center;
}

/* ===========================
   SEÇÃO SOBRE NÓS MODERNA
========================== */

#about {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.about-img-wrapper-modern {
  position: relative;
}

.about-img-modern {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-medium);
}

.about-img-modern img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

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

.about-experience-modern {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--gradient-primary);
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 250px;
  animation: float 3s ease-in-out infinite;
}

.about-experience-modern h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.about-experience-modern p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

.about-content-wrapper-modern {
  padding-left: 2rem;
}

.counter-modern {
  background: rgba(1, 4, 120, 0.05);
  border-radius: var(--border-radius-small);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.counter-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(1, 4, 120, 0.1), transparent);
  transition: var(--transition);
}

.counter-modern:hover::before {
  left: 100%;
}

.counter-modern .count {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

/* ===========================
   GALERIA MODERNA
========================== */

#portfolio {
  background: var(--light-bg);
  position: relative;
}

.portfolio-item-wrapper-modern {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  background: white;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 2rem;
}

.portfolio-item-wrapper-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.portfolio-img-modern {
  position: relative;
  overflow: hidden;
}

.portfolio-img-modern img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(1, 4, 120, 0.8) 0%, rgba(26, 46, 255, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item-wrapper-modern:hover .portfolio-overlay-modern {
  opacity: 1;
}

.portfolio-item-wrapper-modern:hover .portfolio-img-modern img {
  transform: scale(1.1);
}

.overlay-content-modern {
  text-align: center;
  color: white;
  padding: 2rem;
}

.overlay-content-modern h4 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.overlay-content-modern p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.overlay-content-modern .theme-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  backdrop-filter: blur(10px);
}

.overlay-content-modern .theme-btn:hover {
  background: white;
  color: var(--primary-color);
}

/* ===========================
   ESPECIALIDADES TIMELINE MODERNA
========================== */

#especialidades {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.timeline-modern {
  position: relative;
}

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

.single-timeline-modern {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 8px white, 0 0 0 12px var(--primary-color);
  z-index: 2;
}

.timeline-card-modern {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-medium);
  position: relative;
  transition: var(--transition);
  border: 1px solid rgba(1, 4, 120, 0.1);
}

.timeline-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.timeline-card-modern::before {
  content: '';
  position: absolute;
  top: 2rem;
  width: 0;
  height: 0;
  border: 15px solid transparent;
}

.timeline-content-left::before {
  right: -30px;
  border-left-color: white;
}

.timeline-content-right::before {
  left: -30px;
  border-right-color: white;
}

.timeline-icon-modern {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.timeline-icon-modern i {
  font-size: 1.5rem;
  color: white;
}

.timeline-content-modern h4 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-content-modern p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   SEÇÃO DE CONTATO ULTRA MODERNA
========================== */

#contact {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="%23259591" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%2300a39e" opacity="0.1"/><circle cx="60" cy="80" r="1.2" fill="%23008b86" opacity="0.1"/></svg>');
  background-size: 150px 150px;
  animation: patternFloat 25s linear infinite;
  z-index: 0;
}

@keyframes patternFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(150px, 150px); }
}

/* Container moderno */
#contact .container {
  position: relative;
  z-index: 1;
}

/* Título da seção ultra moderno */
.contact-section .section-title-modern {
  margin-bottom: 4rem;
}

.contact-section .section-title-modern span {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 10px 30px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 8px 25px rgba(1, 4, 120, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-section .section-title-modern span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.6s ease;
  transform: translate(-50%, -50%);
}

.contact-section .section-title-modern span:hover::before {
  width: 200%;
  height: 200%;
}

.contact-section .section-title-modern h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #2c3e50 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  position: relative;
}

.contact-section .section-title-modern h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Cards de informação ultra modernos */
.contact-item-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(1, 4, 120, 0.1);
}

.contact-item-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.contact-item-modern:hover::before {
  transform: scaleX(1);
}

.contact-item-modern:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(1, 4, 120, 0.2);
  background: rgba(255, 255, 255, 1);
}

.contact-icon-modern {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(1, 4, 120, 0.3);
}

.contact-icon-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
}

.contact-item-modern:hover .contact-icon-modern::before {
  width: 120%;
  height: 120%;
}

.contact-icon-modern i {
  font-size: 1.8rem;
  color: white;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.contact-item-modern:hover .contact-icon-modern i {
  transform: scale(1.1);
}

.contact-content h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
}

.contact-content p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-content a {
  transition: all 0.3s ease;
}

.contact-content a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

/* Formulário ultra moderno */
.contact-form-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 3.5rem;
  box-shadow: 0 15px 50px rgba(1, 4, 120, 0.15);
  position: relative;
  overflow: hidden;
}

.contact-form-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
}

.form-group-modern {
  margin-bottom: 2rem;
  position: relative;
}

.form-control-modern {
  width: 100%;
  padding: 1.2rem 1.8rem;
  border: 2px solid rgba(1, 4, 120, 0.1);
  border-radius: 15px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text-dark);
  position: relative;
}

.form-control-modern::placeholder {
  color: #a0a0a0;
  font-weight: 400;
}

.form-control-modern:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(1, 4, 120, 0.1);
  background: white;
  transform: translateY(-2px);
}

.form-control-modern:valid {
  border-color: #28a745;
}

/* Label flutuante */
.form-group-modern label {
  position: absolute;
  top: -10px;
  left: 15px;
  background: white;
  padding: 0 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  z-index: 2;
}

/* Textarea específico */
.form-control-modern[rows] {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Botão ultra moderno */
.contact-form-modern .theme-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 15px;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(1, 4, 120, 0.3);
  text-transform: none;
  letter-spacing: 0.5px;
}

.contact-form-modern .theme-btn::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.6s ease;
}

.contact-form-modern .theme-btn:hover::before {
  left: 100%;
}

.contact-form-modern .theme-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(1, 4, 120, 0.4);
}

.contact-form-modern .theme-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Estados de validação visual */
.form-control-modern.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.form-control-modern.success {
  border-color: #27ae60;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

/* Indicador de loading no botão */
.theme-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.theme-btn.loading::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animações de entrada */
.contact-item-wrapper .contact-item-modern:nth-child(1) { animation-delay: 0.1s; }
.contact-item-wrapper .contact-item-modern:nth-child(2) { animation-delay: 0.2s; }
.contact-item-wrapper .contact-item-modern:nth-child(3) { animation-delay: 0.3s; }

/* Responsividade ultra moderna */
@media (max-width: 1200px) {
  .contact-section .section-title-modern h2 {
    font-size: 3rem;
  }
  
  .contact-form-modern {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .contact-section .section-title-modern h2 {
    font-size: 2.5rem;
  }
  
  .contact-form-modern {
    padding: 2rem;
    border-radius: 20px;
  }
  
  .contact-item-modern {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-icon-modern {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .contact-icon-modern i {
    font-size: 1.5rem;
  }
  
  .contact-content h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .contact-section .section-title-modern span {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
  
  .contact-section .section-title-modern h2 {
    font-size: 2rem;
  }
  
  .form-control-modern {
    padding: 1rem 1.5rem;
  }
  
  .contact-form-modern .theme-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

/* ===========================
   ANIMAÇÕES MODERNAS
========================== */

@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);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVIDADE
========================== */

@media (max-width: 768px) {
  .section-title-modern h2 {
    font-size: 2.5rem;
  }
  
  .feature-box-modern {
    padding: 2rem;
  }
  
  .about-content-wrapper-modern {
    padding-left: 0;
    padding-top: 2rem;
  }
  
  .about-experience-modern {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 2rem;
  }
  
  .timeline-modern::before {
    left: 2rem;
  }
  
  .timeline-dot {
    left: 2rem;
  }
  
  .timeline-card-modern {
    margin-left: 4rem;
  }
  
  .timeline-content-left::before,
  .timeline-content-right::before {
    left: -30px;
    border-right-color: white;
    border-left-color: transparent;
  }
  
  .contact-form-modern {
    padding: 2rem;
  }
}

/* ===========================
   PARTÍCULAS DE FUNDO
========================== */

.particles-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.1;
  animation: float-particle 20s infinite linear;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  left: 20%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 40%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  left: 60%;
  animation-delay: 6s;
}

.particle:nth-child(5) {
  width: 4px;
  height: 4px;
  left: 80%;
  animation-delay: 8s;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===========================
   LOADING E MICRO-INTERAÇÕES
========================== */

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.pulse-effect {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 4, 120, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(1, 4, 120, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(1, 4, 120, 0);
  }
}

/* ===========================
   MELHORIAS FINAIS E OTIMIZAÇÕES
========================== */

/* Melhoria na performance de animações */
.feature-box-modern,
.timeline-card-modern,
.portfolio-item-wrapper-modern,
.contact-item-modern {
  will-change: transform;
  transform: translateZ(0);
}

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

/* ===========================
   ANIMAÇÕES E INTERAÇÕES AVANÇADAS - CONTATO
========================== */

/* Micro-animações para campos de formulário */
.form-control-modern {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-control-modern:focus {
    transform: scale(1.02);
    box-shadow: 
        0 0 0 3px rgba(1, 4, 120, 0.1),
        0 10px 40px rgba(1, 4, 120, 0.15) !important;
}

.form-control-modern.success {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-control-modern.error {
    border-color: #e74c3c !important;
    animation: shakeError 0.5s ease-in-out;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Labels flutuantes */
.form-group-modern.focused label {
    transform: translateY(-8px) scale(0.85);
    color: var(--primary-color);
    font-weight: 600;
}

/* Efeitos de hover nos cartões */
.contact-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* Animação de loading no botão */
.submit-btn-modern.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===========================
   FOOTER ULTRA-MODERNO
========================== */

.footer-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.footer-modern:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(1, 4, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 123, 191, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(115, 103, 240, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.footer-main {
    position: relative;
    z-index: 2;
    padding: 80px 0 40px;
}

.footer-widget-modern {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Logo e Marca */
.footer-brand {
    text-align: left;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

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

.footer-logo img {
    width: 180px;
    height: auto;
    filter: brightness(1.1) contrast(1.1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    max-width: 280px;
}

/* Títulos do Footer */
.footer-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Informações de Contato */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(1, 4, 120, 0.3);
    transform: translateX(5px);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    color: #fff;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-details a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-details span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Links do Footer */
.footer-links-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-modern li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

.footer-links-modern li a:before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
    opacity: 0;
}

.footer-links-modern li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.footer-links-modern li a:hover:before {
    opacity: 1;
}

/* Redes Sociais Modernas */
.social-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-social-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.social-link:hover:before {
    left: 100%;
}

.social-link i {
    font-size: 22px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.social-link span {
    font-weight: 600;
    font-size: 14px;
}

.social-link:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(1, 4, 120, 0.5);
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    backdrop-filter: blur(10px);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Responsividade do footer */
@media (max-width: 767px) {
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-bottom .col-lg-6:last-child {
        margin-top: 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Responsividade */
@media (max-width: 991px) {
    .footer-main {
        padding: 60px 0 30px;
    }
    
    .footer-social-modern {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .social-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        padding: 12px 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 50px 0 20px;
    }
    
    .footer-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .footer-description {
        text-align: center;
        max-width: 100%;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .footer-social-modern {
        flex-direction: column;
    }
    
    .social-link {
        min-width: auto;
    }
    
    .footer-logo img {
        width: 150px;
    }
}

/* ===========================
   HEADER ULTRA-MODERNO
========================== */

.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0;
    transform: translateY(0) !important; /* Garante que sempre fique visível */
    box-shadow: none !important; /* Remove qualquer sombra */
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
}

.header-modern.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    box-shadow: none !important;
    border-bottom-color: rgba(1, 4, 120, 0.15);
}

/* Remove sombra de qualquer elemento sticky */
.sticky,
.navbar-area.sticky,
.header-modern.sticky,
.header-modern,
.header-modern *,
#headerModern,
#headerModern * {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
}

/* Força remoção de sombra para todos os estados do header */
.header-modern:hover,
.header-modern:focus,
.header-modern.active,
.header-modern.scrolled:hover,
.header-modern.scrolled:focus {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

/* Regra universal para garantir que NUNCA apareça sombra no header */
header,
header *,
.header-modern,
.header-modern *,
.navbar,
.navbar *,
.navbar-area,
.navbar-area * {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    text-shadow: none !important;
    filter: drop-shadow(0 0 0 transparent) !important;
}

/* =====================================
   FOOTER BOTTOM LINKS MODERNOS
   ===================================== */

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-link::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 ease;
}

.footer-link:hover::before {
    left: 100%;
}

.footer-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(1, 4, 120, 0.3);
}

.footer-link i {
    font-size: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive Footer Links */
@media (max-width: 991px) {
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .footer-link {
        width: 100%;
        justify-content: center;
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Footer Copyright Responsive */
@media (max-width: 991px) {
    .footer-copyright {
        text-align: center;
    }
}

/* =====================================
   MODAIS MODERNOS
   ===================================== */

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(1, 4, 120, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #010478 0%, #2962ff 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.btn-close {
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 2rem;
    line-height: 1.7;
}

.modal-body h6 {
    color: #010478;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.modal-body p {
    color: #555;
    margin-bottom: 1rem;
}

.modal-body ul {
    color: #555;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    border: none;
    padding: 1rem 2rem 2rem;
    background: transparent;
}

.modal-footer .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: none;
    border-radius: 25px;
    padding: 0.7rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Animação do Modal */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* =====================================
   BOTÃO SCROLL-TO-TOP MODERNO
   ===================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 25px rgba(1, 4, 120, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(1, 4, 120, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.scroll-top:active {
    transform: translateY(-1px) scale(0.95);
    transition: all 0.15s ease;
}

.scroll-top i {
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-top:hover i {
    transform: translateY(-2px);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Animação de pulso quando aparecer */
@keyframes scrollTopPulse {
    0% {
        box-shadow: 0 8px 25px rgba(1, 4, 120, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(1, 4, 120, 0.5), 0 0 0 10px rgba(1, 4, 120, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(1, 4, 120, 0.3);
    }
}

.scroll-top.show {
    animation: scrollTopPulse 2s ease-in-out;
}

/* Responsividade do botão */
@media (max-width: 768px) {
    .scroll-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .scroll-top {
        width: 44px;
        height: 44px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

/* Brand/Logo */
.header-brand {
    display: flex;
    align-items: center;
    z-index: 10;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.brand-logo {
    width: 140px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
    transform: none !important; /* Garante que a logo fique fixa */
    position: relative;
}

.header-modern.scrolled .brand-logo {
    width: 120px;
    max-height: 55px;
    filter: drop-shadow(0 4px 12px rgba(1, 4, 120, 0.3));
}

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

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.nav-text {
    position: relative;
    z-index: 2;
}

.nav-indicator {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link:hover .nav-indicator {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active .nav-indicator {
    width: 100%;
}

/* Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(1, 4, 120, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn: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 ease;
}

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

.whatsapp-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(1, 4, 120, 0.4);
    color: white;
}

.whatsapp-btn i {
    font-size: 18px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(1, 4, 120, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(1, 4, 120, 0.1);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-brand img {
    width: 40px;
    height: auto;
}

.mobile-brand span {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(1, 4, 120, 0.1);
    color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-link {
    display: block;
    color: #2c3e50;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    background: rgba(1, 4, 120, 0.05);
    transform: translateX(10px);
}

.mobile-menu-footer {
    padding: 30px 0;
    text-align: center;
}

.mobile-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(1, 4, 120, 0.3);
}

.mobile-whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(1, 4, 120, 0.4);
    color: white;
}

/* Responsividade do Header */
@media (max-width: 1200px) {
    .nav-list {
        gap: 30px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .brand-text {
        display: none;
    }
    
    .brand-logo {
        width: 110px;
        max-height: 55px;
    }
    
    .whatsapp-btn span {
        display: none;
    }
    
    .whatsapp-btn {
        padding: 12px;
        border-radius: 50%;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
    .header-content {
        height: 70px;
    }
    
    .mobile-nav-link {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .brand-logo {
        width: 95px;
        max-height: 48px;
    }
    
    .mobile-nav-link {
        font-size: 18px;
        padding: 12px 24px;
    }
    
    .mobile-whatsapp-btn {
        padding: 15px 30px;
        font-size: 15px;
    }
}/* Scroll suave para navegadores que não suportam */
html {
  scroll-behavior: smooth;
}

/* Otimizações para touch devices */
@media (hover: none) and (pointer: coarse) {
  .feature-box-modern:hover,
  .timeline-card-modern:hover,
  .portfolio-item-wrapper-modern:hover,
  .contact-item-modern:hover {
    transform: none;
  }
  
  .feature-box-modern:active,
  .timeline-card-modern:active {
    transform: scale(0.98);
  }
}

/* Estados de erro e sucesso para formulários */
.error-state {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.success-state {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* Loading states */
.loading-state {
  pointer-events: none;
  opacity: 0.7;
}

.loading-state::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

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

/* ===========================
   SEÇÃO DE CONVÊNIOS MODERNA
========================== */

.client-logo-wrapper-modern {
  padding: 2rem 0;
}

.client-logo-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.client-logo-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.client-logo-modern:hover::before {
  transform: scaleX(1);
}

.client-logo-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  background: rgba(255, 255, 255, 0.95);
}

.client-logo-modern img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
  filter: grayscale(0.3);
}

.client-logo-modern:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.convenios-cta {
  background: rgba(1, 4, 120, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid rgba(1, 4, 120, 0.1);
  position: relative;
  overflow: hidden;
}

.convenios-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(1, 4, 120, 0.1), transparent);
  transition: var(--transition);
}

.convenios-cta:hover::before {
  left: 100%;
}

/* Responsividade para convênios */
@media (max-width: 768px) {
  .client-logo-modern {
    height: 100px;
    padding: 1.5rem;
  }
  
  .client-logo-modern img {
    max-height: 60px;
  }
  
  .convenios-cta {
    padding: 1.5rem;
  }
}

/* =====================================
   CAROUSEL/SLIDER MODERNIZATION
   ===================================== */

/* Main slider container */
#home.slider_area {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: linear-gradient(135deg, 
        rgba(1, 4, 120, 0.95) 0%, 
        rgba(41, 98, 255, 0.85) 50%, 
        rgba(63, 81, 181, 0.9) 100%);
}

/* Modern carousel container */
#carouselThree {
    position: relative;
    height: 100vh;
    min-height: 600px;
    z-index: 1;
    overflow: hidden;
}

/* Garantir que o carrossel não interfira com o header */
.hero-area,
.hero-section,
#hero {
    position: relative;
    z-index: 1;
}

/* Garantir hierarquia de z-index correta */
#carouselThree * {
    z-index: 1 !important;
}

#carouselThree .carousel-item::before {
    z-index: 2 !important;
}

#carouselThree .slider-content {
    z-index: 3 !important;
}

#carouselThree .carousel-indicators,
#carouselThree .carousel-control-prev,
#carouselThree .carousel-control-next {
    z-index: 4 !important;
}

/* Advanced carousel item styling */
.carousel-item {
    background: transparent !important;
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 1;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(1, 4, 120, 0.1) 0%, 
        rgba(41, 98, 255, 0.05) 50%, 
        rgba(63, 81, 181, 0.1) 100%);
    z-index: 2;
}

/* Enhanced slider content */
.slider-content {
    position: relative;
    z-index: 3;
    padding: 120px 0 !important;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.carousel-item.active .slider-content {
    opacity: 1;
    transform: translateX(0);
    animation: slideInFromLeft 1s ease-out;
}

@media (max-width: 1199px) {
    .slider-content {
        padding: 100px 0 !important;
    }
}

@media (max-width: 991px) {
    .slider-content {
        padding: 80px 0 !important;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .slider-content {
        padding: 60px 0 !important;
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ultra-modern title styling */
.slider-content .title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e3f2fd 30%, 
        #bbdefb 70%, 
        #90caf9 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
}

.slider-content .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fff, transparent);
    border-radius: 2px;
    animation: expandLine 1.5s ease-out 0.5s both;
}

@keyframes expandLine {
    0% { width: 0; }
    100% { width: 80px; }
}

/* Enhanced text styling */
.slider-content .text {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    max-width: 480px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern image container */
.slider-image-box {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    height: 100% !important;
    z-index: 3 !important;
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.carousel-item.active .slider-image-box {
    opacity: 1;
    transform: translateX(0);
}

.slider-image-box .slider-image {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none !important;
}

.slider-image-box .slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1) saturate(1.2);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item.active .slider-image-box .slider-image img {
    transform: scale(1.05);
}

/* Glassmorphism overlay for images */
.slider-image-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(1, 4, 120, 0.1) 0%, 
        rgba(41, 98, 255, 0.05) 50%, 
        rgba(63, 81, 181, 0.1) 100%);
    backdrop-filter: blur(0.5px);
    z-index: 1;
}

/* Ultra-modern carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%);
    margin: 0 !important;
    display: flex;
    gap: 12px;
    z-index: 4;
}

.carousel-indicators li {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.carousel-indicators li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.carousel-indicators li.active {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #fff !important;
    transform: scale(1.2);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.carousel-indicators li.active::before {
    width: 6px;
    height: 6px;
}

.carousel-indicators li:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.1);
}

/* Modern carousel controls */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 1 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 4;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: 40px !important;
}

.carousel-control-next {
    right: 40px !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 24px !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Parallax effect for background */
.slider_area::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(41, 98, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(1deg); }
    66% { transform: translate(-10px, 10px) rotate(-1deg); }
}

/* Responsive design for carousel */
@media (max-width: 1199px) {
    .slider-content .title {
        font-size: 3rem !important;
    }
    
    .carousel-control-prev { left: 20px !important; }
    .carousel-control-next { right: 20px !important; }
}

@media (max-width: 991px) {
    .slider-image-box {
        position: relative !important;
        width: 100% !important;
        height: 280px !important;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .carousel-item {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .slider-content .title {
        font-size: 2.8rem !important;
    }
    
    .slider-content .text {
        font-size: 1rem !important;
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .slider-content .title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem;
    }
    
    .slider-content .text {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-top: 1rem !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px !important;
        height: 50px !important;
    }
    
    .carousel-indicators {
        bottom: 20px !important;
    }
    
    .carousel-indicators li {
        width: 10px !important;
        height: 10px !important;
    }
    
    .slider-actions {
        margin-top: 1.5rem;
    }
}

/* Additional animation for carousel transition */
.carousel {
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.8s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-item-next:not(.carousel-item-left),
.active.carousel-item-right {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-right),
.active.carousel-item-left {
    transform: translateX(-100%);
}

/* Remove animações antigas que causavam conflito */

/* Força visibilidade apenas do slide ativo */
.carousel-inner {
    position: relative;
    overflow: hidden;
}

.carousel-item:not(.active) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.carousel-item.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Corrige qualquer problema de posicionamento absoluto */
.carousel-item .container {
    position: relative;
    z-index: 10;
}

/* Garante que o texto não vaze para outros slides */
.slider-content * {
    position: relative;
    z-index: 15;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modern action buttons for carousel */
.slider-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.carousel-btn,
.carousel-btn-secondary {
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    text-align: center;
}

.carousel-btn {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    color: var(--primary-color) !important;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.4s ease;
    z-index: -1;
}

.carousel-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.carousel-btn:hover::before {
    left: 0;
}

.carousel-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.carousel-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.carousel-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

.carousel-btn-secondary:hover::before {
    left: 0;
}

/* Responsive styles for action buttons */
@media (max-width: 767px) {
    .slider-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-top: 2rem;
    }
    
    .carousel-btn,
    .carousel-btn-secondary {
        width: 100%;
        max-width: 250px;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Additional enhancements for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Preloader for carousel images */
.carousel-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

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

/* Enhanced focus states for accessibility */
.carousel-control-prev:focus,
.carousel-control-next:focus,
.carousel-indicators li:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.carousel-btn:focus,
.carousel-btn-secondary:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

/* Screen reader only class */
.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;
}

/* Performance optimizations */
.carousel-item,
.slider-image-box,
.slider-content {
    will-change: transform;
    backface-visibility: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel-item,
    .slider-content,
    .slider-image-box,
    .carousel-btn,
    .carousel-btn-secondary,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators li {
        animation: none !important;
        transition: none !important;
    }
    
    .slider_area::before {
        animation: none !important;
    }
}

/* ===========================
   SEÇÃO DE AVALIAÇÕES GOOGLE
========================== */

.reviews-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzAiIGN5PSIzMCIgcj0iMiIgZmlsbD0icmdiYSgxLCA0LCAxMjAsIDAuMDUpIi8+Cjwvc3ZnPg==') repeat;
    opacity: 0.5;
    z-index: -1;
}

.review-card-modern {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(1, 4, 120, 0.08);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.review-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.review-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
}

.review-stars i {
    color: #ffc107;
    font-size: 1.2rem;
}

.review-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.review-platform i {
    color: #4285f4;
    font-size: 1.1rem;
}

.review-content {
    margin-bottom: 1.5rem;
}

.review-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    position: relative;
}

.review-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-family: serif;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h5 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.google-reviews-cta {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(1, 4, 120, 0.08);
}

.google-reviews-cta .theme-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-small);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.google-reviews-cta .theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.google-reviews-cta .theme-btn i {
    font-size: 1.1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .review-card-modern {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .google-reviews-cta {
        padding: 1.5rem;
    }
}

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

.animate-on-scroll {
    animation: fadeInReview 0.6s ease-out forwards;
}
