/* CSS Customizado para TecLava Pro */

/* Variáveis CSS */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Estilos Globais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #f0f8ff 50%, #e6f3ff 75%, #d4edff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 25%, rgba(240, 248, 255, 0.85) 50%, rgba(230, 243, 255, 0.9) 75%, rgba(212, 237, 255, 0.95) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Animações para Hero */
.hero-section h1 {
    animation: fadeInUp 1s ease-out;
    font-size: 1.5rem !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    margin: inherit !important;
    padding: inherit !important;
}

.hero-section p {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Logo */
.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards de Serviços */
.card {
    transition: all 0.3s ease;
    border: none !important;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.card i {
    transition: all 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

/* Imagens dos Serviços */
.service-image {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.card:hover .service-image {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.15));
}

/* Seção de Marcas */
.brand-card {
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-logo {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.brand-card:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Logos das Marcas */
.brand-image {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-card:hover .brand-image {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(13, 110, 253, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Formulário de Contato */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

/* Botões */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-bg);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.3rem !important;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Ajustes para cards em mobile */
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .service-image {
        max-height: 80px;
    }
    
    /* Ajustes para seção de marcas */
    .brand-card {
        margin-bottom: 1rem;
    }
    
    .brand-logo {
        padding: 1rem !important;
    }
    
    .brand-logo i {
        font-size: 1.5rem !important;
    }
    
    .brand-image {
        max-height: 40px;
    }
    
    /* Navbar mobile */
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Hero logo mobile */
    .hero-logo {
        max-height: 250px;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ajustes para seção de marcas em telas muito pequenas */
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Formulário em mobile */
    .form-control {
        padding: 10px 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Hero logo em telas muito pequenas */
    .hero-logo {
        max-height: 200px;
    }
}

/* Animações de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Seções com fundo */
section {
    position: relative;
}

.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hover effects para mobile */
@media (hover: hover) {
    .card:hover,
    .brand-card:hover,
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Otimizações para performance */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Smooth scrolling para navegação */
html {
    scroll-behavior: smooth;
}

/* Ajustes finais para garantir responsividade */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Botões Flutuantes */
.float-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0;
}

.phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 50px;
    background: #25d366;
    color: white;
    border-radius: 25px 0 0 25px;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
    animation: buttonPulse 2s infinite;
    text-align: left;
    padding: 0 8px;
    position: relative;
    z-index: 1;
    transform: translateX(15px);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: buttonPulse 1.5s infinite;
    position: relative;
    z-index: 2;
}

.phone-btn:hover {
    background: #25d366;
    color: white;
    transform: translateX(15px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:hover {
    background: #25d366;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Animação de pulsação suave para todos os dispositivos */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* Animação específica para o botão de telefone (mantém o translateX) */
.phone-btn {
    animation: phoneButtonPulse 1.5s infinite;
}

@keyframes phoneButtonPulse {
    0% {
        transform: translateX(15px) scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }
    50% {
        transform: translateX(15px) scale(1.1);
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.7);
    }
    100% {
        transform: translateX(15px) scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }
}
