/* Research Paper Modal Styles - FIXED VERSION */
.research-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-modal.show {
    display: flex !important;
    opacity: 1 !important;
    justify-content: center !important;
    align-items: center !important;
}

.research-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.research-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #ffc107;
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
        scale: 0.8;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
        scale: 1;
    }
}

.research-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.research-icon {
    background: #ffc107;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.research-title {
    color: #ffc107;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.research-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.research-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.research-body {
    text-align: center;
    margin-bottom: 20px;
}

.research-animation {
    margin-bottom: 20px;
}

.floating-papers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.paper {
    font-size: 30px;
    animation: float 3s ease-in-out infinite;
}

.paper-1 { animation-delay: 0s; }
.paper-2 { animation-delay: 0.5s; }
.paper-3 { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.research-subtitle {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.research-description {
    color: #ccc;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.research-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-research-view,
.btn-research-later {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-research-view {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
}

.btn-research-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #000;
    text-decoration: none;
}

.btn-research-later {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #fff;
}

.btn-research-later:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.research-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.research-footer p {
    color: #999;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .research-modal-content {
        padding: 20px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .research-title {
        font-size: 20px;
    }
    
    .research-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-research-view,
    .btn-research-later {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}