/* ===============================================
   EFEITOS PARALLAX DISCRETOS - DEQUALITA
   =============================================== */

/* Parallax Background Sections */
.parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 250, 0.92);
    z-index: 1;
}

.parallax-section > * {
    position: relative;
    z-index: 2;
}

/* Parallax sutil em elementos */
.parallax-element {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Seção Sobre com Parallax */
#sobre {
    position: relative;
}

#sobre .container {
    position: relative;
    z-index: 2;
}

/* Seção Galeria com Parallax nas imagens */
.galeria-item {
    overflow: hidden;
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.galeria-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.galeria-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.galeria-item:hover img {
    transform: scale(1.08);
}

/* Animação suave de scroll para seções */
section {
    scroll-margin-top: 80px;
}

/* Efeito de profundidade em cards */
.card-parallax {
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
}

.card-parallax:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Parallax em imagens de fundo de seções específicas */
.bg-parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    /* Desabilitar parallax em mobile para performance */
    .parallax-section,
    .bg-parallax {
        background-attachment: scroll;
    }
}
