:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --primary-dark: #4c1d95;
    --secondary: #9333ea;
    --dark: #0f172a;
    --darker: #0a0f1c;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--darker);
    color: var(--text);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

html, body {
  overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Fundo de estrelas */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/stars-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y;
    z-index: -3;
}

.stars-bg-2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/stars-bg-2.svg');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y;
    z-index: -2;
}

.card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    transition: all 0.3s ease;
}

.sticky-cta:hover {
    transform: scale(1.05);
}

.glow {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
    to { box-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 30px rgba(147, 51, 234, 0.6); }
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 0%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Correção para o Swiper e cards de depoimentos */
.testimonialSwiper {
    overflow: visible !important;
    padding: 20px 0 40px 0;
}

.swiper-wrapper {
    padding-top: 20px !important;
    padding-bottom: 40px !important;
}

.swiper-slide {
    overflow: visible !important;
    padding: 10px;
    transition: all 0.3s ease;
}

.testimonial-card {
    transition: all 0.5s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-origin: center center;
    will-change: transform;
}

.swiper-slide:hover {
    z-index: 10;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 15, 28, 0.3), rgba(10, 15, 28, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.count-up {
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--primary-light);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-light);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.3;
}

.planet {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
    background: radial-gradient(circle at 30% 30%, var(--primary), var(--darker));
}

.rocket {
    animation: rocket 5s ease-in-out infinite;
}

@keyframes rocket {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.shooting-star {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px white;
    animation: shooting 8s linear infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes shooting {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate(500px, 250px); opacity: 0; }
}

/* Swiper Styles */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
  top: 65%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.8rem;
  font-weight: bold;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-menu.active {
  transform: translateX(0);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Seções */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: visible;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

/* Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Preços */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* FAQ */
.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    cursor: pointer;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 1rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--dark);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Bot */
#chatBot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

#chatBot.active {
    display: block;
}

#chatHeader {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatMessages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--dark);
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
}

.bot .message-content {
    background-color: var(--dark);
    border-bottom-left-radius: 5px;
}

.user .message-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-bottom-right-radius: 5px;
}

#chatInputArea {
    display: flex;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chatInput {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: var(--dark);
    color: white;
    outline: none;
}

#sendMessage {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chatToggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.option-btn {
    background-color: var(--dark);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    #chatBot {
        width: 300px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--dark);
        transition: right 0.3s ease;
        z-index: 100;
        padding: 2rem;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-menu .nav-link {
        display: block;
        margin: 1.5rem 0;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    #chatBot {
        width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    #chatToggle {
        bottom: 20px;
        right: 20px;
    }
}

