:root {
    /* Premium Color Palette */
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --primary-color: #00ff88;
    /* Neon Green */
    --secondary-color: #00ccff;
    /* Cyan */
    --accent-gold: #ffd700;
    /* Subtle Gold */
    --text-light: #ffffff;
    --text-dim: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-ui: 'Rajdhani', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Canvas Overlay for 3D Animation */
.circuit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
}

/* Typography Overrides - Reduced Sizes */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-weight: 300;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

/* Layout Utilities - Reduced Padding */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    /* Ensure content is above canvas */
}

/* Header Glassmorphism */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    transition: all 0.3s;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Text Style (Flashy Neon) */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* Reduced size */
    font-weight: 900;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    transition: all 0.3s;
}

.logo-text span {
    color: var(--primary-color);
}

.logo-text:hover {
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.9), 0 0 10px rgba(0, 204, 255, 0.8);
    transform: scale(1.05);
}

/* Navigation */
.nav-links {
    display: flex;
    list-style: none;
    background: transparent;
    /* Remove solid bg */
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-family: var(--font-ui);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    background-color: var(--secondary-color);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s;
    z-index: -1;
}

.cta-button:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.cta-button:hover::before {
    left: 0;
}

/* Services Zig-Zag Layout */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

.service-row-premium {
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    /* Add blur to sections */
}

.service-row-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.service-row-premium:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-row-premium:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px var(--primary-color);
}

.service-row-premium.reverse {
    flex-direction: row-reverse;
}

.service-row-premium.reverse::before {
    left: auto;
    right: 0;
}

.service-content-premium {
    flex: 1;
}

.service-content-premium h3 {
    margin-bottom: 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-content-premium h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-content-premium p {
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features-list {
    list-style: none;
    margin-top: 15px;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-family: var(--font-ui);
    font-size: 1rem;
}

.service-features-list li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.service-image-premium {
    flex: 1;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

.service-image-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-row-premium:hover .service-image-premium img {
    transform: scale(1.05);
}

/* Nexus Feature Section */
.nexus-feature {
    /* Make transparent to show 3D background */
    background: rgba(8, 16, 12, 0.8);
    display: flex;
    align-items: center;
    min-height: 60vh;
    backdrop-filter: blur(5px);
}

.nexus-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.nexus-info {
    flex: 1;
}

.nexus-info h2 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.nexus-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: var(--font-ui);
    margin-bottom: 20px;
}

.nexus-info p {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    max-width: 500px;
}

.nexus-stats {
    display: flex;
    gap: 30px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--text-light);
    font-family: var(--font-heading);
}

.stat-item span {
    color: var(--text-dim);
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.nexus-graphic {
    flex: 1;
    position: relative;
}

.nexus-graphic img {
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0 0 50px rgba(0, 255, 136, 0.1));
    animation: float 6s ease-in-out infinite;
}

/* About Section */
.about-premium {
    display: flex;
    gap: 60px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.about-text-premium {
    flex: 1;
}

.about-text-premium h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text-premium p {
    margin-bottom: 15px;
    color: var(--text-dim);
    font-size: 1rem;
}

/* --- ESTILO NOVO PARA IMAGEM DO LANDELL --- */
.about-image-premium {
    flex: 1;
    /* Mantém o layout flexível */
    position: relative;
    z-index: 1;
    /* Moldura "Tech" usando cor secundária (Ciano) */
    border: 2px solid rgba(0, 204, 255, 0.3);
    padding: 6px;
    /* Espaço entre borda e foto */
    border-radius: 4px;
    /* Brilho suave inicial */
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.15), inset 0 0 10px rgba(0, 204, 255, 0.1);
    background: rgba(0, 20, 40, 0.5);
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

/* Efeito de Luz no Canto */
.about-image-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.1) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
}

/* Efeito de Grade Digital (Scanlines) */
.about-image-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 204, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 204, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
}

/* A Imagem em si */
.about-image-premium img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    /* Filtro para integrar a foto antiga ao tema futurista */
    filter: contrast(1.1) brightness(0.9) grayscale(20%) sepia(10%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Efeitos Hover (Passar o Mouse) --- */
.about-image-premium:hover {
    border-color: rgba(0, 204, 255, 0.8);
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.4), inset 0 0 20px rgba(0, 204, 255, 0.2);
}

.about-image-premium:hover img {
    /* Cores vivas e zoom */
    filter: contrast(1.2) brightness(1.1) grayscale(0%) sepia(0%);
    transform: scale(1.05);
}

/* Contact Section */
.contact-premium {
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border: 1px solid var(--glass-border);
    margin-top: 40px;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.contact-form-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.contact-form-premium input,
.contact-form-premium textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s;
    border-radius: 4px;
}

.contact-form-premium input:focus,
.contact-form-premium textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

/* Footer */
footer {
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 968px) {

    .service-row-premium,
    .service-row-premium.reverse {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }

    .service-image-premium {
        width: 100%;
        height: 200px;
    }

    .hero h1 {
        font-size: 1.8rem;
        /* Further reduced for mobile */
        line-height: 1.2;
        margin-top: 20px;
        /* Add space from header */
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    .nexus-container,
    .about-premium {
        flex-direction: column;
    }

    .about-premium {
        padding: 20px;
        /* Reduce padding */
    }

    .about-text-premium h2 {
        font-size: 2rem;
    }

    .nexus-info h2 {
        font-size: 2rem;
    }

    .nexus-graphic img {
        max-width: 100%;
    }

    .contact-form-premium {
        grid-template-columns: 1fr;
    }

    /* Segments Section Mobile */
    #segments .container>div {
        flex-direction: column;
        align-items: center;
    }

    .segment-card {
        width: 100%;
        max-width: 300px;
    }

    /* Differentials Grid Mobile */
    #differentials .container>div {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
        position: absolute;
        /* Absolute positioning */
        right: 20px;
        top: 15px;
    }

    /* Ensure header doesn't overflow and logo is visible */
    .header-content {
        padding: 0 20px;
        position: relative;
        /* Context for absolute menu */
        height: 60px;
        /* Fixed height for mobile header */
    }

    .logo-text {
        font-size: 1.2rem;
        /* Smaller logo */
        z-index: 1002;
        /* Ensure logo is above if needed */
        max-width: 70%;
        /* Prevent overlap with menu */
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Mission Vision Values Grid */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.mvv-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.mvv-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.mvv-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mvv-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Contact Info Section */
.contact-premium {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-premium {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-premium h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.info-item strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 5px;
    font-family: var(--font-ui);
}

.info-item p,
.info-item a {
    color: var(--text-dim);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-premium {
        grid-template-columns: 1fr;
    }
}