/* L2E Tecnologia Rodoviária - Premium Recovery Styles (V4) */

:root {
    --primary: #0EA5E9;
    --primary-glow: rgba(14, 165, 233, 0.4);
    --secondary: #7C3AED;
    --secondary-glow: rgba(124, 58, 237, 0.4);
    --bg-dark: #010413;
    --bg-card: rgba(15, 23, 42, 0.4); 
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-white: #f8fafc;
    --text-gray: #a1a1aa;
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Effect */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8; /* Adjusted for better visibility */
}

/* Utilities */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--primary-glow);
    background: #0ea5e9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-large {
    padding: 1.1rem 2.2rem;
    font-size: 1.1rem;
}

.btn-gradient {
    background: var(--gradient-main);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(1, 4, 19, 0.9) 0%, transparent 100%);
    overflow: visible; /* Allow dropdown to be seen */
}

header.scrolled {
    background: rgba(1, 4, 19, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem 0;
}

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

.nav-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(1, 4, 19, 0.3), rgba(1, 4, 19, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    max-width: 650px;
    margin-bottom: 4rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

/* General Section Spacing */
section {
    padding: 12rem 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.visual-wrapper {
    position: relative;
    padding: 0;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 800;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.about-stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.mini-stat h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.mini-stat p {
    font-size: 0.9rem;
    margin: 0;
}

/* Services V4 - Cards Side by Side */
.services {
    padding: 12rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.services-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 2.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

.icon-box {
    width: 60px; height: 60px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Tech / Projects / Results */
.tech-section, .projects, .results {
    padding: 8rem 0;
}

.tech-main-img {
    width: 100%;
    border-radius: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project-img img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.results {
    background: var(--gradient-main);
    padding: 6rem 0;
    color: white;
    text-align: center;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.stat-item .counter {
    font-size: 4rem;
    font-weight: 800;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    padding: 0;
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: rgba(255, 255, 255, 0.02);
}

.contact-form {
    padding: 4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
}

/* Footer REDESIGN V4 */
footer {
    padding: 6rem 0 2rem;
    background: #00020a;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: center;
    gap: 10rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 2rem;
}

.footer-col-brand p {
    color: var(--text-gray);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-top h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.footer-links-clean {
    list-style: none;
}

.footer-links-clean li {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links-clean a {
    text-decoration: none;
    color: var(--text-gray);
    transition: var(--transition);
}

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

.social-flex {
    display: flex;
    gap: 1.5rem;
}

.social-flex a {
    color: var(--text-gray);
    transition: var(--transition);
}

.social-flex a:hover {
    color: var(--primary);
}

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

/* Scroll Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .split-layout, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }
    .services-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-wrapper {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .project-card {
        text-align: center;
        padding: 0 1rem;
    }
    
    .project-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .project-location {
        justify-content: center;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 4rem;
    }
    
    .stat-item .counter {
        font-size: 3.5rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    /* Mobile Menu Restyling */
    .nav-links {
        position: absolute;
        top: 80px;
        right: 20px;
        width: 280px;
        height: auto;
        padding: 2.5rem 1.5rem;
        background: rgba(1, 4, 19, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        z-index: 2000;
        border-radius: 24px;
        border: 1px solid var(--primary);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(14, 165, 233, 0.2);
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
    }
    
    .nav-links.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        color: #ffffff;
        padding: 0.8rem;
        display: block;
        width: 100%;
        border-radius: 12px;
        transition: var(--transition);
    }
    
    .nav-links a:hover {
        background: rgba(14, 165, 233, 0.1);
        color: var(--primary);
    }

    .menu-toggle {
        display: block;
        z-index: 2001;
        position: relative;
    }
    
    /* Subtle Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent; /* Removed dark background as requested */
        z-index: 1999;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
    }
    .menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* Footer Mobile Alignment (Fully Centered as requested) */
    .footer-links-clean {
        text-align: center;
    }
    
    .footer-col-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo {
        margin-bottom: 1.5rem;
    }
}
