:root {
    /* Light Theme (Default) */
    --primary: #6cc522;
    --primary-dark: #55a315;
    --primary-glow: rgba(108, 197, 34, 0.2);
    --bg-dark: #f0f2f5;
    --bg-card: #ffffff;
    --text-light: #1a1a1a;
    --text-gray: #555555;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);

    /* Global Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    --primary-glow: rgba(108, 197, 34, 0.4);
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(108, 197, 34, 0.05) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
    opacity: 0.5;
}

[data-theme="dark"] .bg-gradient {
    opacity: 1;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

[data-theme="dark"] .bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.highlight {
    color: var(--primary);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-left: 15px;
    cursor: pointer;
}

[data-theme="dark"] .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--text-light);
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mt-4 {
    margin-top: 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="dark"] .navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.9);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    padding: 5px;
    transition: color 0.3s ease;
}

.theme-btn:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 50px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background-color: rgba(108, 197, 34, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(108, 197, 34, 0.3);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Code Block Visual */
.code-block {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .code-block {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.code-block:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.code-body pre {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.keyword {
    color: #569cd6;
}

.class-name {
    color: #4ec9b0;
}

.string {
    color: #ce9178;
}

.function {
    color: #dcdcaa;
}

.this {
    color: #569cd6;
}

.return {
    color: #c586c0;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
}

/* About Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .about-card {
    box-shadow: none;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.about-card p {
    color: var(--text-gray);
}

/* Map-Os Section */
.produto-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #e8f5df 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .produto-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(108, 197, 34, 0.05) 100%);
}

.produtos-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
}

.produto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.produto-wrapper.active-slide {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    position: relative;
    z-index: 10;
}

.subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.produto-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.produto-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.feature-list li i {
    color: var(--primary);
    margin-right: 15px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.icon-large {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

[data-theme="dark"] .icon-large {
    color: var(--text-light);
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
    position: relative;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .slider-dot {
    background-color: #444;
}

.slider-dot.active[data-target="slide-mapos"] {
    background-color: var(--primary);
    transform: scale(1.3);
}

.slider-dot.active[data-target="slide-geraction"] {
    background-color: #6366f1;
    transform: scale(1.3);
}

.btn-geraction {
    display: inline-block;
    padding: 12px 30px;
    background-color: #6366f1;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid #6366f1;
    cursor: pointer;
}

.btn-geraction:hover {
    background-color: transparent;
    color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Footer (Redesigned) */
.footer {
    background-color: #080808;
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

[data-theme="light"] .footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

[data-theme="light"] .footer-brand h3 {
    background: linear-gradient(90deg, #111, #555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .header-logo {
    filter: brightness(0) invert(1);
}

.header-logo {
    width: 170px;
    height: auto;
    display: block;
}

.produto-preview {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.produto-preview:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.footer-logo {
    width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 300px;
    line-height: 1.6;
}

[data-theme="light"] .footer-brand p {
    color: #555;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

[data-theme="light"] .social-links a {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-links h4,
.footer-info h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

[data-theme="light"] .footer-links h4,
[data-theme="light"] .footer-info h4,
[data-theme="light"] .footer-contact h4 {
    color: #000;
}

.footer-links h4::before,
.footer-info h4::before,
.footer-contact h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

[data-theme="light"] .footer-links a {
    color: #555;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-info p,
.footer-contact p {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .footer-info p,
[data-theme="light"] .footer-contact p {
    color: #555;
}

.footer-info p strong {
    color: #ccc;
    margin-bottom: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="light"] .footer-info p strong {
    color: #333;
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 1px dashed rgba(108, 197, 34, 0.3);
    padding-bottom: 2px;
}

.email-link:hover {
    color: #fff;
    border-color: transparent;
}

[data-theme="light"] .email-link:hover {
    color: #000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.85rem;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #888;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-container,
    .mapos-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero {
        padding-top: 100px;
        /* More space for fixed header */
        height: auto;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .code-block {
        display: none;
        /* Simplify for mobile, or better: make it static */
    }

    .hero-visual {
        display: none;
        /* Hiding visual to focus on content in mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hide off-screen */
        width: 80%;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--glass-border);
        padding: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        /* Above nav-links */
    }

    .theme-btn {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }
}