/* Reset Básico e Variáveis de Cor */
:root {
    --primary-bg: #0a192f; /* Azul marinho muito escuro */
    --secondary-bg: #112240; /* Azul marinho um pouco mais claro */
    --text-primary: #ccd6f6; /* Cinza azulado claro para texto */
    --text-secondary: #8892b0; /* Cinza azulado para texto secundário */
    --accent-color: #64ffda; /* Verde/Ciano para destaque */
    --accent-color-darker: #00bfa5;
    --white: #ffffff;

    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Cabeçalho e Navegação */
.main-header {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--secondary-bg);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--accent-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

/* Seções */
.content-section {
    padding: 6rem 0;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.content-section > .container > p {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.dark-bg {
    background-color: var(--secondary-bg);
}

/* Seção Hero */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding-top: 80px; /* Altura do header */
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color-darker);
    color: var(--primary-bg);
    border-color: var(--accent-color-darker);
}

/* Carousel Section */
.carousel-section {
    padding: 0; /* Remove default padding as carousel will fill width */
    position: relative;
    overflow: hidden;
    height: 600px; /* Fixed height for the carousel */
    background-color: var(--primary-bg); /* Fallback background */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%); /* Darken image for text readability */
}

.carousel-caption {
    position: absolute;
    color: var(--white);
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
}

.carousel-caption h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white); /* Override section h2 color */
}

.carousel-caption p {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 2rem;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: 1rem;
    border-radius: 0 5px 5px 0;
}

.carousel-nav.next {
    right: 1rem;
    border-radius: 5px 0 0 5px;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Grid de Ameaças e Produtos */
.threat-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.threat-card, .product-card {
    background-color: var(--primary-bg);
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid var(--secondary-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.threat-card {
     background-color: var(--secondary-bg);
     border: 1px solid #233554;
}

.threat-card:hover, .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.threat-card h3, .product-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.product-card .product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-card .learn-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* Seção "Por que nós" */
#why-us ul {
    list-style: none;
    max-width: 600px;
    margin: 2rem auto 0 auto;
}

#why-us ul li {
    background-color: var(--primary-bg);
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

/* Formulário de Contato */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-bg);
    border: 1px solid #233554;
    border-radius: 5px;
    color: var(--text-primary);
    font-family: var(--font-family);
}

/* Rodapé */
.main-footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--secondary-bg);
    color: var(--text-secondary);
}