/* --- Configurações Globais e Variáveis --- */
:root {
    --bg-dark: #0a0f18; /* Azul marinho profundo / Quase preto */
    --accent-blue: #00c6ff;
    --accent-purple: #9254c8;
    --text-light: #e0e0e0;
    --text-dark: #333;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* --- Estilos Gerais --- */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    text-align: center;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

p {
    font-weight: 300;
    line-height: 1.8;
    max-width: 800px;
    margin: 15px auto;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1000;
    background: rgba(10, 15, 24, 0.5);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

/* --- Seção Herói --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    background-image: linear-gradient(rgba(10, 15, 24, 0.85), rgba(10, 15, 24, 1)), url('imgs/predio_logitrack.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-button {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 198, 255, 0.2);
}

/* --- Estilo Geral para Imagens com Moldura --- */
.image-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 200, 255, 0.3);
}

.image-container img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* --- Seção Projeto (Plantas) --- */
.plantas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.planta-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.planta-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* --- Seção Data Center e Segurança --- */
.datacenter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.tech-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
}

/* --- Seção Arquitetura de Rede (Diagrama) --- */
.diagrama-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.diagrama-container img {
    max-width: 100%;
    border-radius: 10px;
}

/* --- Seção Rastreio (Glassmorphism) --- */
.glassmorphism-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
    max-width: 700px;
    margin: 0 auto;
}

#tracking-form { display: flex; gap: 15px; margin-top: 30px; }
#tracking-form input { flex-grow: 1; padding: 15px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.2); color: #fff; font-size: 1rem; }
#tracking-form input::placeholder { color: #ccc; }
#tracking-form button { padding: 15px 25px; border: none; border-radius: 10px; background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple)); color: #fff; font-weight: 600; cursor: pointer; transition: transform 0.2s ease; }
#tracking-form button:hover { transform: scale(1.05); }
#tracking-result { margin-top: 30px; text-align: left; background: rgba(0, 0, 0, 0.3); padding: 20px; border-radius: 10px; display: none; }

/* --- Seção Roadmap Futuro (Cards Estilizados) --- */
.roadmap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}

.roadmap-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(146, 84, 200, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.roadmap-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(146, 84, 200, 0.4);
    border-color: var(--accent-purple);
}

.roadmap-item h3 { font-size: 2.5rem; font-weight: 700; color: var(--accent-purple); }
.roadmap-item h4 { font-size: 1.2rem; font-weight: 600; margin: 10px 0; color: var(--accent-blue); }

/* --- Rodapé --- */
footer {
    text-align: center;
    padding: 40px;
    background-color: #05080f;
    font-size: 0.9em;
}

/* --- Animação "Fade-in on Scroll" --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilos da Timeline --- */
.timeline { position: relative; max-width: 800px; margin: 50px auto; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; background: linear-gradient(var(--accent-blue), var(--accent-purple)); transform: translateX(-50%); }
.timeline-item { position: relative; width: 50%; padding: 20px 40px; margin-bottom: 20px; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-icon { position: absolute; top: 30px; width: 50px; height: 50px; background: var(--bg-dark); border: 3px solid var(--accent-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent-blue); z-index: 10; }
.timeline-item:nth-child(odd) .timeline-icon { right: -25px; transform: translateY(-50%) translateX(50%); }
.timeline-item:nth-child(even) .timeline-icon { left: -25px; transform: translateY(-50%) translateX(-50%); }
.timeline-content h3 { margin-bottom: 10px; color: #fff; }
.timeline-content p { margin: 0; font-size: 0.95em; }

/* --- [NOVO] MEDIA QUERIES PARA RESPONSIVIDADE --- */
/* Aplica estes estilos em telas de 768px de largura ou menos (tablets e celulares) */
@media (max-width: 768px) {

    /* Ajusta o padding geral para não cortar nas laterais */
    .content-section {
        padding: 80px 20px;
    }

    /* Diminui o texto do Hero para caber na tela */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Transforma a timeline de duas colunas em uma só */
    .timeline::before {
        left: 25px; /* Move a linha central para a esquerda */
    }

    .timeline-item {
        width: 100%; /* Faz cada item ocupar a largura toda */
        left: 0 !important; /* Reseta o posicionamento */
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important; /* Alinha todo o texto à esquerda */
    }

    .timeline-icon {
        left: 0 !important; /* Move todos os ícones para a esquerda */
        transform: translateX(0);
    }
    
    /* Corrige a caixa de rastreio para não sair da tela */
    .glassmorphism-box {
        padding: 30px 20px;
    }

    #tracking-form {
        flex-direction: column; /* Coloca o botão abaixo do campo de texto */
    }
}