/* Variables CSS */
:root {
    --primary-purple: #6366f1;
    --deep-purple: #4338ca;
    --neon-purple: #7c3aed;
    --electric-purple: #8b5cf6;
    --accent-cyan: #0ea5e9;
    --accent-pink: #d946ef;
    
    --dark-bg: #1a1a3a;
    --darker-bg: #141428;
    --card-bg: rgba(99, 102, 241, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(99, 102, 241, 0.2);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: radial-gradient(ellipse at top, #2a2a4a 0%, #1a1a3a 50%, #141428 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--neon-purple);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px var(--neon-purple);
}

.node:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.node:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.node:nth-child(3) { top: 80%; left: 30%; animation-delay: 2s; }
.node:nth-child(4) { top: 40%; left: 70%; animation-delay: 0.5s; }
.node:nth-child(5) { top: 10%; left: 90%; animation-delay: 1.5s; }

.connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    animation: flow 4s ease-in-out infinite;
    opacity: 0.3;
}

.connection:nth-child(6) {
    top: 20%;
    left: 10%;
    width: 200px;
    transform: rotate(45deg);
}

.connection:nth-child(7) {
    top: 60%;
    left: 30%;
    width: 300px;
    transform: rotate(-30deg);
    animation-delay: 1s;
}

.connection:nth-child(8) {
    top: 40%;
    left: 70%;
    width: 150px;
    transform: rotate(60deg);
    animation-delay: 2s;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-purple), var(--accent-cyan));
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 10%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes flow {
    0% { opacity: 0; }
    50% { opacity: 0.6; }
    100% { opacity: 0; }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    33% { 
        transform: translateY(-30px) rotate(120deg);
    }
    66% { 
        transform: translateY(15px) rotate(240deg);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(26, 26, 58, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--neon-purple));
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.logo-tech {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: -2px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-purple);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--neon-purple), var(--electric-purple));
    transition: width 0.3s ease;
}

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

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section - Sobre */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}



.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.highlight {
    background: linear-gradient(45deg, var(--neon-purple), var(--electric-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-purple), var(--neon-purple));
    color: white;
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--neon-purple);
    transform: translateY(-2px);
}

/* App Mockup */
.app-mockup {
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.mockup-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotateX(5deg) rotateY(-2deg);
    transition: all 0.3s ease;
}

.mockup-container:hover {
    transform: rotateX(0deg) rotateY(0deg);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.2);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.mockup-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f57; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #28ca42; }

.mockup-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.mockup-content {
    padding: 0;
    overflow: hidden;
}

.mockup-image {
    width: 100%;
    height: auto;
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 16px 16px;
    transition: all 0.3s ease;
}

.mockup-container:hover .dashboard-img {
    transform: scale(1.02);
}

/* Services Section */
.services {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--neon-purple);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(45deg, var(--neon-purple), var(--electric-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card-creative .service-icon { color: var(--accent-pink); }
.card-ai .service-icon { color: var(--neon-purple); }
.card-automation .service-icon { color: var(--accent-cyan); }
.card-dev .service-icon { color: var(--electric-purple); }

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-tech-stack span {
    padding: 0.3rem 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Videos Section */
.videos {
    padding: 6rem 0;
    position: relative;
}

.videos-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-card);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: all 0.3s ease;
}

.video-card:hover .video-thumbnail iframe {
    transform: scale(1.05);
}

.video-content {
    padding: 1.5rem;
}

.video-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.video-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-purple);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Innovation Cube */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.innovation-cube {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotateCube 20s linear infinite;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-purple), var(--neon-purple));
    border: 2px solid var(--electric-purple);
    opacity: 0.8;
}

.cube-face.front { transform: rotateY(0deg) translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #141428 0%, #2a2a4a 100%);
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--neon-purple);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--neon-purple);
    color: white;
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-container {
        padding: 0 1rem;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .mockup-container {
        transform: none;
        margin: 0 1rem;
    }

    .mockup-content {
        height: auto;
    }

    .dashboard-img {
        border-radius: 0 0 12px 12px;
    }

    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .videos {
        padding: 3rem 0;
    }

    .videos-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-thumbnail {
        height: 180px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .footer-main {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .innovation-cube {
        width: 150px;
        height: 150px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
    }

    .cube-face.front { transform: rotateY(0deg) translateZ(75px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(75px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(75px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(75px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(75px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
}

/* Scroll Animations */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.fade-in.animate {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

.slide-in-left.animate {
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-left.animate.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease;
}

.slide-in-right.animate {
    opacity: 0;
    transform: translateX(50px);
}

.slide-in-right.animate.visible {
    opacity: 1;
    transform: translateX(0);
}