/* Sticky 3D Button - Hidden but Visible */
.sticky-show-btn {
    position: fixed;
    bottom: 62%;
    left: 20px; /* Moved to the left side */
    background: #353535b3; /* Dark gray with transparency */
    color: #fff; /* White text for contrast */
    padding: 10px 16px; /* Smaller padding by default */
    border-radius: 50px;
    font-size: 14px; /* Smaller font size */
    font-weight: bold;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: all 0.3s ease; /* Smooth transition for all properties */
    z-index: 1000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Segoe UI', sans-serif; /* Modern font */
    opacity: 0.7; /* Semi-transparent by default */
    transform: scale(0.9); /* Slightly smaller by default */
    animation: fadeIn 0.5s ease-in-out; /* Fade-in animation */
}

.sticky-show-btn:hover {
    background: #555555e6; /* Darker gray with less transparency on hover */
    opacity: 1; /* Fully visible on hover */
    transform: scale(1); /* Normal size on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
    padding: 14px 24px; /* Larger padding on hover */
    font-size: 16px; /* Larger font size on hover */
}

/* Fade-in animation for the button */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Darker overlay for better focus */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px); /* Blur effect for the background */
}

[data-modal-type="case"] .modal-content {
    width: 90%;
    max-width: 1200px; /* Limit maximum width */
    height: 80vh;
    background: #2c2c2c; /* Dark gray background for the modal */
    border-radius: 15px; /* Smoother corners */
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); /* Stronger shadow for depth */
}

.modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close Button Styles */
[data-modal-type="case"] .close-btn {
    position: absolute;
    top: 20px; /* Adjusted for better positioning */
    left: 20px; /* Positioned on the left */
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    background: #555555e6; /* A vibrant red color */
    border: 2px solid #fff; /* White border for contrast */
    border-radius: 50%;
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

.close-btn:hover {
    background: #ff6b81; /* Lighter red on hover */
    transform: scale(1.1) rotate(90deg); /* Slightly scale up and rotate */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* Full Screen Button Styles */
[data-modal-type="case"] .fullscreen-btn {
    position: absolute;
    top: 80px; /* Positioned below the close button */
    left: 20px; /* Aligned with the close button */
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    background: #353535b3; /* Matching the button color */
    border: 2px solid #fff; /* White border for contrast */
    border-radius: 50%;
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

.fullscreen-btn:hover {
    background: #555555e6; /* Darker gray on hover */
    transform: scale(1.1); /* Slightly scale up */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* RTL (Right-to-Left) Styles */
[dir="rtl"] .sticky-show-btn {
    left: auto; /* Reset left position */
    right: 20px; /* Move to the right side */
}

[dir="rtl"] .close-btn {
    right: auto; /* Reset right position */
    left: 20px; /* Move to the left side */
}

[dir="rtl"] .fullscreen-btn {
    right: auto; /* Reset right position */
    left: 20px; /* Move to the left side */
}