@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@300;400;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

.swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.5 !important;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #2ECCFA !important;
    opacity: 1 !important;
}

.header-gradient {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 50%, transparent 100%);
}

.hidden-item {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.section-reveal.show {
    opacity: 1;
    transform: translateY(0);
}

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

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

@keyframes loading {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
    will-change: transform;
}

.hover\:pause:hover {
    animation-play-state: paused;
}

#loader {
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.loader-bar {
    animation: loading 1.4s ease-in-out infinite;
}

#project-modal {
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    background-color: rgba(0, 0, 0, 0.82);
}

#project-modal.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    display: flex;
    transform: scale(0.985);
}

#project-modal.flex {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    display: flex;
    transform: scale(1);
}

/* Scrollbar Personalizada para o Modal e Filtros */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #0F4C5C;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #2ECCFA;
}

#musicToggle {
    backdrop-filter: blur(4px);
}

#musicLabel {
    transition: opacity 0.2s ease;
}

.project-card,
.group img,
button,
a {
    transition: all 0.28s ease;
}

input,
textarea,
button {
    font: inherit;
}

button {
    cursor: pointer;
}

@media (max-width: 768px) {
    .animate-scroll {
        animation-duration: 28s;
    }

    .section-reveal {
        transform: translateY(18px);
    }
    
    /* Esconder scrollbar no mobile para ficar mais clean */
    .custom-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .custom-scrollbar::-webkit-scrollbar {
        display: none;
    }
}