/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 100px; /* Espaçamento para o header fixo */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    transition: all 0.3s ease;
}

/* Efeito durante o scroll suave */
body.scrolling {
    cursor: wait;
}

body.scrolling * {
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    color: #333;
}

.preloader-logo {
    margin-bottom: 30px;
}

.preloader-logo-img {
    width: 180px;
    height: auto;
    animation: pulse 2s infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.preloader-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.preloader-hint {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.preloader-emergency {
    font-size: 12px;
    opacity: 0.6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

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

.btn-client {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-client:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
}

.mobile-menu-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.mobile-menu-toggle.active {
    color: #667eea;
    transform: rotate(90deg);
}

/* Menu mobile ativo */
.nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
    transform-origin: top;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.nav.active .nav-links {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    animation: fadeInUp 0.4s ease-out 0.1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav.active .nav-links li {
    width: 100%;
    text-align: center;
}

.nav.active .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInLeft 0.3s ease-out forwards;
}

.nav.active .nav-links li:nth-child(1) a { animation-delay: 0.1s; }
.nav.active .nav-links li:nth-child(2) a { animation-delay: 0.15s; }
.nav.active .nav-links li:nth-child(3) a { animation-delay: 0.2s; }
.nav.active .nav-links li:nth-child(4) a { animation-delay: 0.25s; }
.nav.active .nav-links li:nth-child(5) a { animation-delay: 0.3s; }
.nav.active .nav-links li:nth-child(6) a { animation-delay: 0.35s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav.active .nav-links a:last-child {
    border-bottom: none;
}

.nav.active .nav-links a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    padding-left: 10px;
    transform: translateX(5px);
}

/* Hero Section */
.hero {
    padding: 120px 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background: white;
    margin: 30px 0;
    border-radius: 2px;
}

.hero-commitment {
    font-size: 18px;
    font-weight: 500;
    color: white;
    font-style: italic;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Services Section */
.specializations {
    padding: 0 0 100px 0;
    background: white;
}

.specializations .container {
    padding-top: 40px;
}

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

.service-card {
    background: transparent;
    padding: 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 300px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.service-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-back {
    transform: rotateY(180deg);
    background: white;
}

.card-front h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-front p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.card-back h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
}

.card-back p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

    .service-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .service-card:hover .service-image img {
        transform: none;
    }

.service-image {
    margin-bottom: 25px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%), url('img/equipe_informatech.png');
    background-size: cover;
    background-position: center 30%;
    color: white;
}

.why-us .section-title {
    color: white;
}

.why-us .section-title::after {
    background: white;
}

.why-us-content {
    display: flex;
    justify-content: center;
    align-items: center;
}



.features {
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.feature h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 3px;
    display: inline-block;
}

.feature p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Technologies Section */
.technologies {
    padding: 100px 0 30px 0;
    background: white;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    animation: scroll 25s linear infinite;
    gap: 5px;
}

.carousel-item {
    flex-shrink: 0;
    width: 340px;
}

.tech-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    transition: transform 0.3s ease;
}

.tech-logo:hover {
    transform: translateY(-5px);
}

.tech-image {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.tech-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tech-logo span {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-2040px);
    }
}

/* Clients Section */
.clients {
    padding: 0 0 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.company-logo {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.company-info span {
    color: #666;
    font-size: 14px;
}

.testimonial-content {
    position: relative;
}

.quote-icon {
    display: none;
}

.testimonial-content p {
    color: #555;
    line-height: 1.7;
    font-style: italic;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    color: #667eea;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    transform: translateY(-3px);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer .section-title {
    color: white;
    margin-bottom: 40px;
}

.footer .section-title::after {
    background: white;
    bottom: -8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
    }
    
    .desktop-only {
        display: none;
    }
    
    .header .container {
        padding: 10px 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-client-mobile {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 10px 20px;
        border-radius: 20px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        display: inline-block;
        margin-top: 10px;
    }
    
    .btn-client-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    
    .hero {
        padding: 100px 0 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .specializations {
        padding: 40px 0 80px 0;
    }
    
    .specializations .container {
        padding-top: 30px;
    }
    
    .why-us {
        padding: 60px 0;
    }
    
    .technologies {
        padding: 60px 0 20px 0;
    }
    
    .clients {
        padding: 0 0 60px 0;
    }
    
    .why-us-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .service-card {
        height: 280px;
        margin: 0 0 20px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        box-shadow: none;
        border: 1px solid #e0e0e0;
        background: white;
        border-radius: 8px;
    }
    
    .card-front, .card-back {
        padding: 25px 20px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
        box-shadow: none;
        border: none;
        background: white;
        border-radius: 8px;
    }
    
    .service-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .service-card p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .card-front h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .card-front p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .card-back h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .card-back p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .service-image {
        height: 80px;
        margin-bottom: 15px;
    }
    
    .service-image img {
        max-height: 80px;
    }
    
    /* Desabilitar efeitos de hover no mobile */
    .service-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .service-card:hover .service-image img {
        transform: none !important;
    }
    
    .feature h3 {
        font-size: 20px;
    }
    
    .feature p {
        font-size: 16px;
    }
    
    .carousel-item {
        width: 280px;
    }
    
    .tech-logo {
        padding: 0;
    }
    
    .tech-image {
        width: 180px;
        height: 180px;
    }
    
    .carousel-track {
        animation: scroll 12s linear infinite;
        gap: 0px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero {
        padding: 100px 0 0;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .service-card {
        height: 260px;
        width: 100%;
        max-width: 100%;
        margin: 0 0 15px 0;
        box-sizing: border-box;
        box-shadow: none;
        border: 1px solid #e0e0e0;
        background: white;
        border-radius: 8px;
    }
    
    .card-front, .card-back {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
        box-shadow: none;
        border: none;
        background: white;
        border-radius: 8px;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .service-card p {
        font-size: 12px;
    }
    
    .card-front h3 {
        font-size: 16px;
    }
    
    .card-front p {
        font-size: 12px;
    }
    
    .card-back h3 {
        font-size: 16px;
    }
    
    .card-back p {
        font-size: 11px;
    }
    
    .service-image {
        height: 60px;
        margin-bottom: 10px;
    }
    
    .service-image img {
        max-height: 60px;
    }
    
    /* Desabilitar efeitos de hover no mobile pequeno */
    .service-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .service-card:hover .service-image img {
        transform: none !important;
    }
}

/* Animações de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

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

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

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

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

/* Botão do WhatsApp Flutuante */
.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;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}

.whatsapp-icon {
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover .whatsapp-icon {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #075e54;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #075e54;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Responsividade do botão do WhatsApp */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-icon {
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        right: 65px;
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .whatsapp-button:hover .whatsapp-tooltip {
        right: 70px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        font-size: 22px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Esconder tooltip em telas muito pequenas */
    }
}

/* Utilitários */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}
