/* 
   NeuroNexus - Style System
   Architecture: Vanilla CSS (Custom Properties + Grid/Flexbox)
*/

:root {
    /* Color Palette */
    --color-void-black: #030305;
    --color-dark-matter: #0D0E12;
    --color-quantum-cyan: #00F0FF;
    --color-neural-purple: #8A2BE2;
    --color-text-primary: #F8F9FA;
    --color-text-secondary: #A0AAB2;
    --color-border-glass: rgba(255, 255, 255, 0.08);
    --color-bg-glass: rgba(255, 255, 255, 0.02);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-body: 'Inter', sans-serif; /* Fallback to sans-serif if Inter is not imported, but Outfit is clean enough for both */

    /* Spacing & Sizes */
    --container-max: 1200px;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--color-void-black);
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-center { text-align: center; }
.pt-100 { padding-top: var(--space-xl); }
.pb-100 { padding-bottom: var(--space-xl); }
.mt-20 { margin-top: var(--space-sm); }
.mt-50 { margin-top: var(--space-lg); }

/* Typography Utilities */
.mono-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--color-quantum-cyan);
}

.highlight-cyan { color: var(--color-quantum-cyan); }
.highlight-purple { color: var(--color-neural-purple); }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.split-layout.align-center {
    align-items: center;
}

.grid-layout.three-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
    border: 1px solid transparent;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-quantum-cyan);
    color: var(--color-void-black);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    background-color: #fff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-glass);
}

.btn-secondary:hover {
    border-color: var(--color-text-primary);
    background-color: var(--color-bg-glass);
}

/* Glassmorphism */
.glass-card, .glass-btn {
    background: var(--color-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-glass);
    border-radius: 12px;
}

.glass-btn {
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-quantum-cyan);
    border-color: rgba(0, 240, 255, 0.3);
}

.glass-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    color: #fff;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all var(--transition-smooth);
}

#site-header.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border-glass);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: 1px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--color-quantum-cyan);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--color-quantum-cyan);
    animation: pulse 4s infinite alternate;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 400;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-quantum-cyan);
}

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

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.6) 40%, rgba(5,5,5,0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #FFF 0%, #A0AAB2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    background-color: transparent; /* Changed for Neural Canvas */
    position: relative;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-visual {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-shape {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-neural-purple) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(40px);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.stats-glass {
    position: absolute;
    background: var(--color-bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--color-border-glass);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transform: translateY(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-quantum-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    background-color: rgba(17, 17, 17, 0.6); /* Translucent Dark Matter */
}

.services-section .section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.glass-card {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.glass-card > * {
    position: relative;
    z-index: 2;
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 240, 255, 0.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   CONSULTING SECTION (TIMELINE)
   ========================================================================== */
.consulting-section {
    background-color: transparent; /* Changed for Neural Canvas */
}

.timeline {
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-neural-purple), var(--color-quantum-cyan));
    opacity: 0.3;
}

.timeline-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--color-void-black);
    border: 2px solid var(--color-neural-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-text-primary);
    z-index: 2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: rgba(17, 17, 17, 0.8); /* Translucent Dark Matter */
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-primary);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border-glass);
    padding: 1rem;
    border-radius: 6px;
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-quantum-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.w-100 { width: 100%; }

.form-success-msg {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--color-quantum-cyan);
    color: var(--color-quantum-cyan);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.hidden { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border-glass);
}

.logo-icon.small {
    width: 16px;
    height: 16px;
    animation: none;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
}

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

.developer-credit {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dev-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.dev-link:hover {
    opacity: 1;
}

.dev-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dev-logo {
    height: 30px;
    width: auto;
    filter: grayscale(100%) brightness(200%);
    transition: filter var(--transition-fast);
}

.dev-link:hover .dev-logo {
    filter: none;
}

/* ==========================================================================
   ANIMATIONS & MOTION DESIGN
   ========================================================================== */
@keyframes pulse {
    0% { box-shadow: 0 0 5px var(--color-quantum-cyan); }
    100% { box-shadow: 0 0 20px var(--color-quantum-cyan), 0 0 40px rgba(0, 240, 255, 0.4); }
}

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

/* Initial States for Intersection Observer */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        min-height: 300px;
    }
    
    .video-overlay {
        background: linear-gradient(to bottom, rgba(5,5,5,0.8) 0%, rgba(5,5,5,0.6) 100%);
    }
}

@media (min-width: 993px) {
    /* Hide default cursor for desktop */
    body, a, button, input, textarea, select {
        cursor: none !important;
    }

    /* Custom Cursor */
    #custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 20px;
        height: 20px;
        background-color: #fff;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transform: translate(-50%, -50%) scale(1);
        transition: transform 0.15s ease-out;
        will-change: transform;
    }

    #custom-cursor.hovering {
        transform: translate(-50%, -50%) scale(2.5);
        background-color: var(--color-quantum-cyan);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
        mix-blend-mode: normal; /* Better visibility for cyan glow */
        opacity: 0.8;
    }
}

/* Neural Canvas Background */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}


@media (max-width: 768px) {
    .nav-links {
        display: none; /* Em um projeto real, adicionaríamos um menu hamburger aqui */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .step-marker {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .timeline-step {
        padding-left: 60px;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}
