/* Otimizações de Performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #8a2be2;
    --primary-dark: #6a1cb2;
    --primary-light: #9b4de3;
    --dark-color: #121212;
    --dark-light: #1e1e1e;
    --text-color: #ffffff;
    --text-muted: #b3b3b3;
    --card-bg: #1e1e1e;
    --card-border: rgba(255, 255, 255, 0.1);
}

/* Otimizações de Renderização */
html {
    scroll-behavior: smooth;
    will-change: scroll-position;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
    text-rendering: optimizeLegibility;
}

/* Otimizações de Imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
    will-change: transform;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--dark-light);
    transform: translateX(0);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.sidebar:not(.active) {
    width: 60px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-content {
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-social {
    margin-top: auto;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-social a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.sidebar-social a:hover {
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar:not(.active) {
        transform: translateX(-100%);
    }

    .sidebar:not(.active) .sidebar-nav {
        display: none;
    }
}

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .sidebar:not(.active) {
        width: 60px;
    }

    .sidebar:not(.active) .sidebar-nav {
        display: block;
    }

    .sidebar:not(.active) .nav-item span {
        display: none;
    }

    .sidebar:not(.active) .nav-item {
        justify-content: center;
        padding: 12px;
    }

    .sidebar:not(.active) .nav-item i {
        margin-right: 0;
    }

    .sidebar:not(.active) .sidebar-social {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }
}

.sidebar:not(.active) .sidebar-social {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar.active .sidebar-social {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.btn-close-sidebar:hover {
    transform: rotate(90deg);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.nav-item:hover, .nav-item.active {
    background: var(--primary-color);
    color: var(--text-color);
}

.sidebar-social {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
}

.social-icon.whatsapp-icon {
    background: #25D366;
}

.social-icon.whatsapp-icon::before {
    background: #128C7E;
}

.social-icon.facebook-icon {
    background: #1877F2;
}

.social-icon.facebook-icon::before {
    background: #0D5AB9;
}

.social-icon.instagram-icon {
    background: #E4405F;
}

.social-icon.instagram-icon::before {
    background: #C13584;
}

.social-icon.linkedin-icon {
    background: #0A66C2;
}

.social-icon.linkedin-icon::before {
    background: #004182;
}

.social-icon.github-icon {
    background: #333333;
}

.social-icon.github-icon::before {
    background: #24292E;
}

@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
        padding-top: 0;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .sidebar.active {
        width: 280px;
    }
    
    .sidebar:not(.active) {
        width: 60px;
    }
    
    .main-content.sidebar-closed {
        margin-left: 60px;
        width: calc(100% - 60px);
    }

    /* Mini Sidebar */
    .sidebar:not(.active) .sidebar-header {
        padding: 15px 10px;
        justify-content: center;
    }

    .sidebar:not(.active) .sidebar-logo {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

    .sidebar:not(.active) .sidebar-content {
        padding: 10px;
    }

    .sidebar:not(.active) .nav-item {
        padding: 12px;
        justify-content: center;
    }

    .sidebar:not(.active) .nav-item span {
        display: none;
    }

    .sidebar:not(.active) .nav-item i {
        margin-right: 0;
        font-size: 1.2rem;
    }

    .sidebar:not(.active) .sidebar-social {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .sidebar:not(.active) .social-icon {
        width: 40px;
        height: 40px;
    }

    .sidebar:not(.active) .btn-close-sidebar {
        display: none;
    }

    /* Sidebar Toggle */
    .sidebar-toggle {
        display: none;
    }
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: var(--dark-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    color: var(--text-color);
}

.btn-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.btn-menu:hover {
    transform: scale(1.1);
}

.mobile-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 992px) {
    .mobile-header {
        display: none;
    }
}

/* Main Content */
.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    transition: all 0.3s ease;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1;
}

.sidebar:not(.active) + .main-content {
    margin-left: 60px;
    width: calc(100% - 60px);
}

@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* Body */
body.sidebar-open {
    overflow-y: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-dark) 100%);
    color: var(--text-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(138, 43, 226, 0.3) 100%);
    opacity: 0.8;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 20px;
}

.hero-image {
    text-align: center;
    padding: 20px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0;
        height: 125vh;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Stats Section */
.stats-section {
    background: var(--dark-light);
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.stat-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Service Cards */
.service-card {
    background: var(--dark-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.service-features li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.service-features li:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-card:hover .feature-list li {
    color: var(--text-color);
}

.service-card:hover .feature-list li i {
    transform: scale(1.2);
    color: var(--primary-light);
}

@media (max-width: 991.98px) {
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
}

/* Tech Cards */
.tech-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.tech-icon i {
    font-size: 2.5rem;
    color: var(--text-color);
}

.tech-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Portfolio Filters */
.portfolio-filters {
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-buttons .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.filter-buttons .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Portfolio Grid */
.portfolio-grid {
    position: relative;
}

.portfolio-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.portfolio-item.hide {
    opacity: 0;
    transform: scale(0.95);
    position: absolute;
    pointer-events: none;
}

/* Portfolio Card */
.portfolio-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 400px;
    background: var(--dark-light);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.portfolio-image {
    position: relative;
    padding-top: 70%;
    overflow: hidden;
    height: 100%;
}

.category-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-highlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.portfolio-category {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--text-color);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 100%;
    padding: 2rem;
}

.portfolio-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.overlay-content p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.tech-tags span {
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.portfolio-card:hover .tech-tags span {
    background: rgba(255,255,255,0.2);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

.btn-outline-light:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .portfolio-category {
        font-size: 1.2rem;
    }
    
    .overlay-content h4 {
        font-size: 1.2rem;
    }
    
    .overlay-content p {
        font-size: 0.9rem;
    }
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    background: var(--card-bg);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    border: 1px solid var(--card-border);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
}

.swiper-pagination-bullet {
    background: var(--text-muted) !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.testimonial-content {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    background: var(--dark-color);
    border: 1px solid var(--card-border);
}

.testimonial-content i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Contact Section */
.contact-info {
    padding: 30px;
    background: var(--dark-light);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-method i {
    width: 40px;
    height: 40px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

/* Footer */
.footer {
    background: var(--dark-light);
    border-top: 1px solid var(--card-border);
    padding: 3rem 0 1.5rem;
}

.footer-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.footer-title {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-contact li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--dark-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 991.98px) {
    .footer {
        text-align: center;
    }
    .footer-logo {
        margin-left: 125px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
    
    .service-card, .portfolio-card, .testimonial-card {
        margin-bottom: 30px;
    }
    
    .contact-form {
        margin-top: 30px;
    }
    
    .portfolio-slider {
        padding: 10px 0;
    }
    
    .portfolio-card {
        margin: 0 10px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* Form Controls */
.form-control, .form-select {
    background: var(--dark-color);
    border: 1px solid var(--card-border);
    color: var(--text-color);
}

.form-control:focus, .form-select:focus {
    background: var(--dark-color);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color);
}

/* Badges */
.badge.bg-primary {
    background: var(--primary-color) !important;
}

/* Text Colors */
.text-muted {
    color: var(--text-muted) !important;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    color: white;
    font-size: 32px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark-light);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
}

.chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: 15px;
    background: var(--dark-light);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-border);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-title i {
    font-size: 20px;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.chat-close:hover {
    transform: rotate(90deg);
}

.chat-body {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

.chat-message.bot {
    align-self: flex-start;
    background: var(--primary-dark);
    color: white;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    background: var(--dark-color);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 8px;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-widget {
        width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
    }
}

/* Depoimentos */
.testimonial {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial p::before {
    content: '"';
    font-size: 3rem;
    color: #8a2be2;
    opacity: 0.2;
    position: absolute;
    left: -0.5rem;
    top: -1rem;
}

.testimonial footer {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: right;
}

@media (max-width: 991.98px) {
    .testimonial {
        margin-bottom: 1.5rem;
    }
}

/* Hero Illustration */
.code-illustration {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Browser Window */
.browser-window {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.browser-header {
    height: 40px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #3d3d3d;
}

.browser-controls {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.browser-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.browser-controls span:nth-child(2) {
    background: #ffbd2e;
}

.browser-controls span:nth-child(3) {
    background: #27c93f;
}

.browser-url {
    flex: 1;
    height: 24px;
    background: #1e1e1e;
    border-radius: 4px;
    padding: 0 10px;
    color: #888;
    font-size: 12px;
    display: flex;
    align-items: center;
}

/* Code Editor */
.code-editor {
    height: calc(100% - 40px);
    background: #1e1e1e;
    padding: 15px;
}

.editor-header {
    height: 30px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.file-name {
    color: #888;
    font-size: 12px;
    padding: 0 10px;
}

.editor-content {
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
}

.editor-content pre {
    margin: 0;
    padding: 10px;
}

.editor-content code {
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-tag,
.floating-code {
    position: absolute;
    color: rgba(255,255,255,0.1);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    animation: float 6s ease-in-out infinite;
}

.floating-tag:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-tag:nth-child(2) {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
}

.floating-tag:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.floating-code:nth-child(4) {
    top: 20%;
    right: 5%;
    animation-delay: 0.5s;
}

.floating-code:nth-child(5) {
    bottom: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-code:nth-child(6) {
    bottom: 10%;
    right: 5%;
    animation-delay: 2.5s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@media (max-width: 991.98px) {
    .code-illustration {
        height: 300px;
    }
    
    .browser-window {
        width: 90%;
    }
    
    .editor-content code {
        font-size: 12px;
    }
}

/* Sidebar Toggle */
.sidebar-toggle {
    position: fixed;
    left: 280px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    margin-left: -1px;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    width: 45px;
}

.sidebar-toggle i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.sidebar-toggle.active i {
    transform: rotate(180deg);
}

.sidebar:not(.active) + .sidebar-toggle {
    left: 60px;
}

@media (max-width: 991.98px) {
    .sidebar-toggle {
        display: none;
    }
}

.sidebar-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sidebar:not(.active) .sidebar-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

/* Sections */
section {
    position: relative;
    width: 100%;
    padding: 5rem 0;
    overflow: visible;
    z-index: 1;
    background-color: var(--dark-color);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 1;
}

.stats-section {
    background: var(--dark-light);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

/* Row */
.row {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.row > * {
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.chat-button i {
    font-size: 1.5rem;
}

/* Ajuste do Back to Top para não sobrepor */
.back-to-top {
    bottom: 20px;
}

/* Ajuste do Browser Window no Mobile */
@media (max-width: 991.98px) {
    .hero-section .code-illustration {
        margin-top: 80px;
    }
}

/* Custom Accordion Styles */
.custom-accordion .accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.custom-accordion .accordion-button {
    background-color: #f8f9fa;
    color: #333;
    padding: 1.25rem;
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #6f42c1;
    color: #fff;
}

.custom-accordion .accordion-button:not(.collapsed) .text-primary {
    color: #fff !important;
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: #6f42c1;
}

.custom-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.custom-accordion .accordion-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
    color: #333;
}

.custom-accordion .accordion-body ul,
.custom-accordion .accordion-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.custom-accordion .accordion-body li {
    margin-bottom: 0.5rem;
    color: #666;
}

.custom-accordion .text-primary {
    color: #6f42c1 !important;
}

@media (max-width: 768px) {
    .custom-accordion .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .custom-accordion .accordion-body {
        padding: 1rem;
    }
}

/* Blog Section */
.blog-card {
    background: var(--dark-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.blog-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-date, .blog-author {
    display: flex;
    align-items: center;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-muted);
    margin-bottom: 15px;
    flex: 1;
}

.blog-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 991.98px) {
    .blog-card {
        margin-bottom: 30px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-meta {
        font-size: 0.8rem;
    }
}

.service-card .btn {
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.service-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.service-card .btn:hover::before {
    left: 100%;
}

.service-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.service-card .btn i {
    transition: all 0.3s ease;
}

.service-card .btn:hover i {
    transform: translateX(5px);
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .service-card .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

.testimonial-content .small-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Estilos do Carrossel de Depoimentos */
.testimonialSwiper {
    padding: 20px 0;
    position: relative;
}

.testimonialSwiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonialSwiper .swiper-button-next,
.testimonialSwiper .swiper-button-prev {
    color: var(--text-color);
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonialSwiper .swiper-button-next:after,
.testimonialSwiper .swiper-button-prev:after {
    font-size: 18px;
    color: var(--text-color);
}

.testimonialSwiper .swiper-button-next:hover,
.testimonialSwiper .swiper-button-prev:hover {
    background: var(--primary-dark);
}

.testimonialSwiper .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
}

.testimonialSwiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .testimonialSwiper .swiper-button-next,
    .testimonialSwiper .swiper-button-prev {
        display: none;
    }
} 