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

:root {
    /* Cores principais da KeyTech */
    --primary-color: #1a4d80; /* Verde/azul escuro - 40% prioridade */
    --secondary-color: #6c757d; /* Cinza - 30% prioridade */
    --dark-color: #212529; /* Preto - 20% prioridade */
    --light-color: #ffffff; /* Branco - 10% prioridade */
    
    /* Variações das cores */
    --primary-light: #2d6da3;
    --primary-dark: #0d2d4d;
    --gray-light: #f8f9fa;
    --gray-medium: #dee2e6;
    --gray-dark: #495057;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-dark: linear-gradient(135deg, var(--dark-color), #343a40);
    
    /* Sombras */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

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

/* Botões */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Header/Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray-medium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login {
    background: transparent;
    color: var(--secondary-color);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-color) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    color: var(--light-color);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light-color), #e9ecef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e9ecef;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.tech-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.circuit-board {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

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

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card {
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--light-color);
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
}

.service-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.service-link:hover {
    gap: 1rem;
}

/* Estilo para os botões de CTA nos widgets principais */
.service-card .service-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.service-card .service-cta .btn-primary {
    width: 100%;
    max-width: 200px;
}

/* Featured Section */
.featured {
    padding: 6rem 0;
    position: relative;
    background: var(--gradient-dark);
    color: var(--light-color);
}

.featured-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-color) 100%);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.featured-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 1.5rem;
}

.featured-text p {
    font-size: 1.1rem;
    color: #e9ecef;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tech-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition-fast);
    cursor: pointer;
    color: var(--light-color);
}

.showcase-item:hover,
.showcase-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    transform: translateX(10px);
}

.showcase-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-color);
    transition: var(--transition-fast);
}

.showcase-item:hover .showcase-icon,
.showcase-item.active .showcase-icon {
    background: rgba(255, 255, 255, 0.3);
    color: var(--light-color);
}

.showcase-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--dark-color);
    color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #e9ecef;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-showcase {
    text-align: center;
}

.team-member {
    display: inline-block;
}

.member-avatar {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}

.member-avatar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--dark-color);
    border-radius: 50%;
}

.team-member h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    position: relative;
    background: var(--gradient-dark);
    color: var(--light-color);
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-color) 100%);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e9ecef;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--gray-light);
    padding: 2.5rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 77, 128, 0.1);
}

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

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #adb5bd;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-button {
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
    font-weight: 600;
}

.chat-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.chat-panel {
    position: absolute;
    bottom: 100%;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--light-color);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    display: none;
    flex-direction: column;
    margin-bottom: 1rem;
}

.chat-panel.active {
    display: flex;
}

.chat-header {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 1rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    max-width: 80%;
}

.message.bot {
    background: var(--gray-light);
    margin-right: auto;
}

.message.user {
    background: var(--primary-color);
    color: var(--light-color);
    margin-left: auto;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    outline: none;
}

.chat-input button {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-input button:hover {
    background: var(--primary-light);
}

/* Chat Options */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.chat-option {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    text-align: left;
    font-weight: 500;
}

.chat-option:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.chat-option:active {
    transform: scale(0.98);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
    z-index: 999;
}

.scroll-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .circuit-board {
        width: 250px;
        height: 250px;
    }
    
    .featured-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .chat-panel {
        width: 300px;
        right: -50px;
    }
    
    .chat-options {
        gap: 0.4rem;
    }
    
    .chat-option {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .scroll-top {
        left: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-image {
        height: 150px;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .circuit-board {
        width: 200px;
        height: 200px;
    }
    
    .chat-panel {
        width: 280px;
        right: -80px;
    }
    
    .chat-options {
        gap: 0.3rem;
    }
    
    .chat-option {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Animações de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Classes de animação */
.animate-slide-up {
    animation: slideInUp 0.8s ease;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease;
}

/* Methodology Modal */
.methodology-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.methodology-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--light-color);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
}

.methodology-intro {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.methodology-steps {
    display: grid;
    gap: 2rem;
}

.methodology-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 16px;
    transition: var(--transition-fast);
    border-left: 4px solid var(--primary-color);
}

.methodology-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-color);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .methodology-modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .methodology-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-icon {
        align-self: center;
    }
}

/* ===== MODAIS DE SERVIÇOS ===== */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--light-color);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Remove o padding padrão para que o header azul preencha toda a largura */
    padding: 0;
}

.service-modal.active .service-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Header dos modais de serviços - preenche toda a largura */
.service-modal .modal-header {
    background: var(--gradient-primary);
    color: var(--light-color);
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Remove margens e preenche toda a largura */
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.service-modal .modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.service-modal .modal-header .modal-close {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal .modal-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Corpo do modal com padding */
.service-modal .modal-body {
    padding: 2rem;
}

.service-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.service-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-info.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.info-section {
    margin-bottom: 30px;
}

.info-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-section p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.specialties-list {
    list-style: none;
    padding: 0;
}

.specialties-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.specialties-list li i {
    color: #28a745;
    font-size: 0.9rem;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--light-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 128, 0.3);
}

.service-visual {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.service-visual.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.service-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.service-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 77, 128, 0.9), rgba(45, 109, 163, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.service-image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--light-color);
    padding: 20px;
}

.overlay-content i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.overlay-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--light-color);
}

.stat-card:hover .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--light-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.stat-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.stat-card:hover .stat-info h4 {
    color: var(--light-color);
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin: 0;
}

.stat-card:hover .stat-info p {
    color: rgba(255, 255, 255, 0.9);
}

.service-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.4s;
}

.service-cta.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-cta h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-cta p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1rem;
}

/* Responsividade para os modais de serviços */
@media (max-width: 768px) {
    .service-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .service-modal-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .service-modal-content {
        width: 98%;
        border-radius: 15px;
    }

    .service-cta {
        padding: 30px 20px;
    }

    .service-cta h3 {
        font-size: 1.5rem;
    }

    .tech-stack {
        justify-content: center;
    }
}

/* ===== SCROLL PERSONALIZADO PARA MODAIS ===== */
.service-modal-content {
    /* Esconde a barra de rolagem padrão */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Esconde a barra de rolagem no WebKit (Chrome, Safari, Edge) */
.service-modal-content::-webkit-scrollbar {
    display: none;
}

/* Adiciona scroll personalizado */
.service-modal-content {
    /* Mantém o scroll funcional mas invisível */
    overflow-y: auto;
    /* Adiciona padding para compensar a barra de rolagem invisível */
    padding-right: 5px;
}

/* Scroll suave para todos os modais */
.service-modal-content,
.methodology-modal .modal-content {
    scroll-behavior: smooth;
}

/* Estilo personalizado para o scroll interno (opcional - apenas se quiser mostrar uma barra sutil) */
.service-modal-content::-webkit-scrollbar {
    width: 6px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: rgba(26, 77, 128, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.service-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 77, 128, 0.5);
}

/* Aplica o mesmo estilo ao modal de metodologia */
.methodology-modal .modal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.methodology-modal .modal-content::-webkit-scrollbar {
    width: 6px;
}

.methodology-modal .modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.methodology-modal .modal-content::-webkit-scrollbar-thumb {
    background: rgba(26, 77, 128, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.methodology-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 77, 128, 0.5);
}

/* ===== SEÇÃO DE LIDERANÇA ===== */
.leadership {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.leadership-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.leadership-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(26,77,128,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.leadership-content {
    position: relative;
    z-index: 2;
}

.leadership-header {
    text-align: center;
    margin-bottom: 4rem;
}

.leadership-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leadership-header p {
    font-size: 1.2rem;
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ceo-profile {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    background: var(--light-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ceo-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.ceo-visual {
    text-align: center;
}

.ceo-image-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.ceo-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.ceo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.ceo-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 77, 128, 0.9), rgba(45, 109, 163, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.ceo-image-container:hover .ceo-image-overlay {
    opacity: 1;
}

.ceo-image-overlay .overlay-content {
    text-align: center;
    color: var(--light-color);
}

.ceo-image-overlay .overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.ceo-image-overlay .overlay-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.ceo-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--light-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(26, 77, 128, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 77, 128, 0.3);
}

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

.ceo-info {
    padding-left: 2rem;
}

.ceo-name h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ceo-title {
    font-size: 1.1rem;
    color: var(--gray-dark);
    font-weight: 500;
    display: block;
    margin-bottom: 2rem;
}

.ceo-description {
    margin-bottom: 2.5rem;
}

.ceo-description p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ceo-expertise {
    margin-bottom: 2.5rem;
}

.ceo-expertise h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.expertise-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: var(--light-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.expertise-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 128, 0.3);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: var(--light-color) !important;
}

.ceo-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
}

.ceo-stat {
    text-align: center;
}

.ceo-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.ceo-stat .stat-label {
    font-size: 0.9rem;
    color: var(--gray-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsividade para a seção de liderança */
@media (max-width: 768px) {
    .leadership {
        padding: 4rem 0;
    }
    
    .leadership-header h2 {
        font-size: 2.5rem;
    }
    
    .ceo-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .ceo-image-container {
        width: 220px;
        height: 220px;
    }
    
    .ceo-info {
        padding-left: 0;
        text-align: center;
    }
    
    .ceo-name h3 {
        font-size: 2rem;
    }
    
    .ceo-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .expertise-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .leadership-header h2 {
        font-size: 2rem;
    }
    
    .ceo-profile {
        padding: 1.5rem;
    }
    
    .ceo-image-container {
        width: 180px;
        height: 180px;
    }
    
    .ceo-name h3 {
        font-size: 1.8rem;
    }
    
    .badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
} 