/* 
  R-SENA Construções e Serviços 
  Premium Design System v2.0
*/

:root {
  --primary-blue: #014aad;
  --primary-yellow: #fba100;
  --secondary-yellow: #ffd700;
  --white: #ffffff;
  --black: #0f172a; /* Deep matte black for premium look */
  --grey-light: #f8fafc;
  --grey-medium: #e2e8f0;
  --grey-dark: #334155;
  --accent-gold: #d4af37;
  
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --container-width: 1300px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-yellow);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--grey-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--black);
  line-height: 1.2;
}

section {
  padding: 100px 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- Navigation --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 3px solid var(--primary-yellow);
  transition: var(--transition-normal);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.7rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 48px;
  transition: transform 0.3s ease;
}

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

.logo-text {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 0.9;
}

.logo-sub {
  color: var(--primary-yellow);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-yellow);
  transition: var(--transition-fast);
}

nav a:hover {
  color: var(--white);
}

nav a:hover::after {
  width: 100%;
}

.btn-whatsapp-nav {
  background: var(--primary-yellow);
  color: var(--black) !important;
  padding: 0.7rem 1.8rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-normal);
  border: 2px solid var(--primary-yellow);
  box-shadow: 0 4px 15px rgba(251, 161, 0, 0.3);
}

.btn-whatsapp-nav:hover {
  background: transparent;
  color: var(--primary-yellow) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 161, 0, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0; /* Prevent shrinking in flex containers */
}

.menu-toggle span {
  display: block; /* Ensure it's not collapsed */
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%), 
              url('../img/8-MestreDeObras.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero-content {
  max-width: 900px;
  padding: 0 4rem;
  margin-top: 100px;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  background: rgba(251, 161, 0, 0.2);
  color: var(--primary-yellow);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid rgba(251, 161, 0, 0.3);
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--primary-yellow);
  display: block;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  border-left: 3px solid var(--primary-yellow);
  padding-left: 20px;
}

.cta-group {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background: var(--primary-yellow);
  color: var(--black);
  padding: 1.1rem 2.5rem;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  border-radius: 5px;
  transition: var(--transition-normal);
  display: inline-block;
}

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 1.1rem 2.5rem;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  border-radius: 5px;
  transition: var(--transition-normal);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(251, 161, 0, 0.3);
  filter: brightness(1.1);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-5px);
}

/* --- Section Title --- */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header .badge {
  color: var(--primary-blue);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 4px;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: var(--primary-yellow);
  border-radius: 10px;
}

.section-header p {
  color: var(--grey-dark);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 25px auto 0;
}

/* --- History Section --- */
.history-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.history-content h3 {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

.history-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--grey-dark);
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.highlight-item {
  background: var(--grey-light);
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid var(--primary-yellow);
  transition: var(--transition-normal);
}

.highlight-item:hover {
  transform: scale(1.03);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.highlight-item span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.highlight-item label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.history-visual {
  position: relative;
}

.history-visual img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
}

.experience-tag {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  border: 4px solid var(--white);
}

.experience-tag .number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.experience-tag .text {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Projects / Portfolio --- */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.tab-btn {
  padding: 12px 30px;
  border: 2px solid var(--grey-medium);
  background: transparent;
  color: var(--grey-dark);
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(1, 74, 173, 0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition-normal);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  opacity: 0;
  transition: var(--transition-normal);
  transform: translateY(20px);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-status {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 5;
  background: var(--primary-yellow);
  color: var(--black);
}

.project-status.completed {
  background: var(--primary-blue);
  color: var(--white);
}

.project-overlay h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.project-overlay p {
  color: var(--primary-yellow);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.view-btn i {
  background: var(--primary-yellow);
  color: var(--black);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* --- Services / Cards --- */
.services-section {
  background: var(--grey-light);
  max-width: 100%;
}

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

.service-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-bottom: 6px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-bottom-color: var(--primary-yellow);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: rgba(1, 74, 173, 0.05);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--primary-blue);
}

.service-icon i {
  font-size: 2.2rem;
  color: var(--primary-blue);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon i {
  color: var(--white);
}

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

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-card {
  background: var(--black);
  padding: 60px;
  border-radius: 30px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--primary-yellow);
  filter: blur(100px);
  opacity: 0.2;
}

.contact-card h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-info-list {
  list-style: none;
  margin: 40px 0;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.contact-info-list i {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-yellow);
}

.whatsapp-card {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  padding: 60px;
  border-radius: 30px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  box-shadow: 0 30px 60px rgba(37, 211, 102, 0.2);
}

.whatsapp-card i {
  font-size: 5rem;
  margin-bottom: 20px;
}

.whatsapp-card h3 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.whatsapp-card .btn-whatsapp {
  background: var(--white);
  color: #128c7e;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
  margin-top: 30px;
  transition: var(--transition-normal);
}

.whatsapp-card .btn-whatsapp:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.98);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
}

.modal.active {
  display: block;
}

.modal-content {
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 100;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.close-modal:hover {
  background: var(--primary-yellow);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
}

.modal-gallery-container {
  padding: 40px;
  background: var(--grey-light);
}

/* Carousel Instagram Style */
.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--black);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background: var(--primary-yellow);
  transform: scale(1.2);
}

.modal-details {
  padding: 50px;
  border-left: 1px solid var(--grey-medium);
}

.modal-details .badge {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.modal-details h2 {
  font-size: 2.5rem;
  margin: 10px 0 30px;
}

.modal-description {
  font-size: 1.1rem;
  color: var(--grey-dark);
  margin-bottom: 40px;
}

.modal-meta {
  margin-bottom: 40px;
}

.meta-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.meta-item i {
  color: var(--primary-yellow);
  font-size: 1.2rem;
}

.meta-item span {
  font-weight: 700;
}

/* --- Footer --- */
footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 2rem 40px;
  text-align: center;
}

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

.footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition-normal);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary-yellow);
  color: var(--black);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Floating Button --- */
.whatsapp-floating {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 70px;
  height: 70px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 1500;
  text-decoration: none;
  transition: var(--transition-normal);
}

.whatsapp-floating:hover {
  transform: scale(1.1) rotate(10deg);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

/* Responsive Refinement */
@media (max-width: 1100px) {
  .history-container, .contact-grid, .modal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .modal-grid {
    grid-template-rows: auto auto;
  }
  .modal-details {
    border-left: none;
    border-top: 1px solid var(--grey-medium);
    padding: 30px;
  }
  .history-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 1.25rem;
  }

  .nav-container {
    padding: 0.7rem 1.25rem;
  }

  /* Hamburger Menu Logic */
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
    z-index: 1000;
    visibility: hidden; /* Hide when not active to prevent ghost clicks */
    opacity: 0;
  }

  nav.active {
    right: 0;
    visibility: visible;
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    display: flex;
    padding: 0;
  }

  nav a {
    font-size: 1.5rem;
  }

  .btn-whatsapp-nav {
    display: none; /* Hide in header, show in menu if needed or hero */
  }

  .hero-content {
    padding: 0 1.25rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
    padding-left: 0;
    border-left: none;
    margin: 0 auto 2rem;
  }

  .cta-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .portfolio-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tab-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

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

  .contact-card, .whatsapp-card {
    padding: 40px 20px;
  }

  .contact-card h2 {
    font-size: 2.2rem;
  }

  .whatsapp-floating {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
  }

  .experience-tag {
    bottom: -15px;
    left: 15px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }

  .highlight-item {
    padding: 15px;
  }

  .highlight-item span {
    font-size: 1.5rem;
  }
}

/* Mobile Carousel & Modal Refinements */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    margin: 10px auto;
    border-radius: 20px;
    max-height: 95vh;
  }

  .modal-gallery-container {
    padding: 12px; /* Espaçamento reduzido para focar na imagem */
  }

  .carousel-container {
    aspect-ratio: 4/3; /* Proporção melhorada para telas verticais */
    border-radius: 15px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.4); /* Maior contraste no mobile */
  }

  .carousel-indicators {
    bottom: 15px;
    padding: 4px 10px;
    gap: 6px;
  }
  
  .dot {
    width: 7px;
    height: 7px;
  }

  .close-modal {
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
  }

  .modal-details h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
}
