/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
  /* Premium Industrial Color Palette */
  --primary-color: #0d1b2a; /* Deep Navy */
  --secondary-color: #1b263b; /* Dark Blue */
  --accent-color: #415a77; /* Accent Blue */
  --accent-light: #778da9; /* Slate Blue */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #e0e1dd;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  
  /* Modern Typography */
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Transitions & Shadows */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 25px 50px -12px rgba(65, 90, 119, 0.25);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  border-radius: 4px; /* subtle modern curve */
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typographic Utils */
.text-accent { color: var(--accent-color); }
.text-white { color: var(--bg-white); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.block { display: block; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.relative { position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.btn i {
  margin-left: 8px;
  transition: transform var(--transition-normal);
}

.btn:hover i {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--bg-white);
  color: var(--bg-white);
}

.btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--primary-color);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform var(--transition-normal);
}

/* Top Bar */
.header-top {
  background-color: var(--primary-color);
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 8px 0;
  transition: all var(--transition-normal);
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-link.whatsapp {
  color: #25D366; /* Specific WhatsApp Color */
  font-weight: 600;
}

.contact-link:hover {
  color: var(--bg-white);
}

.social-lang {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icon:hover {
  color: var(--accent-light);
}

.lang-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.lang-btn:hover {
  transform: scale(1.1);
}

/* Navbar */
.navbar {
  background-color: transparent;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
}

.header.hide-topbar .header-top {
  transform: translateY(-100%);
  position: absolute; /* Hide completely from flow */
  opacity: 0;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bg-white);
  transition: color var(--transition-normal);
}

.navbar.scrolled .logo-text {
  color: var(--primary-color);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-weight: 500;
  color: var(--bg-white);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition-normal);
}

.navbar.scrolled .nav-link {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-light);
}

.navbar.scrolled .nav-link:hover {
  color: var(--accent-color);
}

/* Mobile Nav Structure */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--bg-white);
  cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
  color: var(--primary-color);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-white);
  padding: 40px 30px;
  box-shadow: -5px 0 25px rgba(0,0,0,0.1);
  transition: right var(--transition-normal);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.mobile-nav.open {
  right: 0;
}

.close-menu-btn {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  margin-bottom: 40px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.mobile-nav-list .nav-link {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.btn-mobile {
  width: 100%;
  text-align: center;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.9) 0%, rgba(27, 38, 59, 0.6) 100%);
}

.hero-content {
  color: var(--bg-white);
  max-width: 800px;
  padding-top: 80px; /* Offset header */
}

.subtitle {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Features Overlay
   ========================================================================== */
.features {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent-color);
  text-align: center;
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background-color: rgba(65, 90, 119, 0.1); /* light accent */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: all var(--transition-normal);
}

.feature-card:hover .icon-box {
  background-color: var(--accent-color);
  color: var(--bg-white);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ==========================================================================
   Utility Sections
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-subtitle {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.section-title.sm-title {
  font-size: 2rem;
  text-transform: uppercase;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.text-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--text-secondary);
}

.image-wrapper {
  position: relative;
  padding-right: 20px;
  padding-bottom: 20px;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 0;
  bottom: 0;
  background-color: var(--accent-light);
  border-radius: 8px;
  z-index: -1;
}

.rounded-image {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  height: 500px;
  object-fit: cover;
  width: 100%;
}

.experience-badge {
  position: absolute;
  bottom: 0;
  left: -30px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-lg);
}

.experience-badge .years {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
}

.experience-badge .text {
  font-weight: 600;
  line-height: 1.2;
}


/* ==========================================================================
   Infinite Marquees
   ========================================================================== */
.marquee-container, .marquee-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}

/* Fading edges */
.marquee-container::before, .marquee-container::after,
.marquee-wrapper::before, .marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before, .marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light), transparent);
}
.marquee-wrapper::before { background: linear-gradient(to right, var(--bg-white), transparent); }

.marquee-container::after, .marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light), transparent);
}
.marquee-wrapper::after { background: linear-gradient(to left, var(--bg-white), transparent); }


.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-width: 100%;
  flex-shrink: 0;
  animation: scroll-left 30s linear infinite;
  padding: 20px 0;
}

.marquee-track.slow { animation-duration: 40s; }
.marquee-track.reverse { animation-direction: reverse; }

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 2rem)); } /* -50% of duplicated track minus half gap */
}

.client-logo, .partner-logo {
  color: var(--text-secondary);
  opacity: 0.5;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo:hover, .partner-logo:hover {
  opacity: 1;
  color: var(--accent-color);
  transform: scale(1.1);
}

/* ==========================================================================
   Products / Solutions
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.product-card {
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.05);
  background: var(--bg-white);
  transition: all var(--transition-normal);
  text-align: center;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: transparent;
}

.card-image {
  height: 100px;
  width: auto;
  max-width: 140px;
  margin: 0 auto 20px auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .card-image {
  transform: scale(1.1);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.card-link {
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.875rem;
  text-transform: uppercase;
}

.card-link i {
  transition: transform var(--transition-normal);
}

.product-card:hover .card-link {
  color: var(--accent-color);
}

.product-card:hover .card-link i {
  transform: translateX(5px);
}

/* ==========================================================================
   Stats Section (Parallax Video Alternative)
   ========================================================================== */
.stats-section {
  position: relative;
  padding: 120px 0;
  background-attachment: fixed;
}

.parallax-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  z-index: 1;
}

.parallax-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(13, 27, 42, 0.85); /* Heavy Primary Tint */
  z-index: 2;
}

.title-xl {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(5px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-light);
}

.stat-plus {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  vertical-align: top;
}

.stat-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  color: var(--text-light);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--bg-white);
  padding: 80px 0;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #081119; /* Very Dark Navy */
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
  gap: 40px;
}

.footer-title {
  font-family: var(--font-display);
  color: var(--bg-white);
  font-size: 1.25rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  transition: all var(--transition-normal);
}

.social-circle:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list a:hover {
  color: var(--accent-color);
}

.map-box {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  background-color: #333; /* Fallback */
  overflow: hidden;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a:hover {
  color: var(--bg-white);
}

/* Floating Action Button */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform var(--transition-fast);
  animation: pulse 2s infinite;
}

.floating-wa:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    gap: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none; /* Hide on small screens for cleaner header */
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content {
    padding-top: 60px;
    text-align: center;
  }

  .title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .image-wrapper {
    margin-top: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-padding {
    padding: 60px 0;
  }

  .parallax-bg {
    background-attachment: scroll; /* Fix performance on mobile iOS */
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ==========================================================================
   Custom Logos & Translation Overrides
   ========================================================================== */
.client-brand-logo {
  height: 70px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all var(--transition-normal);
  cursor: pointer;
}
.client-brand-logo.petrobras {
  height: 150px;
}
.client-brand-logo.perfilx {
  height: 140px;
}
.client-brand-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.15);
}
.client-brand-text {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-secondary);
  opacity: 0.5;
  transition: all var(--transition-normal);
  cursor: pointer;
}
.client-brand-text:hover {
  opacity: 1;
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Hide Google Translate Bar */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

/* Scroll Header Logo Switch */
.nav-logo-dark { display: none; }
.navbar.scrolled .nav-logo-light { display: none !important; }
.navbar.scrolled .nav-logo-dark { display: block !important; }

/* Dark Marquee Theme */
.bg-dark-marquee {
  background-color: var(--primary-color);
  padding: 80px 0;
}
.bg-dark-marquee .section-title {
  color: var(--bg-white);
}
.bg-dark-marquee .client-brand-logo {
  filter: grayscale(100%) opacity(0.8) brightness(1.2);
  mix-blend-mode: luminosity; /* helps blend solid white backgrounds slightly */
}
.bg-dark-marquee .client-brand-logo:hover {
  filter: grayscale(0%) opacity(1) brightness(1);
  mix-blend-mode: normal;
  transform: scale(1.15);
}
.bg-dark-marquee .client-brand-text {
  color: var(--bg-white);
  opacity: 0.3;
}
.bg-dark-marquee .client-brand-text:hover {
  opacity: 1;
  color: var(--bg-white);
  transform: scale(1.1);
}
