/* ==========================================================================
   1. CONFIGURAÇÕES BASE & VARIÁVEIS (PALETA OFICIAL TECH CONECTAR)
   ========================================================================== */
:root {
    --bg-dark: #04090f;          /* Azul escuro profundo / Fundo do logo */
    --bg-card: #0b131f;          /* Fundo ligeiramente mais claro para os cards */
    --primary-purple: #602d8d;   /* Roxo oficial do 'T' e 'TECH' */
    --primary-cyan: #00b0f0;     /* Ciano oficial do 'C' e detalhes */
    --primary-orange: #ff9900;   /* Laranja oficial do 'N' e 'CONECTAR' */
    --text-white: #ffffff;
    --text-muted: #a0aec0;
    --transition-fast: all 0.3s ease;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    margin-bottom: 10px;
    font-weight: 600;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   2. NAVBAR & HEADER (COM LOGO INCORPORADO)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(4, 9, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition-fast);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.nav-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Mantém o gradiente visível mesmo com poucas letras */
    background-size: 100%;
    display: inline-block;
    
    /* Linha do cursor de digitação */
    border-right: 2px solid var(--primary-cyan);
    padding-right: 4px;
    animation: piscarCursor 0.75s step-end infinite;
    white-space: nowrap;
}

/* Animação para fazer o cursor piscar */
@keyframes piscarCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-cyan); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
    margin: 5px;
    transition: var(--transition-fast);
}

/* ==========================================================================
   3. HERO SECTION & PESQUISA DINÂMICA
   ========================================================================== */
.hero-section {
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at top right, rgba(96, 45, 141, 0.12) 0%, rgba(4, 9, 15, 0) 60%);
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-search-box {
    position: relative;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.hero-search-box input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.hero-search-box input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 4px rgba(0, 176, 240, 0.15);
}

.hero-search-box .search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-cyan);
    font-size: 1.1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.tech-sphere {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-cyan));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatingSphere 6s ease-in-out infinite alternate;
}

@keyframes floatingSphere {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

/* ==========================================================================
   4. SERVIÇOS (SERVICES GRID)
   ========================================================================== */
.services-section {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 40px 35px;
    border-radius: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 176, 240, 0.05) 0%, rgba(96, 45, 141, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 176, 240, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 176, 240, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-cyan);
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.service-card:hover .card-icon {
    background-color: var(--primary-cyan);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   5. SOBRE NÓS (ABOUT SECTION)
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: rgba(11, 19, 31, 0.4);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-image img {
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 35px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-cyan);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   6. NOVIDADES (NEWS INSIGHTS)
   ========================================================================== */
.news-section {
    padding: 100px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    transition: var(--transition-smooth);
}

.news-card:hover {
    border-color: rgba(96, 45, 141, 0.3);
    transform: translateY(-3px);
}

.news-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    background-color: rgba(96, 45, 141, 0.15);
    color: rgba(200, 150, 255, 1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content .news-date {
    font-size: 0.85rem;
    color: var(--primary-cyan);
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-right: 80px;
    line-height: 1.3;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   7. MERCADO VIRTUAL
   ========================================================================== */
.market-section {
    padding: 100px 0;
}

.market-placeholder-card {
    background: radial-gradient(100% 100% at 0% 0%, rgba(255, 153, 0, 0.04) 0%, rgba(11, 19, 31, 1) 100%);
    border: 1px solid rgba(255, 153, 0, 0.1);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 153, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-orange);
    margin: 0 auto 30px auto;
}

.market-placeholder-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.market-placeholder-card p {
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 30px auto;
    font-size: 1rem;
}

.badge-status {
    background-color: var(--primary-orange);
    color: var(--bg-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   8. ESTRUTURA DO FORMULÁRIO DE CONTACTO & META CONTATOS
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 35px;
}

.contact-meta p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-white);
}

.contact-meta i {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    width: 20px;
    text-align: center; /* Garante alinhamento exato em grelha com os textos */
}

.contact-form-container {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    background-color: rgba(4, 9, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: var(--text-white);
    box-shadow: 0 5px 15px rgba(0, 176, 240, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 176, 240, 0.3);
}

/* ==========================================================================
   9. RODAPÉ (FOOTER)
   ========================================================================== */
footer {
    background-color: #020508;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.brand-col p {
    color: var(--text-muted);
    max-width: 280px;
}

.footer-column h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-white);
}

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul a {
    color: var(--text-muted);
}

.links-col ul a:hover {
    color: var(--primary-cyan);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   10. MEDIA QUERIES & RESPONSIVIDADE COMPLETA (TOTALMENTE REVISTO)
   ========================================================================== */

/* A. TABLETS E ECRÃS MÉDIOS (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        width: 88%;
    }

    .hero-wrapper, 
    .about-wrapper, 
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 3rem;
        max-width: 700px;
    }

    .hero-content p {
        margin: 0 auto 35px auto;
    }

    .hero-search-box {
        margin: 0 auto;
        width: 100%;
    }

    .hero-visual {
        display: none; /* Oculta a esfera decorativa para focar na legibilidade */
    }

    .about-image {
        max-width: 450px;
        margin: 0 auto;
        padding: 40px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* B. SMARTPHONES E DISPOSITIVOS MÓVEIS (max-width: 768px) */
@media screen and (max-width: 768px) {
    header nav {
        height: 70px;
    }

    .logo h2 {
        font-size: 1.3rem;
    }

    .nav-logo-img {
        height: 32px;
    }

    /* Menu Lateral Otimizado Fixed (Evita falhas de overflow oculto) */
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        height: calc(100vh - 70px);
        background-color: rgba(11, 19, 31, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        width: 75%;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .nav-links li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
    }

    .burger {
        display: block;
        z-index: 1000;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Animação do Menu Burger Transformado em 'X' */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 5px); }
    .toggle .line2 { opacity: 0; transform: translateX(-20px); }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -5px); }

    /* Readequação de Padding Morto */
    .hero-section {
        padding: 130px 0 70px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .section-header h2, 
    .about-text h2, 
    .contact-info h2 {
        font-size: 1.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .about-image {
        padding: 30px;
    }

    .news-card, 
    .market-placeholder-card, 
    .contact-form-container {
        padding: 35px 20px;
    }

    .news-content h3 {
        font-size: 1.25rem;
        padding-right: 0;
    }

    .news-badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .brand-col p {
        margin: 0 auto;
    }

    .contact-meta p {
        justify-content: center; /* Centraliza perfeitamente os contatos no Mobile */
    }
}

/* C. SMARTPHONES ULTRA-PEQUENOS (max-width: 380px) */
@media screen and (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .logo h2 {
        font-size: 1.15rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================================================
   11. COMPONENTES DE INTERAÇÃO (ETIQUETA DO MERCADO NO MENU)
   ========================================================================== */
.nav-item-special a {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

@media screen and (max-width: 768px) {
    .nav-item-special a {
        justify-content: center;
    }
}

.menu-badge-soon {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--primary-orange); 
    color: var(--bg-dark);                  
    padding: 2px 6px;
    border-radius: 8px;
    line-height: 1;
    letter-spacing: 0.3px;
    display: inline-block;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(255, 153, 0, 0.3);
    animation: menuBadgePulse 2s infinite alternate;
}

@keyframes menuBadgePulse {
    0% {
        box-shadow: 0 2px 5px rgba(255, 153, 0, 0.2);
        transform: translateY(-1px) scale(1);
    }
    100% {
        box-shadow: 0 2px 10px rgba(255, 153, 0, 0.5);
        transform: translateY(-1px) scale(1.03);
    }
}

/* ==========================================================================
   12. AJUSTES EXCLUSIVOS PARA A PÁGINA ISOLADA DE CONTACTO
   ========================================================================== */
.contact-page-section {
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at top right, rgba(0, 176, 240, 0.05) 0%, rgba(4, 9, 15, 0) 50%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .contact-page-section {
        padding: 120px 0 60px 0;
    }
}

.nav-links a.active {
    color: var(--primary-cyan) !important;
    font-weight: 600;
}