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

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

body {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ff0000;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 60px;
  background-color: #ff0000;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  position: relative;
}

/* Header Styles */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: #ff0000;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  z-index: 1001;
}

/* Hero Section */
#hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: #ff0000;
  color: #ffffff;
  position: relative;
  margin-top: 80px;
  padding: 80px 0;
  overflow: hidden;
}

/* Hero Background Video */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7) contrast(1.2);
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.8) 0%, rgba(255, 0, 0, 0.6) 100%);
  z-index: 2;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 800px;
  width: 100%;
}

.hero-content h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}


.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  background-color: #ffffff;
  color: #ff0000;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
  text-align: center;
}

.btn:hover {
  background-color: transparent;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: #ff0000;
}

/* Services Section */
#services {
  background-color: #f9f9f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: #ff0000;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.portfolio-overlay h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.play-icon {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 15px;
}

/* About Section - Fixed */
#about {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.about-intro {
  margin-bottom: 30px;
  font-size: 1.2rem;
  max-width: 800px;
}

.about-content {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.about-text {
  max-width: 800px;
  text-align: center;
  opacity: 1 !important; /* Garantir que o texto seja visível */
  transform: translateY(0) !important; /* Garantir que não haja transformação que oculte */
}

.about-text h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Statistics Section */
.section-statistics {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: #ffffff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-statistics::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.section-statistics h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 40px;
  border-radius: 15px;
  display: inline-block;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::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;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  font-size: 28px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

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

/* Locations Section */
.section-locations {
  background-color: #ffffff;
  position: relative;
}

.section-locations::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/placeholder.svg?height=500&width=1200");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.locations-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.location-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid #ff0000;
}

.location-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.location-icon {
  font-size: 2.5rem;
  color: #ff0000;
  margin-bottom: 20px;
}

.location-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.location-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 40px;
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 20px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-details p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-details i {
  color: #ff0000;
  font-size: 1.2rem;
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

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

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #f1f1f1;
  border-radius: 50%;
  color: #333;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #ff0000;
  color: #ffffff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #ff0000;
}

.btn-submit {
  background-color: #ff0000;
  color: #ffffff;
  border: 2px solid #ff0000;
  cursor: pointer;
  width: 100%;
}

.btn-submit:hover {
  background-color: transparent;
  color: #ff0000;
}

/* Footer */
footer {
  background-color: #333;
  color: #ffffff;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  gap: 15px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff0000;
}

.footer-social {
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #ffffff;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #ff0000;
}

.copyright {
  font-size: 0.9rem;
  color: #aaa;
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-modal.fade-out {
  opacity: 0;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
}

.modal-content video {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.close-modal {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video Loading Spinner */
.video-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: white;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ff0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.video-loading p {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

.no-scroll {
  overflow: hidden;
}

/* Animations */
.service-card,
.portfolio-item,
.about-text,
.location-card,
.stat-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated,
.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced animations */
.animate-in {
  animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Section reveal animations */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grid items */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.portfolio-item:nth-child(8) { animation-delay: 0.8s; }

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Styles */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
  }
  
  .stat-number {
    font-size: 4rem;
  }
  
  /* Garantir que o vídeo funcione corretamente em desktop */
  .hero-video {
    opacity: 0.3;
    filter: brightness(0.7) contrast(1.2);
    transform: translate(-50%, -50%);
  }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
  
  /* Garantir que o vídeo funcione corretamente em desktop */
  .hero-video {
    opacity: 0.3;
    filter: brightness(0.7) contrast(1.2);
    transform: translate(-50%, -50%);
  }
}

/* Tablet Large (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 20px;
  }
  
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-container {
    min-height: 400px;
  }
  
  /* Otimizações para vídeo de background em tablets */
  .hero-video {
    opacity: 0.2;
    filter: brightness(0.6) contrast(1.1);
  }
  
  .hero-video-overlay {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9) 0%, rgba(255, 0, 0, 0.7) 100%);
  }

  /* Statistics tablet */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }

  .locations-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  /* Services grid tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  /* Portfolio grid tablet */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    clip-path: circle(0px at top right);
    transition: clip-path 0.5s ease;
  }

  nav.active {
    clip-path: circle(1500px at top right);
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  nav ul li {
    margin: 10px 0;
  }

  .about-content {
    margin-top: 30px;
  }
  
  /* Statistics responsive */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
  
  /* WhatsApp button responsive */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float a {
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float i {
    font-size: 24px;
  }
  
  /* Services grid mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Portfolio grid mobile */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  /* Locations grid mobile */
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Container mobile */
  .container {
    padding: 0 15px;
  }

}

@media (max-width: 576px) {
  #hero {
    min-height: 400px;
    padding: 40px 0;
  }
  .hero-container {
    min-height: 350px;
    padding: 20px 0;
  }
  
  /* Desabilitar vídeo de background em mobile para performance */
  .hero-video {
    display: none;
  }
  
  .hero-video-overlay {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.95) 0%, rgba(255, 0, 0, 0.85) 100%);
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .btn-outline {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }

  .hero-container {
    min-height: 300px;
  }
  
  /* Garantir que vídeo não apareça em telas muito pequenas */
  .hero-video {
    display: none !important;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  /* Statistics mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  /* WhatsApp mobile */
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float a {
    width: 45px;
    height: 45px;
  }
  
  .whatsapp-float i {
    font-size: 20px;
  }
  
  .whatsapp-tooltip {
    display: none; /* Hide tooltip on very small screens */
  }

  .btn {
    width: 100%;
  }
  
  /* Container mobile small */
  .container {
    padding: 0 10px;
  }
  
  /* Hero mobile small */
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  /* Statistics mobile small */
  .section-statistics h2 {
    font-size: 2rem;
    padding: 15px 25px;
  }
  
  /* Services mobile small */
  .service-card {
    padding: 20px 15px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon i {
    font-size: 24px;
  }
  
  /* Portfolio mobile small */
  .portfolio-item {
    height: 200px;
  }
  
  /* About mobile small */
  .about-text h3 {
    font-size: 1.5rem;
  }
  
  .about-text p {
    font-size: 1rem;
    line-height: 1.6;
  }

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


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

/* Extra Small Mobile (≤375px) */
@media (max-width: 375px) {
  .container {
    padding: 0 8px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-statistics h2 {
    font-size: 1.8rem;
    padding: 12px 20px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .service-card {
    padding: 15px 10px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
  }
  
  .service-icon i {
    font-size: 20px;
  }
  
  .portfolio-item {
    height: 180px;
  }
  
  .whatsapp-float {
    bottom: 10px;
    right: 10px;
  }
  
  .whatsapp-float a {
    width: 40px;
    height: 40px;
  }
  
  .whatsapp-float i {
    font-size: 18px;
  }
}

/* Ultra Wide Desktop (1400px+) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-content h1 {
    font-size: 4.5rem;
  }
  
  .stats-grid {
    gap: 60px;
  }
  
  .stat-number {
    font-size: 4.5rem;
  }
  
  .services-grid {
    gap: 40px;
  }
  
  .portfolio-grid {
    gap: 30px;
  }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 300px;
    padding: 20px 0;
  }
  
  .hero-container {
    min-height: 250px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .hero-buttons {
    margin-top: 15px;
  }
  
  .section-statistics {
    padding: 40px 0;
  }
  
  .section-statistics h2 {
    margin-bottom: 30px;
    font-size: 2rem;
  }
  
  .stats-grid {
    gap: 20px;
  }
  
  .stat-item {
    padding: 20px 15px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .portfolio-item:hover,
  .stat-item:hover {
    transform: none;
  }
  
  .service-card:active,
  .portfolio-item:active,
  .stat-item:active {
    transform: scale(0.98);
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.95);
  }
  
  .whatsapp-float a:hover {
    transform: none;
  }
  
  .whatsapp-float a:active {
    transform: scale(0.9);
  }
}
