/* =========================================
   VARIÁVEIS DE COR (Identidade Singulari Soft)
   ========================================= */
:root {
    --bg-dark: #02091A;        /* Azul super escuro do fundo */
    --bg-card: #0A1429;        /* Azul um pouco mais claro para os cards */
    --text-light: #FFFFFF;     /* Texto principal branco */
    --text-muted: #94A3B8;     /* Texto secundário cinza claro */
    --neon-blue: #00D4FF;      /* Azul neon corporativo */
    --neon-purple: #7000FF;    /* Roxo neon de destaque tecnológico */
}

/* =========================================
   RESET E FONTES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 30%, #0a1936 0%, var(--bg-dark) 60%);
}

/* =========================================
   CABEÇALHO E NAVEGAÇÃO
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(2, 9, 26, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--neon-blue);
}

.btn-orcamento {
    border: 1px solid var(--neon-blue);
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-orcamento:hover {
    background-color: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

/* =========================================
   HERO SECTION (BANNER PRINCIPAL)
   ========================================= */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 0 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    width: 100%;
    text-align: center;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: var(--text-light);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(112, 0, 255, 0.4);
}

/* =========================================
   ESTRUTURA GERAL (CONTAINERS)
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-section, .about-section, .portfolio-section {
    padding: 80px 0;
    text-align: center;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

/* =========================================
   SEÇÃO DE SERVIÇOS (Nossa Engenharia)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-box {
    background: linear-gradient(145deg, rgba(10, 20, 41, 0.8), rgba(2, 9, 26, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.15);
    padding: 40px 30px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.1);
    border-color: var(--neon-blue);
}

.service-box h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   SEÇÃO QUEM SOMOS
   ========================================= */
.about-section {
    background-color: rgba(10, 20, 41, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content {
    display: flex;
    justify-content: center;
    text-align: left;
}

.about-text {
    max-width: 800px;
    background: rgba(2, 9, 26, 0.6);
    padding: 40px;
    border-radius: 20px;
    border-left: 4px solid var(--neon-purple);
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--neon-blue);
}

/* =========================================
   PORTFÓLIO (CARDS)
   ========================================= */
.portfolio-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.badge {
    background-color: rgba(0, 212, 255, 0.1);
    color: var(--neon-blue);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.link-projeto {
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: bold;
}

.link-projeto:hover {
    color: var(--neon-blue);
}

/* =========================================
   ATUALIZAÇÕES VISUAIS DE AUTO-PADRÃO (PREMIUM)
   ========================================= */

/* Badge de destaque na Hero Section */
.badge-ai {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-ai i {
    margin-right: 6px;
}

/* Novo container de ícones com efeitos de iluminação e reflexo */
.icon-premium {
    font-size: 2.8rem;
    margin-bottom: 25px;
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Micro-animação nos ícones ao passar o mouse sobre o bloco contêiner */
.service-box:hover .icon-premium {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 18px var(--neon-blue));
}

/* Destaque Neon no card principal (IA) */
.service-box.highlight-ai {
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.service-box.highlight-ai::before {
    content: 'FORTE';
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 4px 30px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.service-box.highlight-ai:hover {
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.5);
    border-color: var(--neon-blue);
}

/* CHAT WIDGET FLUTUANTE (Canto Direito) */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: var(--text-light);
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.6);
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-header {
    background: rgba(2, 9, 26, 0.9);
    padding: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    color: var(--neon-blue);
    margin: 0;
    font-size: 1rem;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--bg-dark);
    border-radius: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-light);
    align-self: flex-start;
    border-left: 3px solid var(--neon-blue);
    border-top-left-radius: 2px;
}

.user-message {
    background: linear-gradient(45deg, var(--neon-purple), rgba(112, 0, 255, 0.6));
    color: var(--text-light);
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background-color: rgba(2, 9, 26, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 8px;
    color: var(--text-light);
    outline: none;
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    border-color: var(--neon-blue);
}

.chat-input-area button {
    background-color: var(--neon-blue);
    color: var(--bg-dark);
    border: none;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-area button:hover {
    background-color: #00b2d6;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* BOTÃO FLUTUANTE DO WHATSAPP (Canto Esquerdo) */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
}