:root {
  --ide-primary: #162b55;
  --ide-primary-dark: #0b162c;
  --ide-accent: #d19943;
  --ide-accent-hover: #e5a749;
  
  --ide-bg: #f8fafc;
  --ide-text-main: #1e293b;
  --ide-text-muted: #64748b;
}

/* Global & Reset */
* { 
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--ide-text-main);
  background-color: var(--ide-bg);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(209, 153, 67, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(22, 43, 85, 0.05), transparent 25%);
  overflow-x: hidden;
}

.word-break {
  word-break: break-all;
}

/* Logos */
.navbar-logo {
  max-height: 55px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.footer-logo {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* Navbar */
.glass-nav {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link {
  color: var(--ide-text-main);
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
  color: var(--ide-accent);
}

.text-primary {
  color: var(--ide-primary) !important;
}

/* Hero Section Base */
.hero {
  position: relative;
  min-height: 85vh;
  padding: 6rem 0;
  border-radius: 0 0 50px 50px;
  background: var(--ide-primary);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(22, 43, 85, 0.2);
}

/* Contentor Imagem Hero Premium */
.hero-img-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-img-wrapper:hover {
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) scale(1.02);
}

.hero-premium-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-header {
  position: relative;
  min-height: 40vh;
  padding: 4rem 0 6rem 0;
  border-radius: 0 0 40px 40px;
  background: var(--ide-primary);
  overflow: hidden;
}

.hero::after, .page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.03)"/></svg>');
  z-index: 0;
}

.hero-badge {
  background-color: rgba(209, 153, 67, 0.15);
  color: var(--ide-accent-hover);
  border: 1px solid rgba(209, 153, 67, 0.3);
  backdrop-filter: blur(4px);
}

.text-gradient {
  background: linear-gradient(to right, #ffffff, var(--ide-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botões */
.btn-accent {
  background-color: var(--ide-accent);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-accent:hover {
  background-color: var(--ide-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(209, 153, 67, 0.4) !important;
  color: #fff;
}

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

.btn-outline-primary:hover {
  background-color: var(--ide-primary);
  color: #fff;
}

/* Secções Globais */
.software-section {
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.main-services-adjust {
  margin-top: -60px;
}

.glass-card, .section-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: 0 30px 60px rgba(11, 22, 44, 0.06);
  backdrop-filter: blur(20px);
}

/* ===================================================
   NOVA ESTRUTURA DE CARTÕES COM IMAGENS REALISTAS
=================================================== */
.soft-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bloco superior da imagem de cobertura */
.soft-card-cover {
  position: relative;
  height: 150px;
  width: 100%;
  overflow: hidden;
  background-color: #f1f5f9;
}

.soft-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.soft-card:hover .soft-card-cover img {
  transform: scale(1.08);
}

/* Overlay escuro na imagem para dar contraste */
.soft-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 22, 44, 0.1), rgba(11, 22, 44, 0.4));
}

/* Posicionamento flutuante do Ícone sob a imagem */
.soft-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: #ffffff;
  color: var(--card-accent);
  position: absolute;
  bottom: -26px;
  left: 24px;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.soft-card:hover .soft-icon-box {
  background: var(--card-accent);
  color: #ffffff;
  transform: translateY(-4px) rotate(4deg);
}

/* Conteúdo de Texto abaixo da imagem */
.soft-card-content {
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  text-align: start;
}

.soft-badge-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background-color: #f1f5f9;
  color: #475569;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.soft-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ide-primary);
  margin-bottom: 0.5rem;
}

.soft-card-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 0;
}

.soft-card-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.btn-modern-action {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--ide-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modern-action .line-arrow {
  transition: transform 0.3s ease;
}

.soft-card:hover .btn-modern-action {
  background: var(--ide-primary);
  border-color: var(--ide-primary);
  color: #ffffff;
}

.soft-card:hover .btn-modern-action .line-arrow {
  transform: translate(2px, -2px);
}

.soft-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 0, 0, 0.02);
  box-shadow: 0 24px 48px var(--card-glow), 0 4px 12px rgba(0, 0, 0, 0.01);
}

/* ===================================================
   SISTEMA DE ABAS PREMIUM (RESPONSIVO COM SCROLL)
=================================================== */
.tabs-scroll-container {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 12px;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-scroll-container::-webkit-scrollbar {
  display: none;
}

.custom-modern-pills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
}

@media (min-width: 992px) {
  .custom-modern-pills {
    width: auto;
    justify-content: center;
  }
}

.custom-modern-pills .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ide-primary);
  padding: 10px 22px;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border: none;
}

.custom-modern-pills .nav-link:hover {
  color: var(--ide-accent);
  background: rgba(22, 43, 85, 0.04);
}

.custom-modern-pills .nav-link.active {
  background-color: var(--ide-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(22, 43, 85, 0.15);
}

.tab-pane {
  transition: opacity 0.2s linear;
}

/* ===================================================
   Cartões de Serviços Detalhados
=================================================== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.service-detail-card {
  border-color: rgba(0,0,0,0.05) !important;
}

.service-icon-wrapper {
  display: inline-flex;
  padding: 15px;
  background-color: rgba(22, 43, 85, 0.05);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.service-detail-card:hover .service-icon-wrapper {
  background-color: var(--ide-primary);
  color: #fff !important;
  transform: scale(1.1) rotate(-5deg);
}

/* ===================================================
   Contacto & Rodapé
=================================================== */
.contact-card {
  background: linear-gradient(135deg, var(--ide-primary), var(--ide-primary-dark));
  color: #f1f5f9;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(22, 43, 85, 0.2);
}

.footer {
  background: var(--ide-primary-dark);
  color: #94a3b8;
}

.footer-bottom-line {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a::before {
  content: "›";
  margin-right: 8px;
  color: var(--ide-accent);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--ide-accent);
  transform: translateX(5px);
}

.hover-white {
  transition: color 0.3s ease;
}

.hover-white:hover {
  color: #fff !important;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--ide-accent);
  border-color: var(--ide-accent);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(209, 153, 67, 0.3);
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  color: #fff;
  background-color: #20b858;
}

/* Animações Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.d-delay-1 { transition-delay: 0.2s; }
.d-delay-2 { transition-delay: 0.4s; }

/* ===================================================
   MEDIA QUERIES RESPONSIVAS
=================================================== */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 5rem 0 6rem 0;
    border-radius: 0 0 30px 30px;
  }
  
  .page-header {
    min-height: auto;
    padding: 3rem 0 5rem 0;
    border-radius: 0 0 30px 30px;
  }
  
  .software-section {
    margin-top: -50px;
    padding-bottom: 2rem !important;
  }
  
  .main-services-adjust {
    margin-top: -40px;
  }
  
  .glass-card, .section-card {
    border-radius: 24px;
    padding: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2.15rem !important;
    line-height: 1.3;
  }
  
  .display-6 {
    font-size: 1.8rem !important;
  }
  
  .hero p.lead {
    font-size: 0.95rem;
  }
  
  .row-footer-responsive {
    text-align: center !important;
  }
  
  .div-logo-footer {
    display: flex;
    justify-content: center;
  }
  
  .footer-links a {
    justify-content: center;
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-contact li {
    flex-direction: column;
    align-items: center !important;
    justify-content: center;
    text-align: center;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}