/* ==========================================================================
   NEXUM INFORMÁTICA - DESIGN SYSTEM & STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --bg-main: #050a11;
    --bg-surface: #0a1120;
    --bg-surface-light: #121d33;
    
    --accent-cyan: #00D3FF;
    --accent-cyan-hover: #33dcff;
    --accent-blue: #0A66C2;
    --accent-blue-deep: #003a7a;
    
    --text-primary: #F0F4Fa;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    --surface-gradient: linear-gradient(180deg, rgba(16, 25, 43, 0.4) 0%, rgba(10, 17, 32, 0.9) 100%);
    --glow-cyan: 0 0 20px rgba(0, 211, 255, 0.4);
    --glow-blue: 0 0 30px rgba(10, 102, 194, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Metrics */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-cyan);
    color: var(--bg-main);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-light);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utils */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-padding {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--brand-gradient);
    color: var(--bg-main);
    box-shadow: var(--glow-cyan);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 211, 255, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 211, 255, 0.1) inset;
}

.btn-outline:hover {
    background: rgba(0, 211, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan), 0 0 20px rgba(0, 211, 255, 0.2) inset;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition-normal);
    background: transparent;
}

header.scrolled {
    background: rgba(5, 10, 17, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 45px;
    transition: var(--transition-normal);
    filter: drop-shadow(0 0 8px rgba(0, 211, 255, 0.5));
}

header.scrolled .logo-container img {
    height: 38px;
}

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

nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

nav a:hover, nav a.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 211, 255, 0.4);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-normal);
    box-shadow: var(--glow-cyan);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 102;
}

/* ==========================================================================
   PARTICLES BG
   ========================================================================== */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(16,25,43,1) 0%, rgba(5,10,17,1) 100%);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -1px;
    margin-bottom: 24px;
    animation: fadeUp 1s ease forwards;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* Abstract Shape inside Hero */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,211,255,0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

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

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--surface-gradient);
    padding: 2px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, var(--accent-cyan), transparent 30%);
    animation: rotateBorder 4s linear infinite;
}

.about-inner {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    z-index: 1;
    height: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--accent-cyan);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

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

.service-card {
    background: rgba(18, 29, 51, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 211, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    transition: var(--transition-normal);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(18, 29, 51, 0.8);
    border-color: rgba(0, 211, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 211, 255, 0.1);
}

.service-card:hover .service-icon {
    background: var(--brand-gradient);
    color: var(--bg-main);
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================================================
   PARTNERS CAROUSEL (Infinite Marquee)
   ========================================================================== */
.partners-section {
    padding: 60px 0;
    background: linear-gradient(90deg, rgba(5,10,17,1) 0%, rgba(12,20,35,0.6) 50%, rgba(5,10,17,1) 100%);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-item {
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    /* Força todas as imagens a ficarem brancas (ideal para fundo escuro) e um pouco opacas */
    filter: brightness(0) invert(1) opacity(0.6);
}

.marquee-item:hover {
    /* No hover, as logos ficam 100% visíveis, brancas, saltam levemente e ganham um brilho */
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    transform: scale(1.1);
}

.marquee-item img {
    height: 65px; /* Aumentado para melhor visualização */
    max-width: 180px;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   NEXUM DEFENSE SECTION
   ========================================================================== */
.defense-section {
    background: radial-gradient(circle at right center, rgba(0, 211, 255, 0.1) 0%, var(--bg-main) 60%);
    position: relative;
}

.defense-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.defense-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    position: relative;
    font-size: 14rem;
    color: var(--accent-cyan);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0,211,255,0.4));
}

.shield-aura {
    position: absolute;
    width: 300px; height: 300px;
    background: var(--accent-cyan);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: pulse 4s ease-in-out infinite;
}

.defense-features {
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* ==========================================================================
   CONTACT & FOOTER
   ========================================================================== */
.contact-section {
    background: var(--bg-surface);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item i {
    width: 40px; height: 40px;
    background: rgba(0, 211, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-surface-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: var(--bg-surface);
    box-shadow: 0 0 15px rgba(0,211,255,0.1);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-main);
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

footer .social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

footer .social-links a:hover {
    color: var(--accent-cyan);
}

/* WPP Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px; height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateBorder {
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.25; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .defense-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        padding: 40px 30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .shield-container {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 10, 17, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 24px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        transform: translateY(-150%);
        transition: var(--transition-normal);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    nav ul.active {
        transform: translateY(0);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
