/* Estilos para o modal de imagem */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 20px;
    box-sizing: border-box;
}

.image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 85%;
    max-height: 85vh;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.image-modal-overlay.active .image-modal-content {
    transform: scale(1);
}

.image-container {
    position: relative;
    display: inline-block;
    border: 2px solid var(--primary-yellow, #FFF111);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-container img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.02);
}

.image-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #25D366;
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: pulse 2s infinite;
}

.image-button:hover {
    background-color: #20b358;
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.image-button:active {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.image-button::before {
    content: '\f232';
    font-family: 'Font Awesome 5 Brands';
    margin-right: 10px;
    font-size: 20px;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: -10px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    outline: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(255, 0, 0, 0.3);
}

/* Cursor para indicar que a imagem é clicável */
.about-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Animação de pulsação para o botão */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 241, 17, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 241, 17, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 241, 17, 0);
    }
}

/* Responsividade para o botão na imagem */
@media (max-width: 768px) {
    .image-button {
        bottom: 7px;
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 25px;
        transform: translateX(-50%) scale(0.9);
    }
    
    .image-button:hover {
        transform: translateX(-50%) translateY(-3px) scale(0.9);
    }
    
    .image-button:active {
        transform: translateX(-50%) translateY(-1px) scale(0.9);
    }
    
    .image-button::before {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .image-modal-content {
        max-width: 95%;
    }
    
    .image-container img {
        max-height: 75vh;
    }
    
    .image-modal-close {
        top: -45px;
        right: -5px;
        width: 35px;
        height: 35px;
    }
}