/* Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Links de Navegação */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

/* Efeitos de Hover nos Cards */
.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Gradientes Personalizados */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

/* Responsividade para Formulários */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Estilo para mensagens do formulário */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.error-message {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

/* Smooth Scroll para toda a página */
html {
    scroll-behavior: smooth;
}

/* Estilo para seções ao aparecer */
section {
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
}

/* Animação para ícones */
.fa-cogs,
.fa-hard-hat {
    transition: transform 0.3s ease;
}

.fa-cogs:hover,
.fa-hard-hat:hover {
    transform: rotate(15deg);
}

/* Efeito de pulsação nos botões */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

button:hover {
    animation: pulse 1s infinite;
}

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    .animate-fade-in {
        animation-duration: 0.7s;
    }
    
    /* Ajusta espaçamento em mobile */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Estilo para menu mobile */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
    display: block;
}

/* Efeito de loading no botão de submit */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilo para backdrop do Hero */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Transições suaves para todos os elementos interativos */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Estilo para números e estatísticas */
.text-4xl, .text-5xl {
    line-height: 1.2;
}

/* Ajustes para impressão de laudos */
@media print {
    nav, footer, #contato {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Efeito de destaque ao passar o mouse nos serviços */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Logo responsivo */
nav img {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

nav img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    nav img {
        max-width: 150px;
    }
}

/* Personalização da scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Animação de fade-in para elementos ao scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Estilos para Hero Section com Vídeo de Fundo */
.hero-section {
    min-height: 100vh;
    position: relative;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.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;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(29, 78, 216, 0.85) 100%);
    z-index: 1;
}

/* Garantir que o conteúdo fique sobre o vídeo */
.hero-section .container {
    position: relative;
    z-index: 10;
}

/* Sombra de texto para melhor legibilidade */
.text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Responsividade do vídeo */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-video {
        min-width: auto;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
