/* Reset e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #00E396;
    --secondary-color: #00BD7E;
    --dark-bg: #121212;
    --light-text: #FFFFFF;
    --gray-text: #AAAAAA;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

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

/* Cabeçalho */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 227, 150, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(18, 18, 18, 0.8);
    box-shadow: 0 5px 20px rgba(0, 227, 150, 0.2);
}

header.scrolled .logo img {
    filter: drop-shadow(0 0 5px var(--primary-color));
    transition: filter 0.5s ease;
}

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

.logo {
    width: 180px;
}

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

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

.nav-menu a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to bottom, rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 1)), url('/api/placeholder/1200/800');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--primary-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    opacity: 0.05;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='none' stroke='%2300E396' stroke-width='0.25' d='M0,0 L100,100 M0,20 L80,100 M20,0 L100,80 M0,40 L60,100 M40,0 L100,60 M0,60 L40,100 M60,0 L100,40 M0,80 L20,100 M80,0 L100,20'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: -1;
    animation: gridMove 30s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    animation: scanner 8s linear infinite;
    opacity: 0.5;
    z-index: 1;
}

@keyframes scanner {
    0% {
        top: 0;
    }
    50% {
        top: 100%;
    }
    50.001% {
        top: 100%;
    }
    100% {
        top: 0;
    }
}

@keyframes gridMove {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    text-shadow: 2px 2px 0 rgba(0, 255, 255, 0.3),
                -2px -2px 0 rgba(255, 0, 255, 0.3);
}

.hero h1 span {
    color: var(--primary-color);
    position: relative;
    z-index: 5;
}

.typing-text {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    z-index: 5;
}

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

.cta-button, .secondary-button {
    position: relative;
    overflow: hidden;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.cta-button::before, .secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 227, 150, 0.3);
}

.cta-button:hover::before, .secondary-button:hover::before {
    left: 100%;
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: var(--light-text);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-left: 15px;
    transition: all 0.3s;
    border: 2px solid var(--light-text);
}

.secondary-button:hover {
    background-color: var(--light-text);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Animações de Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sobre */
.about {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--primary-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    opacity: 0.01;
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='none' stroke='%2300E396' stroke-width='0.5' d='M0,0 L100,100 M0,20 L80,100 M20,0 L100,80 M0,40 L60,100 M40,0 L100,60'/%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 25%;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text p {
    position: relative;
    padding-left: 15px;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 80%;
    width: 3px;
    background: var(--primary-color);
    opacity: 0.8;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 1px solid var(--primary-color);
    opacity: 0.3;
    z-index: -1;
    animation: borderPulse 3s infinite;
}

@keyframes borderPulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.4; }
    100% { opacity: 0.1; }
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Serviços */
.services {
    padding: 100px 0;
    background-color: rgba(0, 227, 150, 0.05);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0;
    opacity: 0.05;
    z-index: 0;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='none' stroke='%2300E396' stroke-width='0.5' d='M25,0 L25,100 M50,0 L50,100 M75,0 L75,100'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 0;
}

/* Introdução dos serviços */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.services-intro p {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.6;
}

/* Nova grid de serviços - Modificada para layout vertical */
.new-services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Cards expandidos para os serviços - Ajustado para ocupar toda a largura */
.expanded-card {
    display: flex;
    flex-direction: column;
    min-height: 250px; /* Reduzido para melhor fluxo vertical */
    width: 100%;
}

/* Modificações para os Cards de Serviço */
.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 227, 150, 0.1);
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.8), rgba(24, 24, 24, 0.4));
    backdrop-filter: blur(5px);
    z-index: 1;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.6s;
    opacity: 0;
    transform: translateY(30px);
    width: 100%;
    /* Adicionar espaço para texto e imagem */
    min-height: 280px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: borderFlow 4s linear infinite;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%; /* Largura da imagem na direita */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.2; /* Imagem suave para não atrapalhar o texto */
    z-index: -1;
    transition: all 0.3s ease;
    /* Gradiente para desvanecer a imagem da direita para a esquerda */
    mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Imagem específica para cada card */
.service-card:nth-child(1)::after {
    background-image: url('images/QAQC.jpg'); /* Substitua por sua imagem de controle de qualidade */
}

.service-card:nth-child(2)::after {
    background-image: url('images/Automation.jpg'); /* Substitua por sua imagem de automação */
}

.service-card:nth-child(3)::after {
    background-image: url('images/DataAnalytics.jpg'); /* Substitua por sua imagem de análise de dados */
}

/* Animação ao passar o mouse */
.service-card:hover::after {
    opacity: 0.3; /* Aumenta ligeiramente a opacidade ao passar o mouse */
    width: 65%; /* Aumenta um pouco a largura */
}

/* Ajustes para o conteúdo textual */
.service-title, .service-description, .service-features {
    max-width: 70%; /* Limita o texto para não sobrepor demasiado a imagem */
    position: relative; /* Garante que o texto fique acima da imagem */
    z-index: 2;
}

.service-card.active {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }

@keyframes borderFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Media query para telas menores */
@media (max-width: 768px) {
    .service-title, .service-description, .service-features {
        max-width: 100%; /* Em telas menores, o texto ocupa toda a largura */
    }
    
    .service-card::after {
        width: 100%;
        height: 100%;
        opacity: 0.1; /* Reduz ainda mais a opacidade em telas menores */
        background-position: center right;
        mask-image: linear-gradient(to left, rgba(0,0,0,0.7), rgba(0,0,0,0));
        -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.7), rgba(0,0,0,0));
    }
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 227, 150, 0.3);
    border-color: rgba(0, 227, 150, 0.3);
}

/* Removendo a rotação do ícone já que não teremos mais emojis */
.service-icon {
    display: none; /* Escondendo completamente */
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-title {
    font-size: 1.5rem;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Lista de recursos nos cards de serviço */
.service-features {
    list-style: none;
    margin-top: 20px;
    padding-left: 10px;
}

.service-features li {
    position: relative;
    padding: 8px 0 8px 25px;
    border-bottom: 1px dashed rgba(0, 227, 150, 0.1);
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.4s ease-out;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '→';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 8px;
}

.service-features li.active {
    opacity: 1;
    transform: translateX(0);
}

/* Contato */
.contact {
    padding: 100px 0;
    background-color: rgba(0, 227, 150, 0.05);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath fill='none' stroke='%2300E396' stroke-width='0.5' d='M0,0 L0,100 L100,100 M100,0 L200,0 L200,100 M100,100 L100,200 L200,200 M0,100 L0,200 L100,200'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.05;
    z-index: 0;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.05;
    z-index: 0;
}

.contact-content {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contact-info {
    max-width: 600px;
    text-align: center;
    background: rgba(18, 18, 18, 0.5);
    border: 1px solid rgba(0, 227, 150, 0.1);
    border-radius: 10px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 227, 150, 0.1), transparent);
    animation: scanContact 8s infinite;
    z-index: 0;
}

@keyframes scanContact {
    0% { left: -50%; }
    100% { left: 150%; }
}

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

.contact-info p {
    margin-bottom: 30px;
    color: var(--gray-text);
}

.contact-details {
    list-style: none;
    margin-bottom: 30px;
}

.contact-details li {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s;
    position: relative;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details.active li {
    opacity: 1;
    transform: translateX(0);
}

.contact-details li:nth-child(1) { transition-delay: 0.1s; }
.contact-details li:nth-child(2) { transition-delay: 0.2s; }

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.social-links a {
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    text-decoration: none;
}

.social-links.active a {
    opacity: 1;
    transform: translateY(0);
}

.social-links a:nth-child(1) { transition-delay: 0.1s; }
.social-links a:nth-child(2) { transition-delay: 0.2s; }
.social-links a:nth-child(3) { transition-delay: 0.3s; }

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 227, 150, 0.1);
    transform: scale(0);
    transition: all 0.3s;
    border-radius: 50%;
}

.social-links a:hover::before {
    transform: scale(2);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 227, 150, 0.5);
}

/* Rodapé */
footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 227, 150, 0.1);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    padding: 30px 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, transparent 98%, rgba(0, 227, 150, 0.1) 100%),
        linear-gradient(to bottom, transparent 98%, rgba(0, 227, 150, 0.1) 100%);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanFooter 3s linear infinite;
    z-index: 1;
}

@keyframes scanFooter {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

.footer-tech-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    display: flex;
    justify-content: space-between;
}

.tech-line {
    height: 100%;
    width: calc(33.33% - 10px);
    background-color: var(--primary-color);
    animation: pulseLine 4s ease-in-out infinite;
}

.tech-line:nth-child(1) {
    animation-delay: 0s;
}

.tech-line:nth-child(2) {
    animation-delay: 1.3s;
}

.tech-line:nth-child(3) {
    animation-delay: 2.7s;
}

@keyframes pulseLine {
    0% { opacity: 0.2; }
    50% { opacity: 0.8; }
    100% { opacity: 0.2; }
}

.copyright {
    text-align: center;
}

.copyright p {
    color: var(--gray-text);
    font-size: 14px;
    position: relative;
    display: inline-block;
}

.copyright p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

.copyright p:hover::after {
    width: 100%;
}

/* Ajustes para responsividade */
@media (max-width: 768px) {
    .new-services-grid {
        grid-template-columns: 1fr;
    }
    
    .expanded-card {
        min-height: auto;
    }
}