/* Base Styles */
:root {
    --primary-color: #47466D;
    --secondary-color: #3D84A7;
    --accent-color: #46CDCF;
    --light-color: #ABEDD8;
    --dark-color: #333;
    --white-color: #fff;
    --gray-color: #f4f4f4;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.separator {
    height: 3px;
    width: 80px;
    background: var(--accent-color);
    margin: 0 auto;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: left 0.5s ease-in-out;
}

.btn-primary:hover::after {
    left: 0;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

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

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu li a {
    font-weight: 500;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.btn-contato {
    background: var(--accent-color);
    color: var(--white-color);
    padding: 8px 20px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-contato:hover {
    background: var(--primary-color);
}

.btn-contato::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: left 0.5s ease-in-out;
}

.btn-contato:hover::after {
    left: 0;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, var(--white-color), var(--light-color));
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 80%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Sobre Section */
.sobre {
    padding: 100px 0;
    background: var(--white-color);
}

.sobre-content {
    display: flex;
    align-items: center;
}

.sobre-image {
    flex: 1;
    padding-right: 50px;
}

.sobre-image img {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sobre-text {
    flex: 2;
}

.sobre-text h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.sobre-text p {
    margin-bottom: 15px;
}

/* Serviços Section */
.servicos {
    padding: 100px 0;
    background: var(--gray-color);
}

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

.servico-card {
    background: var(--white-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.servico-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(70, 205, 207, 0.1), rgba(70, 205, 207, 0.05), rgba(61, 132, 167, 0.05), transparent);
    z-index: -1;
    transform: rotate(-45deg);
    transition: all 0.8s ease;
}

.servico-card:hover::before {
    transform: rotate(0deg);
}

.servico-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.servico-card:hover .icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Clientes Section */
.clientes {
    padding: 100px 0;
    background: var(--white-color);
    position: relative;
    overflow: hidden;
}

/* Wrapper para o carrossel */
.clientes-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 50px;
}

/* Carrossel de logos de clientes */
.clientes-logos {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: scrollCarousel 30s linear infinite;
    will-change: transform;
    padding: 20px 0;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-220px * 7)); } /* Ajustado para logos maiores */
}

.cliente-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; /* Aumentei a altura dos logos */
    min-width: 150px; /* Largura mínima apenas */
    transition: transform 0.3s ease;
    /* Removido background, border-radius, box-shadow para eliminar o efeito de card */
}

.cliente-logo:hover {
    transform: translateY(-5px);
}

.cliente-logo img {
    max-height: 140px; /* Limitado apenas a altura */
    width: auto; /* Largura automática baseada na proporção original */
    object-fit: contain;
}

/* Pausar carrossel ao passar o mouse */
.clientes-logos:hover {
    animation-play-state: paused;
}

/* Depoimentos Section */
.depoimentos {
    padding: 100px 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
}

.depoimentos .section-header h2 {
    color: var(--white-color);
}

.depoimentos .separator {
    background: var(--light-color);
}

.depoimentos-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.depoimento {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 30px;
    margin: 10px;
    text-align: center;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(20px);
}

.depoimento.active {
    opacity: 1;
    transform: translateX(0);
}

.depoimento-texto {
    margin-bottom: 20px;
    position: relative;
}

.depoimento-texto .fa-quote-left,
.depoimento-texto .fa-quote-right {
    font-size: 1.5rem;
    color: var(--light-color);
}

.depoimento-texto .fa-quote-left {
    position: absolute;
    left: 0;
    top: 0;
}

.depoimento-texto .fa-quote-right {
    position: absolute;
    right: 0;
    bottom: 0;
}

.depoimento-texto p {
    padding: 20px 30px;
    font-style: italic;
}

.depoimento-autor h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.depoimento-autor p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.dots-container {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--light-color);
}

/* Contato Section */
.contato {
    padding: 100px 0;
    background: var(--gray-color);
}

.contato-content {
    display: flex;
    gap: 50px;
}

.contato-info,
.contato-form {
    flex: 1;
}

.contato-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contato-info p {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 15px;
    width: 20px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.social-links a:hover i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(70, 205, 207, 0.2);
    animation: borderPulse 1.5s infinite;
}

@keyframes borderPulse {
    0% { box-shadow: 0 0 0 0 rgba(70, 205, 207, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(70, 205, 207, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 205, 207, 0); }
}

/* Mensagem de sucesso para o formulário */
.success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-message i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
    animation: checkBounce 1.2s ease;
}

/* Mensagem de erro para o formulário */
.error-message {
    text-align: center;
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: rgba(244, 67, 54, 0.1);
    border-radius: 5px;
    border-left: 4px solid #F44336;
    color: #D32F2F;
    animation: fadeIn 0.5s ease-in-out;
}

.error-message i {
    color: #D32F2F;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes checkBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

.footer-links ul {
    display: flex;
}

.footer-links li {
    margin-left: 20px;
}

.footer-links a {
    color: var(--white-color);
}

.footer-links a:hover {
    color: var(--light-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Adicionar seção de tecnologias */
.tecnologias {
    padding: 80px 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
}

.tecnologias .section-header h2 {
    color: var(--white-color);
}

.tecnologias .separator {
    background: var(--light-color);
}

.section-subtitle {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 40px auto 0;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px 30px;
    margin: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.tech-icon {
    font-size: 3.5rem;
    color: var(--light-color);
    margin-bottom: 20px;
}

.tech-item h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tech-item p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
}

@media screen and (max-width: 992px) {
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-item {
        padding: 30px 20px;
    }
}

/* Estilos para a Seção de Parceiros movida do produtos.html */
.partners-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 20px;
    }
    
    .partner-item {
        width: 120px;
        height: 60px;
    }
}

@media screen and (max-width: 768px) {
    header .container {
        padding: 10px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100vw;
        max-width: 100vw;
        height: calc(100vh - 70px);
        background: var(--white-color);
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: var(--transition);
        padding: 30px 10px;
        z-index: 1001;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0 0 20px 0;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        padding: 0;
        margin-top: 40px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-width: 70vw;
    }

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

    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .servico-card {
        padding: 20px 10px;
        font-size: 1rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        margin: 0;
    }

    .tech-item {
        padding: 20px 10px;
        margin: 10px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

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

    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links li {
        margin: 0 10px 10px;
    }

    .sobre-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }
    .sobre-image {
        padding: 0;
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .sobre-image img {
        max-width: 220px;
        width: 70vw;
        margin: 0 auto;
        box-shadow: 0 4px 16px rgba(70,205,207,0.08);
    }
    .sobre-text {
        width: 100%;
        padding: 0 10px;
    }
    .sobre-text h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    .sobre-text p {
        font-size: 1rem;
        margin-bottom: 12px;
        color: #444;
    }

    .contato-content {
        flex-direction: column;
        gap: 35px;
        align-items: stretch;
    }
    .contato-info, .contato-form {
        width: 100%;
        padding: 0 8px;
    }
    .contato-info {
        text-align: center;
    }
    .contato-info h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    .contato-info p {
        font-size: 1rem;
        margin-bottom: 18px;
    }
    .info-item {
        justify-content: center;
        font-size: 1rem;
        margin-bottom: 12px;
    }
    .info-item i {
        font-size: 1.1rem;
        margin-right: 8px;
    }
    .social-links {
        margin-top: 18px;
        justify-content: center;
    }
    .social-links a {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 1.2rem;
        margin-right: 6px;
    }
    .contato-form {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(70,205,207,0.07);
        padding: 18px 10px 22px 10px;
    }
    .form-group label {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 12px 12px;
        border-radius: 7px;
        border: 1.5px solid #e0e0e0;
        margin-bottom: 10px;
        background: #f8f8f8;
        transition: border-color 0.2s;
    }
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--accent-color);
        background: #fff;
    }
    .form-group textarea {
        min-height: 90px;
        resize: vertical;
    }
    .btn-primary {
        width: 100%;
        font-size: 1.08rem;
        padding: 13px 0;
        margin-top: 10px;
    }
    .success-message, .error-message {
        font-size: 1.05rem;
        padding: 25px 10px;
    }
}

@media screen and (max-width: 576px) {
    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .clientes-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .depoimento {
        padding: 20px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 5px;
    }
    .servico-card, .tech-item {
        font-size: 0.95rem;
    }
    .hero-text h1 {
        font-size: 1.3rem;
    }
    .sobre-image img {
        max-width: 150px;
    }
    .sobre-text h3 {
        font-size: 1.1rem;
    }
    .contato-form {
        padding: 10px 2px 16px 2px;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.98rem;
        padding: 10px 8px;
    }
    .btn-primary {
        font-size: 1rem;
        padding: 11px 0;
    }
}
