/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --hover-scale: 1.05;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

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

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px) scale(var(--hover-scale));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar */
#navbar {
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

.logo-img {
    height: 70px;
    width: auto;
    max-height: 90px;
    object-fit: contain;
    transition: all var(--transition-speed) ease;
}

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

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 0;
}

#navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

#navbar ul li {
    margin-left: 25px;
    height: 100%;
    display: flex;
    align-items: center;
}

#navbar ul li a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

#navbar ul li a:hover::after {
    width: 100%;
}

#navbar ul li a:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/fundo01.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--secondary-color);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.hero .description {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    background: var(--light-color);
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.mission-vision .card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

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

.mission-vision .card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: transform var(--transition-speed) ease;
}

.mission-vision .card:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.mission-vision .card h3 {
    color: var(--primary-color);
}

/* Services Section */
.services-section {
    background: white;
}

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

.service-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.service-card:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-10px) scale(var(--hover-scale));
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    transition: transform var(--transition-speed) ease;
}

.service-card:hover i {
    color: white;
    transform: scale(1.2);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Projects Section */
.projects-section {
    background: var(--light-color);
}

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

.project-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

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

.project-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: transform var(--transition-speed) ease;
}

.project-card:hover .project-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Benefits Section */
.benefits-section {
    background: white;
}

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

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--light-color);
    border-radius: 10px;
    transition: all var(--transition-speed) ease;
}

.benefit-card:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-10px) scale(var(--hover-scale));
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: transform var(--transition-speed) ease;
}

.benefit-card:hover i {
    color: white;
    transform: scale(1.2);
}

.benefit-card h3 {
    margin-bottom: 15px;
}

/* How It Works */
.how-it-works {
    background: var(--light-color);
}

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

.steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--secondary-color);
    z-index: 1;
}

.step {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.step:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin: 0 20px;
    transition: all var(--transition-speed) ease;
}

.step:hover .step-number {
    transform: scale(1.2);
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
}

.step-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    transition: all var(--transition-speed) ease;
}

.step:hover .step-content {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.callout {
    background: var(--secondary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: all var(--transition-speed) ease;
}

.callout:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.3);
}

.callout p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* ========== CLIENTS SECTION ========== */
.clients-section {
    background: linear-gradient(rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.0)), url('../images/fundoclientes.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.clients-section .section-title,
.clients-section .section-subtitle {
    position: relative;
    z-index: 1;
}

.clients-section .section-subtitle {
    font-weight: 700 !important;
    color: #1a2634;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}

.clients-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

.clients-carousel-container::before,
.clients-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), transparent);
}

.clients-carousel-container::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(255,255,255,0.9), transparent);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 6 - 50px * 5)); }
}

.clients-carousel {
    display: flex;
    gap: 50px;
    width: fit-content;
    animation: scroll 30s linear infinite;
    cursor: grab;
    user-select: none;
}

.clients-carousel:hover,
.clients-carousel:active {
    animation-play-state: paused;
}

.clients-carousel:active {
    cursor: grabbing;
}

.client-item {
    flex: 0 0 auto;
    width: 280px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.client-item:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3);
    border-color: var(--secondary-color);
    background: white;
}

.client-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.client-item img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.client-item:hover img {
    transform: scale(1.15);
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    transition: all var(--transition-speed) ease;
}

.contact-method:hover {
    transform: translateX(10px);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
    transition: all var(--transition-speed) ease;
}

.contact-method:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.contact-method h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-form {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: #f8f9fa;
    color: var(--secondary-color);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    transition: all var(--transition-speed) ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.footer-brand p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-social h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    border-image-slice: 1;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 20px;
}

.footer-bottom p {
    margin-bottom: 15px;
    font-weight: 500;
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Selos de Segurança */
.security-badges {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.ssl-badge {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #28a745;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.ssl-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.ssl-badge i {
    font-size: 1rem;
}

.security-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: block !important;
}

.security-tooltip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all var(--transition-speed) ease;
}

.security-tooltip:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

.security-tooltip:hover .security-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

.security-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    margin-bottom: 10px;
}

.security-popup h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.security-popup p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-color);
}

.security-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 8px solid transparent;
    border-top-color: white;
}

/* Responsividade */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    body {
        padding-top: 60px;
    }
    
    #navbar {
        height: 60px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    #navbar ul li {
        margin-left: 20px;
    }
    
    .client-item {
        width: 240px;
        height: 160px;
    }
    
    .client-item img {
        max-height: 120px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-240px * 6 - 30px * 5));
        }
    }
}

@media (max-width: 768px) {
    #navbar ul {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: all 0.5s ease;
    }
    
    #navbar ul.active {
        left: 0;
    }
    
    #navbar ul li {
        margin: 15px 0;
        height: auto;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .steps::before {
        display: none;
    }
    
    .step, .step:nth-child(odd) {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 20px;
    }
    
    .clients-carousel-container::before,
    .clients-carousel-container::after {
        width: 50px;
    }
    
    .clients-carousel {
        gap: 30px;
        animation: scroll 25s linear infinite;
    }
    
    .client-item {
        width: 200px;
        height: 140px;
    }
    
    .client-item img {
        max-height: 100px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-200px * 6 - 30px * 5));
        }
    }
    
    .security-float {
        bottom: 10px;
        right: 10px;
    }
    
    .security-tooltip {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .security-popup {
        width: 180px;
        right: -50px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    body {
        padding-top: 55px;
    }
    
    #navbar {
        height: 55px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    #navbar .container {
        padding: 0 10px;
    }
    
    #navbar ul li a {
        font-size: 0.85rem;
    }
    
    .clients-carousel {
        gap: 20px;
        animation: scroll 20s linear infinite;
    }
    
    .client-item {
        width: 160px;
        height: 120px;
    }
    
    .client-item img {
        max-height: 80px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-160px * 6 - 20px * 5));
        }
    }
    
    .footer-logo {
        max-width: 150px;
    }
    
    .security-float {
        bottom: 5px;
        right: 5px;
    }
    
    .security-tooltip {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}