/* ==========================================================================
   Variables & Sophisticated Theme (HackerSec Inspired)
   ========================================================================== */
:root {
    --bg-primary: #060608;
    --bg-secondary: #0b0b0d;
    --bg-card: #0e0e12;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 136, 255, 0.25);
    
    /* Elegant HackerSec Colors (Cobalt Blue and logo-matched Magenta) */
    --accent-cyan: #0088ff;
    --accent-magenta: #df2a8a;
    --accent-glow: rgba(0, 136, 255, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-title: 'Orbitron', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --glow-cyan: 0 0 15px rgba(0, 136, 255, 0.4);
    --glow-magenta: 0 0 15px rgba(136, 0, 255, 0.4);
}

/* ==========================================================================
   Reset & Basics
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    line-height: 1.6;
}

body.auto-site-header {
    padding-top: var(--auto-header-offset, 80px);
}

/* Ambient Radial Glows (Corporate SaaS look) */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 136, 255, 0.04) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(136, 0, 255, 0.03) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e1e24;
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ==========================================================================
   Interactive Background
   ========================================================================== */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.03; /* Extremamente sutil para não poluir o layout */
    pointer-events: none;
}

/* ==========================================================================
   Typography & Elements
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Header (Glassmorphism & Thin Borders)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 2rem;
    background: rgba(6, 6, 8, 0.8);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    max-height: 38px;
    width: auto;
    mix-blend-mode: screen; /* Fusão na miniatura do header também */
    border-radius: 4px;
    filter: contrast(1.1) brightness(1.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo a:hover .logo-icon {
    transform: scale(1.06);
    filter: contrast(1.2) brightness(1.1) drop-shadow(0 0 8px var(--accent-cyan));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    position: relative;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

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

/* ==========================================================================
   Main Layout Container
   ========================================================================== */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 5;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5.5rem;
}

/* ==========================================================================
   Hero Section (HackerSec Minimalist Style)
   ========================================================================== */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    gap: 2.2rem;
    min-height: calc(70vh - 80px);
}

.central-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(380px, 85vw);
    height: min(380px, 85vw);
    margin-bottom: 0.5rem;
}

/* Efeito scanner de laser horizontal suave com as cores da logo */
.central-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-magenta), transparent);
    box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-magenta);
    animation: laser-scan 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 10;
    pointer-events: none;
}

#main-image {
    max-width: min(380px, 85vw);
    width: 100%;
    height: auto;
    mix-blend-mode: screen; /* Fusão perfeita com o fundo */
    opacity: 0.9;
    filter: contrast(1.15) brightness(1.05) saturate(1.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Efeito de esvaimento esfumaçado e circular nas bordas para integrar com o fundo */
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 35%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0) 95%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 35%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0) 95%);
}

#main-image:hover {
    opacity: 1;
    filter: contrast(1.2) brightness(1.1) saturate(1.15) drop-shadow(0 0 25px rgba(0, 136, 255, 0.25)) drop-shadow(0 0 25px rgba(223, 42, 138, 0.2));
    transform: scale(1.02);
}

.main-title {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.tagline-text {
    font-size: 1rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

.typing-text {
    min-height: 35px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typing-cursor {
    display: inline-block;
    width: 6px;
    height: 1.2em;
    background-color: var(--accent-cyan);
    margin-left: 6px;
    animation: blink 0.8s infinite;
}

/* ==========================================================================
   Action Buttons (Minimalist Tech)
   ========================================================================== */
.action-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn {
    padding: 0.8rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px; /* Arredondado sutil corporativo */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: #ffffff;
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 14px rgba(0, 136, 255, 0.25);
}

.btn-primary:hover {
    background-color: #0077e6;
    border-color: #0077e6;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 136, 255, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   Section Headers & Cards (Sophisticated Minimalist Grid)
   ========================================================================== */
.section-title {
    font-size: 1.8rem;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 3.5rem;
    position: relative;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-cyan);
    margin: 0.8rem auto 0;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem; /* Espaço elegante e espaçoso entre tópicos */
    border: none;
}

.card {
    background: transparent; /* Sem quadros destacados */
    border: none; /* Sem contornos */
    padding: 1rem 0; /* Alinhamento sutil sem bordas ou padding interno */
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: none; /* Sem relevos */
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--accent-cyan); /* O título brilha levemente no hover */
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Product Showcase (Pepper SV Integration)
   ========================================================================== */
.product-showcase {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3.5rem 0; /* Alinhamento sutil sem quadro destacado */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.product-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.product-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border: none; /* Sem contornos */
    mix-blend-mode: screen; /* Mesma fusão da logo com o fundo */
    opacity: 0.9;
    transition: all 0.3s ease;
    
    /* Efeito de esvaimento esfumaçado e circular nas bordas para integrar com o fundo */
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 35%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0) 95%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 35%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0) 95%);
}

.product-img:hover {
    opacity: 1;
    filter: contrast(1.2) brightness(1.1) saturate(1.15) drop-shadow(0 0 25px rgba(0, 136, 255, 0.25)) drop-shadow(0 0 25px rgba(223, 42, 138, 0.2));
}

.product-details {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.product-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    background: rgba(0, 136, 255, 0.08);
    color: var(--accent-cyan);
    padding: 0.3rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 136, 255, 0.2);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-details h2 {
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.product-details p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.feature-list li::before {
    content: '→';
    color: var(--accent-cyan);
    font-weight: bold;
}

.feature-list li strong {
    color: var(--text-primary);
}

/* ==========================================================================
   About Page Hero (Centered Logo Simbiose)
   ========================================================================== */
.about-hero {
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: transparent;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem 2rem;
    border-radius: 0;
    gap: 1.8rem; /* Espaço elegante entre o logotipo e o título */
}

.about-banner-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
    opacity: 0.9;
    filter: contrast(1.1) brightness(1.05);
    transition: all 0.5s ease;
    
    /* Efeito de esvaimento esfumaçado e circular nas bordas para integrar com o fundo */
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 35%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0) 95%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 35%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 80%, rgba(0,0,0,0) 95%);
}

.about-hero:hover .about-banner-logo {
    opacity: 1;
    transform: scale(1.02);
    filter: contrast(1.2) brightness(1.1) drop-shadow(0 0 25px rgba(0, 136, 255, 0.25)) drop-shadow(0 0 25px rgba(223, 42, 138, 0.2));
}

.about-overlay {
    position: relative; /* Mudado de absolute para relative para fluir no flexbox */
    padding: 0.5rem 2rem;
    text-align: center;
}

.about-overlay h2 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.about-overlay p {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

.about-intro {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 3rem 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
}

.about-intro p {
    margin-bottom: 1.5rem;
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.about-intro strong {
    color: var(--text-primary);
}

/* ==========================================================================
   Contact Terminal Form (Modern Tech Console)
   ========================================================================== */
.terminal-container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: #08080a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.terminal-container:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.terminal-header {
    background: #0d0d11;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.term-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.term-close { background-color: rgba(255, 255, 255, 0.1); }
.term-min { background-color: rgba(255, 255, 255, 0.1); }
.term-max { background-color: rgba(255, 255, 255, 0.1); }

.terminal-title {
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.terminal-body {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.terminal-welcome {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-family: var(--font-body);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.terminal-line {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.terminal-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
}

.terminal-label::before {
    content: '>';
    color: var(--accent-cyan);
    font-weight: bold;
}

.terminal-input,
.terminal-textarea {
    background: #0d0d11;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.8rem;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
}

.terminal-input:focus,
.terminal-textarea:focus {
    border-color: var(--accent-cyan);
    background: #0f0f14;
}

.terminal-textarea {
    resize: vertical;
    min-height: 110px;
}

.terminal-output {
    font-size: 0.8rem;
    line-height: 1.6;
    padding: 0.8rem;
    border-radius: 6px;
    font-family: var(--font-body);
}

.terminal-output.success {
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.2);
    background: rgba(0, 200, 83, 0.04);
}

.terminal-output.error {
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
    background: rgba(255, 59, 48, 0.04);
}

/* ==========================================================================
   Footer (Sophisticated Visual Alignment)
   ========================================================================== */
footer {
    background: #030304;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem 1.5rem; /* Reduzido padding vertical */
    margin-top: 3.5rem; /* Reduzido espaçamento do conteúdo superior */
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 1.8rem; /* Reduzido margem inferior */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem; /* Reduzido espaçamento entre colunas */
}

.footer-section h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem; /* Reduzido margem sob títulos */
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.2rem; /* Reduzido padding superior */
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom .highlight {
    color: var(--text-primary);
    font-weight: bold;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes laser-scan {
    0% {
        top: -5%;
        opacity: 0;
    }
    15% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.8;
    }
    100% {
        top: 105%;
        opacity: 0;
    }
}

@media (max-width: 992px) {
    .product-showcase {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2.5rem;
    }
    .product-image-container,
    .product-details {
        width: 100%;
        text-align: center;
    }
    .product-tag {
        margin: 0 auto;
    }
    .product-details h2 {
        font-size: 1.8rem;
    }
    .feature-list {
        align-items: center;
        text-align: left;
    }
    .site-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    body.auto-site-header {
        padding-top: 60px; /* Reduzido de 110px para 60px já que a barra ficou mais compacta */
    }
    header {
        padding: 0.6rem 1rem;
    }
    nav {
        justify-content: center;
        gap: 0;
    }
    .logo {
        display: none !important; /* Garante a ocultação em telas móveis */
    }
    .nav-links {
        gap: 0.4rem;
    }
    .nav-links a {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
    .site-title {
        font-size: 2.2rem;
    }
    .tagline-text {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    .typing-text {
        font-size: 0.95rem;
    }
    .btn {
        padding: 0.8rem 1.8rem;
        width: 100%;
    }
    .about-banner-logo {
        max-width: 140px;
    }
    .about-overlay h2 {
        font-size: 1.5rem;
    }
    .about-intro {
        padding: 2rem 1.5rem;
    }
    .terminal-body {
        padding: 1.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}
