/* CSS Customizado para o Site JP França */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --bg-light: #ffffff;
  --bg-card: #f8f9fa;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
  --text-dark: #212529;
}

/* Light Theme Styles */
body {
  background-color: #c6cdc3;
  color: #212529;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Fixed Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: #cad8cc;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0.5rem 0 !important;
}

header h1 {
  font-size: 1.75rem !important;
  margin-bottom: 0.25rem !important;
}

.animated-text {
  font-size: 1rem !important;
  margin-top: 0.25rem;
}

/* Add padding to main to account for fixed header */
main {
  margin-top: 10% !important;
}

/* Desktop Navigation */
.desktop-nav .nav-pills .nav-link {
  color: #212529 !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin: 0 0.25rem;
}

.desktop-nav .nav-pills .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(13, 110, 253, 0.1);
}

.desktop-nav .nav-pills .nav-link.active {
  color: white !important;
  background-color: var(--primary-color) !important;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #212529;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Navigation */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #e1e1e2;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav .nav-link {
  color: #212529 !important;
  font-weight: 500;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(13, 110, 253, 0.05);
}

/* AI Service Card Special Styling */
.ai-service-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  overflow: visible;
}

.ai-service-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 14px;
  z-index: -1;
  animation: aiGlow 3s ease-in-out infinite alternate;
}

@keyframes aiGlow {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.ai-highlight {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 10;
}

.ai-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
}

.ai-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.card {
  background-color: #e1e1e2;
  border: 1px solid #dee2e6;
  color: #212529;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-body {
  color: #212529;
}

.text-muted {
  color: #6c757d !important;
}

/* Profile Image Styles */
.profile-img-small {
  width: 164px;
  height: 190px;
  border-radius: 15%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
  margin-top: 1rem;
}

.profile-img-small:hover {
  transform: scale(1.05);
}

/* Animated Text Styles */
.animated-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-left: 5%;
  width: 100%;
}

.animated-text .verb {
  transition: opacity 0.5s ease-in-out;
  color: var(--primary-color);
  display: block;
}

/* Service Cards Styles */
.service-card {
  background: #cfcfdc;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.15);
  border-color: var(--primary-color);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Business Animation Styles */
.business-animation {
  background: #1a1a1a;
  color: #00ff41;
  font-family: 'Courier New', monospace;
  padding: 1.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  border: 1px solid var(--border-color);
}

/* Navigation Styles */
.nav-link {
  color: #212529 !important;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(13, 110, 253, 0.1);
}

.nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(13, 110, 253, 0.15);
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Button Styles */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0B5ED7;
  border-color: #0A58CA;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Section Separator */
.section-separator {
  margin: 2rem 0;
}

.section-separator hr {
  border-color: var(--border-color);
  opacity: 0.3;
}

/* Certification Styles */
.certification {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: rgba(13, 110, 253, 0.05);
  border-radius: 8px;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.certification:hover {
  background-color: rgba(13, 110, 253, 0.1);
}

.certification-logo {
  width: 50px;
  height: 50px;
  margin-right: 1rem;
}

.certification a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Contact Section Styles */
#contato .fas,
#contato .fab {
  font-size: 1.5rem;
  width: 30px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
  header {
    padding: 0.25rem 0 !important;
  }
  
  header h1 {
    font-size: 1.5rem !important;
  }
  
  .animated-text {
    font-size: 0.9rem !important;
  }
  
  main {
    padding-top: 100px !important;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .ai-service-card::before {
    animation: none;
  }
  
  .ai-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  .service-icon i {
    font-size: 1.2rem;
  }
  
  .profile-img-small {
    width: 120px;
    height: 120px;
  }
  
  .business-animation {
    font-size: 0.7rem;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 1.25rem !important;
  }
  
  .animated-text {
    font-size: 0.8rem !important;
  }
  
  main {
    padding-top: 90px !important;
  }
  
  .profile-img-small {
    width: 120px;
    height: 120px;
  }
  
  .ai-highlight {
    top: -5px;
    right: -5px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Smooth Transitions */
* {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Custom List Styles */
ul li {
  margin-bottom: 0.5rem;
}

/* Link Styles */
a {
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: none;
}

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

.card {
  animation: fadeInUp 0.6s ease-out;
}

/* Gradient Text Effect */
.highlight-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--info-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .service-card,
  .card {
    break-inside: avoid;
  }
  
  .business-animation {
    display: none;
  }
}

/* Footer */
footer {
  background-color: var(--dark-color) !important;
  color: #ffffff !important;
}

footer p {
  color: #ffffff !important;
}