.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.card-enter {
    animation: cardEnter 0.6s ease-out forwards;
}

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

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #00BFFF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00BFFF;
}

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

img.clickable {
    pointer-events: auto;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.loading-transition {
    position: relative;
    overflow: hidden;
}

.loading-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00bfff, transparent);
    animation: loading 1.5s infinite;
    z-index: 1000;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

#main-nav {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Botão de idioma */
#language-btn {
    transition: all 0.3s ease;
}

#language-btn:hover {
    transform: scale(1.05);
    background: rgba(0, 191, 255, 0.1);
}

#language-dropdown {
    backdrop-filter: blur(20px);
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid rgba(0, 191, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.language-option {
    transition: all 0.2s ease;
}

.language-option:hover {
    background: rgba(0, 191, 255, 0.1);
    transform: translateX(4px);
}

#main-nav ul {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 767px) {
    #main-nav ul {
        display: flex;
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 90%;
        max-width: 400px;
        background: rgba(22, 27, 34, 0.95);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease-in-out;
    }
    
    #main-nav ul.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    #main-nav ul li {
        width: 100%;
        text-align: center;
    }
    
    #main-nav ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    #main-nav ul li a:hover {
         background: rgba(0, 191, 255, 0.1);
         transform: translateX(5px);
     }
 }

@media (min-width: 768px) {
    #main-nav ul li {
        position: relative;
        overflow: hidden;
    }
    
    #main-nav ul li a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }
    
    #main-nav ul li a svg {
        width: 16px;
        height: 16px;
        transition: all 0.3s ease;
    }
}

.certification-card {
    position: relative;
    cursor: pointer;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    z-index: -1;
}

.certification-card:hover::before {
    opacity: 1;
}

@keyframes certificationCardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.certification-card.animated {
    animation: certificationCardEnter 0.6s ease-out forwards;
}

/* Efeito de mouse tracking */
.certification-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.certification-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    pointer-events: none;
    z-index: 1;
}

.certification-card:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

.certification-card:hover .group-hover\:animate-pulse {
    animation: shimmer 1.5s ease-in-out;
}

.certification-card img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.certification-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Efeito de glow nos ícones */
.certification-card svg {
    transition: all 0.3s ease;
}


/* Animações removidas - sem partículas */

/* Responsividade para cards de certificados */
@media (max-width: 768px) {
    .certification-card {
        margin-bottom: 1rem;
    }
    
    .certification-card .h-\[220px\] {
        height: auto;
        min-height: 200px;
    }
}

/* Efeito de fade para o container */
.fade-out {
    opacity: 0.3;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

/* Animação do carrossel infinito */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 32px));
    }
}

.animate-scroll-infinite {
    animation: scroll-infinite 40s linear infinite;
    will-change: transform;
    display: flex;
    width: max-content;
}

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

/* Garantir que o carrossel seja suave em dispositivos móveis */
@media (max-width: 768px) {
    .animate-scroll-infinite {
        animation-duration: 30s;
    }
}
    
    #main-nav ul li::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: #00BFFF;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    #main-nav ul li:hover::after {
        width: 100%;
    }
    
    #main-nav ul li:hover a {
        transform: translateY(-2px);
        color: #00BFFF;
    }
    
    #main-nav ul li:hover a span {
        display: inline-block;
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }