/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Electrolize', sans-serif;
    background-color: #000000;
    color: #BDBDBD;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: 'Audiowide', sans-serif;
    color: #FFFFFF;
    font-weight: bold;
}

strong, b {
    font-family: 'Audiowide', sans-serif;
    color: #FFFFFF;
    font-weight: bold;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 0.5rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 255, 153, 0.3));
    transition: all 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 15px rgba(0, 255, 153, 0.6));
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-family: 'Audiowide', sans-serif;
    color: #00FF99;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 255, 153, 0.3);
}

.nav-list a:hover {
    color: #00FF99;
    text-shadow: 0 0 15px #00FF99, 0 0 25px #00FF99;
    transform: translateY(-2px);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00FF99;
    box-shadow: 0 0 8px #00FF99;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #00FF99;
    margin: 3px 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px #00FF99;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    padding: 3rem 0;
    background: #000;
}

#circuitCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px #00FF99;
    color: #FFFFFF;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 255, 153, 0.3));
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Animações de entrada */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.fade-in.delay-1 {
    animation-delay: 0.3s;
}

.fade-in.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Botões */
.btn {
    position: relative;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn span {
    position: relative;
    display: block;
    font-family: 'Audiowide', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: #FFFFFF;
    z-index: 2;
}

/* Botão Pequeno */
.btn[data-size="pequeno"] {
    width: 150px;
    height: 40px;
    background-image: url('botao/btn_normal_pequeno.png');
    background-size: cover;
    background-position: center;
}

.btn[data-size="pequeno"]:hover {
    background-image: url('botao/btn_hover_pequeno.png');
}

.btn[data-size="pequeno"] span {
    font-size: 0.8rem;
    line-height: 40px;
}

/* Botão Médio */
.btn[data-size="medio"], .btn-medio {
    width: 220px;
    height: 55px;
    background-image: url('botao/btn_normal_medio (1).png');
    background-size: cover;
    background-position: center;
}

.btn[data-size="medio"]:hover, .btn-medio:hover {
    background-image: url('botao/btn_hover_medio.png');
}

.btn[data-size="medio"] span, .btn-medio span {
    font-size: 1rem;
    line-height: 55px;
}

/* Botão Grande */
.btn[data-size="grande"], .btn-grande {
    width: 280px;
    height: 70px;
    background-image: url('botao/btn_normal_grande.png');
    background-size: cover;
    background-position: center;
}

.btn[data-size="grande"]:hover, .btn-grande:hover {
    background-image: url('botao/btn_hover_grande.png');
}

.btn[data-size="grande"] span, .btn-grande span {
    font-size: 1.1rem;
    line-height: 70px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px #00FF99;
    position: relative;
    z-index: 3;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
}

/* Cases de Sucesso */
.cases {
    padding: 8rem 0;
    background: linear-gradient(180deg, #000000 0%, #001a0f 50%, #000000 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Elemento rotativo de background para cases */
.cases .rotating-graphic {
    position: absolute;
    top: 55%;
    left: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    background-image: url('animation_section2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
    animation: spin 20s linear infinite;
}

.cases .rotating-graphic::before,
.cases .rotating-graphic::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(0, 255, 128, 0.2);
    animation: spinReverse 40s linear infinite;
}

.cases .rotating-graphic::after {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border: 2px solid rgba(0, 255, 128, 0.15);
    animation: spin 60s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.cases .container {
    position: relative;
    z-index: 3;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    z-index: 2;
}

.carousel {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: calc(33.333% - 1.33rem);
    text-align: center;
    transition: all 0.5s ease;
    opacity: 1;
    position: relative;
    z-index: 2;
}

.carousel-item.active {
    transform: scale(1.15);
    z-index: 10;
    opacity: 1;
}

.carousel-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 255, 153, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-item:hover .carousel-img {
    box-shadow: 0 10px 30px rgba(0, 255, 153, 0.6);
    transform: translateY(-5px);
}

.carousel-item h3 {
    margin-top: 1rem;
    font-size: 1.3rem;
}

.carousel-item p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 153, 0.2);
    border: 2px solid #00FF99;
    color: #00FF99;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.carousel-btn:hover {
    background: rgba(0, 255, 153, 0.4);
    box-shadow: 0 0 20px #00FF99;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Tecnologia e Inovação */
.tecnologia {
    padding: 5rem 0;
    position: relative;
    background: #000000;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Audiowide', sans-serif;
    font-size: 12rem;
    color: rgba(0, 255, 153, 0.03);
    z-index: 1;
    pointer-events: none;
}

.section-intro {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Linha conectora entre os cards */
.tech-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg,
        #00FF99 0%,
        #00FF99 20%,
        transparent 20%,
        transparent 40%,
        #00FF99 40%,
        #00FF99 60%,
        transparent 60%,
        transparent 80%,
        #00FF99 80%,
        #00FF99 100%
    );
    box-shadow: 0 0 10px #00FF99;
    z-index: 3;
}

/* Círculos nas extremidades da linha */
.tech-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #00FF99;
    border-radius: 50%;
    box-shadow: 0 0 15px #00FF99, inset 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 4;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px #00FF99, inset 0 0 5px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 25px #00FF99, inset 0 0 5px rgba(0, 0, 0, 0.5);
    }
}

.tech-column {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem 2.5rem;
    border: 2px solid #00FF99;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 153, 0.3);
    backdrop-filter: blur(10px);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tech-column::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #00FF99, transparent, #00FF99);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.tech-column h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #00FF99;
    text-shadow: 0 0 15px #00FF99;
    text-align: center;
}

.tech-column p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.tech-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Service Sections */
.service-section {
    position: relative;
    padding: 100px 0;
    background: rgba(112, 112, 112, 0.2);
    overflow: visible;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Container de background intercalado com formato trapezoidal */
.section_background_intercalate {
    position: relative;
    width: 100%;
    background: #000000;
    clip-path: polygon(
        0 10%,
        5% 0,
        95% 0,
        100% 10%,
        100% 90%,
        95% 100%,
        5% 100%,
        0 90%
    );
    border-top: 4px solid rgba(112, 112, 112, 0.2);
    border-bottom: 4px solid rgba(112, 112, 112, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.2);
    padding: 100px 0;
    margin: 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.section_background_intercalate::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        #00ff99 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: electricFlow 8s linear infinite;
    pointer-events: none;
    z-index: 10;
    clip-path: polygon(
        0 10%,
        5% 0,
        95% 0,
        100% 10%,
        100% calc(10% + 4px),
        95.3% 4px,
        4.7% 4px,
        0 calc(10% + 4px)
    );
}

.section_background_intercalate::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        #00ff99 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: electricFlow 8s linear infinite reverse;
    pointer-events: none;
    z-index: 10;
    clip-path: polygon(
        0 calc(90% - 4px),
        4.7% calc(100% - 4px),
        95.3% calc(100% - 4px),
        100% calc(90% - 4px),
        100% 90%,
        95% 100%,
        5% 100%,
        0 90%
    );
}

@keyframes electricFlow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.service-section .container {
    width: 100%;
}

.section_background_intercalate .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
}

.service-content.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.service-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00FF99;
    text-shadow: 0 0 10px #00FF99;
}

.service-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #CCCCCC;
    max-width: 500px;
}

.service-text .btn {
    margin-top: 1.5rem;
}

.service-image {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image img {
    width: 100%;
    max-width: 520px;
    border: 2px solid #00FF99;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 255, 128, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 255, 128, 0.7);
}

/* Elemento diamante animado atrás das imagens */
.service-image::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: transparent;
    border: 2px solid #00FF99;
    transform: rotate(45deg);
    z-index: 1;
    opacity: 0.3;
    animation: diamondPulse 4s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(45deg) scale(1.1);
        opacity: 0.5;
    }
}

/* Efeito de borda trapezoidal - removido para usar backgrounds intercalados */

/* Footer */
#footer {
    background: #000000;
    border-top: 2px solid #00FF99;
    padding: 2rem 0;
    text-align: center;
}

#footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-links a {
    color: #BDBDBD;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00FF99;
    text-shadow: 0 0 8px #00FF99;
}

/* Responsividade */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
    }

    .tech-grid {
        gap: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-logo {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    /* Cases Section Mobile */
    .cases {
        padding: 5rem 0;
        min-height: auto;
    }

    /* Header Mobile */
    .header-container {
        justify-content: space-between;
        gap: 1rem;
    }

    .logo img {
        height: 45px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        border-top: 2px solid #00FF99;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-list.active {
        transform: translateX(0);
    }

    .nav-list a {
        font-size: 1.2rem;
        text-align: center;
    }

    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        padding: 5rem 1rem 3rem;
    }

    /* Esconder logo do header quando estiver na área do hero */
    .hero ~ #header .logo,
    #header .logo {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        gap: 3rem;
    }

    /* Logo grande aparece primeiro */
    .hero-image {
        order: -1;
        width: 100%;
    }

    .hero-image img {
        max-width: 400px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    /* Carrossel Mobile */
    .carousel-container {
        padding: 0 50px;
    }

    .carousel-item {
        flex: 0 0 100%;
        min-width: 100%;
        opacity: 1;
    }

    .carousel-item.active {
        transform: scale(1);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    /* Tech Grid Mobile */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tech-grid::before,
    .tech-grid::after {
        display: none;
    }

    .tech-column {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .tech-column h2 {
        font-size: 1.8rem;
    }

    .tech-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Service Sections Mobile */
    .service-section {
        padding: 60px 0;
        min-height: auto;
    }

    .section_background_intercalate {
        padding: 60px 0;
        min-height: auto;
        clip-path: polygon(
            0 5%,
            3% 0,
            97% 0,
            100% 5%,
            100% 95%,
            97% 100%,
            3% 100%,
            0 95%
        );
    }

    .section_background_intercalate::before {
        clip-path: polygon(
            0 5%,
            3% 0,
            97% 0,
            100% 5%,
            100% calc(5% + 4px),
            97.3% 4px,
            2.7% 4px,
            0 calc(5% + 4px)
        );
    }

    .section_background_intercalate::after {
        clip-path: polygon(
            0 calc(95% - 4px),
            2.7% calc(100% - 4px),
            97.3% calc(100% - 4px),
            100% calc(95% - 4px),
            100% 95%,
            97% 100%,
            3% 100%,
            0 95%
        );
    }

    .service-content,
    .service-content.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .service-text h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .service-text p {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
    }

    .service-text .btn {
        display: block;
        margin: 1.5rem auto 0;
    }

    .service-image img {
        max-width: 100%;
    }

    .service-image::before {
        width: 150px;
        height: 150px;
    }

    /* Botões Mobile - largura total mantendo proporção */
    .btn[data-size="grande"], .btn-grande {
        width: 100%;
        height: auto;
        min-height: 70px;
        padding: 1.2rem 2rem;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .btn[data-size="medio"], .btn-medio {
        width: 100%;
        height: auto;
        min-height: 60px;
        padding: 1rem 2rem;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .btn[data-size="pequeno"] {
        width: 100%;
        height: auto;
        min-height: 50px;
        padding: 0.8rem 1.5rem;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .btn[data-size="grande"] span, .btn-grande span {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .btn[data-size="medio"] span, .btn-medio span {
        font-size: 1rem;
        line-height: 1.5;
    }

    .btn[data-size="pequeno"] span {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Sections Mobile */
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .watermark {
        font-size: 6rem;
    }

    /* Elemento rotativo responsivo na section cases */
    .cases .rotating-graphic {
        width: 400px;
        height: 400px;
    }

    /* Ajustes mobile para backgrounds intercalados */
    .section_background_intercalate {
        padding: 3rem 0;
        clip-path: polygon(
            0 5%,
            3% 0,
            97% 0,
            100% 5%,
            100% 95%,
            97% 100%,
            3% 100%,
            0 95%
        );
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 40px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 320px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Elemento rotativo ainda menor em telas muito pequenas */
    .cases .rotating-graphic {
        width: 300px;
        height: 300px;
    }
}
