/* =========================
   VARIÁVEIS DE ALTO CONTRASTE (DARK MODE)
========================= */
:root {
    --bg-main: #0d0e12;         /* Fundo principal super escuro */
    --bg-card: #161920;         /* Fundo dos cards (cinza escuro) */
    --bg-header: #090a0d;       /* Fundo do menu superior */
    
    --text-pure: #ffffff;       /* Texto principal branco puro (máximo contraste) */
    --text-bright: #e2e8f0;     /* Texto secundário cinza claro */
    --text-muted: #94a3b8;      /* Texto de apoio/legendas */
    
    --neon-blue: #00f0ff;       /* Ciano elétrico (Umidade / Links) */
    --neon-orange: #ff5555;     /* Coral avermelhado (Temperatura) */
    --neon-purple: #bd93f9;     /* Roxo vibrante (Botoes e detalhes) */
    
    --border-color: #2a2f3d;    /* Bordas visíveis no escuro */
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    /* Pilha de fontes offline segura com fallbacks modernos */
    font-family: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-pure);
    overflow-x: hidden;
}

/* =========================
   HEADER & NAVBAR
========================= */
header {
    height: 70px;
    background: var(--bg-header);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 26px;
    color: var(--neon-blue);
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-pure);
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    color: var(--text-bright);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

nav a:hover {
    color: var(--neon-blue);
    border-bottom: 2px solid var(--neon-blue);
}

/* =========================
   ESTRUTURA GERAL (SEÇÕES)
========================= */
.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding-top: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--neon-blue);
    font-size: 16px;
    font-weight: 600;
}

/* =========================
   HOME (HERO)
========================= */
.home-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 60px;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.hero-content p {
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-start {
    padding: 16px 45px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 15px rgba(189, 147, 249, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.btn-start a {
    color: var(--text-pure);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.btn-start:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 25px rgba(189, 147, 249, 0.7);
    transform: scale(1.05);
}

.btn-start:hover a {
    color: var(--bg-main);
}

/* =========================
   CARDS DOS SENSORES (HIGH CONTRAST)
========================= */
.sensores-content {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-sensor {
    background: var(--bg-card);
    width: 380px;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.card-sensor.temp-border:hover {
    border-color: var(--neon-orange);
    box-shadow: 0 0 30px rgba(255, 85, 85, 0.2);
}

.card-sensor.hum-border:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.icon-wrapper.temp {
    background: rgba(255, 85, 85, 0.15);
    color: var(--neon-orange);
    border: 1px solid var(--neon-orange);
}

.icon-wrapper.hum {
    background: rgba(0, 240, 255, 0.15);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.icon-wrapper.outro-temp {
    background: rgba(255, 85, 85, 0.15);
    color: var(--neon-orange);
    border: 1px solid var(--neon-orange);
}

.icon-wrapper.outro-hum {
    background: rgba(0, 240, 255, 0.15);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.card-sensor h3 {
    color: var(--text-bright);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.sensor-value {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.temp-text { color: var(--neon-orange); text-shadow: 0 0 10px rgba(255, 85, 85, 0.3); }
.hum-text { color: var(--neon-blue); text-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }

.sensor-info {
    border-top: 2px solid var(--border-color);
    padding-top: 25px;
}

.sensor-info p {
    font-size: 15px;
    color: var(--text-bright);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sensor-info i {
    color: var(--text-muted);
}

/* =========================
   ESTRUTURA DA SEÇÃO O SENSOR IoT
========================= */
.projeto-sensor-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.projeto-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 580px;
}

.projeto-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.projeto-card-header i {
    font-size: 28px;
    color: var(--neon-purple);
}

.projeto-card-header h3 {
    font-size: 20px;
    color: var(--text-pure);
}

.instrumentos-lista {
    list-style: none;
}

.instrumentos-lista li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.instrumentos-lista li i {
    font-size: 20px;
    color: var(--neon-blue);
    margin-top: 2px;
}

.instrumentos-lista strong {
    color: var(--text-bright);
}

.instrumentos-lista span {
    color: var(--text-muted);
    font-size: 14px;
    display: block;
}

.destaque-funcionamento {
    color: var(--text-bright);
    font-weight: 600;
    margin-bottom: 25px;
}

.etapa-funcionamento {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.etapa-numero {
    background: var(--neon-purple);
    color: var(--bg-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.etapa-funcionamento h4 {
    color: var(--neon-blue);
    margin-bottom: 5px;
}

.etapa-funcionamento p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* =========================
   TABELA DE HISTÓRICO
========================= */
.table-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 10px;
    border: 2px solid var(--border-color);
    overflow-x: auto;
}

.tabela-historico {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    min-width: 600px;
}

.tabela-historico thead tr {
    background-color: #1e222b;
}

.tabela-historico th {
    padding: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--neon-blue);
    border-bottom: 2px solid var(--border-color);
}

.tabela-historico td {
    padding: 18px;
    color: var(--text-pure);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 15px;
}

.tabela-historico tbody tr td:nth-child(3) {
    color: var(--neon-orange);
}
.tabela-historico tbody tr td:nth-child(4) {
    color: var(--neon-blue);
}

.tabela-historico tbody tr:hover {
    background-color: #1e222b;
}

.loading-state {
    color: var(--text-muted) !important;
    font-style: italic;
}

/* =========================
   ESTILOS ADICIONADOS: DEMAIS SENSORES
========================= */
.seletor-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

#seletor-sensores {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-pure);
    border: 2px solid var(--border-color);
    outline: none;
    cursor: pointer;
    width: 100%;
    max-width: 450px;
    transition: var(--transition);
}

#seletor-sensores:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(189, 147, 249, 0.3);
}

.outro-sensor-card {
    transition: var(--transition);
    animation: fadeIn 0.4s ease-in-out;
}

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

/* =========================
   SOBRE NÓS (EQUIPE)
========================= */
.sobre-nos-devs-cards {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-dev {
    background: var(--bg-card);
    width: 340px;
    padding: 40px 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.card-dev:hover {
    border-color: var(--neon-purple);
    transform: translateY(-5px);
}

.img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 23px auto;
    border-radius: 50%;
    padding: 4px;
    background: var(--neon-purple);
}

.card-dev img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
}

.card-dev h3 {
    font-size: 22px;
    color: var(--text-pure);
    margin-bottom: 6px;
}

.card-dev .role {
    color: var(--neon-purple);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.dev-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.badge {
    background: rgba(189, 147, 249, 0.15);
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.redes-sociais {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.redes-sociais a {
    color: var(--text-bright);
    font-size: 24px;
    transition: var(--transition);
}

.redes-sociais a:hover {
    color: var(--neon-blue);
    transform: translateY(-3px);
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: var(--bg-header);
    padding: 35px;
    text-align: center;
    border-top: 2px solid var(--border-color);
    margin-top: 50px;
}

footer p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}
