/* Custom styles for Travessia Marketing */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Infinite Carousel Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 6s linear infinite;
    display: flex;
    width: 200%;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B5CF6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7C3AED;
}

/* Clients Carousel */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.clients-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.clients-carousel::before {
    left: 0;
    background: linear-gradient(90deg, white 0%, rgba(255, 255, 255, 0) 100%);
}

.clients-carousel::after {
    right: 0;
    background: linear-gradient(270deg, white 0%, rgba(255, 255, 255, 0) 100%);
}

.clients-carousel-inner {
    display: flex;
    width: max-content;
    animation: scroll 15s linear infinite;
    padding: 1.5rem 0;
    will-change: transform;
}

.clients-carousel:hover .clients-carousel-inner {
    animation-play-state: paused;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 150px;
    padding: 0 1.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-logo {
        height: 60px;
        min-width: 120px;
        padding: 0 1rem;
    }
    
    .client-logo img {
        max-width: 100%;
    }
}

/* Animation for elements on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Styles */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
    padding: 1.5rem;
}

/* Client Slider */
#clientSlider {
    transition: transform 0.5s ease;
}

/* Button Hover Effects */
.btn-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-hover:active {
    transform: translateY(0);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #8B5CF6, #4F46E5);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-padding {
        padding: 4rem 1rem;
    }
    
    .client-logo {
        max-width: 120px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Form Styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
/* Diferenciais Section */
.differential-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
}

/* FAQ Accordion Styles */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    margin: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    box-sizing: border-box;
}

/* Remove the hidden class that might be set by default */
.faq-answer:not(.hidden) {
    display: block;
}

/* Style for the answer content */
.faq-answer > div {
    padding: 0.5rem 0 1rem 0;
}

/* Question button styles */
.faq-question {
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    outline: none;
}

/* Hover effect for question */
.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Style for the chevron icons */
.faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Style for Font Awesome icons */
.faq-question i {
    transition: transform 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Active state for question */
.faq-question.active {
    font-weight: 600;
}

/* Active state for chevron */
.faq-question.active svg {
    transform: rotate(180deg);
}

/* Active state for Font Awesome icon */
.faq-question.active i {
    transform: rotate(180deg);
}

.differential-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Efeito de overlay gradiente ao passar o mouse */
.differential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Animações suaves para o conteúdo */
.differential-card h3,
.differential-card p,
.differential-card a {
    transition: all 0.5s ease;
    position: relative;
    z-index: 10;
}

/* Estilo para os itens da lista que aparecem no hover */
.differential-card .flex.items-start {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px);
    opacity: 0;
}

.differential-card:hover .flex.items-start {
    transform: translateX(0);
    opacity: 1;
}

/* Atrasos para o efeito cascata */
.differential-card:hover .flex.items-start:nth-child(1) { transition-delay: 0.1s; }
.differential-card:hover .flex.items-start:nth-child(2) { transition-delay: 0.2s; }
.differential-card:hover .flex.items-start:nth-child(3) { transition-delay: 0.3s; }

/* Melhorias na responsividade */
@media (max-width: 768px) {
    .differential-card {
        height: auto !important;
        min-height: 400px;
    }
    
    .differential-card .space-y-4 {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .differential-card .flex.items-start {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}

.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Back to top button */
.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom animations */
[data-animate="fadeInUp"] {
    animation: fadeInUp 0.6s ease-out forwards;
}

[data-animate="fadeIn"] {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Ensure images don't overflow their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        padding: 1cm;
    }
}

/* Fix for mobile menu */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 40;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-menu a {
        margin: 1rem 0;
        font-size: 1.25rem;
    }
}

/* Fix for iOS input zoom */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Print styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-content, .print-content * {
        visibility: visible;
    }
    
    .print-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .no-print {
        display: none !important;
    }
}
/* Mobile menu transition */
#mobileMenu {
    transition: all 0.3s ease-in-out;
}

/* FAQ answer when expanded */
.faq-answer.block {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

/* Client slider */
#clientSlider {
    transition: transform 0.5s ease-in-out;
}

/* Button hover effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hover-effect:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #7C3AED;
    z-index: -2;
}

.btn-hover-effect:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #6D28D9;
    transition: all .3s;
    z-index: -1;
}

.btn-hover-effect:hover:before {
    width: 100%;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 1rem;
    }
}

/* Animation delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

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

.fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(90deg, #8B5CF6 0%, #4F46E5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom bullet points */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

.custom-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8B5CF6;
    font-weight: bold;
}
