/* Importa a fonte Montserrat do Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

/* --- Variáveis de Cor (Opcional, mas bom para consistência) --- */
:root {
    --color-text-primary: #1f2937; /* text-gray-800 */
    --color-text-secondary: #4b5563; /* text-gray-600 */
    --color-text-accent: #2563eb; /* text-blue-600 */
    --color-text-light: #ffffff;
    --color-bg-base: #f9fafb; /* bg-gray-50 */
    --color-bg-alt: #f3f4f6; /* bg-gray-100 */
    --color-bg-card: #ffffff;
    --color-bg-primary: #2563eb; /* bg-blue-600 */
    --color-bg-primary-light: #dbeafe; /* bg-blue-100 */
    --color-bg-whatsapp: #25d366; /* bg-green-500 */
    --color-border-input: #d1d5db; /* border-gray-300 */
    --color-focus-ring: #3b82f6; /* ring-blue-500 */
}

/* --- Estilos Globais --- */
body {
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
    background-color: var(--color-bg-base);
    color: var(--color-text-secondary); /* Cor de texto padrão */
    overflow-x: hidden;

}

/* --- Componentes Reutilizáveis --- */

/* Container */
.container-base {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}
@media (min-width: 640px) { .container-base { max-width: 640px; } }
@media (min-width: 768px) { .container-base { max-width: 768px; } }
@media (min-width: 1024px) { .container-base { max-width: 1024px; } }
@media (min-width: 1280px) { .container-base { max-width: 1280px; } }
@media (min-width: 1536px) { .container-base { max-width: 1536px; } }

/* Seções */
.section-padding {
    padding-top: 4rem; /* py-16 */
    padding-bottom: 4rem; /* py-16 */
}
.section-bg-alt {
    background-color: var(--color-bg-alt);
}
.section-bg-white {
    background-color: var(--color-bg-card);
}

/* Títulos e Textos */
.section-title {
    font-size: 1.875rem; /* text-3xl */
    line-height: 2.25rem;
    font-weight: 700; /* font-bold */
    color: var(--color-text-primary);
    margin-bottom: 1rem; /* mb-4 */
}
@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem; /* md:text-4xl */
        line-height: 2.5rem;
    }
}
.section-title .highlight {
    color: var(--color-text-accent);
}
.section-title-underline {
    width: 5rem; /* w-20 */
    height: 0.25rem; /* h-1 */
    background-color: var(--color-text-accent);
    margin-left: auto;
    margin-right: auto;
}
.section-subtitle {
    color: var(--color-text-secondary);
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem; /* mt-4 */
}
.text-primary {
    color: var(--color-text-primary);
}
.text-secondary {
    color: var(--color-text-secondary);
}
.text-accent {
    color: var(--color-text-accent);
}
.text-accent-light {
    color: #60a5fa; /* text-blue-400 */
}
.text-white {
    color: var(--color-text-light);
}
.font-bold {
    font-weight: 700;
}
.font-semibold {
    font-weight: 600;
}
.font-medium {
    font-weight: 500;
}

/* Cards */
.card-base {
    background-color: var(--color-bg-card);
    padding: 2rem; /* p-8 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    transition-property: box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}
.card-base:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* hover:shadow-xl */
}
.card-icon-background {
    background-color: var(--color-bg-primary-light);
    color: var(--color-text-accent);
    padding: 1rem; /* p-4 */
    border-radius: 9999px; /* rounded-full */
    display: inline-block;
    margin-bottom: 1rem; /* mb-4 */
}
.card-title {
    font-size: 1.25rem; /* text-xl */
    line-height: 1.75rem;
    font-weight: 700; /* font-bold */
    margin-bottom: 0.75rem; /* mb-3 */
    color: var(--color-text-primary);
}

/* Botões */
.button {
    display: inline-flex; /* Alterado para inline-flex para melhor alinhamento com ícones */
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem; /* Ajustado para corresponder a px-6/8 py-3/4 */
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 500; /* font-medium */
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    cursor: pointer;
    text-align: center;
}
.button-lg {
    padding: 1rem 2rem; /* px-8 py-4 */
}
.button-primary {
    background-color: var(--color-bg-primary);
    color: var(--color-text-light);
}
.button-primary:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
}
.button-whatsapp {
    background-color: var(--color-bg-whatsapp);
    color: var(--color-text-light);
}
.button-whatsapp:hover {
    background-color: #1ea672; /* hover:bg-green-600 */
}
.button i {
    margin-right: 0.5rem; /* mr-2 */
}

/* Navegação */
.nav-link {
    color: var(--color-text-primary);
    font-weight: 500; /* font-medium */
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--color-text-accent);
}
.nav-link-desktop {
    /* Herda de .nav-link */display: block;
}
.nav-link-mobile {
    /* Herda de .nav-link */
    display: block;
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem; /* py-2 */
}

/* Formulário */
.form-label {
    display: block;
    color: #374151; /* text-gray-700 */
    font-weight: 500; /* font-medium */
    margin-bottom: 0.5rem; /* mb-2 */
}
.input-field {
    width: 100%;
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border: 1px solid var(--color-border-input);
    border-radius: 0.5rem; /* rounded-lg */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input-field:focus {
    border-color: var(--color-focus-ring);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* focus:ring-2 focus:ring-blue-500 */
}
textarea.input-field {
    min-height: 8rem; /* rows="4" aproximado */
}

/* Ícones */
.icon-circle {
    background-color: var(--color-bg-primary-light);
    color: var(--color-text-accent);
    padding: 0.75rem; /* p-3 */
    border-radius: 9999px; /* rounded-full */
    margin-right: 1rem; /* mr-4 */
    flex-shrink: 0;
    width: 2.5rem; /* w-10 */
    height: 2.5rem; /* h-10 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Estilos Específicos (Mantidos do original) --- */

/* Hero */
.hero {
    /* TODO: Baixar e otimizar esta imagem para /img/hero-bg.jpg */
    background-color: #fff;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
 
    flex-direction: row;
}
@media screen and (max-width: 640px) {
    .hero {
        padding-top: 120px;
        flex-direction: column; /* sm:flex-col */
    }
    
}
.hero h1 {
    font-size: 2.25rem; /* text-4xl */
    line-height: 2.5rem;
    font-weight: 700; /* font-bold */
    margin-bottom: 1.5rem; /* mb-6 */
    color: var(--color-bg-primary);
}
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.75rem; /* md:text-6xl */
        line-height: 1;
    }
}
.hero p {
    font-size: 1.25rem; /* text-xl */
    line-height: 1.75rem;
    margin-bottom: 2rem; /* mb-8 */
    max-width: 56rem; /* max-w-3xl */
    margin-left: auto;
    margin-right: auto;
    color: #1f2937(--color-text-light);
}
@media (min-width: 768px) {
    .hero p {
        font-size: 1.5rem; /* md:text-2xl */
        line-height: 2rem;
    }
}
.hero .button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem; /* gap-4 */
}
@media (min-width: 640px) {
    .hero .button-container {
        flex-direction: row; /* sm:flex-row */
    }
}

/* Card de Serviço (Hover específico) */
.service-card:hover {
    transform: translateY(-10px);
    /* box-shadow já incluído no .card-base:hover */
}

/* Timeline */
.timeline-item {
    position: relative;
    text-align: center;
    padding: 1.5rem; /* p-6 */
    background-color: #eff6ff; /* bg-blue-50 */
    border-radius: 0.5rem; /* rounded-lg */
}
.timeline-item .icon-wrapper {
    position: absolute;
    top: -1.5rem; /* -top-6 */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-bg-primary);
    color: var(--color-text-light);
    border-radius: 9999px; /* rounded-full */
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
}
.timeline-item h4 {
    font-weight: 700; /* font-bold */
    color: var(--color-text-accent);
    margin-top: 2rem; /* mt-8 (espaço para o ícone) */
    margin-bottom: 0.5rem; /* mb-2 */
}
.timeline-item p {
    color: #374151; /* text-gray-700 */
}
/* Linha conectora */
.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1.25rem; /* Ajustado para gap-16 (era -20px para gap-8) */
    width: 2px;
    height: 1.25rem; /* Ajustado para gap-16 */
    background-color: var(--color-text-accent);
    transform: translateX(-50%);
}

/* Botão Flutuante WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem; /* bottom-8 */
    right: 2rem; /* right-8 */
    background-color: var(--color-bg-whatsapp);
    color: var(--color-text-light);
    padding: 1rem; /* p-4 */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
    z-index: 50;
    transition: background-color 0.3s ease;
    animation: pulse 2s infinite;
}
.floating-whatsapp:hover {
    background-color: #1ea672; /* hover:bg-green-600 */
}
.floating-whatsapp i {
    font-size: 1.5rem; /* text-2xl */
    display: block; /* Para garantir que o ícone ocupe o espaço */
}

@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);
    }
}

/* Animações de Entrada */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}
.fade-up {
    transform: translateY(30px);
}
.fade-left {
    transform: translateX(-30px);
}
.fade-right {
    transform: translateX(30px);
}

/* Galeria de Projetos */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}
.project-card img {
    width: 100%;
    height: 16rem; /* h-64 */
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover img {
    transform: scale(1.1);
}
.project-card .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: flex-end; /* Alinha texto na base */
    justify-content: flex-start; /* Alinha texto à esquerda */
    padding: 1rem; /* p-4 */
}
.project-card:hover .overlay {
    background-color: rgba(255, 255, 255, 0.038);
}
.project-card .text-content {
    color: var(--color-text-light);
    opacity: 0;
    transform: translateY(1rem); /* translate-y-4 */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-card:hover .text-content {
    opacity: 1;
    transform: translateY(0);
}
.project-card .text-content h3 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
}
.project-card .text-content p {
    font-size: 0.875rem; /* text-sm */
}

/* Rodapé */
.footer {
    background-color: #1f2937; /* bg-gray-800 */
    color: #d1d5db; /* text-gray-300 */
    padding-top: 2rem; /* py-8 */
    padding-bottom: 2rem; /* py-8 */
    text-align: center;
}
.footer p {
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.5rem; /* mt-2 */
}


/* Header Fixo */
header {
    background-color: var(--color-bg-card);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    position: sticky;
    top: 0;
    z-index: 40;
}
header .logo-icon-wrapper {
    background-color: var(--color-bg-primary);
    color: var(--color-text-light);
    padding: 0.5rem; /* p-2 */
    border-radius: 0.25rem; /* rounded */
    margin-right: 0.75rem; /* mr-3 */
}
header .logo-icon-wrapper i {
    font-size: 1.5rem; /* text-2xl */
    display: block;
}
.logo-image{
    max-height: 70px;
}

@media screen and (max-width: 640px) {
    header .logo-image {
        max-height: 50px; /* Ajuste para telas menores */
    }
}

header .logo-text {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: var(--color-text-primary);
}
header .logo-text .highlight {
    color: var(--color-text-accent);
}
header nav {
    display: none; /* hidden */
}
@media (min-width: 768px) {
    header nav {
        display: flex; /* md:flex */
        gap: 2rem; /* space-x-8 */
    }
}
header #menu-toggle {
    color: var(--color-text-primary);
    background: none;
    border: none;
    cursor: pointer;
}
@media (min-width: 768px) {
    header #menu-toggle-container {
        display: none; /* md:hidden */
    }
}
header #menu-toggle i {
     font-size: 1.5rem; /* text-2xl */
}
header #mobile-menu {
    display: none; /* hidden by default */
    background-color: var(--color-bg-card);
    padding: 1rem; /* py-4 px-4 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}
header #mobile-menu.active {
    display: block;
}
@media (min-width: 768px) {
    header #mobile-menu {
        display: none !important; /* md:hidden */
    }
}

/* Outros ajustes */
.list-check li {
    display: flex;
    align-items: flex-start;
}
.list-check i {
    color: #3b82f6; /* text-blue-500 */
    margin-top: 0.25rem; /* mt-1 */
    margin-right: 0.5rem; /* mr-2 */
    flex-shrink: 0;
}

/* Carrosel de itens no hero */

.video-carousel {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}

.carousel-container {
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track video {
  width: 100%;
  flex-shrink: 0;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 25%;
}
button.prev:hover,
button.next:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}
.hero .bg-icon {
  position: absolute;
  bottom: -10px;
  left: 1px;
  font-size: 45vw; /* tamanho grande */
  color: rgba(0, 0, 0, 0.11); /* bem discreto */
  pointer-events: none; /* o clique "passa por cima" */
  z-index: 999; /* atrás do conteúdo principal */
  rotate: -8deg;
}
@media screen and (max-width: 640px) {
  .hero .bg-icon {
    font-size: 60vw; /* tamanho maior em telas pequenas */
    bottom: 280px; /* ajusta a posição para telas pequenas */
  }
  #about .bg-icon {
    font-size: 60vw; /* tamanho maior em telas pequenas */
    
     
  }
  #projects .bg-icon {
    font-size: 60vw; /* tamanho maior em telas pequenas */
   /* ajusta a posição para telas pequenas */
  }
    
}
@media screen and (max-width: 1024px) {
  #about .bg-icon {
    font-size: 33vw; /* tamanho maior em telas pequenas */
     padding-top: 380px; 
     right: 70px;
     position: absolute;
     color: rgba(0, 0, 0, 0.05); /* bem discreto */
     pointer-events: none; /* o clique "passa por cima" */
     z-index: 999; /* atrás do conteúdo principal */
     rotate: 9deg; /* Rotaciona o ícone para dar um efeito diferente */
  }
    
}
@media screen and (min-width: 1024px) {
  #about .bg-icon {
  position: absolute;
  right: 40px;
  font-size: 33vw; /* tamanho grande */
  color: rgba(0, 0, 0, 0.05); /* bem discreto */
  pointer-events: none; /* o clique "passa por cima" */
  z-index: 999; /* atrás do conteúdo principal */
  rotate: 9deg; /* Rotaciona o ícone para dar um efeito diferente */
  
}
    
}

#projects .bg-icon {
  position: absolute;
  left: 20px;
  font-size: 45vw; /* tamanho grande */
  color: rgba(0, 0, 0, 0.05); /* bem discreto */
  pointer-events: none; /* o clique "passa por cima" */
  z-index: 999; /* atrás do conteúdo principal */
  rotate: -20deg; /* Rotaciona o ícone para dar um efeito diferente */
}

#about-image{
    width: 720px;
}       
@media screen and (max-width: 640px) {
    #about-image {
        max-width: 375px; /* Em telas pequenas, a imagem ocupa toda a largura */
        height: auto; /* Mantém a proporção da imagem */
        
    }
    
}
*{
    overflow-x: none;
}