/* Definição das variáveis de cor da sua nova paleta (Preto e Verde Água) */
:root {
    --primary-teal: #00F5C4;
    --accent-teal-dark: #00C29A;
    --secondary-purple: #BE00FE;
    --background-deep-black: #0A0A0A;
    --background-gray-dark: #1E1E1E;
    --text-white: #FFFFFF;
    --text-gray-light: #B0B0B0;
    --whatsapp-green: #25D366;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-deep-black);
    color: var(--text-white);
    line-height: 1.6;
}

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

/* Header */
header {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--accent-teal-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    color: var(--primary-teal);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 245, 196, 0.5);
}

.logo .fa-bolt {
    color: var(--secondary-purple);
    animation: flicker 2s infinite alternate;
}

@keyframes flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--secondary-purple); }
    50% { opacity: 0.7; text-shadow: none; }
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav a {
    color: var(--text-gray-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--secondary-purple);
}

/* Seções */
section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-teal);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray-light);
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* Hero Section com Animação de Fundo */
#hero {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}


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

.hero-info, .hero-content {
    flex: 1;
}

.hero-info {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.hero-info:hover {
    border-color: var(--primary-teal);
    box-shadow: 0 0 25px rgba(0, 245, 196, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-teal);
    font-size: 2rem;
    margin-right: 20px;
    width: 40px;
    transition: text-shadow 0.4s ease;
}

.info-item:hover i {
    text-shadow: 0 0 15px var(--primary-teal);
}

.info-item h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin: 0;
}

.info-item p {
    color: var(--text-gray-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.hero-content {
    text-align: left;
}

.hero-content h2 {
    font-size: 2.9rem;
    margin-bottom: 20px;
    color: var(--text-white);
    position: relative;
    /* ALTERAÇÃO AQUI: Altura mínima para não "pular" */
    min-height: 225px;
}

.hero-content p {
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    color: var(--text-gray-light);
    max-width: none;
}

.typing-effect span::after {
    content: '|';
    animation: blink-caret 0.75s step-end infinite;
    margin-left: 5px;
    color: var(--primary-teal);
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-teal); }
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-teal), var(--secondary-purple));
    color: var(--text-white);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(190, 0, 254, 0.25), 0 5px 20px rgba(0, 245, 196, 0.25);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(190, 0, 254, 0.4), 0 8px 30px rgba(0, 245, 196, 0.4);
}

/* Serviços */
#servicos {
    background-color: var(--background-gray-dark);
}

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

.servico-card {
    background: var(--background-deep-black);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.servico-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-purple);
    box-shadow: 0 10px 25px rgba(190, 0, 254, 0.2);
}

.servico-card i {
    font-size: 3rem;
    color: var(--primary-teal);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--primary-teal);
}

.servico-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.servico-card p {
    color: var(--text-gray-light);
}

/* Portfólio - Carrossel */
#portfolio {
    background-color: var(--background-deep-black);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--background-gray-dark);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.card {
    min-width: 100%;
    box-sizing: border-box;
}

.card img {
    width: 100%;
    display: block;
    border-radius: 10px 10px 0 0;
}

.card-content {
    background: var(--background-gray-dark);
    padding: 20px;
    border-radius: 0 0 10px 10px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--text-white);
}

.card-link {
    color: var(--secondary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--primary-teal);
    text-decoration: underline;
}

.carousel-container .prev-btn,
.carousel-container .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 245, 196, 0.7);
    color: var(--background-deep-black);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-container .prev-btn:hover,
.carousel-container .next-btn:hover {
    background: var(--primary-teal);
    transform: translateY(-50%) scale(1.1);
}

.carousel-container .prev-btn { left: 10px; }
.carousel-container .next-btn { right: 10px; }

/* Contato */
#contato {
    text-align: center;
    background: var(--background-gray-dark);
}

/* Footer */
footer {
    background: var(--background-deep-black);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--background-gray-dark);
    color: var(--text-gray-light);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* Animações de Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.8s ease forwards;
}


/* Responsividade */
@media (max-width: 992px) {

    .hero-split {
        flex-direction: column;
        gap: 50px; /* Aumenta o espaço entre os blocos no mobile */

    }

    /* ALTERAÇÃO AQUI: Invertendo a ordem no mobile */
    .hero-content {
        text-align: center;
        order: 1; /* Aparece primeiro */
    }

    .hero-info {
        order: 2; /* Aparece em segundo */
    }

    .hero-content p {
        margin: 0 auto 30px auto;
        max-width: 90vw;
    }

    .hero-content h2 {
        font-size: 2rem;
        /* ALTERAÇÃO AQUI: Altura mínima para o mobile */
        min-height: 23.5vh;

    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    .section-title {
        font-size: 2rem;
    }
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
        bottom: 20px;
        right: 20px;
    }
}