/* Este arquivo é para estilos CSS personalizados que complementam o Tailwind ou criam efeitos mais complexos */
html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Montserrat', sans-serif;
}

.menu-link-active {
  color: #2563EB; /* text-blue-600 */
}

/* Hero Section Background - Updated for custom canvas effect */
.hero-background {
    position: relative;
    background-color: #f8f8f8;
    /* Light background as requested */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#connectionsCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    /* Behind content */
    pointer-events: none;
    /* Allows mouse events to pass through to elements below */
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Ensures content is above canvas */
    animation: fadeInScale 1.5s ease-out forwards;
    color: #333333;
    /* Adjust text color for light background */
}

/* Animações (mantidas) */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-30deg) scale(0.8);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.card-effect {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.card-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #3B82F6;
}

.tech-icon-hover:hover {
    transform: scale(1.1);
    color: #1D4ED8;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

.client-partner-logo-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.client-partner-logo-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
}

.client-partner-logo-effect:hover::before {
    opacity: 1;
}

.client-partner-logo-effect img {
    position: relative;
    z-index: 1;
}

/* Mobile Menu Overlay Styles */
#mobile-menu.menu-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    /* Near-white overlay */
    z-index: 100;
    justify-content: center;
    align-items: center;
    animation: slideInFromTop 0.3s ease-out forwards;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

#mobile-menu a {
    padding: 1.5rem 0;
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
    color: #3B82F6;
    transition: background-color 0.2s ease;
}

#mobile-menu a:hover {
    background-color: #EBF8FF;
}

/* Animação de pulso personalizada para a logo na Hero Section */
@keyframes pulse-custom {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }
}

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

/* Animação slide-in-up para a tagline na Hero Section */
@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in-up {
    animation: slide-in-up 1.2s ease-out 1s forwards;
    /* Atraso de 1s para começar depois da logo */
    opacity: 0;
    /* Começa invisível */
}

/* Efeito para logos de clientes e parceiros (adaptado para fundo claro) */
.client-partner-logo-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.client-partner-logo-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.15));
    /* Azul sutil */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
}

.client-partner-logo-effect:hover::before {
    opacity: 1;
}

.client-partner-logo-effect img {
    position: relative;
    /* Para garantir que a imagem fique acima do pseudo-elemento */
    z-index: 1;
}

/* Styles to prevent body scroll when mobile menu is open */
body.overflow-hidden {
    overflow: hidden;
}