/* 
 * main.css - Main stylesheet for GSouza Tecnologia
 * Version: 1.0.0
 * Author: GSouza Tecnologia
 */

:root {
  --primary-color: #3162fe;
  --secondary-color: #1a91ff;
  --dark-blue: #092068;
  --accent-color: #0d39c0;
  --text-color: #0c1732;
  --text-secondary: #546681;
  --light-gray: #f8f9fa;
  --bg-light: #f7f9ff;
  --white: #ffffff;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --container-padding: 5%;
  --section-spacing: 80px;
}

/* Base Styles 
-------------------------------------------*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--white);
  color: var(--text-color);
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text-color);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Layout 
-------------------------------------------*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* Navigation Styles */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navigation.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.container-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  max-width: 1240px;
  margin: 0 auto;
}

.navigation-block-left {
  display: flex;
  align-items: center;
}

.navigation-link-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.navigation-link {
  position: relative;
  padding: 10px 15px;
  margin: 0 2px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.navigation-text {
  font-weight: 500;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--text-color);
}

.navigation-link:hover {
  background-color: rgba(49, 98, 254, 0.05);
}

.navigation-link::after {
  content: '';
  position: absolute;
  bottom: 7px;
  left: 15px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navigation-link:hover::after {
  width: calc(100% - 30px);
}

.logo-image {
  transition: var(--transition);
}

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

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  outline: none;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background-color: rgba(49, 98, 254, 0.05);
}

.mobile-menu-toggle:active {
  background-color: rgba(49, 98, 254, 0.1);
}

.mobile-menu-toggle svg {
  vertical-align: middle;
  width: 24px;
  height: 24px;
  display: block;
}

/* Modern Header Styles */
.modern-header {
  padding-top: 100px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8efff 100%);
  position: relative;
  overflow: hidden;
}

.modern-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(49, 98, 254, 0.03) 0%,
    rgba(49, 98, 254, 0) 70%
  );
  z-index: 1;
}

.modern-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(9, 32, 104, 0.03) 0%,
    rgba(9, 32, 104, 0) 70%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-block {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 550px;
}

.hero-image {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 20px;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(49, 98, 254, 0.03),
    transparent 70%
  );
  z-index: -1;
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
}

.hero-illustration {
  max-width: 120%;
  width: 120%;
  height: auto;
  animation: float 6s ease-in-out infinite;
  transform-origin: center center;
  filter: drop-shadow(0 10px 30px rgba(49, 98, 254, 0.2));
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Typography Enhancements */
.heading {
  color: var(--text-color);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
}

.highlight-text {
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(49, 98, 254, 0.2);
  z-index: -1;
  border-radius: 4px;
}

/* Typewriter effect */
.Typewriter {
  display: inline-block;
  position: relative;
  text-align: left;
  min-width: 220px;
}

.Typewriter__wrapper {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.Typewriter__cursor {
  color: var(--primary-color);
  opacity: 0.7;
}

/* Special styling for typewriter effect to adjust the underline */
#type {
  position: relative;
  display: inline;
}

/* Remove the default highlight-text underline for typewriter element */
.highlight-text#type::after {
  display: none;
}

/* Apply custom underline to typewriter text */
.Typewriter__wrapper::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(49, 98, 254, 0.2);
  z-index: -1;
  border-radius: 4px;
}

@media screen and (max-width: 767px) {
  .Typewriter {
    display: inline-block;
    position: relative;
    text-align: center;
    min-width: 220px;
  }

  /* Optimize hero image for mobile */
  .hero-image {
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-illustration {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    transform: scale(1.3);
  }

  /* Ensure source and img tags have proper sizing */
  picture source,
  picture img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    transform: scale(1.2);
  }

  /* Make sure heading handles wrapping well */
  .heading {
    font-size: 2.2rem;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30px;
    line-height: 1.4;
  }
}

@media screen and (max-width: 479px) {
  .Typewriter {
    min-width: 220px;
    width: 220px;
  }

  /* Update hero height to accommodate larger image */
  .hero-content {
    min-height: 740px;
  }

  .hero-block {
    min-height: 350px;
  }

  /* Optimize hero image */
  .hero-image {
    margin-top: 30px;
    margin-bottom: 10px;
    width: 100%;
    transform: scale(1.1);
  }

  .hero-illustration {
    max-width: 100%;
    width: 100%;
    transform: scale(1.4);
  }

  /* Ensure source and img tags have proper sizing */
  picture source,
  picture img {
    width: auto;
    max-width: 110%;
    margin: 0 auto;
    display: block;
    transform: scale(1.4);
  }

  /* Heading styles for very small screens */
  .heading {
    font-size: 1.9rem;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  /* Further optimize styling for smallest screens */
  .section-content,
  #servicos,
  #sobre,
  #clientes {
    padding: 40px 0;
  }

  .service-card {
    padding: 25px 20px;
    margin-bottom: 0;
  }

  /* Better section titles on small screens */
  .heading-primary,
  .heading-primary-copy {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }

  /* Optimize CTA section */
  .section-cta {
    padding: 45px 0;
  }

  .h3-centre-white-copy {
    font-size: 1.7rem;
    margin-bottom: 15px;
  }

  .paragraph-centre-white {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  /* Better service card experience */
  .service-icon {
    padding: 14px;
    margin-bottom: 20px;
  }

  .heading-3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  /* Optimize buttons for mobile */
  .button,
  .button-default,
  .cta-button {
    padding: 13px 20px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    display: block;
  }

  /* Fix client logo sizing and spacing */
  .logo-wrap {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    height: 90px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
  }

  .light-logo {
    max-height: 50px;
    filter: grayscale(0.2);
  }

  .clients-container {
    gap: 10px;
  }
}

/* Adicionar um breakpoint específico para telas muito pequenas */
@media screen and (max-width: 380px) {
  .hero-content {
    min-height: 760px;
  }

  picture source,
  picture img {
    max-width: 130%;
    transform: scale(1.3);
  }
}

.paragraph-hero {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 25px;
  max-width: 95%;
}

.button-wrap-hero {
  margin-top: 10px;
}

/* Button Styles */
.button {
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius-sm);
  padding: 15px 30px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(49, 98, 254, 0.2);
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: -1;
}

.button:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(49, 98, 254, 0.25);
}

.button:hover::before {
  width: 100%;
  background-color: white;
}

.button-default {
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius-sm);
  padding: 12px 25px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 10px rgba(49, 98, 254, 0.15);
}

.button-default::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: -1;
}

.button-default:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(49, 98, 254, 0.2);
}

.button-default:hover::before {
  width: 100%;
  background-color: white;
}

/* Section Styles */
.section-content {
  padding: 70px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* About Section */
#sobre {
  background-color: var(--bg-light);
  padding-top: 90px;
  padding-bottom: 90px;
  position: relative;
}

.column-wrap-reversed {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.content-block-left {
  width: 50%;
  padding: 20px 0;
}

.image-block {
  width: 50%;
  position: relative;
  z-index: 2;
}

.image-block::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70%;
  height: 70%;
  border-radius: 20px;
  background-color: rgba(49, 98, 254, 0.05);
  z-index: -1;
}

.image-block::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 50%;
  height: 50%;
  border-radius: 20px;
  background-color: rgba(9, 32, 104, 0.05);
  z-index: -1;
}

.rounded-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.content-wrap {
  max-width: 550px;
}

.heading-primary {
  color: var(--text-color);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 25px;
}

.title {
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--primary-color);
}

.paragraph {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Service Cards Section */
#servicos {
  background-color: var(--white);
  padding-top: 90px;
  padding-bottom: 90px;
}

.title-wrap-left {
  margin-bottom: 40px;
  max-width: 700px;
}

.heading-primary-copy {
  color: var(--text-color);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 25px;
}

/* Service Cards - Base Styling */
.service-card-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin: 50px 0;
  width: 100%;
}

.column {
  flex: 1 0 calc(33.333% - 20px);
  min-width: 250px;
  margin-bottom: 0;
}

.service-card {
  border-radius: var(--border-radius);
  transition: var(--transition);
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
}

/* Service card hover effect */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(49, 98, 254, 0.12);
  border-color: rgba(49, 98, 254, 0.15);
}

.service-icon {
  background-color: rgba(49, 98, 254, 0.1);
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: rgba(49, 98, 254, 0.2);
  transform: scale(1.05) rotate(5deg);
}

.card-content-wrap {
  flex-grow: 1;
  width: 100%;
}

.heading-3 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.paragraph-2 {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Client Section */
#clientes {
  background-color: var(--bg-light);
  padding: 80px 0 60px;
  margin-bottom: 0;
}

.section-logo {
  text-align: center;
  margin-bottom: 0;
}

.clients-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 0;
  padding-bottom: 0;
}

.logo-wrap {
  flex: 0 0 calc(25% - 20px);
  max-width: calc(25% - 20px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px 20px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 120px;
}

.logo-wrap:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.light-logo {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  filter: grayscale(0.5);
  transition: var(--transition);
  object-fit: contain;
}

.logo-wrap:hover .light-logo {
  filter: grayscale(0);
}

/* Animation for CTA section */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Completely remove space between clients and contact */
#contato {
  margin-top: 0;
}

/* Contact section with reduced space */
.section-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--dark-blue) 100%
  ) !important;
  background-size: 200% 200% !important;
  animation: gradientAnimation 15s ease infinite !important;
  padding: 80px 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  border: none;
  outline: none;
  border-top: none;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M96 4L4 96' stroke='white' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 50px;
  opacity: 0.3;
}

.title-wrap {
  position: relative;
  z-index: 5;
  max-width: 800px;
  margin: 0 auto;
}

.h3-centre-white-copy {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.paragraph-centre-white {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.button-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.cta-button {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid white;
  border-radius: var(--border-radius-sm);
  padding: 15px 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.cta-button:hover {
  background-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: var(--white);
  padding: 80px 0 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.container-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Footer navigation links */
.footer .navigation-link-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media screen and (max-width: 991px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-block {
    width: 100%;
    align-items: center;
  }

  .heading {
    font-size: 2.2rem;
    min-height: 190px;
    height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .section-content,
  #servicos,
  #sobre,
  #clientes {
    padding: 70px 0;
  }

  .service-card {
    padding: 30px;
  }

  .heading-primary,
  .heading-primary-copy {
    font-size: 2.2rem;
  }

  /* Container positioning */
  .container-navigation {
    position: relative;
  }

  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: var(--container-padding);
    z-index: 1002;
    color: var(--text-color);
    background-color: transparent;
    padding: 8px;
  }

  /* Hide default browser hamburger icons on iOS */
  .mobile-menu-toggle::-webkit-details-marker {
    display: none;
  }

  /* Mobile nav menu */
  .navigation-link-wrap {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Active mobile menu */
  .navigation-link-wrap.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  /* Mobile menu items */
  .navigation-link {
    width: 100%;
    padding: 12px 25px;
    margin: 0;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
  }

  .navigation-link + .navigation-link {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navigation-text {
    font-size: 16px;
    line-height: 1.4;
    width: 100%;
  }

  .navigation-link:hover {
    background-color: rgba(49, 98, 254, 0.05);
    border-left: 3px solid var(--primary-color);
  }

  .navigation-link::after {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .heading {
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 30px;
  }

  /* Keep hero content consistent height */
  .hero-content {
    min-height: 580px;
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
  }

  .hero-block {
    min-height: auto;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Optimize hero image for mobile */
  .hero-image {
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-illustration {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0 auto;
    transform: scale(1.3);
  }

  /* Ensure source and img tags have proper sizing */
  picture source,
  picture img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    transform: scale(1.2);
  }

  /* Improve spacing between sections */
  .section-content,
  #servicos,
  #sobre,
  #clientes {
    padding: 50px 0;
  }

  /* Better spacing for buttons on mobile */
  .button,
  .button-default {
    padding: 14px 22px;
    width: 100%;
    display: block;
    text-align: center;
    font-size: 1rem;
  }

  /* Improve card and content alignment */
  .title-wrap-left {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 35px;
  }

  /* Improve legibility of paragraphs */
  .paragraph,
  .paragraph-hero,
  .paragraph-2,
  .paragraph-centre-white {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Better spacing in footer */
  .footer {
    padding: 60px 0 20px;
  }

  /* Better vertical rhythm */
  .title {
    margin-bottom: 12px;
  }

  .button-wrap {
    margin-top: 25px;
  }

  /* Navigation improvements */
  .navigation-text {
    font-size: 1rem;
  }

  /* More consistent mobile card styling */
  .service-card-wrap {
    flex-direction: column;
    gap: 25px;
  }

  .column {
    flex: 0 0 100%;
    width: 100%;
    padding: 0;
    margin: 0 0 15px 0;
  }

  .service-card {
    width: 100%;
    padding: 30px 25px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
  }

  /* Improve About section mobile layout - convert to row layout for Quem Somos section */
  .column-wrap-reversed {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .content-block-left,
  .image-block {
    width: 100%;
  }

  /* Improve text alignment and spacing */
  .content-block-left {
    padding: 10px 0;
    text-align: center;
  }

  .image-block {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
  }

  /* Center content and image on mobile */
  .content-wrap {
    max-width: 100%;
    margin: 0 auto;
  }

  .rounded-image {
    max-width: 85%;
    margin: 0 auto;
  }

  /* Improve heading styling */
  .heading-primary {
    text-align: center;
    margin-bottom: 20px;
  }

  /* Consistent padding across devices */
  .container {
    padding: 0 6%;
  }

  /* Better spacing between content blocks */
  .heading-primary,
  .heading-primary-copy {
    margin-bottom: 20px;
  }

  /* Enhanced CTA button on mobile */
  .cta-button {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Animation Styles */
.service-card,
.logo-wrap,
.image-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.animated,
.logo-wrap.animated,
.image-block.animated {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(1),
.logo-wrap:nth-child(1) {
  transition-delay: 0.1s;
}

.service-card:nth-child(2),
.logo-wrap:nth-child(2) {
  transition-delay: 0.2s;
}

.service-card:nth-child(3),
.logo-wrap:nth-child(3) {
  transition-delay: 0.3s;
}

/* Improved image styles */
.rounded-image {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.image-block:hover .rounded-image {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-illustration,
  .service-card,
  .logo-wrap,
  .image-block,
  .button,
  .button-default,
  .navigation-link,
  .rounded-image {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Fixed height for hero heading on mobile */
@media screen and (max-width: 767px) {
  .heading {
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 30px;
  }

  /* Keep hero content consistent height */
  .hero-content {
    min-height: 580px;
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
  }

  .hero-block {
    min-height: auto;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media screen and (max-width: 479px) {
  .heading {
    font-size: 1.9rem;
    min-height: auto;
    height: auto;
    margin-bottom: 30px;
  }

  /* Update hero height to accommodate larger image */
  .hero-content {
    min-height: 740px;
  }

  .hero-block {
    min-height: auto;
    padding-bottom: 20px;
  }

  /* Optimize hero image */
  .hero-image {
    margin-top: 30px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-illustration {
    max-width: 100%;
    width: 100%;
  }

  /* Ensure source and img tags have proper sizing */
  picture source,
  picture img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }

  /* Further optimize styling for smallest screens */
  .section-content,
  #servicos,
  #sobre,
  #clientes {
    padding: 40px 0;
  }

  .service-card {
    padding: 25px 20px;
    margin-bottom: 0;
  }

  /* Better section titles on small screens */
  .heading-primary,
  .heading-primary-copy {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }

  /* Optimize CTA section */
  .section-cta {
    padding: 45px 0;
  }

  .h3-centre-white-copy {
    font-size: 1.7rem;
    margin-bottom: 15px;
  }

  .paragraph-centre-white {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  /* Better service card experience */
  .service-icon {
    padding: 14px;
    margin-bottom: 20px;
  }

  .heading-3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  /* Optimize buttons for mobile */
  .button,
  .button-default,
  .cta-button {
    padding: 13px 20px;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    display: block;
  }

  /* Fix client logo sizing and spacing */
  .logo-wrap {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    height: 90px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
  }

  .light-logo {
    max-height: 50px;
    filter: grayscale(0.2);
  }

  .clients-container {
    gap: 10px;
  }
}

/* Adicionar um breakpoint específico para telas muito pequenas */
@media screen and (max-width: 380px) {
  .hero-content {
    min-height: 760px;
  }

  picture source,
  picture img {
    max-width: 130%;
    transform: scale(1.3);
  }
}

.footer .navigation-link-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media screen and (max-width: 991px) {
  .footer .navigation-link-wrap {
    position: static;
    display: flex;
    box-shadow: none;
    background: none;
    opacity: 1;
    transform: none;
    width: auto;
    justify-content: center;
    padding-top: 20px;
  }

  .footer .navigation-link {
    border-left: none;
  }
}

.legal-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 40px auto 0;
  padding: 0 var(--container-padding);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}

.legal-text {
  margin: 10px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.legal-text a {
  display: block;
}

.legal-text img {
  vertical-align: middle;
  max-width: 120px;
}

@media screen and (max-width: 767px) {
  .legal-wrap {
    flex-direction: column;
    text-align: center;
  }

  .legal-text {
    justify-content: center;
    margin: 10px 0;
  }
}

/* Media Queries */
@media screen and (max-width: 1200px) {
  .heading {
    font-size: 2.5rem;
  }

  .paragraph-hero {
    font-size: 1.1rem;
  }

  .column {
    flex: 0 0 1;
  }

  .service-card-wrap {
    justify-content: center;
  }

  .hero-illustration {
    max-width: 110%;
    width: 110%;
  }
}

/* Remove unnecessary media queries for columns */
@media screen and (min-width: 992px),
  screen and (max-width: 1200px),
  screen and (max-width: 991px) {
  .column {
    width: 100%;
  }
}

/* Desktop layout - 3 columns */
@media screen and (min-width: 992px) {
  .service-card-wrap {
    flex-direction: row;
  }

  .column {
    flex: 0 0 calc(33.333% - 20px);
  }
}

/* Tablet layout - 2 columns */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .column {
    flex: 0 0 1;
  }
}

/* Mobile layout - 1 column */
@media screen and (max-width: 767px) {
  .service-card-wrap {
    flex-direction: column;
    gap: 25px;
  }

  .column {
    flex: 0 0 100%;
    width: 100%;
    padding: 0;
    margin: 0 0 15px 0;
  }

  .service-card {
    padding: 30px 25px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
  }
}

/* Improve client logo section on tablet */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .logo-wrap {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  .logo-wrap {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
    padding: 20px;
    height: 100px;
  }

  .light-logo {
    max-height: 60px;
    filter: grayscale(0.2);
  }

  .clients-container {
    gap: 15px;
  }
}
