:root {
    --color-primary-bg: #080808;
    --color-secondary-bg: #121212;
    --color-tertiary-bg: #1C1C1C;
    --color-accent-white: #F6F7FC;
    --color-text-light: #B0B0B0;
    --color-text-lighter: #FFFFFF;
    --color-border: #333333;
    --color-whatsapp-green: #25D366;
    --color-whatsapp-dark-green: #128C7E;
    --color-purple: #8A2BE2;
    --color-neon-white: #F6F7FC;
    --color-neon-green: #25D366;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-primary-bg);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.scrollbar-track, .scrollbar-thumb, .scrollbar-track-y {
    display: none !important;
}

h1, .header-logo {
    font-family: 'Orbitron', sans-serif;
    transition: transform 0.5s ease-in-out, text-shadow 0.5s ease-in-out, color 0.5s ease-in-out;
}

.header-logo:hover {
    text-shadow: 0 0 4px var(--color-neon-white),
                 0 0 8px rgba(246, 247, 252, 0.5),
                 0 0 12px rgba(246, 247, 252, 0.3);
    transform: scale(1.02);
}

h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
}

.navbar-floating {
    background-color: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: header-bg-pulse 10s infinite alternate;
}

@keyframes header-bg-pulse {
    0% { background-color: rgba(8, 8, 8, 0.95); }
    100% { background-color: rgba(20, 20, 20, 0.95); }
}

.header-link-animation {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.header-link-animation::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-white);
    transition: width 0.3s ease-in-out;
}

.header-link-animation:hover::before {
    width: 100%;
}

.header-link-animation:hover {
    transform: scale(1.02);
}

.header-link-animation.clicked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(246, 247, 252, 0.2);
    animation: click-flash 0.3s ease-out forwards;
}

@keyframes click-flash {
    0% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.2); }
}

.hero-background {
    background-color: rgba(8, 8, 8, 0.7);
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 75vh;
    padding-top: 12rem;
    padding-bottom: 4rem;
}

.whatsapp-button {
    background: linear-gradient(45deg, var(--color-whatsapp-green), var(--color-whatsapp-dark-green));
    color: var(--color-text-lighter);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5),
                0 0 20px rgba(37, 211, 102, 0.3),
                0 0 30px rgba(37, 211, 102, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.whatsapp-button:hover {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.8),
                0 0 30px rgba(37, 211, 102, 0.6),
                0 0 45px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.card {
    background-color: var(--color-tertiary-bg);
    border: 1px solid var(--color-border);
    box-shadow: none;
    position: relative;
    will-change: transform;
}

.card-interactive {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.card-interactive.appear {
    opacity: 1;
    transform: scale(1);
}

.card-interactive.appear:hover {
    box-shadow: 0 0 10px rgba(246, 247, 252, 0.5),
                0 0 20px rgba(246, 247, 252, 0.3),
                0 0 30px rgba(246, 247, 252, 0.2);
    transform: scale(1.05);
    border-color: var(--color-accent-white);
    z-index: 10;
}

.neon-interactive-element {
    transition: all 0.3s ease-in-out;
    box-shadow: none;
}

.neon-interactive-element:hover {
    box-shadow: 0 0 10px rgba(246, 247, 252, 0.5),
                0 0 20px rgba(246, 247, 252, 0.3),
                0 0 30px rgba(246, 247, 252, 0.2);
    transform: scale(1.03);
}

.timeline-line {
    background-color: var(--color-accent-white);
}
.timeline-step-marker {
    background-color: var(--color-accent-white);
    border: 4px solid var(--color-text-lighter);
    box-shadow: 0 0 0 6px var(--color-primary-bg);
    color: var(--color-primary-bg);
    transition: all 0.3s ease-in-out;
}

.timeline-step-marker.active {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 0 6px var(--color-primary-bg), 0 0 10px var(--color-accent-white);
}
.timeline-step-marker:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 0 6px var(--color-primary-bg), 0 0 15px var(--color-accent-white);
}

.project-card .p-6 {
    background-color: var(--color-tertiary-bg);
}
.project-image-container {
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.scroll-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.scroll-image {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-image-container:hover .scroll-image {
    transition: transform 20s ease-out;
}

.scroll-image-container .scroll-image {
    transition: transform 5s ease-out;
}

.client-logo {
    filter: grayscale(90%) brightness(140%);
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
}
.client-logo:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
    transform: scale(1.1);
}

footer {
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    z-index: 1;
}

#interactive-background {
    z-index: -1;
}

::-webkit-scrollbar {
    width: 14px;
}
::-webkit-scrollbar-track {
    background: var(--color-secondary-bg);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent-white);
    border-radius: 10px;
    border: 4px solid var(--color-secondary-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: #e0e0e0;
}

section {
    background-color: rgba(8, 8, 8, 0.7);
}

.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-16 { margin-top: 4rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.cta-section {
    background-color: rgba(8, 8, 8, 0.7);
    box-shadow: none;
    padding-top: 8rem;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}

#testimonial-carousel {
    min-height: 250px;
    position: relative;
}
.testimonial-item {
    background-color: var(--color-tertiary-bg);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
}
.testimonial-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}
.testimonial-dot {
    transition: all 0.3s ease-in-out;
}
.testimonial-dot:hover {
    transform: scale(1.5);
    background-color: #e0e0e0;
}

.logo-marquee-container {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    -webkit-mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    width: 100%;
}

.logo-marquee {
    display: flex;
    flex-shrink: 0;
    padding-right: 20px;
    animation: marquee-scroll 30s linear infinite;
}

.logo-marquee img {
    height: 90px;
    width: auto;
    margin-right: 4rem;
    display: block;
    filter: grayscale(90%) brightness(140%);
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
}

.logo-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.laptop-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    max-width: 700px;
    margin-left: -5%;
    margin-right: auto;
    background-color: var(--color-primary-bg);
    z-index: 2;
}

.laptop-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to top, var(--color-primary-bg) 0%, transparent 100%);
    z-index: 3;
}

.laptop-image-container img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
}

#quem-somos {
    position: relative;
    overflow: hidden;
}

.quem-somos-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.portfolio-gallery-container {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-white) var(--color-secondary-bg);
    padding-bottom: 1rem;
    position: relative;
    white-space: nowrap;
}

.portfolio-gallery-container::-webkit-scrollbar {
    height: 12px;
}
.portfolio-gallery-container::-webkit-scrollbar-track {
    background: var(--color-tertiary-bg);
    border-radius: 10px;
}
.portfolio-gallery-container::-webkit-scrollbar-thumb {
    background: var(--color-accent-white);
    border-radius: 10px;
    border: 3px solid var(--color-tertiary-bg);
}

.portfolio-gallery {
    display: inline-flex;
    gap: 2.5rem;
    padding: 1rem;
}

.portfolio-gallery .project-card {
    flex: 0 0 auto;
    width: 320px;
}

.faq-item.active .faq-question {
    color: var(--color-accent-white);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.whatsapp-floating-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(45deg, var(--color-whatsapp-green), var(--color-whatsapp-dark-green));
    color: var(--color-text-lighter);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5),
                0 0 20px rgba(37, 211, 102, 0.3),
                0 0 30px rgba(37, 211, 102, 0.2);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.whatsapp-floating-button:hover {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.8),
                0 0 30px rgba(37, 211, 102, 0.6),
                0 0 45px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px) scale(1.05);
}

#mobile-menu-button {
    transition: all 0.3s ease-in-out;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobile-menu-button .fa-bars {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease-in-out;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: currentColor;
}

#mobile-menu-button .fa-bars::before,
#mobile-menu-button .fa-bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s ease-in-out;
}

#mobile-menu-button .fa-bars::before {
    top: -8px;
}

#mobile-menu-button .fa-bars::after {
    bottom: -8px;
}

#mobile-menu-button.menu-open .fa-bars {
    background-color: transparent;
}

#mobile-menu-button.menu-open .fa-bars::before {
    top: 0;
    transform: rotate(45deg);
}

#mobile-menu-button.menu-open .fa-bars::after {
    bottom: 0;
    transform: rotate(-45deg);
}

@media (max-width: 1023px) {
    #mobile-menu {
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    
    #mobile-menu:not(.hidden) {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

@media (max-width: 767px) {
    #o-que-fazemos .grid,
    #portfolio-section .grid,
    #processo-criacao .flex,
    #tempo-preco .flex {
        gap: 1rem !important;
    }
}

@media (min-width: 768px) {
    .quem-somos-content {
        flex-direction: row;
        text-align: left;
        justify-content: center;
        align-items: flex-start;
    }
    .quem-somos-content .flex-1 {
        padding-left: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-background {
        padding-top: 8rem; 
    }
    
    .laptop-image-container {
        margin-left: 0; 
        max-width: 100%; 
        padding: 0 1rem; 
    }
    
    .laptop-image-container img {
        width: 100%;
        margin: 0 auto; 
        display: block;
    }
    
    .md\:w-\[50\%\] {
        width: 100% !important; 
    }
}

.whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
}

#contato-lead {
    background-color: rgba(8, 8, 8, 0.7);
}

#contato-lead .bg-\[var\(--color-secondary-bg\)\] {
    background-color: rgba(18, 18, 18, 0.8);
    border-radius: 1.5rem;
    transition: all 0.3s ease-in-out;
}

#contato-lead input,
#contato-lead textarea {
    border-radius: 0.75rem;
    transition: all 0.3s ease-in-out;
}

#contato-lead input:focus,
#contato-lead textarea:focus {
    border-color: var(--color-neon-white);
    box-shadow: 0 0 8px rgba(246, 247, 252, 0.6),
                0 0 12px rgba(246, 247, 252, 0.4);
}

.form-submit-button {
    background: linear-gradient(45deg, var(--color-whatsapp-green), var(--color-whatsapp-dark-green));
    color: var(--color-text-lighter);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5),
                0 0 20px rgba(37, 211, 102, 0.3),
                0 0 30px rgba(37, 211, 102, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 9999px;
}

.form-submit-button:hover {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.8),
                0 0 30px rgba(37, 211, 102, 0.6),
                0 0 45px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(45deg, var(--color-whatsapp-dark-green), var(--color-whatsapp-green));
}

@keyframes pulse-light {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 211, 102, 0),
                    0 0 0 rgba(18, 140, 126, 0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 8px var(--color-whatsapp-green),
                    0 0 12px var(--color-whatsapp-dark-green),
                    0 0 16px var(--color-whatsapp-green);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 211, 102, 0),
                    0 0 0 rgba(18, 140, 126, 0);
    }
}
.pulse-animation {
    animation: pulse-light 2s infinite ease-in-out;
}
.testimonial-avatar {
    border: 2px solid var(--color-neon-white);
    box-shadow: 0 0 5px rgba(246, 247, 252, 0.6),
                0 0 8px rgba(246, 247, 252, 0.4);
}
